qa-ifish7/web/Application/Admin/View/Link/index.html

100 lines
4.3 KiB
HTML

<include file="Inc:header"/>
<div class="container-fluid">
<div class="main_head">
<div class="main_tab" style="width:60%; margin-top:10px;">
<a href="{:U('index')}" class="btn <?=$_GET[catid]?"":"on"?>">所有信息</a>
<foreach name="cat" item="v">
<a href="{:U('index',array('catid'=>$v[catid]))}" class="btn <?=$_GET[catid]==$v[catid]?"on":""?>">{$v.name}</a>&nbsp;
</foreach>
<a href="{:U('LinkCat/index')}" class="btn iframe2 {:check_user_node('LinkCat/index')?'':'none'}">分类管理</a> -
<a href="http://jijin.mydoc.io/?v=42362&t=299160" class="btn" target="_blank">{调用规则}</a>
</div>
<div class="main_add" style="width:40%;">
<a class="btn btn-inverse iframe" 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%">id</th>
<th width="30%">名称</th>
<th width="10%">分类</th>
<th width="5%">状态</th>
<th width="10%">图片</th>
<th width="20%">链接地址</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.id}" name="id[]"></td>
<td style="text-align: center;">{$v.id}</inpu></td>
<td style="text-align: center;">{$v.name}</td>
<td style="text-align: center;">{$v.link_cat.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 style="text-align: center;">
<if condition="$v.thumb neq '' ">
<a href="{$v.thumb}" target="_blank"><img src="{$v.thumb}" style="height:30px;"></a></td>
<else />
-
</if>
<td class="center tab-title" title=""><a href="{$v.link}" target="_blank">{$v.link}</a></td>
<td class="center">
<a href="{:U('editor',array('id'=>$v[id]))}" class="btn btn-primary btn-mini iframe">修改</a>
<a href="{:U('delete',array('ids'=>$v[id]))}" class="btn btn-danger btn-mini ajax_del {:check_user_node('Ad/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(){
//分类窗口
$(".iframe2").click(function(){
var url=$(this).attr("href");
var index=layer.open({
type: 2,
title: '分类管理',
area: ["50%","60%"],
fixed: false, //不固定
maxmin: true,
content: [url]
});
return false;
});
})
</script>