rock_page_subscribe.php 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <?php
  2. /**
  3. * 模块:subscribe.订阅管理
  4. * 说明:自定义区域内可写你想要的代码
  5. * 来源:流程模块→表单元素管理→[模块.订阅管理]→生成列表页
  6. */
  7. defined('HOST') or die ('not access');
  8. ?>
  9. <script>
  10. $(document).ready(function(){
  11. {params}
  12. var modenum = 'subscribe',modename='订阅管理',isflow=0,modeid='67',atype = params.atype,pnum=params.pnum,modenames='',listname='c3Vic2NyaWJl';
  13. if(!atype)atype='';if(!pnum)pnum='';
  14. var fieldsarr = [],fieldsselarr= [],chufarr= [];
  15. <?php
  16. include_once('webmain/flow/page/rock_page.php');
  17. ?>
  18. //[自定义区域start]
  19. //设置单元格可编辑
  20. bootparams.celleditor = true;
  21. c.setcolumns('title',{
  22. editor:true
  23. });
  24. c.setcolumns('explain',{
  25. editor:true,
  26. type:'textarea'
  27. });
  28. c.setcolumns('cont',{
  29. editor:true,
  30. type:'textarea'
  31. });
  32. c.setcolumns('status',{
  33. editor:true,
  34. type:'checkbox',
  35. editorafter:function(){
  36. c.reload();
  37. }
  38. });
  39. $('#tdright_{rand}').prepend(c.getbtnstr('运行订阅','dinghue','','disabled')+'&nbsp;&nbsp;');
  40. c.dinghue=function(){
  41. js.msg('wait','运行中...');
  42. js.ajax(this.getacturl('yunsubscribe'),{id:a.changeid},function(ret){
  43. if(ret.success){
  44. js.msg('success', '运行成功');
  45. a.reload();
  46. }else{
  47. js.msg('msg', ret.msg);
  48. }
  49. },'get,json');
  50. }
  51. bootparams.itemclick=function(){
  52. get('btndinghue_{rand}').disabled=false;
  53. }
  54. bootparams.beforeload=function(){
  55. get('btndinghue_{rand}').disabled=true;
  56. }
  57. $('#viewsubscribe_{rand}').after('<div class="tishi">未设置订阅提醒时间是不会生效哦,可在[操作]菜单上添加提醒设置,查看<a href="<?=URLY?>view_subscribe.html" target="_blank">[帮助]</a>。</div>');
  58. c.clickwin=function(){
  59. js.confirm('订阅管理新增不是在这里的,请到各个列表页面下的[导出]按钮下点订阅,是否打开相关帮助说明?',function(jg){
  60. if(jg=='yes')window.open('<?=URLY?>view_subscribe.html');
  61. });
  62. }
  63. //[自定义区域end]
  64. c.initpagebefore();
  65. js.initbtn(c);
  66. var a = $('#view'+modenum+'_{rand}').bootstable(bootparams);
  67. c.init();
  68. });
  69. </script>
  70. <!--SCRIPTend-->
  71. <!--HTMLstart-->
  72. <div>
  73. <table width="100%">
  74. <tr>
  75. <td style="padding-right:10px;" id="tdleft_{rand}" nowrap><button id="addbtn_{rand}" class="btn btn-primary" click="clickwin,0" disabled type="button"><i class="icon-plus"></i> 新增</button></td>
  76. <td><select class="form-control" style="width:110px;border-top-right-radius:0;border-bottom-right-radius:0;padding:0 2px" id="fields_{rand}"></select></td>
  77. <td><select class="form-control" style="width:60px;border-radius:0px;border-left:0;padding:0 2px" id="like_{rand}"><option value="0">包含</option><option value="1">等于</option><option value="2">大于等于</option><option value="3">小于等于</option><option value="4">不包含</option></select></td>
  78. <td><select class="form-control" style="width:130px;border-radius:0;border-left:0;display:none;padding:0 5px" id="selkey_{rand}"><option value="">-请选择-</option></select><input class="form-control" style="width:130px;border-radius:0;border-left:0;padding:0 5px" id="keygj_{rand}" placeholder="关键词"><input class="form-control" style="width:130px;border-radius:0;border-left:0;padding:0 5px;display:none;" id="key_{rand}" placeholder="关键字">
  79. </td>
  80. <td><select class="form-control" style="width:120px;border-left:0;border-radius:0;" id="selstatus_{rand}"><option value="">-全部状态-</option><option style="color:#888888" value="0">停用</option><option style="color:green" value="1">启用</option></select></td>
  81. <td>
  82. <div style="white-space:nowrap">
  83. <button style="border-right:0;border-radius:0;border-left:0" class="btn btn-default" click="searchbtn" type="button">搜索</button><button class="btn btn-default" id="downbtn_{rand}" type="button" style="padding-left:8px;padding-right:8px;border-top-left-radius:0;border-bottom-left-radius:0"><i class="icon-angle-down"></i></button>
  84. </div>
  85. </td>
  86. <td width="90%" style="padding-left:10px"><div id="changatype{rand}" class="btn-group"></div></td>
  87. <td align="right" id="tdright_{rand}" nowrap>
  88. <span style="display:none" id="daoruspan_{rand}"><button class="btn btn-default" click="daoru,1" type="button">导入</button>&nbsp;&nbsp;&nbsp;</span><button class="btn btn-default" style="display:none" id="daobtn_{rand}" disabled click="daochu" type="button">导出 <i class="icon-angle-down"></i></button>
  89. </td>
  90. </tr>
  91. </table>
  92. </div>
  93. <div class="blank10"></div>
  94. <div id="viewsubscribe_{rand}"></div>
  95. <!--HTMLend-->
粤ICP备19079148号