Skip to content

Commit

Permalink
Remove Comma at the end of Array.
Browse files Browse the repository at this point in the history
  • Loading branch information
yeguangsuixing committed Aug 14, 2014
1 parent 875a9a3 commit eef5d3b
Show file tree
Hide file tree
Showing 9 changed files with 63 additions and 13 deletions.
4 changes: 4 additions & 0 deletions Application/Home/Controller/InnerController.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,16 @@ public function area_info(){
$this->assign("province_list", $province_list);
$this->assign("city_list", $city_list);
$this->assign("district_list", $district_list);
$this->assign("province_list_count", count($province_list));
$this->assign("city_list_count", count($city_list));
$this->assign("district_list_count", count($district_list));
$this->display();
}
public function acc_info(){
$m = M('User');
$m_list = $m->where("utype <> '1'")->select();//除去超管
$this->assign("user_list", $m_list);
$this->assign("user_list_count", count($m_list));
$this->display();
}
//uid:uid,uname:uname,email:email,mobilephone:mobilephone,utype:utype
Expand Down
11 changes: 10 additions & 1 deletion Application/Home/View/Index/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,16 @@
autoLoad:{
url:turl,
scripts:true,
script:true
script:true,
callback:function(el, is_succeed, response){
if(!is_succeed){
//alert(response.responseText);
//console.log(el);
el.dom.innerHTML = response.responseText;
//Ext.MessageBox.alert("错误",response.responseText.substring(0,100));
}
},
timeout:15
}
});
mainTabPanel.add(tp).show();
Expand Down
5 changes: 3 additions & 2 deletions Application/Home/View/Inner/acc_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
//['NJ0005', '管理员5', '2014年8月3日16:01:51', '2014年8月3日17:36:31', '[email protected]', '15900000005', 3],
//['NJ0006', '管理员6', '2014年8月3日16:01:51', '2014年8月3日17:36:31', '[email protected]', '15900000006', 2],
//['NJ0007', '管理员7', '2014年8月3日16:01:51', '2014年8月3日17:36:31', '[email protected]', '15900000007', 2]
<volist name="user_list" id="user_vo">
['{$user_vo.uid}','{$user_vo.uname}','{$user_vo.create_time}','{$user_vo.last_login}','{$user_vo.email}','{$user_vo.mobilephone}',{$user_vo.utype}],
<volist name="user_list" id="user_vo" key="k">
['{$user_vo.uid}','{$user_vo.uname}','{$user_vo.create_time}','{$user_vo.last_login}','{$user_vo.email}','{$user_vo.mobilephone}',{$user_vo.utype}]
<neq name="k" value="$user_list_count">,</neq>
</volist>
];
var acc_store = new Ext.data.SimpleStore({
Expand Down
14 changes: 13 additions & 1 deletion Application/Home/View/Inner/msg_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,19 @@
totalProperty: 'totalCount'
//id: 'uid',
});
msg_store.load({ params:{ start:0,limit:10 } });
msg_store.load({
params:{ start:0,limit:10 },
callback:function(rec,scope,success){
if(!success){
Ext.MessageBox.show({
title: '错误',
msg: '加载短信列表失败!',
buttons: Ext.MessageBox.OK,
icon: Ext.MessageBox.ERROR
});
}
}
});


var msg_grid = new Ext.grid.GridPanel({
Expand Down
6 changes: 3 additions & 3 deletions Application/Home/View/Inner/msg_info_list.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{totalCount:<?php echo($sys_msg_list);?>,
{totalCount:<?php echo($sys_msg_count);?>,
root:[
<volist name="sys_msg_list" id="sys_msg_vo">
<volist name="sys_msg_list" id="sys_msg_vo" key="k">
{
'uid':'{$sys_msg_vo.uid}',
'uname':'{$sys_msg_vo.uname}',
'mtime':'{$sys_msg_vo.mtime}',
'mcontent':'{$sys_msg_vo.mcontent}'
},
}<neq name="k" value="$sys_msg_count">,</neq>
</volist>
]}
14 changes: 13 additions & 1 deletion Application/Home/View/Inner/node_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,19 @@
totalProperty: 'totalCount',
url:'__ROOT__/Home/Inner/node_info_list'
});
node_store.load({ params:{ start:0,limit:15 } });
node_store.load({
params:{ start:0,limit:15 } ,
callback:function(rec,scope,success){
if(!success){
Ext.MessageBox.show({
title: '错误',
msg: '加载节点信息失败!',
buttons: Ext.MessageBox.OK,
icon: Ext.MessageBox.ERROR
});
}
}
});
var node_grid = new Ext.grid.GridPanel({
renderTo:"node_info",
title:"节点信息",
Expand Down
4 changes: 2 additions & 2 deletions Application/Home/View/Inner/node_info_list.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{totalCount:<?php echo($node_count);?>,
root:[
<volist name="node_list" id="node_vo">
<volist name="node_list" id="node_vo" key="k">
{
'id':'{$node_vo.nid}',
'name':'{$node_vo.nname}',
Expand All @@ -18,6 +18,6 @@
'baiduid':'{$node_vo.baidu_id}',
'nh3':{$node_vo.nnh3},
'h2s':{$node_vo.nh2s}
},
}<neq name="k" value="$node_count">,</neq>
</volist>
]}
14 changes: 13 additions & 1 deletion Application/Home/View/Inner/op_info.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,19 @@
root:'root',
totalProperty:'totalCount'
});
op_store.load({ params:{ start:0,limit:15 } });
op_store.load({
params:{ start:0,limit:15 },
callback:function(rec,scope,success){
if(!success){
Ext.MessageBox.show({
title: '错误',
msg: '加载节点操作信息失败!',
buttons: Ext.MessageBox.OK,
icon: Ext.MessageBox.ERROR
});
}
}
});


var op_grid = new Ext.grid.GridPanel({
Expand Down
4 changes: 2 additions & 2 deletions Application/Home/View/Inner/op_info_list.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{totalCount:<?php echo($node_op_count);?>,
root:[
<volist name="op_list" id="op_vo">
<volist name="op_list" id="op_vo" key="k">
{
'oid':{$op_vo.oid},
'nid':'{$op_vo.nid}',
Expand All @@ -14,6 +14,6 @@
'nh3':{$op_vo.onh3},
'h2s':{$op_vo.oh2s},
'loc':'{$op_vo.oloc}'
},
}<neq name="k" value="$node_op_count">,</neq>
</volist>
]}

0 comments on commit eef5d3b

Please sign in to comment.