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

105 lines
4.6 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('FeedbackCat/index')}" class="btn iframe2 {:check_user_node('FeedbackCat/index')?'':'none'}">分类管理</a>
-
<a href="https://gitee.com/jijinsoft/dashboard/wikis/jijinsoft/PbfcAKgo/preview?sort_id=1365925&doc_id=264834" class="btn" target="_blank">{调用规则}</a>
</div>
<div class="main_add" style="width:40%;">
<a class="btn btn-inverse iframe2 {:check_user_node('FeedbackField/index')?'':'none'}" href="{:U("FeedbackField/index")}">字段管理</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="1%"> <input type="checkbox" value="0" class="checkall" /></th>
<th width="3%">ID</th>
<th width="5%">分类</th>
<th width="8%">姓名</th>
<th width="10%">手机</th>
<th width="8%">邮箱</th>
<th width="3%">IP</th>
<th width="8%">时间</th>
<th width="8%">操作</th>
</tr>
</thead>
<tbody>
<foreach name="data" item="v" >
<tr>
<td style="text-align: center;"><input type="checkbox" name="ids[]" class="chekboxs" value="{$v.id}"/></td>
<td style="text-align: center;">{$v.id}</inpu></td>
<td style="text-align: center;">{$v.feedback_cat.name}</td>
<td style="text-align: center;" class="tab-title">
<a href="{:U('show',array('id'=>$v[id]))}" class="iframe2">{$v.name}</a>
<if condition="$v[is_read] eq 0">
<span class="label label-important">未读</span>
<else/>
<span class="label">已读</span>
</if>
</td>
<td style="text-align: center;">{$v.mobile}</td>
<td class="center">{$v.email}</td>
<td class="center">{$v.ip}</td>
<td class="center">{:date('Y/m/d H:i:s',$v[addtime])}</td>
<td class="center">
<a href="{:U('show',array('id'=>$v[id]))}" class="btn btn-primary btn-mini iframe2 {:check_user_node('Feedback/show')?'':'none'}">查看</a>
<a href="{:U('delete',array('ids'=>$v[id]))}" class="btn btn-danger btn-mini ajax_del {:check_user_node('Feedback/delete')?'':'none'}">删除</a>
</td>
</tr>
</foreach>
</tbody>
</table>
</form>
</div>
</div>
<div class="widget-bottom">
<button class="btn btn-danger {:check_user_node('Feedback/delete')?'':'none'}" onclick="this_delete()" 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 title=$(this).html();
var url=$(this).attr("href");
var index=layer.open({
type: 2,
title: title,
area: ["70%","80%"],
fixed: false, //不固定
maxmin: true,
content: [url]
});
return false;
});
})
function this_delete(){
layer.confirm("您确定要删除吗?",function(){
$('.modelIndex').attr('action','{:U('delete')}');
$('.modelIndex').submit();
},function(){layer.closeAll();return false;});
}
</script>