Nessuna descrizione
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.

index.htm 18KB

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