126 lines
4.6 KiB
HTML
126 lines
4.6 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">
|
|
</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-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}
|
|
<th>操作</th>
|
|
</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] == 'cover'}
|
|
<td>
|
|
<img src="{$item[$vo['field'][0]]}" 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] == 'category_id'}
|
|
<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>
|
|
|
|
<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(10,explode(',',$item['is_top']))}
|
|
<li><a href="{:url('admin/appnovel/unsettop?model_id='.$model_id,array('id'=>$item['id'],'is_top'=>'10'))}" class="ajax-get">取消主编推荐</a></li>
|
|
{else/}
|
|
<li><a href="{:url('admin/appnovel/settop?model_id='.$model_id,array('id'=>$item['id'],'is_top'=>'10'))}" class="ajax-get">主编推荐</a></li>
|
|
{/if}
|
|
{if in_array(11,explode(',',$item['is_top']))}
|
|
<li><a href="{:url('admin/appnovel/unsettop?model_id='.$model_id,array('id'=>$item['id'],'is_top'=>'11'))}" class="ajax-get">取消热门神作</a></li>
|
|
{else/}
|
|
<li><a href="{:url('admin/appnovel/settop?model_id='.$model_id,array('id'=>$item['id'],'is_top'=>'11'))}" class="ajax-get">热门神作</a></li>
|
|
{/if}
|
|
{if in_array(13,explode(',',$item['is_top']))}
|
|
<li><a href="{:url('admin/appnovel/unsettop?model_id='.$model_id,array('id'=>$item['id'],'is_top'=>'13'))}" class="ajax-get">取消优秀新作</a></li>
|
|
{else/}
|
|
<li><a href="{:url('admin/appnovel/settop?model_id='.$model_id,array('id'=>$item['id'],'is_top'=>'13'))}" class="ajax-get">优秀新作</a></li>
|
|
{/if}
|
|
{if in_array(14,explode(',',$item['is_top']))}
|
|
<li><a href="{:url('admin/appnovel/unsettop?model_id='.$model_id,array('id'=>$item['id'],'is_top'=>'14'))}" class="ajax-get">取消本周2元</a></li>
|
|
{else/}
|
|
<li><a href="{:url('admin/appnovel/settop?model_id='.$model_id,array('id'=>$item['id'],'is_top'=>'14'))}" class="ajax-get">本周2元</a></li>
|
|
{/if}
|
|
{/if}
|
|
|
|
|
|
</ul>
|
|
</div>
|
|
|
|
</td>
|
|
</tr>
|
|
{/volist}
|
|
{/if}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
{$page}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{/block} |