166 lines
9.3 KiB
PHP
166 lines
9.3 KiB
PHP
|
|
<?php /* Smarty version 2.6.26, created on 2018-06-26 15:03:52
|
|||
|
|
compiled from dh/day.tpl */ ?>
|
|||
|
|
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
|||
|
|
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'dh/day.tpl', 40, false),)), $this); ?>
|
|||
|
|
<?php if ($this->_tpl_vars['userinfo']['Grade'] >= 50): ?>
|
|||
|
|
<div class="xlh-25">
|
|||
|
|
<span class="xfr">
|
|||
|
|
<?php $_from = $this->_tpl_vars['month']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|||
|
|
foreach ($_from as $this->_tpl_vars['ka'] => $this->_tpl_vars['va']):
|
|||
|
|
?>
|
|||
|
|
<?php if ($this->_tpl_vars['va'] == $this->_tpl_vars['time']): ?>
|
|||
|
|
<font color=red>
|
|||
|
|
<?php else: ?>
|
|||
|
|
<a href="javascript:;" onclick="daypm('<?php echo $this->_tpl_vars['va']; ?>
|
|||
|
|
','')">
|
|||
|
|
<?php endif; ?><?php echo $this->_tpl_vars['va']; ?>
|
|||
|
|
</font></a>
|
|||
|
|
<?php endforeach; endif; unset($_from); ?>
|
|||
|
|
</span>
|
|||
|
|
<?php $_from = $this->_tpl_vars['day']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
|||
|
|
foreach ($_from as $this->_tpl_vars['ka'] => $this->_tpl_vars['va']):
|
|||
|
|
?>
|
|||
|
|
<?php if ($this->_tpl_vars['va'] == $this->_tpl_vars['time']): ?>
|
|||
|
|
<font color=red>
|
|||
|
|
<?php else: ?>
|
|||
|
|
<a href="javascript:;" onclick="daypm('<?php echo $this->_tpl_vars['va']; ?>
|
|||
|
|
','')">
|
|||
|
|
<?php endif; ?><?php echo $this->_tpl_vars['va']; ?>
|
|||
|
|
</font></a>
|
|||
|
|
<?php endforeach; endif; unset($_from); ?>
|
|||
|
|
</div>
|
|||
|
|
<table width="100%">
|
|||
|
|
<tr class="xlh-25">
|
|||
|
|
<td align="center" class="xb-ef"><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
|||
|
|
<td align="center" colspan=2 class="xb-ef" onclick="daypm('<?php echo $this->_tpl_vars['time']; ?>
|
|||
|
|
','')"><3E><>Ա</td>
|
|||
|
|
<td align="center" class="xb-ef"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><?php if (! $this->_tpl_vars['GG']['sort']): ?><EFBFBD><EFBFBD><?php endif; ?></td>
|
|||
|
|
<td align="center" class="xb-ef"><EFBFBD>齫<?php if ($this->_tpl_vars['GG']['sort'] == 'mj'): ?><EFBFBD><EFBFBD><?php endif; ?></td>
|
|||
|
|
<td align="center" class="xb-ef"><EFBFBD><EFBFBD>ը<?php if ($this->_tpl_vars['GG']['sort'] == 'dz'): ?><EFBFBD><EFBFBD><?php endif; ?></td>
|
|||
|
|
<td align="center" class="xb-ef"><EFBFBD>ܵÿ<EFBFBD><?php if ($this->_tpl_vars['GG']['sort'] == 'pdk'): ?><EFBFBD><EFBFBD><?php endif; ?></td>
|
|||
|
|
<td align="center" class="xb-ef">ţţ<?php if ($this->_tpl_vars['GG']['sort'] == 'nn'): ?><EFBFBD><EFBFBD><?php endif; ?></td>
|
|||
|
|
<td align="center" class="xb-ef"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><?php if ($this->_tpl_vars['GG']['sort'] == 'ddz'): ?><EFBFBD><EFBFBD><?php endif; ?></td>
|
|||
|
|
<td align="center" class="xb-ef">ʮ<EFBFBD><EFBFBD><?php if ($this->_tpl_vars['GG']['sort'] == 'ss'): ?><EFBFBD><EFBFBD><?php endif; ?></td>
|
|||
|
|
<td align="center" class="xb-ef">ը<EFBFBD><EFBFBD><?php if ($this->_tpl_vars['GG']['sort'] == 'zjh'): ?><EFBFBD><EFBFBD><?php endif; ?></td>
|
|||
|
|
</tr>
|
|||
|
|
<?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('i', $this->_sections['loop']['rownum']); ?>
|
|||
|
|
<?php if ($this->_sections['loop']['rownum'] <= 30): ?>
|
|||
|
|
<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']; ?>
|
|||
|
|
</div></td>
|
|||
|
|
<td align=right><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['Pm']; ?>
|
|||
|
|
</td>
|
|||
|
|
<td align=right><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['Mj']; ?>
|
|||
|
|
</td>
|
|||
|
|
<td align=right><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['Dz']; ?>
|
|||
|
|
</td>
|
|||
|
|
<td align=right><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['Pdk']; ?>
|
|||
|
|
</td>
|
|||
|
|
<td align=right><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['Niu']; ?>
|
|||
|
|
</td>
|
|||
|
|
<td align=right><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['Ddz']; ?>
|
|||
|
|
</td>
|
|||
|
|
<td align=right><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['Ss']; ?>
|
|||
|
|
</td>
|
|||
|
|
<td align=right><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['Zjh']; ?>
|
|||
|
|
</td>
|
|||
|
|
</tr>
|
|||
|
|
<?php endif; ?>
|
|||
|
|
<?php endfor; endif; ?>
|
|||
|
|
</table>
|
|||
|
|
<?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>ȡ<EFBFBD><EFBFBD><EFBFBD>»<EFBFBD><EFBFBD><EFBFBD><EFBFBD>?<br><EFBFBD><EFBFBD><EFBFBD>ľ<EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><?php echo $this->_tpl_vars['userinfo']['Grade']; ?>
|
|||
|
|
/50 <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 daypm(time,sort){
|
|||
|
|
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 : 'day',
|
|||
|
|
md5 : md5,
|
|||
|
|
time : time,
|
|||
|
|
sort : sort,
|
|||
|
|
gameid : gid
|
|||
|
|
}, function(data, status) {
|
|||
|
|
$("#content").html(data);
|
|||
|
|
$(".pf-left").height(left_height);
|
|||
|
|
$(".gdinfo").width(right_width);
|
|||
|
|
});
|
|||
|
|
}
|
|||
|
|
layer.closeAll();
|
|||
|
|
</script>
|