You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
103 lines
3.4 KiB
HTML
103 lines
3.4 KiB
HTML
5 years ago
|
<extend name="Public/base"/>
|
||
|
|
||
|
<block name="body">
|
||
|
<!-- 标题栏 -->
|
||
|
|
||
|
|
||
|
<div class="cf main-place top_nav_list navtab_list">
|
||
|
<h3 class="page_title">{$meta_title}</h3>
|
||
|
<p class="description_text"></p>
|
||
|
</div>
|
||
|
|
||
|
<div class="cf top_nav_list">
|
||
|
<div class="fl button_list">
|
||
|
<div class="tools">
|
||
|
<a class="" href="{:U('Model/add')}"><span class="button_icon button_icon1"></span>新增</a>
|
||
|
<a class=" ajax-post" target-form="ids" url="{:U('Model/setStatus',array('status'=>1))}"><span class="button_icon button_icon4"></span>正常</a>
|
||
|
<a class=" ajax-post" target-form="ids" url="{:U('Model/setStatus',array('status'=>0))}"><span class="button_icon button_icon5"></span>禁用</a>
|
||
|
<a class="" href="{:U('Model/generate')}"><span class="button_icon button_icon20"></span>生 成</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<!-- 数据列表 -->
|
||
|
<div class="data_list">
|
||
|
<div class="">
|
||
|
<table class="">
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th ><input class="check-all" type="checkbox"/></th>
|
||
|
<th class="">编号</th>
|
||
|
<th class="">标识</th>
|
||
|
<th class="">名称</th>
|
||
|
<th class="">创建时间</th>
|
||
|
<th class="">状态</th>
|
||
|
<th class="">操作</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
<notempty name="_list">
|
||
|
<volist name="_list" id="vo">
|
||
|
<tr>
|
||
|
<td><input class="ids" type="checkbox" name="ids[]" value="{$vo.id}" /></td>
|
||
|
<td>{$vo.id} </td>
|
||
|
<td>{$vo.name}</td>
|
||
|
<td><a data-id="{$vo.id}" href="{:U('model/edit?id='.$vo['id'])}">{$vo.title}</a></td>
|
||
|
<td><span>{$vo.create_time|time_format}</span></td>
|
||
|
<td>{$vo.status_text}</td>
|
||
|
<td>
|
||
|
<a href="{:U('think/lists?model='.$vo['name'])}">数据</a>
|
||
|
<a href="{:U('model/setstatus?ids='.$vo['id'].'&status='.abs(1-$vo['status']))}" class="ajax-get">{$vo.status|show_status_op}</a>
|
||
|
<a href="{:U('model/edit?id='.$vo['id'])}">编辑</a>
|
||
|
<!--<a href="{:U('model/del?ids='.$vo['id'])}" class="confirm ajax-get">删除</a>-->
|
||
|
</td>
|
||
|
</tr>
|
||
|
</volist>
|
||
|
<else/>
|
||
|
<td colspan="7" class="text-center">aOh! 暂时还没有内容!</td>
|
||
|
</notempty>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="page">
|
||
|
{$_page}
|
||
|
</div>
|
||
|
|
||
|
<div class="common_settings">
|
||
|
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
|
||
|
<form class="addShortcutIcon">
|
||
|
<input type="hidden" name="title" value="{$m_title}">
|
||
|
<input type="hidden" name="url" value="{$m_url}">
|
||
|
</form>
|
||
|
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
|
||
|
</div>
|
||
|
|
||
|
</block>
|
||
|
|
||
|
<block name="script">
|
||
|
<script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
|
||
|
highlight_subnav('{:U('Model/index')}');
|
||
|
|
||
|
Think.setValue('row','{:I("row",10)}');
|
||
|
|
||
|
$(function(){
|
||
|
$("#search").click(function(){
|
||
|
var url = $(this).attr('url');
|
||
|
var status = $('select[name=status]').val();
|
||
|
var search = $('input[name=search]').val();
|
||
|
if(status != ''){
|
||
|
url += '/status/' + status;
|
||
|
}
|
||
|
if(search != ''){
|
||
|
url += '/search/' + search;
|
||
|
}
|
||
|
window.location.href = url;
|
||
|
});
|
||
|
})
|
||
|
</script>
|
||
|
</block>
|