JSChart控件 & Ajax 图片
http://www.wujianrong.com/archives/javascript/
Ajax 图片 http://bbs.okajax.com/thread-186-1-1.html
http://www.vifir.com/upload/daxia/WK2L8UxjDMairEeG.pdf
buttons: [{
text:'批量刪除',
handler:function(){
var rows=grid.getSelectionModel().getSelections();
var permission_id = '';
for(var i=0;i <rows.length;i++){
if(i>0){
permission_id = permission_id + ',' + rows[i].get('permission_id');
}else{
permission_id = permission_id + rows[i].get('permission_id');
}
}
mainForm.getForm().submit({
url:'{{$__ROOT}}permission/delete',
params:{permission_id:permission_id},
//waitMsg:'Submitting.....',
success: function(form,action){
location.href='{{$__ROOT}}permission';
},
failure: function(){
location.href='{{$__ROOT}}permission';
}
})
}
},
{
text:'新增',
id:'add_btn'
}]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>cs测试</title>
<style>
body
{
margin:10px;
}
#content{
border-left:1px solid #11a3ff;
border-bottom:1px solid #11a3ff;
border-right:1px solid #11a3ff;
padding:15px;
font-size:12px;
}
ul#tabnav{
list-style-type:none;
margin:0px;
padding-left:0px;
padding-bottom:23px;
border-bottom:1px solid #11a3ff;
font:bold 12px verdana,arial;
}
ul#tabnav li{
float:left;
height:22px;
background-color:#a3dbff;
marging:0px 3px 0px 0px;
border:1px solid #11a3ff;
}
ul#tabnav a:link,ul#tabnav a:visited{
display:block;
color:#006eb3;
text-decoration:none;
padding:5px 10px 3px 10px;
}
ul# tabnav a:hover{
background-color:#006eb3;
color:#ffffff;
}
body#home li.home,body#news li.news,body#blog li.blog{
border-botton:1px solid #ffffff;
color:#000000;
background:background-color:#ffffff;
}
</style>
</head>
<body id="home">
<ul id="tabnav">
<li class="home" ><a href="">首页</a></li>
<li class="news"><a href="">新闻</a></li>
<li class="sports"><a href="">体育</a></li>
<li class="music"><a href="">音乐</a></li>
<li class="nextstation"><a href="">下一站</a></li>
</ul>
<div id="content">
<ul>
<li>[首页]今年的冬天雪下得太晚</li>
<li>[首页]今年的冬天雪下得太晚</li>
<li>[首页]今年的冬天雪下得太晚</li>
<li>[首页]今年的冬天雪下得太晚</li>
<li>[首页]今年的冬天雪下得太晚</li>
<li>[首页]今年的冬天雪下得太晚cbdcn-xinglian</li>
</ul>
</div>
</body>
</html>