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.

96 lines
3.1 KiB
HTML

2 years ago
<extend name="Public/base"/>
<block name="body">
<div class="cf main-place top_nav_list navtab_list">
{:W('Index/navigation',array('value'=>'Site/channel'))}
<h3 class="page_title">导航管理</h3>
<p class="description_text"></p>
</div>
<div class="cf top_nav_list">
<div class="fl button_list">
<a class="" href="{:U('add','pid='.$pid)}"><span class="button_icon button_icon1"></span>新增</a>
<a class="ajax-post confirm " target-form="ids" url="{:U('del?model='.$model['id'])}"><span class="button_icon button_icon2"></span>删除</a>
<a class=" list_sort" url="{:U('sort',array('pid'=>I('get.pid',0)),'')}"><span class="button_icon button_icon18"></span>排序</a>
</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 style="width:8%;min-width:120px;">操作</th>
</tr>
</thead>
<tbody>
<notempty name="list">
<volist name="list" id="channel">
<tr>
<td><input class="ids" type="checkbox" name="ids[]" id="" value="{$channel['id']}"> </td>
<td>{$channel.id}</td>
<td><a href="{:U('index?pid='.$channel['id'])}">{$channel.title}</a></td>
<td>{$channel.url}</td>
<td>{$channel.sort}</td>
<td>
<a title="编辑" href="{:U('edit?id='.$channel['id'].'&pid='.$pid)}">编辑</a>
<a href="{:U('setStatus?ids='.$channel['id'].'&status='.abs(1-$channel['status']))}" class="ajax-get">{$channel.status|show_status_op}</a>
<a class="confirm ajax-get" title="删除" href="{:U('del?ids='.$channel['id'])}">删除</a>
</td>
</tr>
</volist>
<else/>
<td colspan="6" class="text-center">aOh! 暂时还没有内容!</td>
</notempty>
</tbody>
</table>
</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="Site/channel">
</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('Site/channel')}');
Think.setValue('row','{:I("row",10)}');
$(function() {
//点击排序
$('.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>