init
Showing
2 changed files
with
214 additions
and
136 deletions
| ... | @@ -10,4 +10,8 @@ | ... | @@ -10,4 +10,8 @@ |
| 10 | <link rel="stylesheet" type="text/css" href="/resource/static/h-ui.admin/css/H-ui.admin.css" /> | 10 | <link rel="stylesheet" type="text/css" href="/resource/static/h-ui.admin/css/H-ui.admin.css" /> |
| 11 | <link rel="stylesheet" type="text/css" href="/resource/lib/Hui-iconfont/1.0.8/iconfont.css" /> | 11 | <link rel="stylesheet" type="text/css" href="/resource/lib/Hui-iconfont/1.0.8/iconfont.css" /> |
| 12 | <link rel="stylesheet" type="text/css" href="/resource/static/h-ui.admin/skin/default/skin.css" id="skin" /> | 12 | <link rel="stylesheet" type="text/css" href="/resource/static/h-ui.admin/skin/default/skin.css" id="skin" /> |
| 13 | <link rel="stylesheet" type="text/css" href="/resource/static/h-ui.admin/css/style.css" /> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 13 | <link rel="stylesheet" type="text/css" href="/resource/static/h-ui.admin/css/style.css" /> | ||
| 14 | <meta name="keywords" content=""> | ||
| 15 | <meta name="description" content=""> | ||
| 16 | <title>Page</title> | ||
| 17 | </head> | ... | ... |
| 1 | <?php | 1 | <?php |
| 2 | 2 | $this->load->view('common/header'); | |
| 3 | $this->load->view('common/header'); | ||
| 4 | 3 | ||
| 5 | ?> | 4 | ?> |
| 6 | |||
| 7 | <title>资讯列表</title> | ||
| 8 | </head> | ||
| 9 | <body> | 5 | <body> |
| 10 | <nav class="breadcrumb"><i class="Hui-iconfont"></i> 首页 <span class="c-gray en">></span> 资讯管理 <span class="c-gray en">></span> 资讯列表 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont"></i></a></nav> | 6 | <header class="navbar-wrapper"> |
| 11 | <div class="page-container"> | 7 | <div class="navbar navbar-fixed-top"> |
| 12 | <div class="text-c"> | 8 | <div class="container-fluid cl"> <a class="logo navbar-logo f-l mr-10 hidden-xs" href="/aboutHui.shtml">H-ui.admin</a> <a class="logo navbar-logo-m f-l mr-10 visible-xs" href="/aboutHui.shtml">H-ui</a> |
| 13 | <button onclick="removeIframe()" class="btn btn-primary radius">关闭选项卡</button> | 9 | <span class="logo navbar-slogan f-l mr-10 hidden-xs">v3.1</span> |
| 14 | <span class="select-box inline"> | 10 | <a aria-hidden="false" class="nav-toggle Hui-iconfont visible-xs" href="javascript:;"></a> |
| 15 | <select name="" class="select"> | 11 | <nav class="nav navbar-nav"> |
| 16 | <option value="0">全部分类</option> | 12 | <ul class="cl"> |
| 17 | <option value="1">分类一</option> | 13 | <li class="dropDown dropDown_hover"><a href="javascript:;" class="dropDown_A"><i class="Hui-iconfont"></i> 新增 <i class="Hui-iconfont"></i></a> |
| 18 | <option value="2">分类二</option> | 14 | <ul class="dropDown-menu menu radius box-shadow"> |
| 19 | </select> | 15 | <li><a href="javascript:;" onclick="article_add('添加资讯','article-add.html')"><i class="Hui-iconfont"></i> 资讯</a></li> |
| 20 | </span> 日期范围: | 16 | <li><a href="javascript:;" onclick="picture_add('添加资讯','picture-add.html')"><i class="Hui-iconfont"></i> 图片</a></li> |
| 21 | <input type="text" onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'logmax\')||\'%y-%M-%d\'}' })" id="logmin" class="input-text Wdate" style="width:120px;"> | 17 | <li><a href="javascript:;" onclick="product_add('添加资讯','product-add.html')"><i class="Hui-iconfont"></i> 产品</a></li> |
| 22 | - | 18 | <li><a href="javascript:;" onclick="member_add('添加用户','member-add.html','','510')"><i class="Hui-iconfont"></i> 用户</a></li> |
| 23 | <input type="text" onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'logmin\')}',maxDate:'%y-%M-%d' })" id="logmax" class="input-text Wdate" style="width:120px;"> | 19 | </ul> |
| 24 | <input type="text" name="" id="" placeholder=" 资讯名称" style="width:250px" class="input-text"> | 20 | </li> |
| 25 | <button name="" id="" class="btn btn-success" type="submit"><i class="Hui-iconfont"></i> 搜资讯</button> | 21 | </ul> |
| 22 | </nav> | ||
| 23 | <nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs"> | ||
| 24 | <ul class="cl"> | ||
| 25 | <li>超级管理员</li> | ||
| 26 | <li class="dropDown dropDown_hover"> | ||
| 27 | <a href="#" class="dropDown_A">admin <i class="Hui-iconfont"></i></a> | ||
| 28 | <ul class="dropDown-menu menu radius box-shadow"> | ||
| 29 | <li><a href="javascript:;" onClick="myselfinfo()">个人信息</a></li> | ||
| 30 | <li><a href="#">切换账户</a></li> | ||
| 31 | <li><a href="#">退出</a></li> | ||
| 32 | </ul> | ||
| 33 | </li> | ||
| 34 | <li id="Hui-msg"> <a href="#" title="消息"><span class="badge badge-danger">1</span><i class="Hui-iconfont" style="font-size:18px"></i></a> </li> | ||
| 35 | <li id="Hui-skin" class="dropDown right dropDown_hover"> <a href="javascript:;" class="dropDown_A" title="换肤"><i class="Hui-iconfont" style="font-size:18px"></i></a> | ||
| 36 | <ul class="dropDown-menu menu radius box-shadow"> | ||
| 37 | <li><a href="javascript:;" data-val="default" title="默认(黑色)">默认(黑色)</a></li> | ||
| 38 | <li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li> | ||
| 39 | <li><a href="javascript:;" data-val="green" title="绿色">绿色</a></li> | ||
| 40 | <li><a href="javascript:;" data-val="red" title="红色">红色</a></li> | ||
| 41 | <li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li> | ||
| 42 | <li><a href="javascript:;" data-val="orange" title="橙色">橙色</a></li> | ||
| 43 | </ul> | ||
| 44 | </li> | ||
| 45 | </ul> | ||
| 46 | </nav> | ||
| 47 | </div> | ||
| 48 | </div> | ||
| 49 | </header> | ||
| 50 | <aside class="Hui-aside"> | ||
| 51 | <div class="menu_dropdown bk_2"> | ||
| 52 | <dl id="menu-article"> | ||
| 53 | <dt><i class="Hui-iconfont"></i> 资讯管理<i class="Hui-iconfont menu_dropdown-arrow"></i></dt> | ||
| 54 | <dd> | ||
| 55 | <ul> | ||
| 56 | <li><a data-href="article-list.html" data-title="资讯管理" href="javascript:void(0)">资讯管理</a></li> | ||
| 57 | </ul> | ||
| 58 | </dd> | ||
| 59 | </dl> | ||
| 60 | <dl id="menu-picture"> | ||
| 61 | <dt><i class="Hui-iconfont"></i> 图片管理<i class="Hui-iconfont menu_dropdown-arrow"></i></dt> | ||
| 62 | <dd> | ||
| 63 | <ul> | ||
| 64 | <li><a data-href="picture-list.html" data-title="图片管理" href="javascript:void(0)">图片管理</a></li> | ||
| 65 | </ul> | ||
| 66 | </dd> | ||
| 67 | </dl> | ||
| 68 | <dl id="menu-product"> | ||
| 69 | <dt><i class="Hui-iconfont"></i> 产品管理<i class="Hui-iconfont menu_dropdown-arrow"></i></dt> | ||
| 70 | <dd> | ||
| 71 | <ul> | ||
| 72 | <li><a data-href="product-brand.html" data-title="品牌管理" href="javascript:void(0)">品牌管理</a></li> | ||
| 73 | <li><a data-href="product-category.html" data-title="分类管理" href="javascript:void(0)">分类管理</a></li> | ||
| 74 | <li><a data-href="product-list.html" data-title="产品管理" href="javascript:void(0)">产品管理</a></li> | ||
| 75 | </ul> | ||
| 76 | </dd> | ||
| 77 | </dl> | ||
| 78 | <dl id="menu-comments"> | ||
| 79 | <dt><i class="Hui-iconfont"></i> 评论管理<i class="Hui-iconfont menu_dropdown-arrow"></i></dt> | ||
| 80 | <dd> | ||
| 81 | <ul> | ||
| 82 | <li><a data-href="http://h-ui.duoshuo.com/admin/" data-title="评论列表" href="javascript:;">评论列表</a></li> | ||
| 83 | <li><a data-href="feedback-list.html" data-title="意见反馈" href="javascript:void(0)">意见反馈</a></li> | ||
| 84 | </ul> | ||
| 85 | </dd> | ||
| 86 | </dl> | ||
| 87 | <dl id="menu-member"> | ||
| 88 | <dt><i class="Hui-iconfont"></i> 会员管理<i class="Hui-iconfont menu_dropdown-arrow"></i></dt> | ||
| 89 | <dd> | ||
| 90 | <ul> | ||
| 91 | <li><a data-href="member-list.html" data-title="会员列表" href="javascript:;">会员列表</a></li> | ||
| 92 | <li><a data-href="member-del.html" data-title="删除的会员" href="javascript:;">删除的会员</a></li> | ||
| 93 | <li><a data-href="member-level.html" data-title="等级管理" href="javascript:;">等级管理</a></li> | ||
| 94 | <li><a data-href="member-scoreoperation.html" data-title="积分管理" href="javascript:;">积分管理</a></li> | ||
| 95 | <li><a data-href="member-record-browse.html" data-title="浏览记录" href="javascript:void(0)">浏览记录</a></li> | ||
| 96 | <li><a data-href="member-record-download.html" data-title="下载记录" href="javascript:void(0)">下载记录</a></li> | ||
| 97 | <li><a data-href="member-record-share.html" data-title="分享记录" href="javascript:void(0)">分享记录</a></li> | ||
| 98 | </ul> | ||
| 99 | </dd> | ||
| 100 | </dl> | ||
| 101 | <dl id="menu-admin"> | ||
| 102 | <dt><i class="Hui-iconfont"></i> 管理员管理<i class="Hui-iconfont menu_dropdown-arrow"></i></dt> | ||
| 103 | <dd> | ||
| 104 | <ul> | ||
| 105 | <li><a data-href="admin-role.html" data-title="角色管理" href="javascript:void(0)">角色管理</a></li> | ||
| 106 | <li><a data-href="admin-permission.html" data-title="权限管理" href="javascript:void(0)">权限管理</a></li> | ||
| 107 | <li><a data-href="admin-list.html" data-title="管理员列表" href="javascript:void(0)">管理员列表</a></li> | ||
| 108 | </ul> | ||
| 109 | </dd> | ||
| 110 | </dl> | ||
| 111 | <dl id="menu-tongji"> | ||
| 112 | <dt><i class="Hui-iconfont"></i> 系统统计<i class="Hui-iconfont menu_dropdown-arrow"></i></dt> | ||
| 113 | <dd> | ||
| 114 | <ul> | ||
| 115 | <li><a data-href="charts-1.html" data-title="折线图" href="javascript:void(0)">折线图</a></li> | ||
| 116 | <li><a data-href="charts-2.html" data-title="时间轴折线图" href="javascript:void(0)">时间轴折线图</a></li> | ||
| 117 | <li><a data-href="charts-3.html" data-title="区域图" href="javascript:void(0)">区域图</a></li> | ||
| 118 | <li><a data-href="charts-4.html" data-title="柱状图" href="javascript:void(0)">柱状图</a></li> | ||
| 119 | <li><a data-href="charts-5.html" data-title="饼状图" href="javascript:void(0)">饼状图</a></li> | ||
| 120 | <li><a data-href="charts-6.html" data-title="3D柱状图" href="javascript:void(0)">3D柱状图</a></li> | ||
| 121 | <li><a data-href="charts-7.html" data-title="3D饼状图" href="javascript:void(0)">3D饼状图</a></li> | ||
| 122 | </ul> | ||
| 123 | </dd> | ||
| 124 | </dl> | ||
| 125 | <dl id="menu-system"> | ||
| 126 | <dt><i class="Hui-iconfont"></i> 系统管理<i class="Hui-iconfont menu_dropdown-arrow"></i></dt> | ||
| 127 | <dd> | ||
| 128 | <ul> | ||
| 129 | <li><a data-href="system-base.html" data-title="系统设置" href="javascript:void(0)">系统设置</a></li> | ||
| 130 | <li><a data-href="system-category.html" data-title="栏目管理" href="javascript:void(0)">栏目管理</a></li> | ||
| 131 | <li><a data-href="system-data.html" data-title="数据字典" href="javascript:void(0)">数据字典</a></li> | ||
| 132 | <li><a data-href="system-shielding.html" data-title="屏蔽词" href="javascript:void(0)">屏蔽词</a></li> | ||
| 133 | <li><a data-href="system-log.html" data-title="系统日志" href="javascript:void(0)">系统日志</a></li> | ||
| 134 | </ul> | ||
| 135 | </dd> | ||
| 136 | </dl> | ||
| 26 | </div> | 137 | </div> |
| 27 | <div class="cl pd-5 bg-1 bk-gray mt-20"> <span class="l"><a href="javascript:;" onclick="datadel()" class="btn btn-danger radius"><i class="Hui-iconfont"></i> 批量删除</a> <a class="btn btn-primary radius" data-title="添加资讯" data-href="article-add.html" onclick="Hui_admin_tab(this)" href="javascript:;"><i class="Hui-iconfont"></i> 添加资讯</a></span> <span class="r">共有数据:<strong>54</strong> 条</span> </div> | 138 | </aside> |
| 28 | <div class="mt-20"> | 139 | <div class="dislpayArrow hidden-xs"><a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a></div> |
| 29 | <table class="table table-border table-bordered table-bg table-hover table-sort table-responsive"> | 140 | <section class="Hui-article-box"> |
| 30 | <thead> | 141 | <div id="Hui-tabNav" class="Hui-tabNav hidden-xs"> |
| 31 | <tr class="text-c"> | 142 | <div class="Hui-tabNav-wp"> |
| 32 | <th width="25"><input type="checkbox" name="" value=""></th> | 143 | <ul id="min_title_list" class="acrossTab cl"> |
| 33 | <th width="80">ID</th> | 144 | <li class="active"> |
| 34 | <th>标题</th> | 145 | <span title="我的桌面" data-href="welcome.html">我的桌面</span> |
| 35 | <th width="80">分类</th> | 146 | <em></em></li> |
| 36 | <th width="80">来源</th> | 147 | </ul> |
| 37 | <th width="120">更新时间</th> | 148 | </div> |
| 38 | <th width="75">浏览次数</th> | 149 | <div class="Hui-tabNav-more btn-group"><a id="js-tabNav-prev" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont"></i></a><a id="js-tabNav-next" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont"></i></a></div> |
| 39 | <th width="60">发布状态</th> | ||
| 40 | <th width="120">操作</th> | ||
| 41 | </tr> | ||
| 42 | </thead> | ||
| 43 | <tbody> | ||
| 44 | <tr class="text-c"> | ||
| 45 | <td><input type="checkbox" value="" name=""></td> | ||
| 46 | <td>10001</td> | ||
| 47 | <td class="text-l"><u style="cursor:pointer" class="text-primary" onClick="article_edit('查看','article-zhang.html','10001')" title="查看">资讯标题</u></td> | ||
| 48 | <td>行业动态</td> | ||
| 49 | <td>H-ui</td> | ||
| 50 | <td>2014-6-11 11:11:42</td> | ||
| 51 | <td>21212</td> | ||
| 52 | <td class="td-status"><span class="label label-success radius">已发布</span></td> | ||
| 53 | <td class="f-14 td-manage"><a style="text-decoration:none" onClick="article_stop(this,'10001')" href="javascript:;" title="下架"><i class="Hui-iconfont"></i></a> <a style="text-decoration:none" class="ml-5" onClick="article_edit('资讯编辑','article-add.html','10001')" href="javascript:;" title="编辑"><i class="Hui-iconfont"></i></a> <a style="text-decoration:none" class="ml-5" onClick="article_del(this,'10001')" href="javascript:;" title="删除"><i class="Hui-iconfont"></i></a></td> | ||
| 54 | </tr> | ||
| 55 | <tr class="text-c"> | ||
| 56 | <td><input type="checkbox" value="" name=""></td> | ||
| 57 | <td>10002</td> | ||
| 58 | <td class="text-l"><u style="cursor:pointer" class="text-primary" onClick="article_edit('查看','article-zhang.html','10002')" title="查看">资讯标题</u></td> | ||
| 59 | <td>行业动态</td> | ||
| 60 | <td>H-ui</td> | ||
| 61 | <td>2014-6-11 11:11:42</td> | ||
| 62 | <td>21212</td> | ||
| 63 | <td class="td-status"><span class="label label-success radius">草稿</span></td> | ||
| 64 | <td class="f-14 td-manage"><a style="text-decoration:none" onClick="article_shenhe(this,'10001')" href="javascript:;" title="审核">审核</a> <a style="text-decoration:none" class="ml-5" onClick="article_edit('资讯编辑','article-add.html','10001')" href="javascript:;" title="编辑"><i class="Hui-iconfont"></i></a> <a style="text-decoration:none" class="ml-5" onClick="article_del(this,'10001')" href="javascript:;" title="删除"><i class="Hui-iconfont"></i></a></td> | ||
| 65 | </tr> | ||
| 66 | </tbody> | ||
| 67 | </table> | ||
| 68 | </div> | 150 | </div> |
| 151 | <div id="iframe_box" class="Hui-article"> | ||
| 152 | <div class="show_iframe"> | ||
| 153 | <div style="display:none" class="loading"></div> | ||
| 154 | <iframe scrolling="yes" frameborder="0" src="welcome.html"></iframe> | ||
| 155 | </div> | ||
| 156 | </div> | ||
| 157 | </section> | ||
| 158 | |||
| 159 | <div class="contextMenu" id="Huiadminmenu"> | ||
| 160 | <ul> | ||
| 161 | <li id="closethis">关闭当前 </li> | ||
| 162 | <li id="closeall">关闭全部 </li> | ||
| 163 | </ul> | ||
| 69 | </div> | 164 | </div> |
| 70 | <!--_footer 作为公共模版分离出去--> | 165 | <!--_footer 作为公共模版分离出去--> |
| 71 | <script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script> | 166 | <script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script> |
| ... | @@ -74,22 +169,38 @@ $this->load->view('common/header'); | ... | @@ -74,22 +169,38 @@ $this->load->view('common/header'); |
| 74 | <script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去--> | 169 | <script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.js"></script> <!--/_footer 作为公共模版分离出去--> |
| 75 | 170 | ||
| 76 | <!--请在下方写此页面业务相关的脚本--> | 171 | <!--请在下方写此页面业务相关的脚本--> |
| 77 | <script type="text/javascript" src="lib/My97DatePicker/4.8/WdatePicker.js"></script> | 172 | <script type="text/javascript" src="lib/jquery.contextmenu/jquery.contextmenu.r2.js"></script> |
| 78 | <script type="text/javascript" src="lib/datatables/1.10.0/jquery.dataTables.min.js"></script> | ||
| 79 | <script type="text/javascript" src="lib/laypage/1.2/laypage.js"></script> | ||
| 80 | <script type="text/javascript"> | 173 | <script type="text/javascript"> |
| 81 | $('.table-sort').dataTable({ | 174 | $(function(){ |
| 82 | "aaSorting": [[ 1, "desc" ]],//默认第几个排序 | 175 | /*$("#min_title_list li").contextMenu('Huiadminmenu', { |
| 83 | "bStateSave": true,//状态保存 | 176 | bindings: { |
| 84 | "pading":false, | 177 | 'closethis': function(t) { |
| 85 | "aoColumnDefs": [ | 178 | console.log(t); |
| 86 | //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示 | 179 | if(t.find("i")){ |
| 87 | {"orderable":false,"aTargets":[0,8]}// 不参与排序的列 | 180 | t.find("i").trigger("click"); |
| 88 | ] | 181 | } |
| 182 | }, | ||
| 183 | 'closeall': function(t) { | ||
| 184 | alert('Trigger was '+t.id+'\nAction was Email'); | ||
| 185 | }, | ||
| 186 | } | ||
| 187 | });*/ | ||
| 89 | }); | 188 | }); |
| 189 | /*个人信息*/ | ||
| 190 | function myselfinfo(){ | ||
| 191 | layer.open({ | ||
| 192 | type: 1, | ||
| 193 | area: ['300px','200px'], | ||
| 194 | fix: false, //不固定 | ||
| 195 | maxmin: true, | ||
| 196 | shade:0.4, | ||
| 197 | title: '查看信息', | ||
| 198 | content: '<div>管理员信息</div>' | ||
| 199 | }); | ||
| 200 | } | ||
| 90 | 201 | ||
| 91 | /*资讯-添加*/ | 202 | /*资讯-添加*/ |
| 92 | function article_add(title,url,w,h){ | 203 | function article_add(title,url){ |
| 93 | var index = layer.open({ | 204 | var index = layer.open({ |
| 94 | type: 2, | 205 | type: 2, |
| 95 | title: title, | 206 | title: title, |
| ... | @@ -97,8 +208,8 @@ $this->load->view('common/header'); | ... | @@ -97,8 +208,8 @@ $this->load->view('common/header'); |
| 97 | }); | 208 | }); |
| 98 | layer.full(index); | 209 | layer.full(index); |
| 99 | } | 210 | } |
| 100 | /*资讯-编辑*/ | 211 | /*图片-添加*/ |
| 101 | function article_edit(title,url,id,w,h){ | 212 | function picture_add(title,url){ |
| 102 | var index = layer.open({ | 213 | var index = layer.open({ |
| 103 | type: 2, | 214 | type: 2, |
| 104 | title: title, | 215 | title: title, |
| ... | @@ -106,70 +217,33 @@ $this->load->view('common/header'); | ... | @@ -106,70 +217,33 @@ $this->load->view('common/header'); |
| 106 | }); | 217 | }); |
| 107 | layer.full(index); | 218 | layer.full(index); |
| 108 | } | 219 | } |
| 109 | /*资讯-删除*/ | 220 | /*产品-添加*/ |
| 110 | function article_del(obj,id){ | 221 | function product_add(title,url){ |
| 111 | layer.confirm('确认要删除吗?',function(index){ | 222 | var index = layer.open({ |
| 112 | $.ajax({ | 223 | type: 2, |
| 113 | type: 'POST', | 224 | title: title, |
| 114 | url: '', | 225 | content: url |
| 115 | dataType: 'json', | ||
| 116 | success: function(data){ | ||
| 117 | $(obj).parents("tr").remove(); | ||
| 118 | layer.msg('已删除!',{icon:1,time:1000}); | ||
| 119 | }, | ||
| 120 | error:function(data) { | ||
| 121 | console.log(data.msg); | ||
| 122 | }, | ||
| 123 | }); | ||
| 124 | }); | 226 | }); |
| 227 | layer.full(index); | ||
| 125 | } | 228 | } |
| 126 | 229 | /*用户-添加*/ | |
| 127 | /*资讯-审核*/ | 230 | function member_add(title,url,w,h){ |
| 128 | function article_shenhe(obj,id){ | 231 | layer_show(title,url,w,h); |
| 129 | layer.confirm('审核文章?', { | ||
| 130 | btn: ['通过','不通过','取消'], | ||
| 131 | shade: false, | ||
| 132 | closeBtn: 0 | ||
| 133 | }, | ||
| 134 | function(){ | ||
| 135 | $(obj).parents("tr").find(".td-manage").prepend('<a class="c-primary" onClick="article_start(this,id)" href="javascript:;" title="申请上线">申请上线</a>'); | ||
| 136 | $(obj).parents("tr").find(".td-status").html('<span class="label label-success radius">已发布</span>'); | ||
| 137 | $(obj).remove(); | ||
| 138 | layer.msg('已发布', {icon:6,time:1000}); | ||
| 139 | }, | ||
| 140 | function(){ | ||
| 141 | $(obj).parents("tr").find(".td-manage").prepend('<a class="c-primary" onClick="article_shenqing(this,id)" href="javascript:;" title="申请上线">申请上线</a>'); | ||
| 142 | $(obj).parents("tr").find(".td-status").html('<span class="label label-danger radius">未通过</span>'); | ||
| 143 | $(obj).remove(); | ||
| 144 | layer.msg('未通过', {icon:5,time:1000}); | ||
| 145 | }); | ||
| 146 | } | ||
| 147 | /*资讯-下架*/ | ||
| 148 | function article_stop(obj,id){ | ||
| 149 | layer.confirm('确认要下架吗?',function(index){ | ||
| 150 | $(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" onClick="article_start(this,id)" href="javascript:;" title="发布"><i class="Hui-iconfont"></i></a>'); | ||
| 151 | $(obj).parents("tr").find(".td-status").html('<span class="label label-defaunt radius">已下架</span>'); | ||
| 152 | $(obj).remove(); | ||
| 153 | layer.msg('已下架!',{icon: 5,time:1000}); | ||
| 154 | }); | ||
| 155 | } | 232 | } |
| 156 | 233 | ||
| 157 | /*资讯-发布*/ | ||
| 158 | function article_start(obj,id){ | ||
| 159 | layer.confirm('确认要发布吗?',function(index){ | ||
| 160 | $(obj).parents("tr").find(".td-manage").prepend('<a style="text-decoration:none" onClick="article_stop(this,id)" href="javascript:;" title="下架"><i class="Hui-iconfont"></i></a>'); | ||
| 161 | $(obj).parents("tr").find(".td-status").html('<span class="label label-success radius">已发布</span>'); | ||
| 162 | $(obj).remove(); | ||
| 163 | layer.msg('已发布!',{icon: 6,time:1000}); | ||
| 164 | }); | ||
| 165 | } | ||
| 166 | /*资讯-申请上线*/ | ||
| 167 | function article_shenqing(obj,id){ | ||
| 168 | $(obj).parents("tr").find(".td-status").html('<span class="label label-default radius">待审核</span>'); | ||
| 169 | $(obj).parents("tr").find(".td-manage").html(""); | ||
| 170 | layer.msg('已提交申请,耐心等待审核!', {icon: 1,time:2000}); | ||
| 171 | } | ||
| 172 | 234 | ||
| 173 | </script> | 235 | </script> |
| 236 | |||
| 237 | <!--此乃百度统计代码,请自行删除--> | ||
| 238 | <script> | ||
| 239 | var _hmt = _hmt || []; | ||
| 240 | (function() { | ||
| 241 | var hm = document.createElement("script"); | ||
| 242 | hm.src = "https://hm.baidu.com/hm.js?080836300300be57b7f34f4b3e97d911"; | ||
| 243 | var s = document.getElementsByTagName("script")[0]; | ||
| 244 | s.parentNode.insertBefore(hm, s); | ||
| 245 | })(); | ||
| 246 | </script> | ||
| 247 | <!--/此乃百度统计代码,请自行删除--> | ||
| 174 | </body> | 248 | </body> |
| 175 | </html> | 249 | </html> |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment