rock_cog_login.php 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php if(!defined('HOST'))die('not access');?>
  2. <script >
  3. $(document).ready(function(){
  4. {params};
  5. var a = $('#veiw_{rand}').bootstable({
  6. tablename:'logintoken',celleditor:true,sort:'moddt',dir:'desc',modedir:'{mode}:{dir}',checked:true,fanye:true,
  7. storebeforeaction:'logintokenbefore',
  8. columns:[{
  9. text:'姓名',dataIndex:'name'
  10. },{
  11. text:'用户ID',dataIndex:'uid',sortable:true
  12. },{
  13. text:'来源',dataIndex:'cfrom',sortable:true
  14. },{
  15. text:'IP',dataIndex:'ip'
  16. },{
  17. text:'浏览器',dataIndex:'web'
  18. },{
  19. text:'Device',dataIndex:'device'
  20. },{
  21. text:'app推送',dataIndex:'ispush',type:'checkbox',sortable:true
  22. },{
  23. text:'在线状态',dataIndex:'online',type:'checkbox',sortable:true
  24. },{
  25. text:'最后在线',dataIndex:'moddt',sortable:true
  26. },{
  27. text:'ID',dataIndex:'id',sortable:true
  28. }],
  29. rendertr:function(d){
  30. var s = '';
  31. if(d.online==0)s='style="color:#aaaaaa"';
  32. return s;
  33. }
  34. });
  35. var c = {
  36. delss:function(){
  37. a.del({url:js.getajaxurl('dellogin','{mode}','{dir}'),checked:true});
  38. },
  39. search:function(){
  40. var s=get('key_{rand}').value;
  41. a.setparams({key:s},true);
  42. },
  43. daochu:function(){
  44. a.exceldown();
  45. }
  46. };
  47. js.initbtn(c);
  48. });
  49. </script>
  50. <div>
  51. <table width="100%"><tr>
  52. <td>
  53. <input class="form-control" style="width:300px" id="key_{rand}" placeholder="来源/姓名/浏览器">
  54. </td>
  55. <td nowrap style="padding-left:10px">
  56. <button class="btn btn-default" click="search" type="button">搜索</button>&nbsp;
  57. <button class="btn btn-default" click="daochu,1" type="button">导出</button>
  58. </td>
  59. <td width="80%"></td>
  60. <td align="right" nowrap>
  61. <button class="btn btn-danger" id="del_{rand}" click="delss" type="button"><i class="icon-trash"></i> 删除</button>
  62. </td>
  63. </tr>
  64. </table>
  65. </div>
  66. <div class="blank10"></div>
  67. <div id="veiw_{rand}"></div>
粤ICP备19079148号