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
2.9 KiB
HTML
103 lines
2.9 KiB
HTML
<extend name="Public/base" />
|
|
|
|
<block name="body">
|
|
<!-- 标题栏 -->
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
<h3 class="page_title">{$title}</h3>
|
|
<p class="description_text"></p>
|
|
</div>
|
|
|
|
<div class="cf top_nav_list">
|
|
<eq name="model.extend" value="1">
|
|
<div class="fl button_list">
|
|
<div class="tools">
|
|
<a class="" href="{:U('edit',array('name'=>$name))}"><span class="button_icon button_icon1"></span>新增</a>
|
|
<a class=" ajax-post confirm" target-form="ids" url="{:U('del?name='.$name)}"><span class="button_icon button_icon2"></span>删除</a>
|
|
</div>
|
|
</div>
|
|
</eq>
|
|
<!-- 高级搜索 -->
|
|
<div class="jssearch fl cf search_list">
|
|
<div class="input-list search-title-box">
|
|
<label>搜索:</label>
|
|
</div>
|
|
<div class="input-list">
|
|
<input type="text" name="{$model['search_key']|default='title'}" class="search-input" value="{:I('title')}" placeholder="关键字">
|
|
<a class="sch-btn" href="javascript:;" id="search" url="{:U('adminList','name='.$name.'&row='.I('row'),false)}">搜索</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 数据列表 -->
|
|
<div class="data_list">
|
|
<empty name="custom_adminlist">
|
|
<!-- 数据列表 -->
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
<input class="check-all" type="checkbox">序号
|
|
</th>
|
|
<volist name="list_grid" id="vo">
|
|
<th>{$vo.title}</th>
|
|
</volist>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<empty name="_list" >
|
|
<tr>
|
|
<td colspan="5" class="text-center">aOh! 暂时还没有内容!</td>
|
|
</tr>
|
|
<else />
|
|
<volist name="_list" id="lv" key="vo">
|
|
<tr>
|
|
<td><input class="ids" type="checkbox" value="{$lv.id}" name="ids[]">{$lv.id}</td>
|
|
<volist name="list_grid" id="lk">
|
|
<td>{:get_addonlist_field($lv, $lk, $name)}</td>
|
|
</volist>
|
|
</tr>
|
|
</volist>
|
|
</empty>
|
|
</tbody>
|
|
</table>
|
|
<else />
|
|
<present name="custom_adminlist">
|
|
{$custom_adminlist}
|
|
</present>
|
|
</empty>
|
|
</div>
|
|
<!-- 分页 -->
|
|
<div class="page">
|
|
{$_page}
|
|
</div>
|
|
</block>
|
|
<block name="script">
|
|
<script type="text/javascript">
|
|
highlight_subnav('{:U('Addons/adminList/name/Attachment')}');
|
|
$(function(){
|
|
Think.setValue('row','{:I("row",10)}');
|
|
//搜索功能
|
|
$("#search").click(function(){
|
|
var url = $(this).attr('url');
|
|
var query = $('.jssearch').find('input').serialize();
|
|
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
|
|
query = query.replace(/^&/g,'');
|
|
if( url.indexOf('?')>0 ){
|
|
url += '&' + query;
|
|
}else{
|
|
url += '?' + query;
|
|
}
|
|
window.location.href = url;
|
|
});
|
|
$('.data-table th:last').attr('width',70);
|
|
//回车自动提交
|
|
$('.jssearch').find('input').keyup(function(event){
|
|
if(event.keyCode===13){
|
|
$("#search").click();
|
|
}
|
|
});
|
|
})
|
|
</script>
|
|
</block>
|