Files
wnmj/GonghuiWeb/www/m_c/%%9A^9AE^9AE81220%%main.tpl.php
2026-02-24 09:25:17 +08:00

215 lines
14 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php /* Smarty version 2.6.26, created on 2018-04-26 14:40:11
compiled from gh/main.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'number_format', 'gh/main.tpl', 5, false),array('modifier', 'default', 'gh/main.tpl', 36, false),array('function', 'gradetit', 'gh/main.tpl', 48, false),array('function', 'timename', 'gh/main.tpl', 49, false),)), $this); ?>
<?php if ($this->_tpl_vars['union']): ?>
<?php if ($this->_tpl_vars['info']): ?>
<div class="xlh-25">
<div class="xfr">
<?php if ($this->_tpl_vars['union_a']['UnionGoldOpen']): ?><font class="xc-999">欢乐分:</font><font color="#ff00ff"><?php echo ((is_array($_tmp=$this->_tpl_vars['gold'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
</font><?php endif; ?>
<font class="xc-999">消费房卡:</font><?php echo ((is_array($_tmp=$this->_tpl_vars['union_a']['GameHit'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
<font class="xc-999">人数:</font><?php echo ((is_array($_tmp=$this->_tpl_vars['union_a']['People'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
</div>
<font class="xc-999">公会名称:</font><?php echo $this->_tpl_vars['union_a']['UnionName']; ?>
</div>
<table width="100%">
<tr class="xlh-25">
<td align="center" class="xb-ef">排名</td>
<td align="center" colspan=2 class="xb-ef" onclick="loadnr('main','<?php echo $this->_tpl_vars['union_a']['UnionID']; ?>
')">成员</td>
<?php if ($this->_tpl_vars['userinfo']['UserID'] == $this->_tpl_vars['union_a']['UserID']): ?>
<td align="center" class="xb-ef" onclick="loadnr('main','<?php echo $this->_tpl_vars['union_a']['UnionID']; ?>
','qx')">开房<?php if ($this->_tpl_vars['GG']['sort'] == 'qx'): ?>↑<?php endif; ?></td>
<?php endif; ?>
<?php if ($this->_tpl_vars['union_a']['UnionGoldOpen']): ?>
<td align="center" class="xb-ef" onclick="loadnr('main','<?php echo $this->_tpl_vars['union_a']['UnionID']; ?>
','gold')">欢乐分<?php if ($this->_tpl_vars['GG']['sort'] == 'gold'): ?>↑<?php endif; ?></td>
<?php else: ?>
<td align="center" class="xb-ef" onclick="loadnr('main','<?php echo $this->_tpl_vars['union_a']['UnionID']; ?>
','yx')">游戏<?php if ($this->_tpl_vars['GG']['sort'] == 'yx'): ?>↑<?php endif; ?></td>
<?php endif; ?>
<td align="center" class="xb-ef" onclick="loadnr('main','<?php echo $this->_tpl_vars['union_a']['UnionID']; ?>
')">等级</td>
<td align="center" width="95" class="xb-ef" onclick="loadnr('main','<?php echo $this->_tpl_vars['union_a']['UnionID']; ?>
','log')">最近登录<?php if ($this->_tpl_vars['GG']['sort'] == 'log'): ?>↑<?php endif; ?></td>
</tr>
<?php unset($this->_sections['loop']);
$this->_sections['loop']['name'] = 'loop';
$this->_sections['loop']['loop'] = is_array($_loop=$this->_tpl_vars['info']) ? 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 <?php if ($this->_tpl_vars['info'][$this->_sections['loop']['index']]['UserID'] == $this->_tpl_vars['userinfo']['UserID']): ?>class="hy_bj"<?php elseif ($this->_tpl_vars['i']%2 == 0): ?>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>
<?php if ($this->_tpl_vars['userinfo']['UserID'] == $this->_tpl_vars['union_a']['UserID'] && $this->_tpl_vars['union_a']['UserID'] != $this->_tpl_vars['info'][$this->_sections['loop']['index']]['UserID']): ?>
<td width="30" class="hy_img" onclick="union_tit('out',<?php echo $this->_tpl_vars['info'][$this->_sections['loop']['index']]['UserID']; ?>
,'<img src=\'<?php echo $this->_tpl_vars['info'][$this->_sections['loop']['index']]['HeadHttp']; ?>
\' width=\'50\'><br><?php echo $this->_tpl_vars['info'][$this->_sections['loop']['index']]['NickName']; ?>
<br>踢出公会?','<?php echo $this->_tpl_vars['union_a']['UnionID']; ?>
');">
<?php else: ?>
<td width="30" class="hy_img">
<?php endif; ?>
<img src="<?php echo ((is_array($_tmp=@$this->_tpl_vars['info'][$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['info'][$this->_sections['loop']['index']]['NickName']; ?>
</div>
<?php if ($this->_tpl_vars['union_ok']): ?><font class="xc-999"><?php echo $this->_tpl_vars['info'][$this->_sections['loop']['index']]['GameID']; ?>
</font><?php endif; ?>
<?php if ($this->_tpl_vars['info'][$this->_sections['loop']['index']]['Gender'] == 1): ?>男<?php else: ?><font color=#996600>女<?php endif; ?></font></td>
<?php if ($this->_tpl_vars['userinfo']['UserID'] == $this->_tpl_vars['union_a']['UserID']): ?>
<td align=center <?php if ($this->_tpl_vars['userinfo']['UserID'] == $this->_tpl_vars['union_a']['UserID']): ?>onclick="loadnr('main','<?php echo $this->_tpl_vars['union_a']['UnionID']; ?>
','open-<?php echo $this->_tpl_vars['info'][$this->_sections['loop']['index']]['UnionMemberID']; ?>
')"<?php endif; ?>><?php if ($this->_tpl_vars['info'][$this->_sections['loop']['index']]['UnionOpen'] == 1): ?><font color=#090>Yes<?php else: ?><font color=#ccc>No<?php endif; ?></font></td>
<?php endif; ?>
<?php if ($this->_tpl_vars['union_a']['UnionGoldOpen']): ?>
<td align=right onclick="loadnr('mgold','<?php echo $this->_tpl_vars['union_a']['UnionID']; ?>
','<?php echo $this->_tpl_vars['info'][$this->_sections['loop']['index']]['UserID']; ?>
');"><font color="#ff00ff"><?php echo ((is_array($_tmp=$this->_tpl_vars['info'][$this->_sections['loop']['index']]['UnionMemberGold'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
</font>&nbsp;</td>
<?php else: ?>
<td align=right><?php echo ((is_array($_tmp=$this->_tpl_vars['info'][$this->_sections['loop']['index']]['PlayCount'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
&nbsp;</td>
<?php endif; ?>
<td align=right><?php echo gradetit(array('GradeArr' => $this->_tpl_vars['GradeArr'],'gjf' => $this->_tpl_vars['info'][$this->_sections['loop']['index']]['Grade']), $this);?>
&nbsp;<br><font class="xc-ccc"><?php echo $this->_tpl_vars['info'][$this->_sections['loop']['index']]['Grade']; ?>
</font>&nbsp;</td>
<td align="right"><?php echo timename(array('time' => $this->_tpl_vars['info'][$this->_sections['loop']['index']]['LastDate'],'duan' => 1), $this);?>
&nbsp;</td>
</tr>
<?php endfor; endif; ?>
</table>
<?php else: ?>
<div class="xlh-25">注意公会房卡少于50张将不能公会开房请多注意房卡消耗情况。</div>
<table width="100%">
<tr class="xlh-25">
<td align="center" colspan=2 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>
<td align="center" width="50" class="xb-ef">开房</td>
<td align="center" width="50" 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['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']); ?>
<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 == 0): ?>class="xb-ef"<?php endif; ?>
<?php if ($this->_tpl_vars['data'][$this->_sections['loop']['index']]['UserID'] == $this->_tpl_vars['userinfo']['UserID']): ?>
onclick="loadnr('main','<?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['UnionID']; ?>
')"
<?php endif; ?>>
<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">&nbsp;<?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['NickName']; ?>
</div>
&nbsp;<font class="xc-999"><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['GameID']; ?>
</font></td>
<td>&nbsp;<?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['UnionName']; ?>
<?php if ($this->_tpl_vars['data'][$this->_sections['loop']['index']]['UnionGoldOpen']): ?><br>&nbsp;<font color="#ff0000">欢乐场</font><?php endif; ?></td>
<td align=right><b><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['UnionMemberGold']; ?>
</b>&nbsp;</td>
<td align=right><?php if ($this->_tpl_vars['data'][$this->_sections['loop']['index']]['UnionCard'] > 50): ?><font color="#CC0000"><b><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['UnionCard']; ?>
</b></font><?php else: ?><font color="#ff0000">少于50张</font><?php endif; ?>&nbsp;<br><font color="#999"><?php echo ((is_array($_tmp=$this->_tpl_vars['data'][$this->_sections['loop']['index']]['People'])) ? $this->_run_mod_handler('number_format', true, $_tmp) : number_format($_tmp)); ?>
人</font>&nbsp;</td>
<td align=center><?php if ($this->_tpl_vars['data'][$this->_sections['loop']['index']]['UnionOpen'] == 1): ?>有<?php else: ?><font class="xc-999">无</font><?php endif; ?></td>
<?php if ($this->_tpl_vars['data'][$this->_sections['loop']['index']]['UserID'] == $this->_tpl_vars['userinfo']['UserID']): ?>
<td align=center>-</td>
<?php else: ?>
<td align=center onclick="union_tit('out',<?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['UID']; ?>
,'','<?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['UnionID']; ?>
');">退出</td>
<?php endif; ?>
</tr>
<?php endfor; endif; ?>
</table>
<?php endif; ?>
</div>
<?php else: ?>
<div class="xlh-25">
<?php if ($this->_tpl_vars['userinfo']['SpreaderID']): ?>
1、群主创建公会最少需要80张房卡转入公会房卡。<br>
2、公会成员开房不需要房卡不是同一公会的人进入不了游戏<br>
3、公会房卡必须保持在50张以上否则开不了房间。<br>
<?php else: ?>
1、请联系群主加入公会。<br>
2、公会开房不需要房卡。<br>
3、不是同一公会的人进入不了游戏。<br>
<font color=#999>如需代理创建公会请加微信wnmj68</font>
<?php endif; ?>
</div>
<?php if ($this->_tpl_vars['userinfo']['SpreaderID']): ?>
<div>
<div class="xb-ef xlh-25 xta-c xfs-14 xmt-10">创建公会</div>
<div class="xmt-10">
<form method="post" id="Daform" onsubmit="return union_add();" language="JavaScript" >
<table>
<tr>
<td width="60" align=right>公会名称</td>
<td><input type="text" name="uname" class="input" maxlength="6" style="width:80px;"></td>
<td class="xc-ccc">例如:聚闲庄、友谊麻将等等</td>
</tr>
<tr>
<td width="60" align=right>转入房卡</td>
<td><input type="number" name="ucard" class="input" style="width:80px;" value="100"></td>
<td class="xc-ccc">最少80张创建成功自动送50张房卡</td>
</tr>
<tr>
<td width="60" align=right></td>
<td><input type="submit" class="button" value="创建公会" style="width:92px;"></td>
</tr>
</form>
</table>
<div>
<?php endif; ?>
<?php endif; ?>
<div class="clear"></div>
<script>
layer.closeAll();
</script>