Няма описание
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377
  1. {include file="public/layout" /}
  2. <body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default; -moz-user-select: inherit;">
  3. <div id="append_parent"></div>
  4. <div id="ajaxwaitid"></div>
  5. <div class="page" style="box-shadow:none;">
  6. <div class="flexigrid" style="min-height: 600px;">
  7. <div class="mDiv">
  8. <div class="ftitle">
  9. {include file="archives/tags_btn" /}
  10. </div>
  11. <form class="navbar-form form-inline" id="searchForm" action="{:url('Media/index')}" method="get" onsubmit="layer_loading('正在处理');">
  12. {$searchform.hidden|default=''}
  13. <div class="sDiv">
  14. {include file="archives/flag_btn" /}
  15. <div class="sDiv2">
  16. <input type="text" name="add_time_begin" id="add_time_begin" value="{$Request.param.add_time_begin}" class="qsbox" autocomplete="off" placeholder="起始日期">
  17. </div>
  18. &nbsp;至&nbsp;
  19. <div class="sDiv2">
  20. <input type="text" name="add_time_end" id="add_time_end" value="{$Request.param.add_time_end}" class="qsbox" autocomplete="off" placeholder="结束日期">
  21. </div>
  22. <div class="sDiv2">
  23. <input type="hidden" name="typeid" id="typeid" value="{$Request.param.typeid|default=''}">
  24. <input type="text" size="30" name="keywords" value="{$Request.param.keywords}" class="qsbox" placeholder="标题搜索...">
  25. <input type="submit" class="btn" value="搜索">
  26. <i class="iconfont e-sousuo"></i>
  27. </div>
  28. </div>
  29. </form>
  30. </div>
  31. <div class="hDiv">
  32. <div class="hDivBox">
  33. <table cellspacing="0" cellpadding="0" style="width: 100%">
  34. <thead>
  35. <tr>
  36. <th class="sign w40" axis="col0">
  37. <div class="tc"><input type="checkbox" autocomplete="off" class="checkAll"></div>
  38. </th>
  39. <th abbr="article_title" axis="col3" class="w70">
  40. <div class="tc">ID</div>
  41. </th>
  42. <th abbr="article_title" axis="col3" class="">
  43. <div style="text-align: left; padding-left: 10px;" class="">标题</div>
  44. </th>
  45. <!-- <th abbr="article_time" axis="col6" class="w120">
  46. <div class="tc">付费限制</div>
  47. </th> -->
  48. <th abbr="article_time" axis="col6" class="w120">
  49. <div class="tc">所属栏目</div>
  50. </th>
  51. <th abbr="article_time" axis="col6" class="w50">
  52. <div class="tc sort_style"><a href="{:getArchivesSortUrl('arcrank')}">审核&nbsp;<i {eq name='$Request.param.orderby' value='arcrank'}{eq name='$Request.param.orderway' value='asc'}class="asc"{else /}class="desc"{/eq}{/eq}></i></a></div>
  53. </th>
  54. <th abbr="article_time" axis="col6" class="w60">
  55. <div class="tc">点击</div>
  56. </th>
  57. <th abbr="article_time" axis="col6" class="w100">
  58. <div class="tc">发布时间</div>
  59. </th>
  60. <th axis="col1" class="w160">
  61. <div class="tc">操作</div>
  62. </th>
  63. <th abbr="article_time" axis="col6" class="w60">
  64. <div class="tc sort_style"><a href="{:getArchivesSortUrl('sort_order')}">排序&nbsp;<i {eq name='$Request.param.orderby' value='sort_order'}{eq name='$Request.param.orderway' value='asc'}class="asc"{else /}class="desc"{/eq}{/eq}></i></a></div>
  65. </th>
  66. </tr>
  67. </thead>
  68. </table>
  69. </div>
  70. </div>
  71. <div class="bDiv" style="height: auto;">
  72. <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
  73. <table style="width: 100%;">
  74. <tbody>
  75. {empty name="list"}
  76. <tr>
  77. <td class="no-data" align="center" axis="col0" colspan="50">
  78. <div class="no_row">
  79. <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
  80. </div>
  81. </td>
  82. </tr>
  83. {else/}
  84. {foreach name="list" item="vo" key="k" }
  85. <tr>
  86. <td class="sign">
  87. <div class="tc w40"><input type="checkbox" autocomplete="off" name="ids[]" value="{$vo.aid}"></div>
  88. </td>
  89. <td class="sort">
  90. <div class="tc w70">
  91. {$vo.aid}
  92. </div>
  93. </td>
  94. <td class="" style="width: 100%;">
  95. <div class="tl" style="padding-left: 10px;">
  96. {notempty name="$vo.is_litpic"}
  97. <i class="fa fa-picture-o color_z" onmouseover="layer_tips=layer.tips('<img src={$vo.litpic} class=\'layer_tips_img\'>',this,{tips: [3, '#fff'],skin:'layer-yourskin-mt0'});" onmouseout="layer.close(layer_tips);"></i>
  98. {/notempty}
  99. {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
  100. <a href="{:url('Media/edit',array('id'=>$vo['aid'], 'callback_url'=>$callback_url))}" style="{eq name="vo.is_b" value="1"} font-weight: bold;{/eq}">{$vo.title}</a>
  101. {else /}
  102. {$vo.title}
  103. {/eq}
  104. {assign name='showArcFlagData' value='$vo|showArchivesFlagStr'}
  105. {volist name='$showArcFlagData' id="vo1"}
  106. {eq name='$i' value='1'}<span style="color: red;">[{/eq}
  107. <i style="font-size: 12px;">{$vo1['small_name']}</i>
  108. {eq name='$i' value='$showArcFlagData|count'}]</span>{/eq}
  109. {/volist}
  110. </div>
  111. </td>
  112. <!-- <td class="">
  113. <div class="w120 tc">
  114. <span style="display: block;">{$vo.restric_type_text}</span>
  115. {if condition="1 == $vo.restric_type"}
  116. <span class="red">¥{$vo.users_price}</span>
  117. {elseif condition="2 == $vo.restric_type"}
  118. <span class="red">{$vo.arc_level_name}{if condition="!empty($vo.no_vip_pay) && !empty($vo.users_price)" }(非会员: ¥{$vo.users_price}){/if}</span>
  119. {elseif condition="3 == $vo.restric_type"}
  120. <span class="red">{$vo.arc_level_name}(¥{$vo.users_price})</span>
  121. {/if}
  122. </div>
  123. </td> -->
  124. <td class="">
  125. <div class="w120 tc ellipsis"><a href="{:url('Media/index', array('typeid'=>$vo['typeid'], 'tab'=>3))}" title="{$vo.typename}">{$vo.typename|default='<i class="red">数据出错!</i>'}</a></div>
  126. </td>
  127. <td>
  128. <div class="tc w50">
  129. {if condition="$vo['arcrank'] eq -1"}
  130. <span class="no" {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"} data-typeid="{$vo.typeid}" data-seo_pseudo="{$seo_pseudo|default='1'}" onclick="changeTableVal('archives','aid','{$vo.aid}','arcrank',this);" {/eq} ><i class="fa fa-ban"></i>否</span>
  131. {else /}
  132. <span class="yes" {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"} data-typeid="{$vo.typeid}" data-seo_pseudo="{$seo_pseudo|default='1'}" onclick="changeTableVal('archives','aid','{$vo.aid}','arcrank',this);" {/eq} ><i class="fa fa-check-circle"></i>是</span>
  133. {/if}
  134. </div>
  135. </td>
  136. <td>
  137. <div class="tc w60">
  138. {$vo.click}
  139. </div>
  140. </td>
  141. <td>
  142. <div class="w100 tc">
  143. {$vo.add_time|date='Y-m-d',###}
  144. </div>
  145. </td>
  146. <td class="operation">
  147. <div class="w160 tc">
  148. {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
  149. <a href="{:url('Media/edit',array('id'=>$vo['aid'], 'callback_url'=>$callback_url))}" class="btn blue">编辑</a>
  150. <i></i>
  151. {/eq}
  152. {eq name="$Think.const.CONTROLLER_NAME.'@del'|is_check_access" value="1"}
  153. <a class="btn red" href="javascript:void(0);" data-url="{:url('Media/del')}" data-id="{$vo.aid}" {eq name="$global['web_recycle_switch']" value='1'} data-deltype="del" {else /} data-deltype="pseudo" {/eq} onClick="delfun(this);">删除</a>
  154. <i></i>
  155. {/eq}
  156. <a href="{$vo.arcurl}" target="_blank" class="btn blue">浏览</a>
  157. </div>
  158. </td>
  159. <td class="sort">
  160. <div class="w60 tc">
  161. {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
  162. <input type="text" onkeyup="this.value=this.value.replace(/[^\d]/g,'');" onpaste="this.value=this.value.replace(/[^\d]/g,'')" onchange="changeTableVal('archives','aid','{$vo.aid}','sort_order',this);" size="4" value="{$vo.sort_order}" />
  163. {else /}
  164. {$vo.sort_order}
  165. {/eq}
  166. </div>
  167. </td>
  168. </tr>
  169. {/foreach}
  170. {/empty}
  171. </tbody>
  172. </table>
  173. </div>
  174. <div class="iDiv" style="display: none;"></div>
  175. </div>
  176. {notempty name="list"}
  177. <div class="footer-oper">
  178. <span class="ml15">
  179. <input type="checkbox" autocomplete="off" class="checkAll">
  180. </span>
  181. <div class="nav-dropup">
  182. <button class="layui-btn layui-btn-primary dropdown-bt">批量操作<i class="layui-icon layui-icon-up"></i></button>
  183. <div class="dropdown-menus" style="display:none; {if condition='0 < $pager->totalRows && ($pager->totalRows < 3 || $pager->listRows < 3)'}top:28px;bottom:unset;border-bottom:1px solid rgba(0,0,0,.15);border-top:none;min-height: 250px;{/if}">
  184. {eq name="'Archives@batch_attr'|is_check_access" value="1"}
  185. <a href="javascript:void(0);" onclick="batch_attr(this, 'ids', '批量新增属性');" data-url="{:url('Archives/batch_attr', ['opt'=>'add'])}">新增属性</a>
  186. <a href="javascript:void(0);" onclick="batch_attr(this, 'ids', '批量删除属性');" data-url="{:url('Archives/batch_attr', ['opt'=>'del'])}">删除属性</a>
  187. <hr class="layui-bg-gray">
  188. {/eq}
  189. {eq name="'Archives@batch_copy'|is_check_access" value="1"}
  190. <a href="javascript:void(0);" onclick="func_batch_copy(this, 'ids');" data-url="{:url('Archives/batch_copy', array('typeid'=>$Request.param.typeid))}">复制文档</a>
  191. {/eq}
  192. {eq name="'Archives@move'|is_check_access" value="1"}
  193. <a href="javascript:void(0);" onclick="func_move(this, 'ids');" data-url="{:url('Archives/move', array('typeid'=>$Request.param.typeid))}">移动文档</a>
  194. {/eq}
  195. {eq name="$Think.const.CONTROLLER_NAME.'@del'|is_check_access" value="1"}
  196. <a href="javascript:void(0);" onclick="batch_del(this, 'ids');" data-url="{:url('Media/del')}" {eq name="$global['web_recycle_switch']" value='1'} data-deltype="del" {else /} data-deltype="pseudo" {/eq}>删除文档</a>
  197. {/eq}
  198. {eq name="'Archives@check'|is_check_access" value="1"}
  199. <hr class="layui-bg-gray">
  200. <a href="javascript:void(0);" onclick="batch_check(this, 'ids');" data-url="{:url('Archives/check')}">审核文档</a>
  201. <a href="javascript:void(0);" onclick="batch_check(this, 'ids');" data-url="{:url('Archives/uncheck')}">取消审核</a>
  202. {/eq}
  203. </div>
  204. </div>
  205. {eq name="'RecycleBin@archives_index'|is_check_access" value="1"}
  206. {neq name="$global['web_recycle_switch']" value='1'} <a href="{:url('RecycleBin/archives_index')}" class="layui-btn layui-btn-primary" title="回收站">回收站</a> {/neq}
  207. {/eq}
  208. {include file="public/page" /}
  209. </div>
  210. {/notempty}
  211. </div>
  212. </div>
  213. <script type="text/javascript">
  214. $(function(){
  215. $('input[name*=ids]').click(function(){
  216. if ($('input[name*=ids]').length == $('input[name*=ids]:checked').length) {
  217. $('.checkAll').prop('checked','checked');
  218. } else {
  219. $('.checkAll').prop('checked', false);
  220. }
  221. });
  222. $('input[type=checkbox].checkAll').click(function(){
  223. $('input[type=checkbox]').prop('checked',this.checked);
  224. });
  225. });
  226. layui.use('laydate', function(){
  227. var laydate = layui.laydate;
  228. //执行一个laydate实例
  229. laydate.render({
  230. elem: '#add_time_begin' //指定元素
  231. });
  232. laydate.render({
  233. elem: '#add_time_end' //指定元素
  234. });
  235. });
  236. $(document).ready(function(){
  237. // 表格行点击选中切换
  238. $('#flexigrid > table>tbody >tr').click(function(){
  239. $(this).toggleClass('trSelected');
  240. });
  241. // 点击刷新数据
  242. $('.fa-refresh').click(function(){
  243. location.href = location.href;
  244. });
  245. // 批量操作
  246. $(".dropdown-bt").click(function(){
  247. $(".dropdown-menus").slideToggle(200);
  248. event.stopPropagation();
  249. })
  250. $(document).click(function(){
  251. $(".dropdown-menus").slideUp(200);
  252. event.stopPropagation();
  253. })
  254. });
  255. var aids = '';
  256. function func_move(obj, name)
  257. {
  258. var a = [];
  259. var k = 0;
  260. aids = '';
  261. $('input[name^='+name+']').each(function(i,o){
  262. if($(o).is(':checked')){
  263. a.push($(o).val());
  264. if (k > 0) {
  265. aids += ',';
  266. }
  267. aids += $(o).val();
  268. k++;
  269. }
  270. })
  271. if(a.length == 0){
  272. layer.alert('请至少选择一项', {
  273. shade: layer_shade,
  274. area: ['480px', '190px'],
  275. move: false,
  276. title: '提示',
  277. btnAlign:'r',
  278. closeBtn: 3,
  279. success: function () {
  280. $(".layui-layer-content").css('text-align', 'left');
  281. }
  282. });
  283. return;
  284. }
  285. var url = $(obj).attr('data-url');
  286. //iframe窗
  287. layer.open({
  288. type: 2,
  289. title: '移动文档',
  290. fixed: true, //不固定
  291. shadeClose: false,
  292. shade: layer_shade,
  293. maxmin: false, //开启最大化最小化按钮
  294. area: ['480px', '360px'],
  295. content: url
  296. });
  297. }
  298. /**
  299. * 批量审核
  300. */
  301. function batch_check(obj, name) {
  302. var url = $(obj).attr('data-url');
  303. var a = [];
  304. $('input[name^='+name+']').each(function(i,o){
  305. if($(o).is(':checked')){
  306. a.push($(o).val());
  307. }
  308. })
  309. if(a.length == 0){
  310. layer.alert('请至少选择一项', {
  311. shade: layer_shade,
  312. area: ['480px', '190px'],
  313. move: false,
  314. title: '提示',
  315. btnAlign:'r',
  316. closeBtn: 3,
  317. success: function () {
  318. $(".layui-layer-content").css('text-align', 'left');
  319. }
  320. });
  321. return;
  322. }
  323. // title = '批量审核';
  324. // btn = ['确定', '取消']; //按钮
  325. // // 删除按钮
  326. // layer.confirm(title, {
  327. // title: false,
  328. // btn: btn //按钮
  329. // }, function () {
  330. layer_loading('正在处理');
  331. $.ajax({
  332. type: "POST",
  333. url: url,
  334. data: {ids:a, _ajax:1},
  335. dataType: 'json',
  336. success: function (data) {
  337. layer.closeAll();
  338. if(data.code == 1){
  339. layer.msg(data.msg, {icon: 1});
  340. window.location.reload();
  341. }else{
  342. layer.alert(data.msg, {icon: 2, title:false});
  343. }
  344. },
  345. error:function(e){
  346. layer.closeAll();
  347. layer.alert(e.responseText, {icon: 2, title:false});
  348. }
  349. });
  350. // }, function (index) {
  351. // layer.closeAll(index);
  352. // });
  353. }
  354. /**
  355. * 获取修改之前的内容
  356. */
  357. function get_aids()
  358. {
  359. return aids;
  360. }
  361. </script>
  362. {include file="public/footer" /}