123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343 |
- {include file="public/layout" /}
-
- <body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default; -moz-user-select: inherit;">
- <div id="append_parent"></div>
- <div id="ajaxwaitid"></div>
- <div class="page" style="box-shadow:none;">
- {include file="special/bar" /}
- <div class="flexigrid" style="min-height: 600px;">
- <div class="mDiv">
- <div class="ftitle">
- {include file="archives/tags_btn" /}
- </div>
- <form class="navbar-form form-inline" id="searchForm" action="{:url('Special/index')}" method="get" onsubmit="layer_loading('正在处理');">
- {$searchform.hidden|default=''}
- <div class="sDiv">
- <div class="sDiv2">
- <input type="hidden" name="typeid" id="typeid" value="{$Request.param.typeid|default=''}">
- <input type="text" size="30" name="keywords" value="{$Request.param.keywords}" class="qsbox" placeholder="标题搜索...">
- <input type="submit" class="btn" value="搜索">
- <i class="iconfont e-sousuo"></i>
- </div>
- </div>
- </form>
- </div>
- <div class="hDiv">
- <div class="hDivBox">
- <table cellspacing="0" cellpadding="0" style="width: 100%">
- <thead>
- <tr>
- <th class="sign w40" axis="col0">
- <div class="tc"><input type="checkbox" autocomplete="off" class="checkAll"></div>
- </th>
- <th abbr="article_title" axis="col3" class="w70">
- <div class="tc">ID</div>
- </th>
- <th abbr="article_title" axis="col3" class="">
- <div style="text-align: left; padding-left: 10px;" class="">标题</div>
- </th>
- <th abbr="article_time" axis="col6" class="w120">
- <div class="tc">所属栏目</div>
- </th>
- <th abbr="article_time" axis="col6" class="w50">
- <div class="tc sort_style"><a href="{:getArchivesSortUrl('arcrank')}">审核 <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>
- </th>
- <th abbr="article_time" axis="col6" class="w60">
- <div class="tc">浏览量</div>
- </th>
- <th abbr="article_time" axis="col6" class="w100">
- <div class="tc">发布时间</div>
- </th>
- <th axis="col1" class="w160">
- <div class="tc">操作</div>
- </th>
- <th abbr="article_time" axis="col6" class="w60">
- <div class="tc sort_style"><a href="{:getArchivesSortUrl('sort_order')}">排序 <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>
- </th>
- </tr>
- </thead>
- </table>
- </div>
- </div>
- <div class="bDiv" style="height: auto;">
- <div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
- <table style="width: 100%;">
- <tbody>
- {empty name="list"}
- <tr>
- <td class="no-data" align="center" axis="col0" colspan="50">
- <div class="no_row">
- <div class="no_pic"><img src="__SKIN__/images/null-data.png"></div>
- </div>
- </td>
- </tr>
- {else/}
- {foreach name="list" item="vo" key="k" }
- <tr>
- <td class="sign">
- <div class="tc w40"><input type="checkbox" autocomplete="off" name="ids[]" value="{$vo.aid}"></div>
- </td>
-
- <td class="sort">
- <div class="tc w70">
- {$vo.aid}
- </div>
- </td>
- <td class="" style="width: 100%;">
- <div class="tl" style="padding-left: 10px;">
- {notempty name="$vo.is_litpic"}
- <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>
- {/notempty}
- {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
- <a href="{:url('Special/edit',array('id'=>$vo['aid'], 'callback_url'=>$callback_url))}" style="{eq name="vo.is_b" value="1"} font-weight: bold;{/eq}">{$vo.title}</a>
- {else /}
- {$vo.title}
- {/eq}
- {assign name='showArcFlagData' value='$vo|showArchivesFlagStr'}
- {volist name='$showArcFlagData' id="vo1"}
- {eq name='$i' value='1'}<span style="color: red;">[{/eq}
- <i style="font-size: 12px;">{$vo1['small_name']}</i>
- {eq name='$i' value='$showArcFlagData|count'}]</span>{/eq}
- {/volist}
- </div>
- </td>
- <td class="">
- <div class="w120 tc ellipsis"><a href="{:url('Special/index', array('typeid'=>$vo['typeid'], 'tab'=>3))}" title="{$vo.typename}">{$vo.typename|default='<i class="red">数据出错!</i>'}</a></div>
- </td>
- <td>
- <div class="tc w50">
- {if condition="$vo['arcrank'] eq -1"}
- <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>
- {else /}
- <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>
- {/if}
- </div>
- </td>
- <td>
- <div class="tc w60">
- {$vo.click}
- </div>
- </td>
- <td>
- <div class="w100 tc">
- {$vo.add_time|date='Y-m-d',###}
- </div>
- </td>
- <td class="operation">
- <div class="w160 tc">
- {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
- <a href="{:url('Special/edit',array('id'=>$vo['aid'], 'callback_url'=>$callback_url))}" class="btn blue">编辑</a>
- <i></i>
- {/eq}
- {eq name="$Think.const.CONTROLLER_NAME.'@del'|is_check_access" value="1"}
- <a class="btn red" href="javascript:void(0);" data-url="{:url('Special/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>
- <i></i>
- {/eq}
- <a href="{$vo.arcurl}" target="_blank" class="btn blue">浏览</a>
- </div>
- </td>
- <td class="sort">
- <div class="w60 tc">
- {eq name="$Think.const.CONTROLLER_NAME.'@edit'|is_check_access" value="1"}
- <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}" />
- {else /}
- {$vo.sort_order}
- {/eq}
- </div>
- </td>
-
- </tr>
- {/foreach}
- {/empty}
- </tbody>
- </table>
- </div>
- <div class="iDiv" style="display: none;"></div>
- </div>
- {notempty name="list"}
- <div class="footer-oper">
- <span class="ml15">
- <input type="checkbox" autocomplete="off" class="checkAll">
- </span>
- <div class="nav-dropup">
- <button class="layui-btn layui-btn-primary dropdown-bt">批量操作<i class="layui-icon layui-icon-up"></i></button>
- <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}">
- {eq name="'Archives@batch_attr'|is_check_access" value="1"}
- <a href="javascript:void(0);" onclick="batch_attr(this, 'ids', '批量新增属性');" data-url="{:url('Archives/batch_attr', ['opt'=>'add'])}">新增属性</a>
- <a href="javascript:void(0);" onclick="batch_attr(this, 'ids', '批量删除属性');" data-url="{:url('Archives/batch_attr', ['opt'=>'del'])}">删除属性</a>
- <hr class="layui-bg-gray">
- {/eq}
- {eq name="'Archives@batch_copy'|is_check_access" value="1"}
- <a href="javascript:void(0);" onclick="func_batch_copy(this, 'ids');" data-url="{:url('Archives/batch_copy', array('typeid'=>$Request.param.typeid))}">复制专题</a>
- {/eq}
- {eq name="'Archives@move'|is_check_access" value="1"}
- <a href="javascript:void(0);" onclick="func_move(this, 'ids');" data-url="{:url('Archives/move', array('typeid'=>$Request.param.typeid))}">移动专题</a>
- {/eq}
- {eq name="$Think.const.CONTROLLER_NAME.'@del'|is_check_access" value="1"}
- <a href="javascript:void(0);" onclick="batch_del(this, 'ids');" data-url="{:url('Special/del')}" {eq name="$global['web_recycle_switch']" value='1'} data-deltype="del" {else /} data-deltype="pseudo" {/eq}>删除专题</a>
- {/eq}
- {eq name="'Archives@check'|is_check_access" value="1"}
- <hr class="layui-bg-gray">
- <a href="javascript:void(0);" onclick="batch_check(this, 'ids');" data-url="{:url('Archives/check')}">审核专题</a>
- <a href="javascript:void(0);" onclick="batch_check(this, 'ids');" data-url="{:url('Archives/uncheck')}">取消审核</a>
- {/eq}
- </div>
- </div>
- {eq name="'RecycleBin@archives_index'|is_check_access" value="1"}
- {neq name="$global['web_recycle_switch']" value='1'} <a href="{:url('RecycleBin/archives_index')}" class="layui-btn layui-btn-primary" title="回收站">回收站</a> {/neq}
- {/eq}
- {include file="public/page" /}
- </div>
- {/notempty}
- </div>
- </div>
- <script type="text/javascript">
- $(function(){
- $('input[name*=ids]').click(function(){
- if ($('input[name*=ids]').length == $('input[name*=ids]:checked').length) {
- $('.checkAll').prop('checked','checked');
- } else {
- $('.checkAll').prop('checked', false);
- }
- });
- $('input[type=checkbox].checkAll').click(function(){
- $('input[type=checkbox]').prop('checked',this.checked);
- });
- });
-
- $(document).ready(function(){
-
- // 表格行点击选中切换
- $('#flexigrid > table>tbody >tr').click(function(){
- $(this).toggleClass('trSelected');
- });
-
- // 点击刷新数据
- $('.fa-refresh').click(function(){
- location.href = location.href;
- });
-
- // 批量操作
- $(".dropdown-bt").click(function(){
- $(".dropdown-menus").slideToggle(200);
- event.stopPropagation();
- })
- $(document).click(function(){
- $(".dropdown-menus").slideUp(200);
- event.stopPropagation();
- })
- });
-
- var aids = '';
- function func_move(obj, name)
- {
- var a = [];
- var k = 0;
- aids = '';
- $('input[name^='+name+']').each(function(i,o){
- if($(o).is(':checked')){
- a.push($(o).val());
- if (k > 0) {
- aids += ',';
- }
- aids += $(o).val();
- k++;
- }
- })
- if(a.length == 0){
- layer.alert('请至少选择一项', {
- shade: layer_shade,
- area: ['480px', '190px'],
- move: false,
- title: '提示',
- btnAlign:'r',
- closeBtn: 3,
- success: function () {
- $(".layui-layer-content").css('text-align', 'left');
- }
- });
- return;
- }
-
- var url = $(obj).attr('data-url');
- //iframe窗
- layer.open({
- type: 2,
- title: '移动专题',
- fixed: true, //不固定
- shadeClose: false,
- shade: layer_shade,
- maxmin: false, //开启最大化最小化按钮
- area: ['480px', '360px'],
- content: url
- });
- }
- /**
- * 批量审核
- */
- function batch_check(obj, name) {
-
- var url = $(obj).attr('data-url');
-
- var a = [];
- $('input[name^='+name+']').each(function(i,o){
- if($(o).is(':checked')){
- a.push($(o).val());
- }
- })
- if(a.length == 0){
- layer.alert('请至少选择一项', {
- shade: layer_shade,
- area: ['480px', '190px'],
- move: false,
- title: '提示',
- btnAlign:'r',
- closeBtn: 3,
- success: function () {
- $(".layui-layer-content").css('text-align', 'left');
- }
- });
- return;
- }
-
- // title = '批量审核';
- // btn = ['确定', '取消']; //按钮
- // // 删除按钮
- // layer.confirm(title, {
- // title: false,
- // btn: btn //按钮
- // }, function () {
- layer_loading('正在处理');
- $.ajax({
- type: "POST",
- url: url,
- data: {ids:a, _ajax:1},
- dataType: 'json',
- success: function (data) {
- layer.closeAll();
- if(data.code == 1){
- layer.msg(data.msg, {icon: 1});
- window.location.reload();
- }else{
- layer.alert(data.msg, {icon: 2, title:false});
- }
- },
- error:function(e){
- layer.closeAll();
- layer.alert(e.responseText, {icon: 2, title:false});
- }
- });
- // }, function (index) {
- // layer.closeAll(index);
- // });
- }
- /**
- * 获取修改之前的内容
- */
- function get_aids()
- {
- return aids;
- }
- </script>
-
- {include file="public/footer" /}
|