87 lines
3.8 KiB
HTML
87 lines
3.8 KiB
HTML
{include file="public/header" /}
|
|
|
|
|
|
|
|
<div class="page">
|
|
<div class="fixed-bar">
|
|
<div class="item-title">
|
|
<div class="subject">
|
|
<h3>导航管理</h3>
|
|
<h5></h5>
|
|
</div>
|
|
{include file="public/admin_items" /}
|
|
</div>
|
|
</div>
|
|
<form method="get" name="formSearch" id="formSearch">
|
|
<div class="ds-search-form">
|
|
<dl>
|
|
<dt>{$Think.lang.nav_title}</dt>
|
|
<dd><input type="text" value="{$Request.param.nav_title}" name="nav_title" class="txt"></dd>
|
|
</dl>
|
|
<dl>
|
|
<dt>{$Think.lang.nav_location}</dt>
|
|
<dd>
|
|
<select name="nav_location">
|
|
<option value="">{$Think.lang.ds_please_choose}...</option>
|
|
<option value="header" {if condition="$Request.param.nav_location eq 'header'"}selected{/if}>{$Think.lang.nav_top}</option>
|
|
<option value="middle" {if condition="$Request.param.nav_location eq 'middle'"}selected{/if}>{$Think.lang.nav_midd}</option>
|
|
<option value="footer" {if condition="$Request.param.nav_location eq 'footer'"}selected{/if}>{$Think.lang.nav_foo}</option>
|
|
</select>
|
|
</dd>
|
|
</dl>
|
|
<div class="btn_group">
|
|
<input type="submit" class="btn" value="{$Think.lang.ds_search}">
|
|
<a href="{:url('Navigation/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<table class="ds-default-table">
|
|
<thead>
|
|
<tr>
|
|
<th class="w24"></th>
|
|
<th>{$Think.lang.nav_sort}</th>
|
|
<th>{$Think.lang.nav_title}</th>
|
|
<th>{$Think.lang.nav_url}</th>
|
|
<th>{$Think.lang.nav_location}</th>
|
|
<th>{$Think.lang.nav_new_open}</th>
|
|
<th>{$Think.lang.ds_handle}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{foreach name="nav_list" item="nav"}
|
|
<tr>
|
|
<td><input type="checkbox" class="checkitem" name="nav_id[]" value="{$nav.nav_id}" /></td>
|
|
<td>{$nav.nav_sort}</td>
|
|
<td>{$nav.nav_title}</td>
|
|
<td>{$nav.nav_url}</td>
|
|
<td>{if $nav.nav_location eq 'header'}{$Think.lang.nav_top}{elseif $nav.nav_location eq 'middle'}{$Think.lang.nav_midd}{else}{$Think.lang.nav_foo}{/if}</td>
|
|
<td>{if $nav.nav_new_open eq '0'}否{else}是{/if}</td>
|
|
<td>
|
|
<a href="javascript:dsLayerOpen('{:url('Navigation/edit',['nav_id'=>$nav.nav_id])}','{$Think.lang.ds_edit}{$nav.nav_title}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
|
|
<a href="javascript:submit_delete({$nav.nav_id})" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_del}</a>
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
<tfoot>
|
|
{notempty name="nav_list"}
|
|
<tr class="tfoot">
|
|
<td><input type="checkbox" class="checkall" id="checkallBottom"></td>
|
|
<td colspan="16"><label for="checkallBottom">{$Think.lang.ds_select_all}</label>
|
|
<a href="JavaScript:void(0);" class="btn btn-small" onclick="submit_delete_batch()"><span>{$Think.lang.ds_del}</span></a>
|
|
</td>
|
|
</tr>
|
|
{/notempty}
|
|
</tfoot>
|
|
</table>
|
|
{$show_page|raw}
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
function submit_delete(ids_str) {
|
|
_uri = ADMINSITEURL + "/Navigation/drop.html?nav_id=" + ids_str;
|
|
dsLayerConfirm(_uri, '{$Think.lang.ds_ensure_del}');
|
|
}
|
|
|
|
</script> |