Files
wnmj/GonghuiWeb/www/m/dh/song.tpl
2026-02-24 09:25:17 +08:00

163 lines
6.2 KiB
Smarty
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!--{if $userinfo.Grade >= 200}-->
<div class="imgs" style="position:fixed;bottom:0;left:0;width:100%;z-index:999;-webkit-overflow-scrolling: touch;"><img src="/m/img/hd/bar<!--{$hdid}-->.jpg"></div>
<div class="dh_left">
<div class="pf-left">
<div class="dh_left_nr xlh-25">
注:牛牛四局算一局。十三张三局算一局,炸金花三局算一局<br>
</div>
<!--{foreach from=$huodong key=ka item=va}-->
<div class="dh_left_nr xlh-25" style="border-top:1px #ccc solid;padding-top:5px;">
<a href="javascript:;" onclick="aaload(<!--{$va.Hdid}-->);"><font class="<!--{if $va.Hdid == $hdid}-->xc-red<!--{else}-->xc-ccc<!--{/if}-->"><!--{$va.Htitle}--><br><!--{$va.Hshow}--></font></a>
</div>
<!--{/foreach}-->
<div class="clear"></div>
<div style="margin-top:80px;"></div>
</div>
</div>
<div class="dh_right">
<div class="xlh-25 xfs-14" style="height:50px;">
<!--{if $time|in_array:$hdy_arr}-->
<font color=green>
<!--{if $xcz>800}-->
您想获得大奖,还需要打<font color=red><!--{$xcz}--></font>局,加油吧!<br>
<!--{elseif $xcz}-->
您离第一名只差<font color=red><!--{$xcz}--></font>局,继续加油!!<br>
<!--{else}-->
继续保持第一,大奖就是您的啦!!<br>
<!--{/if}--></font>
<!--{else}-->
累计游戏局数第一,可获<!--{$jpin[0]}--><br>
<!--{/if}-->
<span id="timeTXT<!--{$hdid}-->"></span><br>
</div>
<table width="100%">
<!--{assign var="jpzs" value=$jpin|@count}-->
<!--{section name=loop loop=$data}-->
<!--{assign var="t" value=$smarty.section.loop.index}-->
<!--{assign var="i" value=$smarty.section.loop.rownum}-->
<!--{if $smarty.section.loop.rownum <= $jpzs}-->
<tr <!--{if $data[loop].UserID == $userinfo.UserID}-->class="hy_bj"<!--{elseif $i%2==1}-->class="xb-ef"<!--{/if}-->>
<td class="hy_pm" <!--{if $smarty.section.loop.rownum == 1}--> style="color:red;font-weight:bolder;"
<!--{elseif $smarty.section.loop.rownum < 4}--> style="color:#ff9900;font-weight:bolder;"
<!--{/if}-->><!--{$smarty.section.loop.rownum}--></td>
<td width="30" class="hy_img"><img src="<!--{$data[loop].HeadHttp|default:"/m/img/toux.jpg"}-->"></td>
<td><div class="gh-name"><!--{$data[loop].NickName}--><br><font color=#ccc><!--{gradetit GradeArr=$GradeArr gjf=$data[loop].Grade}--></div></td>
<!--{if $smarty.section.loop.rownum == 1}-->
<td align=center class="hy_img"><img src="/m/img/hd/jp<!--{$hdid}-->.jpg"></td>
<td align=right><!--{$data[loop].Pm}--> 局<br><font color="red"><!--{$jpin[$t]}--> </font></td>
<!--{else}-->
<!--{if $time>$sjjs && $data[loop].UserID == $userinfo.UserID}-->
<td align=center class="hy_img" onclick="ling(<!--{$userinfo.GameID}-->,<!--{$hdid}-->)";>领取</a></td>
<!--{/if}-->
<td align=right colspan=2><!--{$data[loop].Pm}--> 局<br><font color="#ccc">+<!--{$jpin[$t]}--> 元宝</font></td>
<!--{/if}-->
</tr>
<!--{/if}-->
<!--{/section}-->
</table>
<div style="margin-top:80px;"></div>
</div>
<div class="clear"></div>
<!--{else}-->
<div class="dh_left">
<div class="pf-left">
<div class="dh_left_nr xc-ah">
<dl style="color:#999;"><dt>等级</dt><dd>经验值</dd></dl>
<!--{section name=loop loop=$GradeArr}-->
<dl <!--{if $userinfo.Grade>=$GradeArr[loop].min && $userinfo.Grade<=$GradeArr[loop].max}-->style="color:red;"<!--{/if}-->><dt><!--{$GradeArr[loop].title}--></dt><dd><!--{$GradeArr[loop].min}-->~<!--{$GradeArr[loop].max}--></dd></dl>
<!--{/section}-->
</div>
<div class="clear"></div>
<div class="xlh-25 xc-ah"><br></div>
</div>
</div>
<div class="dh_right">
<div style="margin-top:50px;text-align:center;font-size:20px;color:#999;line-height:40px;">送iPad活动?<br>您的经验值不够!<!--{$userinfo.Grade}-->/200 <br>请先玩游戏升级吧!</div>
</div>
<!--{/if}-->
<div class="clear"></div>
<script>
function aaload(hdid){
var w_width =$(window).width();
var w_height =$(window).height();
var left_height = w_height-25;
var right_width = w_width-120;
layer.open({type:2,shade:false});
$.get('/dh/index.php', {
ty : 'song',
md5 : md5,
hdid : hdid,
gameid : gid
}, function(data, status) {
$("#content").html(data);
$(".pf-left").height(left_height);
$(".gdinfo").width(right_width);
});
}
function ling(gid,hdid){
$.post("song.php",{gid:gid,hdid:hdid},function(ret){
if(ret.yuanbao){
var ybs = $("#yuanbao").text();
$("#yuanbao").text(parseInt(ybs)+parseInt(ret.yuanbao));
$(".anniu").hide();
layer.open({content:"领取"+ret.yuanbao+"个元宝",style: 'width:180px;',btn: '我知道了'});
}else{
layer.open({content:"没有领取记录!",style: 'width:180px;',btn: '我知道了'});
}
}, "json").error(function(){
layer.open({content: '系统维护,请稍后!',style: 'width:180px;',btn: '我知道了'});
});
}
setInterval(function(){
var StaTime= new Date('<!--{$sjks|replace:"-":"/"}-->/01 00:00:00');//
var EndTime= new Date('<!--{$sjjs|replace:"-":"/"}-->/30 23:59:59');//
var NowTime = new Date();//
var d=0;
var h=0;
var m=0;
var s=0;
if(StaTime > NowTime){//
var t = StaTime.getTime() - NowTime.getTime();
var html = "<font class='xc-999'>活动开始倒计时:</font>";
d=Math.floor(t/1000/60/60/24);
h=Math.floor(t/1000/60/60%24);
m=Math.floor(t/1000/60%60);
s=Math.floor(t/1000%60);
if(d > 0){
html += d+"<font class='xc-999'>天</font>";
}
if(h > 0){
html += h+"<font class='xc-999'>小时</font>";
}
if(m > 0){
html += m+"<font class='xc-999'>分</font>";
}
html += s+"<font class='xc-999'>秒</font>";
}else{//
var t = EndTime.getTime() - NowTime.getTime();
if(t > 0){
var html = "<font class='xc-999'>剩余时间:</font>";
d=Math.floor(t/1000/60/60/24);
h=Math.floor(t/1000/60/60%24);
m=Math.floor(t/1000/60%60);
s=Math.floor(t/1000%60);
if(d > 0){
html += d+"<font class='xc-999'>天</font>";
}
if(h > 0){
html += h+"<font class='xc-999'>小时</font>";
}
if(m > 0){
html += m+"<font class='xc-999'>分</font>";
}
html += s+"<font class='xc-999'>秒</font>";
}else{
var html = "<font color=red>本次活动结束啦!元宝请自己点击领取!</font>";
}
}
var box=document.getElementById("timeTXT<!--{$hdid}-->");
box.innerHTML = html;
},1000);
layer.closeAll();
</script>