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.

95 lines
4.1 KiB
HTML

<extend name="Public/promote_base"/>
<block name="css">
<link href="__CSS__/20180207/mixed.css" rel="stylesheet">
<style>
.rows{width: 100px;}
.trunk-list {position: relative;min-height: 66vh;}
.pagenation{position: relative;line-height: 5vh;}
</style>
</block>
<block name="body">
<div class="page-list normal_list siteServer-index-list">
<div class="trunk-title">
<div class="location">
<div class="location-container">当前位置:<span>联盟站点></span><span>区服列表</span></div>
</div>
<img src="__IMG__/20180207/icon_normal_qufu.png"><span class="title_main">区服列表</span>
</div>
<div class="trunk-content article">
<div class="trunk-search clearfix">
<div class="tab">
<a href="{:U('add')}" class="submit" >添加区服</a>
</div>
<form action="{:U('index',array('row'=>I('get.row')))}" method="post" enctype="multipart/form-data" class="marg_top20">
<div class="form-group normal_space fr">
<input type="submit" class="submit" value="查询">
</div>
<div class="form-group normal_space fr">
<input name="server_name" class="txt normal_txt" placeholder="区服名称" style="min-width:200px;width: 175px;" value="{$Think.request.server_name}">
</div>
<div class="form-group normal_space fr">
<input name="game_name" class="txt normal_txt" placeholder="游戏名称" style="min-width:200px;width: 175px;" value="{$Think.request.game_name}">
</div>
</form>
</div>
<div class="trunk-list">
<div class="tabulation">
<table class="table normal_table">
<tr class="odd">
<th>游戏名称</th>
<th>游戏平台</th>
<th>游戏类型</th>
<th>开服时间</th>
<th>区服名称</th>
<th>操作</th>
</tr>
<empty name="data">
<tr><td colspan="5" style="text-align: center;height: 45vh;"><img src="__IMG__/20180207/icon_wushujv2.png"/><p style="line-height: 40px;color: #A5A5A5;">暂无数据</p></td></tr>
<else />
<volist name="data" id="vo">
<trid id ="{$vo['id']}">
<tr id ="{$vo['id']}">
<td>{:get_site_game_name($vo['game_id'])}</td>
<td><eq name="vo.server_version" value="1">安卓<else/>苹果</eq></td>
<td>{:get_game_type($vo['game_id'])}</td>
<td>{$vo.start_time|time_format}</td>
<td>{$vo.server_name}</td>
<td class="op">
<if condition="$vo['server_type'] eq 1">
<!-- 编辑 | 删除 -->
<else />
<a class="edit" href="{:U('edit',['id'=>$vo['id']])}"><!--<img src="__IMG__/20170831/icon_edit.png">-->编辑</a>
<a class="del_game" href="javascript:;" data-id ="{$vo['id']}"><!--<img src="__IMG__/20170831/icon_del.png">-->删除</a>
</if>
</td>
</tr>
</volist>
</empty>
</table>
</div>
<div class="pagenation clearfix">
<a class="sch-btn" id="export_data" href="{:U('Export/siteserver',array(
'game_name'=>I('game_name'),
'server_name'=>I('server_name'),
'xlsname'=>'联盟站点_区服列表'
))}" >导出</a>
{$_page}
</div>
</div>
</div>
</div>
</block>
<block name="script">
<script type="text/javascript">
setValue('row','{:I("get.row",10)}');
//删除操作
$('.del_game').click(function(){
var val = $(this).attr("data-id");
var url = "{:U('del')}";
del_action(val,url);
});
</script>
</block>