187 lines
12 KiB
PHP
187 lines
12 KiB
PHP
<?php /* Smarty version 2.6.26, created on 2018-04-28 20:22:08
|
|
compiled from gong/my.tpl */ ?>
|
|
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
|
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'gong/my.tpl', 41, false),)), $this); ?>
|
|
<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="xlh-30 xfs-14" style="width:100%;">
|
|
<?php if ($this->_tpl_vars['GG']['idd'] == 'undefined'): ?><font color=red><?php else: ?><a href="javascript:;" onclick="loadnr('my')"><?php endif; ?>30天数据</font></a>
|
|
|
|
|
<?php if ($this->_tpl_vars['GG']['idd'] == 'month'): ?><font color=red><?php else: ?><a href="javascript:;" onclick="loadnr('my','month')"><?php endif; ?>月数据</font></a>
|
|
|
|
|
<?php if ($this->_tpl_vars['GG']['idd'] == 'gold'): ?><font color=red><?php else: ?><a href="javascript:;" onclick="loadnr('my','gold')"><?php endif; ?>欢乐分</font></a>
|
|
<?php $this->assign('grade', $this->_tpl_vars['userinfo']['Grade']); ?>
|
|
<span id="tit-jf"></span>
|
|
</div>
|
|
</div>
|
|
<div class="clear"></div>
|
|
<div style="margin-top:20px;">
|
|
<table width="100%">
|
|
<?php if ($this->_tpl_vars['GG']['idd'] == 'gold'): ?>
|
|
<tr class="xlh-30">
|
|
<td align="center" class="xb-ef">公会</td>
|
|
<td align="center" class="xb-ef">欢乐分</td>
|
|
<td align="center" class="xb-ef">操作后</td>
|
|
<td align="center" width="135" class="xb-ef">时间</td>
|
|
</tr>
|
|
<?php unset($this->_sections['loop']);
|
|
$this->_sections['loop']['name'] = 'loop';
|
|
$this->_sections['loop']['loop'] = is_array($_loop=$this->_tpl_vars['gold']) ? 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('i', $this->_sections['loop']['rownum']); ?>
|
|
<tr class="xlh-25 <?php if ($this->_tpl_vars['i']%2 == 0): ?> xb-ef<?php endif; ?>">
|
|
<td> <?php echo $this->_tpl_vars['gold'][$this->_sections['loop']['index']]['UnionName']; ?>
|
|
</td>
|
|
<td align="right"><?php if ($this->_tpl_vars['gold'][$this->_sections['loop']['index']]['UnionGold'] > 0): ?><font color=red><?php else: ?><font color=green><?php endif; ?><?php echo $this->_tpl_vars['gold'][$this->_sections['loop']['index']]['UnionGold']; ?>
|
|
</font> </td>
|
|
<td align="right"><?php echo $this->_tpl_vars['gold'][$this->_sections['loop']['index']]['UnionGoldAfter']; ?>
|
|
</td>
|
|
<td align="center"><?php echo ((is_array($_tmp=$this->_tpl_vars['gold'][$this->_sections['loop']['index']]['Date'])) ? $this->_run_mod_handler('date_format', true, $_tmp, "%Y-%m-%d %H:%M:%S") : smarty_modifier_date_format($_tmp, "%Y-%m-%d %H:%M:%S")); ?>
|
|
</td>
|
|
</tr>
|
|
<?php endfor; endif; ?>
|
|
<?php else: ?>
|
|
<tr class="xlh-30">
|
|
<td align="center" class="xb-ef">日期</td>
|
|
<td align="center" class="xb-ef">积分</td>
|
|
<td align="center" class="xb-ef">欢乐分</td>
|
|
<td align="center" class="xb-ef">游戏局数</td>
|
|
</tr>
|
|
<?php $this->assign('zjf', 0); ?>
|
|
<?php unset($this->_sections['loop']);
|
|
$this->_sections['loop']['name'] = 'loop';
|
|
$this->_sections['loop']['loop'] = is_array($_loop=$this->_tpl_vars['log']) ? 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('i', $this->_sections['loop']['rownum']); ?>
|
|
<tr class="xlh-25 <?php if ($this->_tpl_vars['i']%2 == 0): ?> xb-ef<?php endif; ?>">
|
|
<td> <?php if ($this->_tpl_vars['GG']['idd'] == 'month'): ?><?php echo $this->_tpl_vars['log'][$this->_sections['loop']['index']]['Month']; ?>
|
|
<?php else: ?><?php echo $this->_tpl_vars['log'][$this->_sections['loop']['index']]['Days']; ?>
|
|
<?php endif; ?></td>
|
|
<?php if ($this->_tpl_vars['GG']['idd'] == 'month' && $this->_tpl_vars['grade'] < 14999 && $this->_tpl_vars['i'] < 3): ?>
|
|
<td align=right class="xc-999">雀仙可见 </td>
|
|
<td align="right" class="xc-999">雀仙可见 </td>
|
|
<?php elseif ($this->_tpl_vars['GG']['idd'] == 'month' && $this->_tpl_vars['grade'] < 29999 && $this->_tpl_vars['i'] > 2): ?>
|
|
<td align=right class="xc-999">雀神可见 </td>
|
|
<td align="right" class="xc-999">雀神可见 </td>
|
|
<?php elseif ($this->_tpl_vars['grade'] < 5999 && $this->_tpl_vars['i'] > 15): ?>
|
|
<td align=right class="xc-999">雀王可见 </td>
|
|
<td align="right" class="xc-999">雀王可见 </td>
|
|
<?php elseif ($this->_tpl_vars['grade'] < 3999 && $this->_tpl_vars['i'] > 10): ?>
|
|
<td align=right class="xc-999">金雀可见 </td>
|
|
<td align="right" class="xc-999">金雀可见 </td>
|
|
<?php elseif ($this->_tpl_vars['grade'] < 1999 && $this->_tpl_vars['i'] > 6): ?>
|
|
<td align=right class="xc-999">银雀可见 </td>
|
|
<td align="right" class="xc-999">银雀可见 </td>
|
|
<?php elseif ($this->_tpl_vars['grade'] < 999 && $this->_tpl_vars['i'] > 4): ?>
|
|
<td align=right class="xc-999">铜雀可见 </td>
|
|
<td align="right" class="xc-999">铜雀可见 </td>
|
|
<?php elseif ($this->_tpl_vars['grade'] < 499 && $this->_tpl_vars['i'] > 2): ?>
|
|
<td align=right class="xc-999">雀头可见 </td>
|
|
<td align="right" class="xc-999">雀头可见 </td>
|
|
<?php elseif ($this->_tpl_vars['grade'] < 199): ?>
|
|
<td align=right class="xc-999">雀仔可见 </td>
|
|
<td align="right" class="xc-999">雀仔可见 </td>
|
|
<?php else: ?>
|
|
<?php $this->assign('zjf', $this->_tpl_vars['zjf']+$this->_tpl_vars['log'][$this->_sections['loop']['index']]['Jf']); ?>
|
|
<td align=right><?php if ($this->_tpl_vars['log'][$this->_sections['loop']['index']]['Jf'] > 0): ?><font color=red><?php else: ?><font color=green><?php endif; ?><?php echo $this->_tpl_vars['log'][$this->_sections['loop']['index']]['Jf']; ?>
|
|
</font> </td>
|
|
<td align="right"><?php if ($this->_tpl_vars['log'][$this->_sections['loop']['index']]['Gold'] > 0): ?><font color=red><?php else: ?><font color=green><?php endif; ?><?php echo $this->_tpl_vars['log'][$this->_sections['loop']['index']]['Gold']; ?>
|
|
</font> </td>
|
|
<?php endif; ?>
|
|
<td align="right"><?php echo $this->_tpl_vars['log'][$this->_sections['loop']['index']]['Hit']; ?>
|
|
</td>
|
|
</tr>
|
|
<?php endfor; endif; ?>
|
|
<?php endif; ?>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="clear"></div>
|
|
<script>
|
|
//var zjfs = <?php echo $this->_tpl_vars['zjf']; ?>
|
|
;
|
|
//if(zjfs > 0){
|
|
// $("#tit-jf").html("<font color=red>"+zjfs+"</font><span class=xc-999>分</span>");
|
|
//}else{
|
|
//$("#tit-jf").html("<font color=green>负分</font>");
|
|
//}
|
|
layer.closeAll();
|
|
</script>
|