70 lines
2.6 KiB
HTML
70 lines
2.6 KiB
HTML
<include file="Inc:header"/>
|
|
<style>
|
|
.table-bordered .icon-ok{ color:#468847}
|
|
.table-bordered .icon-remove{ color:#ff0000}
|
|
</style>
|
|
<div class="container-fluid">
|
|
<div class="main_head">
|
|
<div class="main_tab" style="width:30%; margin-top:10px;">
|
|
<a href="{:U('page',array('modelid'=>$modelid))}" class="btn">自定义单页</a>
|
|
<a href="{:U('page_template')}" class="btn on">模板管理</a>
|
|
</div>
|
|
<div class="main_add" style="width:70%;">
|
|
<a class="btn btn-inverse" href="{:U('page_template_add')}" style="margin-left:10px;">+增加模板</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%">ID</th>
|
|
<th width="40%">模板名称</th>
|
|
<?php
|
|
if(C('LANG_SWITCH_ON')){
|
|
?>
|
|
<th width="10%">语言</th>
|
|
<?php
|
|
}
|
|
?>
|
|
<th width="15%">操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<foreach name="data" item="v" >
|
|
<tr>
|
|
<td style="text-align: center;">{$v.template_id}</td>
|
|
<td style="text-align: center;">{$v.name}</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("page_template_editor",array("template_id"=>$v[template_id]))}" class="btn btn-primary btn-mini">修改</a>
|
|
<a href="{:U('Template/delete',array("template_id"=>$v[template_id]))}" class="btn btn-danger btn-mini ajax_del">删除</a>
|
|
</td>
|
|
</tr>
|
|
</foreach>
|
|
|
|
</tbody>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<include file="Inc/footer"/>
|