70 lines
3.0 KiB
HTML
70 lines
3.0 KiB
HTML
<include file="Inc:header"/>
|
|
<div class="container-fluid">
|
|
<div class="main_head">
|
|
<div class="main_h1"><h1>{$pagetitle}</h1></div>
|
|
<div class="main_add">
|
|
<a class="btn btn-inverse" href="{:U("add")}">添加广告位</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-striped">
|
|
<thead>
|
|
<tr>
|
|
<th width="5%">排序</th>
|
|
<th width="3%">adid</th>
|
|
<th width="40%">广告名称</th>
|
|
<th width="10%">广告类型</th>
|
|
<th width="10%">内容管理</th>
|
|
<th width="6%">调用规则</th>
|
|
<th width="15%">操作</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.adid}" name="adid[]"></td>
|
|
<td style="text-align: center;">{$v.adid}</inpu></td>
|
|
<td style="text-align: center;">{$v.name}</td>
|
|
<td style="text-align: center;">{$v.type}</td>
|
|
<td class="center tab-title" title=""><a href="{:U('Ad/index',array('adid'=>$v[adid]))}">管理广告内容</a></td>
|
|
<td class="center tab-title" title=""><a href="https://gitee.com/jijinsoft/dashboard/wikis/jijinsoft/PbfcAKgo/preview?sort_id=1365924&doc_id=264834" target="_blank">{调用规则}</a></td>
|
|
<td class="center">
|
|
<a href="{:U("editor",array("adid"=>$v[adid]))}" class="btn btn-primary btn-mini">修改</a>
|
|
<a href="{:U('delete',array('ids'=>$v[adid]))}" class="btn btn-danger btn-mini ajax_del {:check_user_node('AdCat/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 class="pagination alternate">
|
|
<ul>{$listpage}</ul>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<include file="Inc/footer"/>
|
|
<script>
|
|
function this_delete(){
|
|
layer.confirm("您确定要删除吗?",function(){
|
|
$('.modelIndex').attr('action','{:U('delete')}');
|
|
$('.modelIndex').submit();
|
|
},function(){layer.closeAll();return false;});
|
|
}
|
|
</script> |