rock_kaoqin_dkcog.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php if(!defined('HOST'))die('not access');?>
  2. <script >
  3. $(document).ready(function(){
  4. var a = $('#view_{rand}').bootstable({
  5. tablename:'userinfo',celleditor:true,fanye:true,
  6. url:publicstore('{mode}','{dir}'),storeafteraction:'kqtotalaftershow',storebeforeaction:'kqtotalbeforeshow',
  7. columns:[{
  8. text:'部门',dataIndex:'deptname',align:'left',sortable:true
  9. },{
  10. text:'姓名',dataIndex:'name',sortable:true
  11. },{
  12. text:'职位',dataIndex:'ranking'
  13. },{
  14. text:'在线打卡IP',dataIndex:'dkip'
  15. },{
  16. text:'在线打卡MAC地址',dataIndex:'dkmac'
  17. },{
  18. text:'ID',dataIndex:'id'
  19. }],
  20. itemclick:function(){
  21. get('xqkaoqb_{rand}').disabled=false;
  22. }
  23. });
  24. var c = {
  25. search:function(){
  26. var s=get('key_{rand}').value;
  27. a.setparams({key:s},true);
  28. }
  29. };
  30. js.initbtn(c);
  31. });
  32. </script>
  33. <div>
  34. <table width="100%"><tr>
  35. <td nowrap>
  36. <input class="form-control" style="width:150px" id="key_{rand}" placeholder="姓名/部门">
  37. </td>
  38. <td style="padding-left:10px">
  39. <button class="btn btn-default" click="search" type="button">搜索</button>
  40. </td>
  41. <td width="90%"></td>
  42. <td align="right" nowrap>
  43. </td>
  44. </tr></table>
  45. </div>
  46. <div class="blank10"></div>
  47. <div id="view_{rand}"></div>
粤ICP备19079148号