-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.php
More file actions
77 lines (77 loc) · 1.85 KB
/
index.php
File metadata and controls
77 lines (77 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<script>
var panel = new Ext.TabPanel({
id:"ModuleBoard",
border:false,
tabPosition:"bottom",
items:[
new Ext.grid.Panel({
id:"ModuleBoardList",
title:Board.getText("admin/list/title"),
border:false,
tbar:[
new Ext.Button({
text:Board.getText("admin/list/addBoard"),
iconCls:"fa fa-plus",
handler:function() {
Board.addBoard();
}
})
],
store:new Ext.data.JsonStore({
proxy:{
type:"ajax",
simpleSortMode:true,
url:ENV.getProcessUrl("board","@getBoards"),
reader:{type:"json"}
},
remoteSort:true,
sorters:[{property:"reg_date",direction:"DESC"}],
autoLoad:true,
pageSize:50,
fields:["bid","title","nickname","exp","point","reg_date","last_login","display_url","count","image"],
listeners:{
load:function(store,records,success,e) {
if (success == false) {
if (e.getError()) {
Ext.Msg.show({title:Admin.getText("alert/error"),msg:e.getError(),buttons:Ext.Msg.OK,icon:Ext.Msg.ERROR})
} else {
Ext.Msg.show({title:Admin.getText("alert/error"),msg:Admin.getText("error/load"),buttons:Ext.Msg.OK,icon:Ext.Msg.ERROR})
}
}
}
}
}),
width:"100%",
columns:[{
text:Board.getText("admin/list/columns/bid"),
width:80,
dataIndex:"bid"
},{
text:Board.getText("admin/list/columns/title"),
minWidth:100,
flex:1,
dataIndex:"title"
}],
selModel:new Ext.selection.CheckboxModel(),
bbar:new Ext.PagingToolbar({
store:null,
displayInfo:false,
items:[
"->",
{xtype:"tbtext",text:Board.getText("admin/grid_help")}
],
listeners:{
beforerender:function(tool) {
tool.bindStore(Ext.getCmp("ModuleBoardList").getStore());
}
}
}),
listeners:{
itemdblclick:function(grid,record) {
Board.addBoard(record.data.bid);
}
}
})
]
});
</script>