Files
wnmj/GonghuiWeb/www/m_c/%%2A^2A1^2A117EAC%%song.tpl.php

241 lines
12 KiB
PHP
Raw Normal View History

2026-02-24 09:25:17 +08:00
<?php /* Smarty version 2.6.26, created on 2018-04-22 14:34:48
compiled from dh/song.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'in_array', 'dh/song.tpl', 19, false),array('modifier', 'count', 'dh/song.tpl', 34, false),array('modifier', 'default', 'dh/song.tpl', 43, false),array('modifier', 'replace', 'dh/song.tpl', 112, false),array('function', 'gradetit', 'dh/song.tpl', 44, false),)), $this); ?>
<?php if ($this->_tpl_vars['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<?php echo $this->_tpl_vars['hdid']; ?>
.jpg"></div>
<div class="dh_left">
<div class="pf-left">
<div class="dh_left_nr xlh-25">
ע<EFBFBD><EFBFBD>ţţ<EFBFBD>ľ<EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD>֡<EFBFBD>ʮ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD>,ը<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><br>
</div>
<?php $_from = $this->_tpl_vars['huodong']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
foreach ($_from as $this->_tpl_vars['ka'] => $this->_tpl_vars['va']):
?>
<div class="dh_left_nr xlh-25" style="border-top:1px #ccc solid;padding-top:5px;">
<a href="javascript:;" onclick="aaload(<?php echo $this->_tpl_vars['va']['Hdid']; ?>
);"><font class="<?php if ($this->_tpl_vars['va']['Hdid'] == $this->_tpl_vars['hdid']): ?>xc-red<?php else: ?>xc-ccc<?php endif; ?>"><?php echo $this->_tpl_vars['va']['Htitle']; ?>
<br><?php echo $this->_tpl_vars['va']['Hshow']; ?>
</font></a>
</div>
<?php endforeach; endif; unset($_from); ?>
<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;">
<?php if (((is_array($_tmp=$this->_tpl_vars['time'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['hdy_arr']) : in_array($_tmp, $this->_tpl_vars['hdy_arr']))): ?>
<font color=green>
<?php if ($this->_tpl_vars['xcz'] > 800): ?>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ô󽱣<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD><font color=red><?php echo $this->_tpl_vars['xcz']; ?>
</font><EFBFBD>֣<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ͱɣ<EFBFBD><br>
<?php elseif ($this->_tpl_vars['xcz']): ?>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD>ֻ<EFBFBD><EFBFBD><font color=red><?php echo $this->_tpl_vars['xcz']; ?>
</font><EFBFBD>֣<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͣ<EFBFBD><EFBFBD><EFBFBD><br>
<?php else: ?>
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD>󽱾<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><br>
<?php endif; ?></font>
<?php else: ?>
<EFBFBD>ۼ<EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>һ<EFBFBD><EFBFBD><EFBFBD>ɻ<EFBFBD><?php echo $this->_tpl_vars['jpin'][0]; ?>
<EFBFBD><EFBFBD><br>
<?php endif; ?>
<span id="timeTXT<?php echo $this->_tpl_vars['hdid']; ?>
"></span><br>
</div>
<table width="100%">
<?php $this->assign('jpzs', count($this->_tpl_vars['jpin'])); ?>
<?php unset($this->_sections['loop']);
$this->_sections['loop']['name'] = 'loop';
$this->_sections['loop']['loop'] = is_array($_loop=$this->_tpl_vars['data']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['loop']['show'] = true;
$this->_sections['loop']['max'] = $this->_sections['loop']['loop'];
$this->_sections['loop']['step'] = 1;
$this->_sections['loop']['start'] = $this->_sections['loop']['step'] > 0 ? 0 : $this->_sections['loop']['loop']-1;
if ($this->_sections['loop']['show']) {
$this->_sections['loop']['total'] = $this->_sections['loop']['loop'];
if ($this->_sections['loop']['total'] == 0)
$this->_sections['loop']['show'] = false;
} else
$this->_sections['loop']['total'] = 0;
if ($this->_sections['loop']['show']):
for ($this->_sections['loop']['index'] = $this->_sections['loop']['start'], $this->_sections['loop']['iteration'] = 1;
$this->_sections['loop']['iteration'] <= $this->_sections['loop']['total'];
$this->_sections['loop']['index'] += $this->_sections['loop']['step'], $this->_sections['loop']['iteration']++):
$this->_sections['loop']['rownum'] = $this->_sections['loop']['iteration'];
$this->_sections['loop']['index_prev'] = $this->_sections['loop']['index'] - $this->_sections['loop']['step'];
$this->_sections['loop']['index_next'] = $this->_sections['loop']['index'] + $this->_sections['loop']['step'];
$this->_sections['loop']['first'] = ($this->_sections['loop']['iteration'] == 1);
$this->_sections['loop']['last'] = ($this->_sections['loop']['iteration'] == $this->_sections['loop']['total']);
?>
<?php $this->assign('t', $this->_sections['loop']['index']); ?>
<?php $this->assign('i', $this->_sections['loop']['rownum']); ?>
<?php if ($this->_sections['loop']['rownum'] <= $this->_tpl_vars['jpzs']): ?>
<tr <?php if ($this->_tpl_vars['data'][$this->_sections['loop']['index']]['UserID'] == $this->_tpl_vars['userinfo']['UserID']): ?>class="hy_bj"<?php elseif ($this->_tpl_vars['i']%2 == 1): ?>class="xb-ef"<?php endif; ?>>
<td class="hy_pm" <?php if ($this->_sections['loop']['rownum'] == 1): ?> style="color:red;font-weight:bolder;"
<?php elseif ($this->_sections['loop']['rownum'] < 4): ?> style="color:#ff9900;font-weight:bolder;"
<?php endif; ?>><?php echo $this->_sections['loop']['rownum']; ?>
</td>
<td width="30" class="hy_img"><img src="<?php echo ((is_array($_tmp=@$this->_tpl_vars['data'][$this->_sections['loop']['index']]['HeadHttp'])) ? $this->_run_mod_handler('default', true, $_tmp, "/m/img/toux.jpg") : smarty_modifier_default($_tmp, "/m/img/toux.jpg")); ?>
"></td>
<td><div class="gh-name"><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['NickName']; ?>
<br><font color=#ccc><?php echo gradetit(array('GradeArr' => $this->_tpl_vars['GradeArr'],'gjf' => $this->_tpl_vars['data'][$this->_sections['loop']['index']]['Grade']), $this);?>
</div></td>
<?php if ($this->_sections['loop']['rownum'] == 1): ?>
<td align=center class="hy_img"><img src="/m/img/hd/jp<?php echo $this->_tpl_vars['hdid']; ?>
.jpg"></td>
<td align=right><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['Pm']; ?>
<EFBFBD><EFBFBD><br><font color="red"><?php echo $this->_tpl_vars['jpin'][$this->_tpl_vars['t']]; ?>
</font></td>
<?php else: ?>
<?php if ($this->_tpl_vars['time'] > $this->_tpl_vars['sjjs'] && $this->_tpl_vars['data'][$this->_sections['loop']['index']]['UserID'] == $this->_tpl_vars['userinfo']['UserID']): ?>
<td align=center class="hy_img" onclick="ling(<?php echo $this->_tpl_vars['userinfo']['GameID']; ?>
,<?php echo $this->_tpl_vars['hdid']; ?>
)";><3E><>ȡ</a></td>
<?php endif; ?>
<td align=right colspan=2><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['Pm']; ?>
<EFBFBD><EFBFBD><br><font color="#ccc">+<?php echo $this->_tpl_vars['jpin'][$this->_tpl_vars['t']]; ?>
Ԫ<EFBFBD><EFBFBD></font></td>
<?php endif; ?>
</tr>
<?php endif; ?>
<?php endfor; endif; ?>
</table>
<div style="margin-top:80px;"></div>
</div>
<div class="clear"></div>
<?php else: ?>
<div class="dh_left">
<div class="pf-left">
<div class="dh_left_nr xc-ah">
<dl style="color:#999;"><dt><EFBFBD>ȼ<EFBFBD></dt><dd><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ</dd></dl>
<?php unset($this->_sections['loop']);
$this->_sections['loop']['name'] = 'loop';
$this->_sections['loop']['loop'] = is_array($_loop=$this->_tpl_vars['GradeArr']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['loop']['show'] = true;
$this->_sections['loop']['max'] = $this->_sections['loop']['loop'];
$this->_sections['loop']['step'] = 1;
$this->_sections['loop']['start'] = $this->_sections['loop']['step'] > 0 ? 0 : $this->_sections['loop']['loop']-1;
if ($this->_sections['loop']['show']) {
$this->_sections['loop']['total'] = $this->_sections['loop']['loop'];
if ($this->_sections['loop']['total'] == 0)
$this->_sections['loop']['show'] = false;
} else
$this->_sections['loop']['total'] = 0;
if ($this->_sections['loop']['show']):
for ($this->_sections['loop']['index'] = $this->_sections['loop']['start'], $this->_sections['loop']['iteration'] = 1;
$this->_sections['loop']['iteration'] <= $this->_sections['loop']['total'];
$this->_sections['loop']['index'] += $this->_sections['loop']['step'], $this->_sections['loop']['iteration']++):
$this->_sections['loop']['rownum'] = $this->_sections['loop']['iteration'];
$this->_sections['loop']['index_prev'] = $this->_sections['loop']['index'] - $this->_sections['loop']['step'];
$this->_sections['loop']['index_next'] = $this->_sections['loop']['index'] + $this->_sections['loop']['step'];
$this->_sections['loop']['first'] = ($this->_sections['loop']['iteration'] == 1);
$this->_sections['loop']['last'] = ($this->_sections['loop']['iteration'] == $this->_sections['loop']['total']);
?>
<dl <?php if ($this->_tpl_vars['userinfo']['Grade'] >= $this->_tpl_vars['GradeArr'][$this->_sections['loop']['index']]['min'] && $this->_tpl_vars['userinfo']['Grade'] <= $this->_tpl_vars['GradeArr'][$this->_sections['loop']['index']]['max']): ?>style="color:red;"<?php endif; ?>><dt><?php echo $this->_tpl_vars['GradeArr'][$this->_sections['loop']['index']]['title']; ?>
</dt><dd><?php echo $this->_tpl_vars['GradeArr'][$this->_sections['loop']['index']]['min']; ?>
~<?php echo $this->_tpl_vars['GradeArr'][$this->_sections['loop']['index']]['max']; ?>
</dd></dl>
<?php endfor; endif; ?>
</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;"><EFBFBD><EFBFBD>iPad<EFBFBD>?<br><EFBFBD><EFBFBD><EFBFBD>ľ<EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><?php echo $this->_tpl_vars['userinfo']['Grade']; ?>
/200 <br><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϸ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ɣ<EFBFBD></div>
</div>
<?php endif; ?>
<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:"<EFBFBD><EFBFBD>ȡ"+ret.yuanbao+"<EFBFBD><EFBFBD>Ԫ<EFBFBD><EFBFBD>",style: 'width:180px;',btn: '<27><>֪<EFBFBD><D6AA><EFBFBD><EFBFBD>'});
}else{
layer.open({content:"û<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD>¼<EFBFBD><EFBFBD>",style: 'width:180px;',btn: '<27><>֪<EFBFBD><D6AA><EFBFBD><EFBFBD>'});
}
}, "json").error(function(){
layer.open({content: 'ϵͳά<CDB3><CEAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ժ<EFBFBD><D4BA><EFBFBD>',style: 'width:180px;',btn: '<27><>֪<EFBFBD><D6AA><EFBFBD><EFBFBD>'});
});
}
setInterval(function(){
var StaTime= new Date('<?php echo ((is_array($_tmp=$this->_tpl_vars['sjks'])) ? $this->_run_mod_handler('replace', true, $_tmp, "-", "/") : smarty_modifier_replace($_tmp, "-", "/")); ?>
/01 00:00:00');//<2F><>ʼʱ<CABC><CAB1>
var EndTime= new Date('<?php echo ((is_array($_tmp=$this->_tpl_vars['sjjs'])) ? $this->_run_mod_handler('replace', true, $_tmp, "-", "/") : smarty_modifier_replace($_tmp, "-", "/")); ?>
/30 23:59:59');//<2F><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1>
var NowTime = new Date();//<2F><>ǰʱ<C7B0><CAB1>
var d=0;
var h=0;
var m=0;
var s=0;
if(StaTime > NowTime){//<2F><><EFBFBD><EFBFBD>ʱ
var t = StaTime.getTime() - NowTime.getTime();
var html = "<font class='xc-999'><3E><EFBFBD><EEB6AF>ʼ<EFBFBD><CABC><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1></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'><3E><></font>";
}
if(h > 0){
html += h+"<font class='xc-999'>Сʱ</font>";
}
if(m > 0){
html += m+"<font class='xc-999'><3E><></font>";
}
html += s+"<font class='xc-999'><3E><></font>";
}else{//<2F><>ʼ<EFBFBD><CABC>ʱ
var t = EndTime.getTime() - NowTime.getTime();
if(t > 0){
var html = "<font class='xc-999'>ʣ<><CAA3>ʱ<EFBFBD>䣺</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'><3E><></font>";
}
if(h > 0){
html += h+"<font class='xc-999'>Сʱ</font>";
}
if(m > 0){
html += m+"<font class='xc-999'><3E><></font>";
}
html += s+"<font class='xc-999'><3E><></font>";
}else{
var html = "<font color=red><3E><><EFBFBD>λ<CEBB><EEB6AF><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ԫ<EFBFBD><D4AA><EFBFBD><EFBFBD><EFBFBD>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><C8A1></font>";
}
}
var box=document.getElementById("timeTXT<?php echo $this->_tpl_vars['hdid']; ?>
");
box.innerHTML = html;
},1000);
layer.closeAll();
</script>