1
0

rock_kaoqin_kqcog.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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:js.getajaxurl('publicstore','userinfo','main'),storeafteraction:'userinfoafter',storebeforeaction:'userinfobefore',
  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',editor:true
  15. },{
  16. text:'在线打卡MAC地址',dataIndex:'dkmac',editor:true
  17. },{
  18. text:'关联中控考勤机工号',dataIndex:'finger',editor:true
  19. },{
  20. text:'需要考勤',dataIndex:'iskq',type:'checkbox',editor:true
  21. },{
  22. text:'需要写日报',dataIndex:'isdaily',type:'checkbox',editor:true
  23. },{
  24. text:'ID',dataIndex:'id'
  25. }]
  26. });
  27. var c = {
  28. search:function(){
  29. var s=get('key_{rand}').value;
  30. a.setparams({key:s},true);
  31. }
  32. };
  33. js.initbtn(c);
  34. });
  35. </script>
  36. <div>
  37. <table width="100%"><tr>
  38. <td nowrap>
  39. <input class="form-control" style="width:200px" id="key_{rand}" placeholder="姓名/部门/职位">
  40. </td>
  41. <td style="padding-left:10px">
  42. <button class="btn btn-default" click="search" type="button">搜索</button>
  43. </td>
  44. <td width="90%"></td>
  45. <td align="right" nowrap>
  46. </td>
  47. </tr></table>
  48. </div>
  49. <div class="blank10"></div>
  50. <div id="view_{rand}"></div>
  51. <div class="tishi">人员必须设置打卡IP,IP一般是内网Ip196.168的,或者电脑的物理MAC地址,才可以在线打卡,多个用,分开,不限制IP就写*。</div>
粤ICP备19079148号