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.

200 lines
8.3 KiB
HTML

5 years ago
<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>
<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
<!-- 标题栏 -->
<div class="main-place">
<span class="main-placetitle">位置</span>
<ul class="main-placeul">
<li><a href="{:U('Game/lists')}">开发者</a></li>
<li><a href="{:U('Giftbag/lists')}">礼包管理</a></li>
<li><a href="#">{$meta_title}</a></li>
</ul>
<div class="question">
<i class="question_mark">?</i>
<ul class="question_content">
<li class="question_title">功能以及数据相关说明</li>
<li class="question_list">
<span class="">{$meta_title}</span>
<span class="">设置游戏不同礼包的功能,以便于玩家领取礼包</span>
</li>
</ul>
</div>
</div>
<div class="cf top_nav_list">
<div class="fl button_list">
<empty name="model.extend">
<div class="tools">
<a class=" " href="{:U('addGift?model='.$model['id'])}"><span class="button_icon button_icon1"></span>新增</a>
<a class=" ajax-post confirm " target-form="ids" url="{:U('delGift?model='.$model['id'])}"><span class="button_icon button_icon2"></span>删除</a>
<a class=" ajax-post " target-form="ids" url="{:U("set_gift_status",array("status"=>1,"msg_type"=>5,"field"=>"apply_status"))}"><span class="button_icon button_icon9"></span>审核</a>
<a class=" ajax-post " target-form="ids" url="{:U("set_gift_status",array("status"=>2,"msg_type"=>8,"field"=>"apply_status"))}"><span class="button_icon button_icon5"></span>驳回</a>
</div>
</empty>
</div>
<!-- 高级搜索 -->
<div class="jssearch fr cf search_list">
<div class="input-list input-list-game search_label_rehab">
<label>游戏名称:</label>
<select id="game_id" name="game_name" class="select_gallery" >
<option value="">请选择游戏</option>
<volist name=":get_game_list()" id="vo">
<option game-id="{$vo.id}" value="{$vo.game_name}">{$vo.game_name}</option>
</volist>
</select>
</div>
<div class="input-list">
<label>礼包名称</label>
<input type="text" name="giftbag_name" class="" value="{:I('giftbag_name')}">
</div>
<div class="input-list">
<label>添加时间:</label>
<input type="text" id="time-start" name="time-start" class="" 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" class="" value="{:I('time-end')}" placeholder="结束时间" />
<span class="add-on"><i class="icon-th"></i></span>
</div>
</div>
<div class="input-list search_item input-list-displaystatus">
<label>显示状态:</label>
<select name="status">
<option value="">全部</option>
<option value="1">开启</option>
<option value="0">关闭</option>
</select>
</div>
<div class="input-list input-list-platform">
<label>运营平台:</label>
<select name="giftbag_version">
<option value="">全部</option>
<volist name=":get_systems_list()" id="vo">
<option value="{$key}">{$vo}</option>
</volist>
</select>
</div>
<div class="input-list">
<a class="sch-btn" href="javascript:;" id="search" url="{:U('Developers/gift','model='.$model['name'],false)}">搜索</a>
</div>
</div>
</div>
<!-- 数据列表 -->
<div class="data_list">
<div class="">
<table>
<!-- 表头 -->
<thead>
<tr>
<th>
<input class="check-all" type="checkbox">
</th>
<th>游戏名称</th>
<th>礼包名称</th>
<th>开发商</th>
<th>运营平台</th>
<th>剩余数量</th>
<th>审核状态</th>
<th>添加时间</th>
<th>有效时间</th>
<th>操作</th>
</tr>
</thead>
<!-- 列表 -->
<tbody>
<empty name="list_data" >
<tr>
<td colspan="10" class="text-center">aOh! 暂时还没有内容!</td>
</tr>
<else />
<volist name="list_data" id="data">
<tr>
<td ><input class="ids" type="checkbox" value="{$data['id']}" name="ids[]"></td>
<td>{$data.game_name}</td>
<td>{$data.giftbag_name}</td>
<td>{:get_developer_name($data['developers'])}</td>
<td >{:get_systems_name($data['giftbag_version'])}</td>
<td>{$data['novice']}</td>
<td>{:get_info_status($data['apply_status'],29)}</td>
<td>{:set_show_time($data['create_time'])}</td>
<td>{:set_show_time($data['start_time'],'date')}至 {:set_show_time($data['end_time'],'date','forever')}</td>
<td>
<a href="{:U('Developers/editGift?id='.$data['id'])}">编辑</a>
<a href="{:U('Developers/delGift?ids='.$data['id'])}" class="confirm ajax-get">删除</a>
</td>
</tr>
</volist>
</empty>
</tbody>
</table>
</div>
</div>
<div class="page">
{$_page|default=''}
</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>
<volist name=":I('get.')" id="vo">
Think.setValue('{$key}',"{$vo}");
</volist>
$(".select_gallery").select2();
</script>
<script type="text/javascript">
//导航高亮
highlight_subnav('{:U('developers/gift')}');
$(function(){
$('.side-sub-menu').eq(0).show();
//搜索功能
$("#search").click(function(){
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
});
$('#datetimepicker').datetimepicker({
format: 'yyyy-mm-dd',
language:"zh-CN",
minView:2,
autoclose:true,
pickerPosition:'bottom-left'
})
})
</script>
</block>