118 lines
6.7 KiB
PHP
118 lines
6.7 KiB
PHP
<?php /* Smarty version 2.6.26, created on 2018-02-22 08:57:24
|
|
compiled from user/huodong_add.tpl */ ?>
|
|
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
|
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', 'user/huodong_add.tpl', 47, false),array('modifier', 'default', 'user/huodong_add.tpl', 54, false),)), $this); ?>
|
|
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
|
$this->_smarty_include(array('smarty_include_tpl_file' => 'top.tpl', 'smarty_include_vars' => array()));
|
|
$this->_tpl_vars = $_smarty_tpl_vars;
|
|
unset($_smarty_tpl_vars);
|
|
?>
|
|
<div id=in>
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="0" class=nr>
|
|
<?php if ($this->_tpl_vars['Edit_Ok']): ?><tr><td colspan=6 align=center class=editok><?php echo $this->_tpl_vars['Edit_Ok']; ?>
|
|
</td></tr><?php endif; ?>
|
|
<?php if ($this->_tpl_vars['Edit_Error']): ?><tr><td colspan=6 align=center class=editerror><?php echo $this->_tpl_vars['Edit_Error']; ?>
|
|
</td></tr><?php endif; ?>
|
|
<tr><td colspan=20 class=bt height=30><b>活动配置</b></td></tr>
|
|
<form action="" method="post" name="frmedit">
|
|
<tr class=gy>
|
|
<td class=nr_bt>是否显示</td>
|
|
<td class='nr_nr'><input type="checkbox" name="close" value="1" <?php if ($this->_tpl_vars['info']['Hclose']): ?>checked<?php endif; ?>> 显示</td>
|
|
<td class=nr_bt>是否默认</td>
|
|
<td class=nr_nr><input type="checkbox" name="def" value="1" <?php if ($this->_tpl_vars['info']['Hdef']): ?>checked<?php endif; ?>> 默认</td>
|
|
</tr>
|
|
<tr class=gy>
|
|
<td class=nr_bt>活动标题</td>
|
|
<td class=nr_nr colspan="3"><input type="text" name="title" value="<?php echo $this->_tpl_vars['info']['Htitle']; ?>
|
|
" style="width:300px;" maxLength="200"></td>
|
|
</tr>
|
|
<tr class=gy>
|
|
<td class=nr_bt>活动简介</td>
|
|
<td class=nr_nr colspan="3"><input type="text" name="show" value="<?php echo $this->_tpl_vars['info']['Hshow']; ?>
|
|
" style="width:300px;" maxLength="200"></td>
|
|
</tr>
|
|
<tr class=gy>
|
|
<td class=nr_bt>配置时间</td>
|
|
<td class=nr_nr colspan="3"><input type="text" name="time" value="<?php echo $this->_tpl_vars['info']['Htime']; ?>
|
|
" style="width:300px;" maxLength="200"></td>
|
|
</tr>
|
|
<tr class=gy>
|
|
<td class=nr_bt>配置奖品</td>
|
|
<td class=nr_nr colspan="3"><input type="text" name="prize" value="<?php echo $this->_tpl_vars['info']['HPrize']; ?>
|
|
" style="width:100%;"></td>
|
|
</tr>
|
|
<input name="id" id=id type="hidden" value="<?php echo $this->_tpl_vars['GG']['id']; ?>
|
|
">
|
|
<tr><td colspan=6 class=tj id=remind_info><input type="submit" name=submit value="提 交">
|
|
<input name="pass" id=pass type="password" value="" maxLength="50" style="width:70px;" fs="pass">
|
|
<input type="reset" value="重 置"></td></tr>
|
|
</form>
|
|
</table>
|
|
<?php if ($this->_tpl_vars['data']): ?>
|
|
<br>
|
|
<table width="100%" border="0" cellspacing="1" cellpadding="0" class=nr>
|
|
<tr><td colspan=20 class=bt height=30><b>当前排名</b></td></tr>
|
|
<tr>
|
|
<td width=55 class=bb><b>玩家ID</b></td>
|
|
<td width=50 class=bb><b>头像</b></td>
|
|
<td class=bb><b>用户信息</b></td>
|
|
<td class=bb><b>奖品</b></td>
|
|
<td class=bb><b>局数</b></td>
|
|
</tr>
|
|
<?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 class=gy>
|
|
<td class=nr_nr><a href="javascript:;" onclick="openright('content<?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['UserID']; ?>
|
|
','会员:<?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['GameID']; ?>
|
|
','user/add.php?id=<?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['UserID']; ?>
|
|
')"><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['GameID']; ?>
|
|
</a><br><font color="#999"><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['UserID']; ?>
|
|
</font></td>
|
|
<td class='nr_nr nr_toux'><a href="javascript:;" onclick="openright('6','玩家记录','user/user-log.php?gid=<?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['GameID']; ?>
|
|
')"><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")); ?>
|
|
'></a></td>
|
|
<td class=nr_nr><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['NickName']; ?>
|
|
<?php if ($this->_tpl_vars['data'][$this->_sections['loop']['index']]['Gender'] == 1): ?>男<?php else: ?><font color=#996600>女<?php endif; ?></font></td>
|
|
<td class=nr_nr align=right><?php echo $this->_tpl_vars['jpin'][$this->_tpl_vars['t']]; ?>
|
|
</td>
|
|
<td class=nr_nr align=right><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['Pm']; ?>
|
|
局</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
<?php endfor; endif; ?>
|
|
</table>
|
|
<?php endif; ?>
|
|
</div>
|
|
<?php $_smarty_tpl_vars = $this->_tpl_vars;
|
|
$this->_smarty_include(array('smarty_include_tpl_file' => 'bottom.tpl', 'smarty_include_vars' => array()));
|
|
$this->_tpl_vars = $_smarty_tpl_vars;
|
|
unset($_smarty_tpl_vars);
|
|
?>
|
|
</body>
|
|
</html>
|