152 lines
5.9 KiB
HTML
152 lines
5.9 KiB
HTML
{extend name="public/base"/}
|
|
{block name="body"}
|
|
<div class="main-box clearfix">
|
|
<header class="main-box-header clearfix">
|
|
<div class="pull-left">
|
|
<h2>{$meta_title}</h2>
|
|
</div>
|
|
<div class="pull-right">
|
|
{if condition="in_array($group,$access)"}
|
|
<a class="btn btn-primary" href="{:url('admin/cartoon/uploadcartoon?model_id='.$model_id)}">上传</a>
|
|
<a class="btn btn-primary" href="{:url('admin/cartoon/add?model_id='.$model_id)}">新 增</a>
|
|
<button class="btn btn-danger ajax-post confirm" url="{:url('admin/cartoon/del?model_id='.$model_id)}" target-form="ids">删 除</button>
|
|
{/if}
|
|
</div>
|
|
</header>
|
|
<style>
|
|
.table-responsive{min-height:600px;}
|
|
</style>
|
|
<div class="main-box-body clearfix">
|
|
<div class="row">
|
|
<form method="get">
|
|
<div class="col-sm-12 col-md-4 col-lg-3">
|
|
<input type="text" class="form-control" name="keyword" value="{$keyword|default=''}" placeholder="请输入关键字">
|
|
</div>
|
|
<div class="col-sm-12 col-md-2 col-lg-1">
|
|
<select name="channel" id="channel" class="form-control">
|
|
<option value="">性别</option>
|
|
<option value="1" >男频</option>
|
|
<option value="2" >女频</option>
|
|
</select>
|
|
</div>
|
|
<div class="col-sm-12 col-md-1">
|
|
<select name="allvisit" id="allvisit" class="form-control" style="width:100px">
|
|
<option value="">按指数</option>
|
|
<option value="desc" {if $allvisit =="desc"}selected{/if}>由高到低</option>
|
|
<option value="asc" {if $allvisit =="asc"}selected{/if}>由低到高</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="col-sm-12 col-md-4">
|
|
<button class="btn btn-primary" type="submit">搜索</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="table-responsive clearfix">
|
|
|
|
<div class="table-responsive clearfix">
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th width="30"><input class="checkbox check-all" type="checkbox"></th>
|
|
{volist name="grid['grids']" id="item"}
|
|
<th>{$item['title']}</th>
|
|
{/volist}
|
|
{if condition="in_array($group,$access)"}
|
|
<th>操作</th>
|
|
{/if}
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{if condition="empty($list)"}
|
|
{php}
|
|
$cow = count($grid['grids'])+2;
|
|
{/php}
|
|
<tr>
|
|
<td colspan="{$cow}" align="center">暂无数据!</td>
|
|
</tr>
|
|
{else/}
|
|
{volist name="list" id="item"}
|
|
<tr>
|
|
<td><input class="ids row-selected" type="checkbox" name="id[]" value="{$item['id']}"></td>
|
|
{volist name="grid['grids']" id="vo"}
|
|
{if isset($vo['format'])}
|
|
<td>{$item[$vo['field'][0]]|$vo['format']}</td>
|
|
{elseif $vo['field'][0] == 'cartoonspic'}
|
|
<td>
|
|
<img src="{$item[$vo['field'][0]]|get_cover=###,'path'}" width="50" height="" alt="" />
|
|
</td>
|
|
{elseif $vo['field'][0] == 'name'}
|
|
<td>
|
|
<a href="{:url('admin/volume/index?model_id='.$model_id,array('id'=>$item['id']))}">{$item[$vo['field'][0]]}</a></td>
|
|
{elseif $vo['field'][0] == 'channel'}
|
|
<td>
|
|
{switch item[$vo['field'][0]] }
|
|
{case 1 }男频{/case}
|
|
{case 2}女频{/case}
|
|
{default /}通用
|
|
{/switch}
|
|
</td>
|
|
{elseif $vo['field'][0] == 'type'}
|
|
<td>
|
|
{$item[$vo['field'][0]]|get_document_field='category',###,'id','title'}</td>
|
|
{elseif $vo['field'][0] == 'fullflag'}
|
|
<td>{eq name="item[$vo['field'][0]]" value="1"}
|
|
已完结
|
|
{else/}
|
|
连载中{/eq}</td>
|
|
{else/}
|
|
<td>{$item[$vo['field'][0]]}</td>
|
|
{/if}
|
|
{/volist}
|
|
<td>
|
|
{if condition="in_array($group,$access)"}
|
|
|
|
{if isset($item['status'])}
|
|
{if $item['status']}
|
|
<a href="{:url('admin/cartoon/status?model_id='.$model_id,array('id'=>$item['id'],'status'=>'0'))}" class="ajax-get">取消审核</a>
|
|
{else/}
|
|
<a href="{:url('admin/cartoon/status?model_id='.$model_id,array('id'=>$item['id'],'status'=>'1'))}" class="ajax-get">审核</a>
|
|
{/if}
|
|
{/if}
|
|
<a href="{:url('admin/cartoon/edit?model_id='.$model_id,array('id'=>$item['id']))}" >编辑</a>
|
|
<a href="{:url('admin/cartoon/del?model_id='.$model_id,array('id'=>$item['id']))}" class="ajax-get confirm">删除</a>
|
|
<div class="btn-group">
|
|
<button type="button" class="btn btn-xs btn-info dropdown-toggle" data-toggle="dropdown">
|
|
更多推荐 <span class="caret"></span>
|
|
</button>
|
|
<ul class="dropdown-menu dropdown-menu-right">
|
|
{if isset($item['is_top'])}
|
|
{if in_array(1,explode(',',$item['is_top']))}
|
|
<li><a href="{:url('admin/cartoon/unsettop?model_id='.$model_id,array('id'=>$item['id'],'is_top'=>'1'))}" class="ajax-get">取消热门推荐</a></li>
|
|
{else/}
|
|
<li><a href="{:url('admin/cartoon/settop?model_id='.$model_id,array('id'=>$item['id'],'is_top'=>'1'))}" class="ajax-get">热门推荐</a></li>
|
|
{/if}
|
|
{if in_array(2,explode(',',$item['is_top']))}
|
|
<li><a href="{:url('admin/cartoon/unsettop?model_id='.$model_id,array('id'=>$item['id'],'is_top'=>'2'))}" class="ajax-get">取消新作出炉</a></li>
|
|
{else/}
|
|
<li><a href="{:url('admin/cartoon/settop?model_id='.$model_id,array('id'=>$item['id'],'is_top'=>'2'))}" class="ajax-get">新作出炉</a></li>
|
|
{/if}
|
|
{if in_array(3,explode(',',$item['is_top']))}
|
|
<li><a href="{:url('admin/cartoon/unsettop?model_id='.$model_id,array('id'=>$item['id'],'is_top'=>'3'))}" class="ajax-get">取消佳作精选</a></li>
|
|
{else/}
|
|
<li><a href="{:url('admin/cartoon/settop?model_id='.$model_id,array('id'=>$item['id'],'is_top'=>'3'))}" class="ajax-get">佳作精选</a></li>
|
|
{/if}
|
|
{/if}
|
|
|
|
|
|
</ul>
|
|
</div>
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
{/volist}
|
|
{/if}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{$page}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/block} |