You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

215 lines
8.7 KiB
HTML

<extend name="Public/base"/>
<block name="body">
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
<script type="text/javascript" src="__JS__/select2.min.js"></script>
<style>
.select2-container--default .select2-selection--single {
color: #000;
resize: none;
border-width: 1px;
border-style: solid;
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
box-shadow: 0px 3px 3px #F7F8F9 inset;height:35px;
height:28px;border-radius:3px;font-size:12px;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
line-height:35px;
line-height:28px;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
height:26px;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
height:26px;line-height:26px;font-size:12px;
}
.select2-results__option[aria-selected] {font-size:12px;}
/*溢出部分文本使用...表示*/
.data_list table td.strComment {overflow: hidden; text-overflow: ellipsis;white-space: nowrap;word-wrap: normal;}
.data_list table td.strComment {cursor:pointer;}
</style>
<div class="cf main-place top_nav_list navtab_list">
<h3 class="page_title">评论管理</h3>
<p class="description_text"></p>
</div>
<div class="fl button_list">
<empty name="model.extend">
<div class="tools">
<a class=" ajax-post " target-form="ids" url="{:U("Comment/set_statu",array("status"=>1,"msg_type"=>5,"field"=>"status"))}"><span class="button_icon button_icon9"></span>审 核</a>
</div>
</empty>
</div>
<div class="cf top_nav_list">
<!-- 高级搜索 -->
<div class="jssearch fl cf search_list" >
<!--显示状态搜索-->
<div class="input-list">
<input name="account" type="text" class="" placeholder="玩家账号" value="{:I('account')}">
</div>
<div class="input-list">
<div class="tools">
<select id="game_id" name="game_id" class="select_gallery" style="">
<option value="">请选择游戏</option>
<volist name=":get_game_list()" id="vo">
<option value="{$vo.id}">{$vo.game_name}</option>
</volist>
</select>
</div>
</div>
<div class="input-list">
<div class="tools">
<select id="status" name="status" class="select_gallery" >
<option value="">审核状态</option>
<option value="1">已通过</option>
<option value="0">待审核</option>
</select>
</div>
</div>
<div class="input-list">
<input type="text" id="time_start" name="time_start" value="{:I('time_start')}" placeholder="获取开始时间" />
-
<div class="input-append date" id="datetimepicker" style="display:inline-block">
<input type="text" id="time_end" name="time_end" value="{:I('time_end')}" placeholder="获取结束时间" />
<span class="add-on"><i class="icon-th"></i></span>
</div>
</div>
<div class="input-list">
<a class="sch-btn" href="javascript:;" id="search" url="{:U('lists','model='.$model['name'] . '&row='.I('row'),false)}">搜索</a>
</div>
</div>
</div>
<!-- 数据列表 -->
<div class="data_list">
<div class="">
<table style="table-layout: fixed">
<!-- 表头 -->
<thead>
<tr>
<th style="width: 5%" >
<input class="check-all" type="checkbox">
</th>
<th >用户</th>
<th >游戏名称</th>
<th style="width:45%;">评论内容</th>
<th style="width: 6%" >审核</th>
<th >时间</th>
<th style="width:6%;min-width:60px;">操作</th>
</tr>
</thead>
<!-- 列表 -->
<tbody>
<empty name="data" >
<tr>
<td colspan="7" class="text-center">aOh! 暂时还没有内容!</td>
</tr>
<else />
<volist name="data" id="vo">
<tr>
<td><input class="ids" <eq name="vo.status" value="1">disabled readonly</eq> type="checkbox" value="{$vo['id']}" name="ids[]"></td>
<td>{$vo.account}</td>
<td>{:get_game_name($vo['game_id'])}</td>
<td class="comment-left strComment" id="comment{$vo['id']}" title="{$vo.comment}">{$vo.comment}</td>
<td>{:get_info_status($vo['status'],33)}</td>
<td>{:set_show_time($vo['create_time'])}</td>
<td>
<a style="width:100%;text-align:center" href="{:U('delete',array('ids'=>$vo['id']))}" class="confirm ajax-get" >删除</a>
</td>
</tr>
</volist>
</empty>
</tbody>
</table>
</div>
</div>
<div class="page">
{$_page|default=''}
</div>
<div class="common_settings">
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
<form class="addShortcutIcon">
<input type="hidden" name="title" value="{$m_title}">
<input type="hidden" name="url" value="Comment/lists">
</form>
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
</div>
</block>
<block name="script">
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
<php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
<script src="__STATIC__/layer/layer.js"></script>
<script type="text/javascript">
//导航高亮
highlight_subnav('{:U('lists')}');
$(function(){
$("#game_id").select2();
Think.setValue('account',"{:I('account')}");
Think.setValue('status',"{:I('status')}");
Think.setValue('game_id',"{:I('game_id')}");
Think.setValue('time_start',"{:I('time_start')}");
Think.setValue('time_end',"{:I('time_end')}");
Think.setValue('row',"{:I('row',10)}");
//搜索功能
$("#search").click(function(){
var starttime = $.trim($('#time_start').val());
var endtime = $.trim($('#time_end').val());
if (starttime && endtime && starttime > endtime) {layer.msg('开始时间必须小于等于结束时间');return false;}
var url = $(this).attr('url');
var query = $('.jssearch').find('input').serialize();
query += "&"+$('.jssearch').find('select').serialize();
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
query = query.replace(/^&/g,'');
if( url.indexOf('?')>0 ){
url += '&' + query;
}else{
url += '?' + query;
}
window.location.href = url;
});
//回车自动提交
$('.jssearch').find('input').keyup(function(event){
if(event.keyCode===13){
$("#search").click();
}
});
$('#time_start').datetimepicker({
format: 'yyyy-mm-dd',
language:"zh-CN",
minView:2,
autoclose:true,
pickerPosition:'bottom-left'
})
$('#time_end').datetimepicker({
format: 'yyyy-mm-dd',
language:"zh-CN",
minView:2,
autoclose:true,
pickerPosition:'bottom-left'
})
$(".comment-left").click(function(){
var comtent = $(this).attr("title");
var id ="#" + $(this).attr("id");
layer.tips(comtent,id,{tips:[3,'#3595CC']});
})
})
</script>
</block>