rock_record.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <?php if(!defined('HOST'))die('not access');?>
  2. <script >
  3. $(document).ready(function(){
  4. {params}
  5. var atype = params.atype;
  6. var a = $('#veiw_{rand}').bootstable({
  7. tablename:'im_mess',celleditor:false,sort:'id',dir:'desc',checked:true,modedir:'{mode}:{dir}',
  8. storeafteraction:'storeaftershow',params:{'atype':atype},storebeforeaction:'storebeforeshow',fanye:true,
  9. columns:[{
  10. text:'发送人',dataIndex:'sendname'
  11. },{
  12. text:'接收人',dataIndex:'recename',editor:true
  13. },{
  14. text:'消息类型',dataIndex:'typetxt'
  15. },{
  16. text:'消息内容',dataIndex:'cont',align:'left',renderer:function(v){
  17. return jm.base64decode(v);
  18. },renderstyle:function(v,d){
  19. return 'word-wrap:break-word;word-break:break-all;white-space:normal;';
  20. }
  21. },{
  22. text:'相关文件',dataIndex:'fileid'
  23. },{
  24. text:'发送时间',dataIndex:'optdt'
  25. },{
  26. text:'状态',dataIndex:'zttext'
  27. },{
  28. text:'ID',dataIndex:'id',sortable:true
  29. }]
  30. });
  31. var c = {
  32. del:function(){
  33. a.del({url:js.getajaxurl('delrecord','{mode}','{dir}',{'atype':atype}),checked:true});
  34. },
  35. daochu:function(){
  36. a.exceldown();
  37. },
  38. search:function(){
  39. a.setparams({
  40. dt1:get('dt1_{rand}').value,
  41. dt2:get('dt2_{rand}').value,
  42. key:get('key_{rand}').value,
  43. receid:get('receid{rand}').value
  44. },true);
  45. },
  46. removes:function(){
  47. get('recename{rand}').value='';
  48. get('receid{rand}').value='';
  49. },
  50. getdists:function(o1, lx){
  51. var cans = {
  52. nameobj:get('recename{rand}'),
  53. idobj:get('receid{rand}'),
  54. type:'usercheck',
  55. title:'选择发送人/接收人'
  56. };
  57. js.getuser(cans);
  58. },
  59. qingchu:function(){
  60. js.confirm('确定要清除一些记录嘛?',function(jg){
  61. if(jg=='yes')c.qingchus();
  62. });
  63. },
  64. qingchus:function(){
  65. js.loading('清除中...');
  66. js.ajax(js.getajaxurl('delqingchu','{mode}','{dir}'),{},function(ss){
  67. js.msgok('清除成功'+ss+'天前的记录');
  68. a.reload();
  69. });
  70. }
  71. };
  72. a.settishi('请定时删除记录太久的记录,防止访问慢');
  73. js.initbtn(c);
  74. });
  75. </script>
  76. <div>
  77. <table width="100%">
  78. <tr>
  79. <td nowrap>日期从&nbsp;</td>
  80. <td nowrap>
  81. <input style="width:110px" onclick="js.changedate(this)" readonly class="form-control datesss" id="dt1_{rand}" >
  82. </td>
  83. <td nowrap>&nbsp;至&nbsp;</td>
  84. <td nowrap>
  85. <input style="width:110px" onclick="js.changedate(this)" readonly class="form-control datesss" id="dt2_{rand}" >
  86. </td>
  87. <td style="padding-left:10px">
  88. <input class="form-control" style="width:110px" id="key_{rand}" placeholder="消息内容">
  89. </td>
  90. <td style="padding-left:10px">
  91. <div style="width:230px" class="input-group">
  92. <input readonly class="form-control" placeholder="发送人/接收人" id="recename{rand}" >
  93. <input type="hidden" id="receid{rand}" >
  94. <span class="input-group-btn">
  95. <button class="btn btn-default" click="removes" type="button"><i class="icon-remove"></i></button>
  96. <button class="btn btn-default" click="getdists,1" type="button"><i class="icon-search"></i></button>
  97. </span>
  98. </div>
  99. </td>
  100. <td style="padding-left:10px">
  101. <button class="btn btn-default" click="search" type="button">搜索</button></button>
  102. </td>
  103. <td width="90%" style="padding-left:10px"></td>
  104. <td align="right" id="tdright_{rand}" nowrap>
  105. <button class="btn btn-default" click="qingchu" type="button">清理记录</button> &nbsp;
  106. <button class="btn btn-default" click="daochu,1" type="button">导出</button> &nbsp;
  107. <button class="btn btn-danger" click="del" type="button"><i class="icon-trash"></i> 删除</button>
  108. </td>
  109. </tr>
  110. </table>
  111. </div>
  112. <div class="blank10"></div>
  113. <div id="veiw_{rand}"></div>
粤ICP备19079148号