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.

52 lines
1.8 KiB
HTML

5 years ago
<extend name="Public/bases"/>
<block name="body">
<!--列表 start-->
<div class="pane indexser">
<h3>开服列表</h3>
<table cellpadding="0" cellspacing="0">
<thead>
<th>游戏图标</th>
<th>游戏名称</th>
<th>类型</th>
<th>开服时间</th>
<th>服务器</th>
<th>礼包</th>
<th>游戏下载</th>
</thead>
<tbody>
<volist name="server" id="vo">
<tr>
<td><img src="{:get_site_game_icon($vo['site_game_id'],'path')}"/></td>
<td>{:get_site_game_name($vo['site_game_id'])}</td>
<td>{:get_game_type($vo['site_game_id'])}</td>
<td>{$vo.start_time|time_format}</td>
<td>{$vo.server_name}</td>
<td><a href="{:U('Gift/index',['id'=>$vo['site_game_id']])}" class="indexgift">礼包</a></td>
<if condition="$vo['site_game_id'] eq $vo['game_id'] ">
<td><a href="{$vo['game_dow_url']}" class="indexdown" target="_blank">下载</a></td>
<else/>
<td><a href="{:U('Down/down_file',['game_id'=>$vo['game_id'],'promote_id'=>PID])}" class="indexdown" target="_blank">下载</a></td>
</if>
</tr>
</volist>
</tbody>
</table>
<div class="index_page">
{$_page}
</div>
</block>
<block name="script">
<script>
$('.indexdown').click(function(e){
e.preventDefault()
if($(this).attr('href') ==''){
layer.msg('暂无下载内容')
}else{
window.open($(this).attr('href'));
}
});
</script>
</block>