| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <?php
- /**
- * 模块:subscribe.订阅管理
- * 说明:自定义区域内可写你想要的代码
- * 来源:流程模块→表单元素管理→[模块.订阅管理]→生成列表页
- */
- defined('HOST') or die ('not access');
- ?>
- <script>
- $(document).ready(function(){
- {params}
- var modenum = 'subscribe',modename='订阅管理',isflow=0,modeid='67',atype = params.atype,pnum=params.pnum,modenames='',listname='c3Vic2NyaWJl';
- if(!atype)atype='';if(!pnum)pnum='';
- var fieldsarr = [],fieldsselarr= [],chufarr= [];
-
- <?php
- include_once('webmain/flow/page/rock_page.php');
- ?>
-
- //[自定义区域start]
- //设置单元格可编辑
- bootparams.celleditor = true;
- c.setcolumns('title',{
- editor:true
- });
- c.setcolumns('explain',{
- editor:true,
- type:'textarea'
- });
- c.setcolumns('cont',{
- editor:true,
- type:'textarea'
- });
-
- c.setcolumns('status',{
- editor:true,
- type:'checkbox',
- editorafter:function(){
- c.reload();
- }
- });
-
- $('#tdright_{rand}').prepend(c.getbtnstr('运行订阅','dinghue','','disabled')+' ');
- c.dinghue=function(){
- js.msg('wait','运行中...');
- js.ajax(this.getacturl('yunsubscribe'),{id:a.changeid},function(ret){
- if(ret.success){
- js.msg('success', '运行成功');
- a.reload();
- }else{
- js.msg('msg', ret.msg);
- }
- },'get,json');
- }
- bootparams.itemclick=function(){
- get('btndinghue_{rand}').disabled=false;
- }
- bootparams.beforeload=function(){
- get('btndinghue_{rand}').disabled=true;
- }
- $('#viewsubscribe_{rand}').after('<div class="tishi">未设置订阅提醒时间是不会生效哦,可在[操作]菜单上添加提醒设置,查看<a href="<?=URLY?>view_subscribe.html" target="_blank">[帮助]</a>。</div>');
-
- c.clickwin=function(){
- js.confirm('订阅管理新增不是在这里的,请到各个列表页面下的[导出]按钮下点订阅,是否打开相关帮助说明?',function(jg){
- if(jg=='yes')window.open('<?=URLY?>view_subscribe.html');
- });
- }
- //[自定义区域end]
- c.initpagebefore();
- js.initbtn(c);
- var a = $('#view'+modenum+'_{rand}').bootstable(bootparams);
- c.init();
-
- });
- </script>
- <!--SCRIPTend-->
- <!--HTMLstart-->
- <div>
- <table width="100%">
- <tr>
- <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>
-
- <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>
- <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>
- <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="关键字">
- </td>
- <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>
- <td>
- <div style="white-space:nowrap">
- <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>
- </div>
- </td>
- <td width="90%" style="padding-left:10px"><div id="changatype{rand}" class="btn-group"></div></td>
-
- <td align="right" id="tdright_{rand}" nowrap>
- <span style="display:none" id="daoruspan_{rand}"><button class="btn btn-default" click="daoru,1" type="button">导入</button> </span><button class="btn btn-default" style="display:none" id="daobtn_{rand}" disabled click="daochu" type="button">导出 <i class="icon-angle-down"></i></button>
- </td>
- </tr>
- </table>
- </div>
- <div class="blank10"></div>
- <div id="viewsubscribe_{rand}"></div>
- <!--HTMLend-->
|