194 lines
11 KiB
PHP
194 lines
11 KiB
PHP
<?php /* Smarty version 2.6.26, created on 2018-04-22 16:18:36
|
|
compiled from dh/hy.tpl */ ?>
|
|
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
|
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'dh/hy.tpl', 17, false),array('function', 'gradetit', 'dh/hy.tpl', 36, false),)), $this); ?>
|
|
<?php if ($this->_tpl_vars['userinfo']['Grade'] >= 10): ?>
|
|
<div class="dh_left">
|
|
<div class="pf-left">
|
|
<div class="dh_left_nr xc-ah">
|
|
<dl style="color:#999;"><dt>等级</dt><dd>经验值</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 class="gdinfo">
|
|
<div class="hy_gg" style="padding-top:5px;">
|
|
<dl><dt>好友排名:</dt><dd>第<?php echo ((is_array($_tmp=@$this->_tpl_vars['pm'])) ? $this->_run_mod_handler('default', true, $_tmp, 0) : smarty_modifier_default($_tmp, 0)); ?>
|
|
名</dd></dl>
|
|
<dl><dt>消费房卡:</dt><dd><?php echo ((is_array($_tmp=@$this->_tpl_vars['zkf'])) ? $this->_run_mod_handler('default', true, $_tmp, 0) : smarty_modifier_default($_tmp, 0)); ?>
|
|
张</dd></dl>
|
|
<dl><dt>三天积分:</dt><dd><?php if ($this->_tpl_vars['zzf'] > 0): ?><font color=red>+<?php else: ?><font color=green><?php endif; ?><?php echo ((is_array($_tmp=@$this->_tpl_vars['zzf'])) ? $this->_run_mod_handler('default', true, $_tmp, 0) : smarty_modifier_default($_tmp, 0)); ?>
|
|
分</font></dd></dl>
|
|
<dl><dt>三天游戏:</dt><dd><?php echo ((is_array($_tmp=@$this->_tpl_vars['zhit'])) ? $this->_run_mod_handler('default', true, $_tmp, 0) : smarty_modifier_default($_tmp, 0)); ?>
|
|
局</dd></dl>
|
|
<div class="clear"></div>
|
|
</div>
|
|
</div>
|
|
<div class="hy_info" style="margin-top:50px;">
|
|
<?php unset($this->_sections['loop']);
|
|
$this->_sections['loop']['name'] = 'loop';
|
|
$this->_sections['loop']['loop'] = is_array($_loop=$this->_tpl_vars['uses']) ? 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']);
|
|
?>
|
|
<div class="hy_nr <?php if ($this->_tpl_vars['uses'][$this->_sections['loop']['index']]['GameID'] == $this->_tpl_vars['userinfo']['GameID']): ?>hy_bj<?php endif; ?>">
|
|
<div class="xfl 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']; ?>
|
|
</div>
|
|
<div class="xfl hy_img"><img src="<?php echo ((is_array($_tmp=@$this->_tpl_vars['uses'][$this->_sections['loop']['index']]['HeadHttp'])) ? $this->_run_mod_handler('default', true, $_tmp, "/m/img/toux.jpg") : smarty_modifier_default($_tmp, "/m/img/toux.jpg")); ?>
|
|
"></div>
|
|
<div class="xfl hy_names"><?php echo $this->_tpl_vars['uses'][$this->_sections['loop']['index']]['NickName']; ?>
|
|
<br>
|
|
<a href="javascript:;" onclick="hylook(<?php echo $this->_tpl_vars['uses'][$this->_sections['loop']['index']]['GameID']; ?>
|
|
,'');"><span style="color:#999">30天积分</span></a>
|
|
<a href="javascript:;" onclick="hylook(<?php echo $this->_tpl_vars['uses'][$this->_sections['loop']['index']]['GameID']; ?>
|
|
,'month');"><span style="color:#999">全部积分</span></a></div>
|
|
<div class="xfr hy_grade">
|
|
<font color=#ccc><?php echo $this->_tpl_vars['uses'][$this->_sections['loop']['index']]['Grade']; ?>
|
|
</font> <?php echo gradetit(array('GradeArr' => $this->_tpl_vars['GradeArr'],'gjf' => $this->_tpl_vars['uses'][$this->_sections['loop']['index']]['Grade']), $this);?>
|
|
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|
|
<?php endfor; else: ?>
|
|
<div style="color:#ccc;text-align:center;line-height:50px;">暂无游戏记录,邀请好友战一局吧!</div>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
<?php 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>
|
|
<?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:30px;text-align:center;font-size:20px;color:#999;line-height:40px;">查看好友排名?<br>您的经验值不够!<?php echo $this->_tpl_vars['userinfo']['Grade']; ?>
|
|
/10 <br>请先玩游戏升级吧!</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
<div class="clear"></div>
|
|
<script>
|
|
layer.closeAll();
|
|
function hylook(gids,cs){
|
|
if(cs){
|
|
if(<?php echo $this->_tpl_vars['userinfo']['Grade']; ?>
|
|
>15000 && gid==gids){
|
|
var xyyb = 0;
|
|
var contt = "雀仙等级以上可以<br><font color=red>免费查看</font>全部积分记录";
|
|
}else{
|
|
var xyyb = 3000;
|
|
var contt = "查看全部积分记录<br>需要扣除3000个元宝<br><font color=#ccc>雀仙等级可免费查看自己</font>";
|
|
}
|
|
}else{
|
|
if(<?php echo $this->_tpl_vars['userinfo']['Grade']; ?>
|
|
>6000 && gid==gids){
|
|
var xyyb = 0;
|
|
var contt = "雀王等级以上可以<br><font color=red>免费查看</font>自己30天积分";
|
|
}else{
|
|
var xyyb = 1000;
|
|
var contt = "查看30天积分记录<br>需要扣除1000个元宝<br><font color=#ccc>雀王等级可免费查看自己</font>";
|
|
}
|
|
}
|
|
layer.open({content: contt,style: 'width:200px;',btn: ['确定查看', '取消'],yes: function(index){
|
|
var ybs = $("#yuanbao").text();
|
|
if(ybs >= xyyb){
|
|
$.get('/dh/index.php', {
|
|
ty : 'jf',
|
|
md5 : md5,
|
|
look : cs,
|
|
gameid : gid,
|
|
gid : gids
|
|
}, function(data, status) {
|
|
$("#yuanbao").text(parseInt(ybs)-parseInt(xyyb));
|
|
$("#content").html(data);
|
|
});
|
|
}else{
|
|
layer.open({content: '您的元宝不够!',style: 'width:180px;',btn: '我知道了'});
|
|
}
|
|
}});
|
|
}
|
|
</script>
|