77 lines
4.3 KiB
HTML
77 lines
4.3 KiB
HTML
<include file="Inc:header"/>
|
|
<style>
|
|
.dropdown-menu{ width: 100%; min-width: 60px;}
|
|
form .btn.btn-success{ margin-right: 0px;}
|
|
</style>
|
|
<div class="container-fluid">
|
|
<div class="main_head">
|
|
<div class="main_h1"><h1>{$ptitle}</h1></div>
|
|
<div class="main_add">
|
|
<a class="btn btn-inverse {:check_user_node('Cat/add')?'':'none'}" href="{:U("add",array("pid"=>$pid,"modelid"=>$modelid))}">添加栏目</a>
|
|
</div>
|
|
</div>
|
|
<div style="text-align:right; float:right"></div>
|
|
<div class="row-fluid">
|
|
<div class="span12">
|
|
<div class="widget-box">
|
|
<div class="widget-content nopadding">
|
|
<form method="post" action="__SELF__" onsubmit="return save_form(this,function(){window.history.go(0)});" class="modelIndex">
|
|
<table class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th width="3%">排序</th>
|
|
<th style="width:8%">catid</th>
|
|
<th style="width:20%">栏目名称 (点击选中)</th>
|
|
<th style="text-align: left;width:30%">栏目关系</th>
|
|
<th style="width:10%">系统模型</th>
|
|
<th style="width:6%">状态</th>
|
|
<th style="width:20%">操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<foreach name="data" item="v" >
|
|
<tr>
|
|
<td style="text-align: center;"><input type='text' value="{$v.sort}" name="sort[]" class="" style="width:30px;height:10px; margin:0px;"><input type='hidden' value="{$v.catid}" name="catids[]"></td>
|
|
<td style="text-align: center;"><input type="text" value="{$v.catid}" onclick="this.select()" style="width:50px; margin: 0px; padding: 2px ; text-align: center; font-weight: 600"></td>
|
|
<td style="text-align: center;"><input type="text" value="{$v.name}" onclick="this.select()" style="width:100px;margin: 0px;padding:2px; font-weight: 600"></td>
|
|
<td class="tab-title"><a href="{:caturl($v[catid])}" target="_blank">{$v.str}{$v.name}</a></td>
|
|
<td class="center">{$GLOBALS['model'][$v[modelid]][name]}</td>
|
|
<td class="center">
|
|
<if condition="$v.status eq 1 ">
|
|
<span class="label label-success">启用</span>
|
|
<else />
|
|
<span class="label">禁用</span>
|
|
</if>
|
|
</td>
|
|
<td class="center">
|
|
<div class="btn-group {:check_user_node('Cat/add')?'':'none'}">
|
|
<button data-toggle="dropdown" type="button" class="btn btn-success dropdown-toggle">添加<span class="caret"></span></button>
|
|
<ul class="dropdown-menu">
|
|
<li><a href="{:U("add",array("pid"=>$v[pid],"modelid"=>$v[modelid]))}">同级栏目</a></li>
|
|
<li class="divider"></li>
|
|
<li><a href="{:U("add",array("pid"=>$v[catid],"modelid"=>$v[modelid]))}">子极栏目</a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<a href="{:U("editor",array("catid"=>$v[catid],"modelid"=>$v[modelid]))}" class="btn btn-primary {:check_user_node('Cat/editor')?'':'none'}">修改</a>
|
|
<a href="{:U('delete',array("catid"=>$v[catid],"modelid"=>$v[modelid]))}" class="btn btn-danger ajax_del {:check_user_node('Cat/delete')?'':'none'}">删除</a>
|
|
</td>
|
|
</tr>
|
|
</foreach>
|
|
|
|
</tbody>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="widget-bottom">
|
|
<button class="btn btn-success" onclick="$('.modelIndex').attr('action','{:U('sort')}');$('.modelIndex').submit();" type="button">修改顺序</button>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<include file="Inc/footer" noiframeauto="true" noautotitle="true"/>
|