1
0

rock_flow_viewlog.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php if(!defined('HOST'))die('not access');?>
  2. <script >
  3. $(document).ready(function(){
  4. {params}
  5. var a = $('#view_{rand}').bootstable({
  6. tablename:'flow_log',celleditor:true,params:{num:params.modenum,mid:params.mid},dir:'asc',sort:'id',statuschange:false,
  7. url:publicstore('{mode}','{dir}'),storebeforeaction:'viewlogshowbefore',
  8. columns:[{
  9. text:'动作',dataIndex:'name'
  10. },{
  11. text:'处理人',dataIndex:'checkname'
  12. },{
  13. text:'状态',dataIndex:'statusname',renderer:function(v,d){
  14. if(d.color)v='<font color="'+d.color+'">'+v+'</font>';
  15. return v;
  16. }
  17. },{
  18. text:'说明',dataIndex:'explain',align:'left'
  19. },{
  20. text:'浏览器',dataIndex:'web'
  21. },{
  22. text:'IP',dataIndex:'ip'
  23. },{
  24. text:'操作时间',dataIndex:'optdt',sortable:true
  25. },{
  26. text:'步骤ID',dataIndex:'courseid',sortable:true
  27. },{
  28. text:'ID',dataIndex:'id',sortable:true
  29. }],
  30. itemclick:function(d){
  31. btn(false, d);
  32. },
  33. beforeload:function(){
  34. btn(true);
  35. }
  36. });
  37. function btn(bo, d){
  38. get('del_{rand}').disabled = bo;
  39. }
  40. var c = {
  41. del:function(){
  42. a.del();
  43. },
  44. reload:function(){
  45. a.reload();
  46. }
  47. };
  48. js.initbtn(c);
  49. });
  50. </script>
  51. <div>
  52. <table width="100%">
  53. <tr>
  54. <td align="left">
  55. <button class="btn btn-default" click="reload" type="button">刷新</button>
  56. </td>
  57. <td align="left" style="padding:0px 10px;">
  58. </td>
  59. <td align="right">
  60. <button class="btn btn-danger" click="del" disabled id="del_{rand}" type="button"><i class="icon-trash"></i> 删除</button>
  61. </td>
  62. </tr>
  63. </table>
  64. </div>
  65. <div class="blank10"></div>
  66. <div id="view_{rand}"></div>
  67. <div class="tishi">提示:删除将会是彻底删除,不能恢复,请谨慎操作!<div>
粤ICP备19079148号