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.

56 lines
2.0 KiB
HTML

5 years ago
<extend name="Public/base" />
<block name="body" >
<div class="main_sub wrap_w">
<div class="crumbs"><em>当前位置:</em><a href="{:U('Game/gift_list')}">独家礼包</a></div>
<div class="gameclass">
<h2 class="titi">礼包<span>分类</span></h2>
<ul class="gameclasslist">
<li><span>热门游戏</span>
<p>
<a href="{:U('Game/gift_list')}" class="<if condition='$game_id == 0 '>curr</if>">不限</a>
<foreach name="gift_list" item="gl" >
<a href="{:U('Game/gift_list?game_id='.$gl['game_id'].'')}" class="<if condition='$game_id == $gl[game_id]'>curr</if>">
{$gl.game_name}
</a>
</foreach>
</p>
</li>
</ul>
</div>
<div id="giftlist">
<ul class="clearfix">
<volist name="list_data" id="vo">
<li>
<div class="l">
<a href="{:U('Game/game_detail?id='.$vo['game_id'].'')}">
<img src="__ROOT__{$vo.icon|get_cover='path'}">
</a>
</div>
<div class="r">
<h3>{$vo.giftbag_name}-<?php echo preg_replace('/(\(.+)/i','',$vo['game_name']);?></h3>
<p class="ct">
{$vo.desribe}
</p>
<p class="cm">
<if condition="$vo['end_time']-time() gt 0">
剩余有效期:{:ceil(($vo['end_time']-time())/86400);}天
<else/>
剩余有效期0天
</if>
</p>
<div class="bn">
<a onclick="XGUC.get_game_gift({$vo.id}, &#39;{$vo.giftbag_name}&#39;)" target="_blank">
领取礼包
</a>
</div>
</div>
</li>
</volist>
</ul>
</div>
<div class="page">
{$_page|default=''}
</div>
</div>
</block>