qc.ifish7.com/Application/Admin/View/Cat/index.html

85 lines
3.9 KiB
HTML

<include file="Inc:head"/>
<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" 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>排序</th>
<th>catid</th>
<th>名称</th>
<?php
if(C('LANG_SWITCH_ON')){
?>
<th>语言</th>
<?php
}
?>
<th>上级菜单</th>
<th>系统模型</th>
<th>状态</th>
<th>模板调用URL</th>
<th>操作</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;">{$v.catid}</td>
<td class="center tab-title" title="点击查看下一级"><a href="{:U('index',array('pid'=>$v[catid],'modelid'=>$modelid))}">{$v.name}</a></td>
<?php
if(C('LANG_SWITCH_ON')){
?>
<td class="center">{:$LANG_OPT[$v[lang]]?$LANG_OPT[$v[lang]]:'-'}</td>
<?php
}
?>
<td class="center"><a href="{:U('index',array('pid'=>$ppid,'modelid'=>$modelid))}">{$ptitle}</a></td>
<td class="center">{$model[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"><literal>{:caturl(</literal>{$v.catid}<literal>)}</literal></td>
<td class="center">
<a href="{:caturl($v[catid])}" target="_blank" class="btn btn-primary btn-mini">查看</a>
<a href="{:U("editor",array("catid"=>$v[catid],"modelid"=>$v[modelid]))}" class="btn btn-primary btn-mini">修改</a>
<a href="{:U('delete',array("catid"=>$v[catid],"modelid"=>$v[modelid]))}" class="btn btn-danger btn-mini ajax_del">删除</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>
<if condition="$pid gt 0">
<a class="btn " href="{:U('index',array('modelid'=>$modelid,'pid'=>$ppid))}">^返回上一级^</a>
</if>
</div>
</div>
</div>
</div>
<include file="Inc/foot" noiframeauto="true" noautotitle="true"/>