Files
wnmj/GonghuiWeb/www/m_c/%%76^76A^76A49640%%mgold.tpl.php
2026-02-24 09:25:17 +08:00

155 lines
8.2 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-05-08 14:45:20
compiled from gong/mgold.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'gong/mgold.tpl', 30, false),)), $this); ?>
<style>
.input_red {border:1px #ff0000 solid;color:#ff0000;}
.button_red {background:#ff0000;}
.input_green {border:1px #009900 solid;color:#009900;}
.button_green {background:#009900;}
</style>
<div class="xlh-25" onclick="loadnr('main','<?php echo $this->_tpl_vars['union']['UnionID']; ?>
');">
<div class="xfr"><?php echo $this->_tpl_vars['users']['NickName']; ?>
<font color=#ff00ff><?php echo $this->_tpl_vars['users']['UnionMemberGold']; ?>
分</font></div>
< 返回公会 <?php echo $this->_tpl_vars['union']['UnionName']; ?>
</div>
<div class="xlh-35" style="margin-top:10px;">
<div class="xfl"><font size="3" color="red">+</font> <input type="number" class="input input_red" maxlength="5" style="width:70px;" id="gold_plus" value="100"></div>
<div class="xfl" style="margin-left:10px;"><input type="button" class="button button_red" value="增加欢乐分" onclick="goldEdit('plus');"></div>
<div class="xfl" style="margin-left:30px;"><font size="3" color="green">-</font> <input type="number" class="input input_green" style="width:70px;" maxlength="5" id="gold_reduce" value="100"></div>
<div class="xfl" style="margin-left:10px;"><input type="button" class="button button_green" value="减少欢乐分" onclick="goldEdit('reduce');"></div>
</div>
<div class="clear"></div>
<div class="xfl hy_nrb">
<table width="100%">
<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>
</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 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>&nbsp;</td>
<td align=right><?php echo $this->_tpl_vars['gold'][$this->_sections['loop']['index']]['UnionGoldAfter']; ?>
&nbsp;</td>
<td align=right><?php echo ((is_array($_tmp=$this->_tpl_vars['gold'][$this->_sections['loop']['index']]['Time'])) ? $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")); ?>
&nbsp;</td>
</tr>
<?php endfor; endif; ?>
</table>
</div>
<div class="xfl hy_nrb">
<table width="100%">
<tr class="xlh-30">
<td align="center" colspan=3 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['consumer']) ? 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 align=right><?php if ($this->_tpl_vars['consumer'][$this->_sections['loop']['index']]['Gold'] > 0): ?><font color=red><?php else: ?><font color=green><?php endif; ?><?php echo $this->_tpl_vars['consumer'][$this->_sections['loop']['index']]['Gold']; ?>
</font>&nbsp;</td>
<td align=right><?php echo ((is_array($_tmp=$this->_tpl_vars['consumer'][$this->_sections['loop']['index']]['Time'])) ? $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")); ?>
&nbsp;</td>
</tr>
<?php endfor; endif; ?>
</table>
</div>
<div class="clear"></div>
<script>
function goldEdit(id){
if(id == 'plus'){
var gold = $("#gold_plus").val();
var tit = "<?php echo $this->_tpl_vars['users']['NickName']; ?>
<br><font color=red>+"+gold+"</font>欢乐分";
}else{
var gold = $("#gold_reduce").val();
if(gold > <?php echo $this->_tpl_vars['users']['UnionMemberGold']; ?>
){
layer.open({content: "扣除分大于<?php echo $this->_tpl_vars['users']['UnionMemberGold']; ?>
分?",style: 'width:200px;',btn: '我知道了'});
return '';
}
var tit = "<?php echo $this->_tpl_vars['users']['NickName']; ?>
<font color=green><br>-"+gold+"</font>欢乐分";
}
if(!gold){
layer.open({content: "请输入分数",style: 'width:200px;',btn: '我知道了'});
return '';
}
var obj = {
type : id,
gold : gold,
idd : '<?php echo $this->_tpl_vars['union']['UnionID']; ?>
',
sort : '<?php echo $this->_tpl_vars['users']['UserID']; ?>
',
gameid : gid,
md5 : md5
};
layer.open({content: tit,style: 'width:200px;',btn: ['确定', '取消'],yes: function(index){
layer.open({type:2,shade:false});
$.get('/gong/mgold.php', obj, function(data, status) {
layer.closeAll();
if(data == 'ok'){
loadnr('mgold','<?php echo $this->_tpl_vars['union']['UnionID']; ?>
','<?php echo $this->_tpl_vars['users']['UserID']; ?>
');
}else{
remind_error(data,'220');
}
});
}});
}
layer.closeAll();
</script>