You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
116 lines
5.0 KiB
116 lines
5.0 KiB
{template nheader.html}
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
$(".select-cat").click(function(){
|
|
var action = $(this).attr("action");
|
|
var childs = $(this).attr("childs");
|
|
var catid = $(this).attr("catid");
|
|
var catids= new Array(); //定义一数组
|
|
catids = childs.split(","); //字符分割
|
|
if (action == 'close') {
|
|
$.cookie('dr_{SITE_ID}_{$this->ci->router->class}_'+catid, null,{path:"/",expires: -1});
|
|
$(this).attr("action", "open");
|
|
$(this).html("[-]");
|
|
for (i=0;i<catids.length ;i++ ) {
|
|
if (catids[i] != catid) {
|
|
$(".dr_catid_"+catids[i]).show();
|
|
}
|
|
}
|
|
} else {
|
|
// 关闭状态存储cookie
|
|
$.cookie('dr_{SITE_ID}_{$this->ci->router->class}_'+catid, 1);
|
|
$(this).attr("action", "close");
|
|
$(this).html("[+]");
|
|
for (i=0;i<catids.length ;i++ ) {
|
|
if (catids[i] != catid) {
|
|
$(".dr_catid_"+catids[i]).hide();
|
|
}
|
|
}
|
|
}
|
|
});
|
|
$(".select-cat").each(function(){
|
|
var childs = $(this).attr("childs");
|
|
var catid = $(this).attr("catid");
|
|
var cache = $.cookie('dr_{SITE_ID}_{$this->ci->router->class}_'+catid);
|
|
if (cache) {
|
|
$(this).attr("action", "close");
|
|
$(this).html("[+]");
|
|
var catids= new Array(); //定义一数组
|
|
catids = childs.split(","); //字符分割
|
|
for (i=0;i<catids.length ;i++ ) {
|
|
if (catids[i] != catid) {
|
|
$(".dr_catid_"+catids[i]).hide();
|
|
}
|
|
}
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
<div class="page-bar">
|
|
<ul class="page-breadcrumb mylink">
|
|
{$menu.link}
|
|
|
|
</ul>
|
|
<ul class="page-breadcrumb myname">
|
|
{$menu.name}
|
|
</ul>
|
|
<div class="page-toolbar">
|
|
<div class="btn-group pull-right">
|
|
<button type="button" class="btn green btn-sm btn-outline dropdown-toggle" data-toggle="dropdown" aria-expanded="false" data-hover="dropdown"> {fc_lang('操作菜单')}
|
|
<i class="fa fa-angle-down"></i>
|
|
</button>
|
|
<ul class="dropdown-menu pull-right" role="menu">
|
|
{loop $menu.quick $t}
|
|
<li>
|
|
<a href="{$t.url}">{$t.icon} {$t.name}</a>
|
|
</li>
|
|
{/loop}
|
|
<li class="divider"> </li>
|
|
<li>
|
|
<a href="javascript:window.location.reload();">
|
|
<i class="icon-refresh"></i> {fc_lang('刷新页面')}</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<h3 class="page-title">
|
|
<small>{fc_lang('导航是给用户提供浏览方向及分类指引的重要功能,例如首页头部导航、底部链接信息、侧边链接、顶端链接、友情链接等,根据实际情况来调用')}</small>
|
|
</h3>
|
|
<form action="" method="post" name="myform" id="myform">
|
|
<input name="action" id="action" type="hidden" value="order" />
|
|
<div class="portlet mylistbody">
|
|
<div class="portlet-body">
|
|
<div class="table-scrollable">
|
|
|
|
<table class="mytable table table-striped table-bordered table-hover table-checkable dataTable">
|
|
|
|
<thead>
|
|
<tr>
|
|
<th width="20" align="right"></th>
|
|
<th width="30" align="center">{fc_lang('排序')}</th>
|
|
<th width="50" align="center">Id</th>
|
|
<th align="left">{fc_lang('名称')}</th>
|
|
<th align="center" width="80">{fc_lang('类型')}</th>
|
|
<th style='text-align:center' width="99">{fc_lang('新窗口打开')}</th>
|
|
<th style='text-align:center' width="99">{fc_lang('是否显示')}</th>
|
|
<th align="left" class="dr_option">{if $this->ci->is_auth('admin/navigator/add')}<a title="{fc_lang('添加')}" href="{dr_url('navigator/add', array('type' => $type))}"> <i class="fa fa-plus"></i> {fc_lang('添加')}{/if}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{$list}
|
|
<tr class="mtable_bottom">
|
|
<th align="right"><input id="dr_select" name="dr_select" class="toggle md-check" type="checkbox" onClick="dr_selected()" /></th>
|
|
<td colspan="8" align="left">
|
|
{if $this->ci->is_auth('admin/navigator/del')}<button type="button" class="btn red btn-sm" value="" name="button" onClick="$('#action').val('del');return dr_confirm_set_all('{fc_lang('您确定要这样操作吗?')}')"> <i class="fa fa-trash"></i> {fc_lang('删除')}</button> {/if}
|
|
{if $this->ci->is_auth('admin/navigator/edit')}<button type="button" class="btn green btn-sm" name="button" onclick="$('#action').val('order');return dr_confirm_set_all('{fc_lang('您确定要这样操作吗?')}')" > <i class="fa fa-edit"></i> {fc_lang('排序')}</button>
|
|
<div class="onShow">{fc_lang('排序按从小到大排列,最大支持99')}</div>{/if}
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
{template nfooter.html}
|