- $('#EmployeeGrid').flexigrid({
-
- width:$(window).width()-2,
-
- height:480,
-
- striped:true,
-
- novstripe:false,
-
- minwidth:400,
-
- minheight:200,
-
- resizable:true,
-
- url:'server/employee.php',
-
- method:'POST',
-
- dataType:'xml',
-
- errormsg:'連線資料庫失敗',
-
- usepager:true,
-
- nowrap:true,
-
- page:1,
-
- total:1,
-
- useRp:true,
-
- rp:15,
-
- rpOptions:[10,15,20,25,40],
-
- title:false,
-
- pagestat:'檢視{from}到{to},全部共有{total}筆資料',
-
- procmsg:'資料讀取中,請稍後…',
-
- query:'',
-
- qtype:'',
-
- nomsg:'找不到符合絛件的資料',
-
- minColToggle:1,
-
- showToggleBtn:true,
-
- sortname:'basic_name',
-
- sortorder:'asc',
-
- hideOnSubmit:false,
-
- singleSelect:true,
-
- nohresize:true
-
- autoload:true,
-
- blockOpacity:0.5,
-
- onToggleCol:false,
-
- onChangeSort:false,
-
- onSuccess:false,
-
- onSubmit:false,
-
- onError:false,
-
- onRpChange:false,
-
- showTableToggleBtn:true,
-
- colModel:[
-
- {display:'身份證字號',
- name:'basic_unicode',
- width:75,
- sortable:true,
- align:'center',
- hide:false},
-
- {display:'姓名',
- name:'basic_unicode',
- width:75,
- sortable:true,
- align:'center',
- hide:false}
- ],
-
- params:[
-
- {name:'viewFields',value:['id','basic_unicode','basic_name']},
-
- {name:'action',value:'view'}
-
-
-
-
-
-
-
-
-
-
-
- ],
-
- buttons:[
- {name:'新增',bclass:'add',onpress:null},
- {name:'刪除',bclass:'delete',onpress:null},
- {separator:true}
- ],
-
- searchitems:[
- {display:'身份證字號',name:'basic_unicode'},
- {display:'聯絡手機',name:'contact_mobile'},
- {display:'姓名',name:'basic_name',isdefault:true}
- ]
- });
posted @
2011-12-15 16:00
火辣辣的哥哥
阅读(
209)
评论()
编辑
收藏
举报