72 lines
3.2 KiB
HTML
72 lines
3.2 KiB
HTML
<include file="Inc:header"/>
|
|
<div class="container-fluid">
|
|
<div class="main_head">
|
|
<div class="main_h1"><h1>{$pagetitle}({$Think.config.DB_PREFIX}cms_{$tableName})</h1></div>
|
|
<div class="main_add">
|
|
<a class="btn btn-inverse" href="{:U('add',array('table_id'=>$table_id))}">添加模型</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_form2(this);" class="modelIndex">
|
|
<table class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th width="5%">排序</th>
|
|
<th width="5%">ID</th>
|
|
<th style="text-align: left;">模型名称</th>
|
|
<th >状态</th>
|
|
<th >自动审核</th>
|
|
<th>栏目字段</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.modelid}" name="modelid[]"></td>
|
|
<td style="text-align: center;">{$v.modelid}</td>
|
|
<td style="text-align: left;">{$v.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">
|
|
<if condition="$v.autochecked eq 1 ">
|
|
<span class="label label-success">开启</span>
|
|
<else />
|
|
<span class="label">关闭</span>
|
|
</if>
|
|
</td>
|
|
<td class="center tab-title"><a href="{:U("editorCatModel",array("modelid"=>$v[modelid],"table_id"=>$v[table_id]))}">[栏目字段管理]</a> </td>
|
|
<td class="center">
|
|
<a href="{:U("editor",array("modelid"=>$v[modelid],"table_id"=>$v[table_id]))}" class="btn btn-primary btn-mini">修改</a>
|
|
<a href="{:U('delete',array("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>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<include file="Inc/footer"/>
|