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.

143 lines
4.4 KiB
HTML

5 years ago
<extend name="Public/base"/>
<block name="body">
<div class="cf main-place top_nav_list navtab_list">
<ul class="tabnav1711 fr jstabnav ">
<present name='Think.get.group'>
<li><a href="{:U('index')}">全部</a></li>
<else />
<li class="current"><a href="#">全部</a></li>
</present>
<foreach name="group" item="vo">
<neq name="group_id" value="$key">
<li><a href="{:U('index?group='.$key)}">{$vo}</a></li>
<else/>
<li class="current"><a href="#">{$vo}</a></li>
</neq>
</foreach>
</ul>
<h3 class="page_title">{$meta_title}</h3>
<p class="description_text"></p>
</div>
<div class="cf top_nav_list">
<div class="fl button_list">
<a class="" href="{:U('add')}"><span class="button_icon button_icon1"></span>新增</a>
<a class="" href="javascript:;"><span class="button_icon button_icon2"></span>删除</a>
<a class=" list_sort" url="{:U('sort?group='.I('group'),'','')}"><span class="button_icon button_icon18"></span>排序</a>
</div>
<!-- 高级搜索 -->
<div class="jssearch fl cf search_list">
<div class="input-list search-title-box">
<label>搜索:</label>
</div>
<div class="sleft">
<input type="text" name="name" class="search-input" value="{:I('name')}" placeholder="配置名称">
<a class="sch-btn" href="javascript:;" id="search" url="{:U('config/index',array('row'=>I('row')))}">搜索</a>
</div>
</div>
</div>
<div class="data_list">
<table>
<thead>
<tr>
<th>
<input class="checkbox check-all" type="checkbox">
</th>
<th>ID</th>
<th>名称</th>
<th>标题</th>
<th>分组</th>
<th>类型</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<notempty name="list">
<volist name="list" id="config">
<tr>
<td><input class="ids" type="checkbox" name="id[]" value="{$config.id}"></td>
<td>{$config.id}</td>
<td><a href="{:U('edit?id='.$config['id'])}">{$config.name}</a></td>
<td>{$config.title}</td>
<td>{$config.group|get_config_group}</td>
<td>{$config.type|get_config_type}</td>
<td>
<a title="编辑" href="{:U('edit?id='.$config['id'])}">编辑</a>
<a class="confirm ajax-get" title="删除" href="{:U('del?id='.$config['id'])}">删除</a>
</td>
</tr>
</volist>
<else/>
<td colspan="6" class="text-center">aOh! 暂时还没有内容!</td>
</notempty>
</tbody>
</table>
<!-- 分页 -->
<div class="page">
{$_page}
</div>
</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 type="text/javascript">
highlight_subnav('{:U('Config/index')}');
Think.setValue('row','{:I("row",10)}');
$(function(){
//搜索功能
$("#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;
});
//回车搜索
$(".search-input").keyup(function(e){
if(e.keyCode === 13){
$("#search").click();
return false;
}
});
//点击排序
$('.list_sort').click(function(){
var url = $(this).attr('url');
var ids = $('.ids:checked');
var param = '';
if(ids.length > 0){
var str = new Array();
ids.each(function(){
str.push($(this).val());
});
param = str.join(',');
}
if(url != undefined && url != ''){
window.location.href = url + '/ids/' + param;
}
});
});
</script>
</block>