Files
wnmj-normal/GonghuiWeb/www/m_c/%%76^76A^76A49640%%mgold.tpl.php

155 lines
8.2 KiB
PHP
Raw Permalink Normal View History

2026-03-03 13:56:44 +08:00
<?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']; ?>
<EFBFBD><EFBFBD><font color=#ff00ff><?php echo $this->_tpl_vars['users']['UnionMemberGold']; ?>
<EFBFBD><EFBFBD></font></div>
< <EFBFBD><EFBFBD><EFBFBD>ع<EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><?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="<EFBFBD><EFBFBD><EFBFBD>ӻ<EFBFBD><EFBFBD>ַ<EFBFBD>" 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="<EFBFBD><EFBFBD><EFBFBD>ٻ<EFBFBD><EFBFBD>ַ<EFBFBD>" 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"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" class="xb-ef"><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
<td align="center" class="xb-ef"><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD></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"><EFBFBD><EFBFBD>Ա<EFBFBD><EFBFBD>Ϸ<EFBFBD><EFBFBD>¼</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><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD>";
}else{
var gold = $("#gold_reduce").val();
if(gold > <?php echo $this->_tpl_vars['users']['UnionMemberGold']; ?>
){
layer.open({content: "<EFBFBD>۳<EFBFBD><EFBFBD>ִ<EFBFBD><EFBFBD><EFBFBD><?php echo $this->_tpl_vars['users']['UnionMemberGold']; ?>
<EFBFBD>֣<EFBFBD>",style: 'width:200px;',btn: '<27><>֪<EFBFBD><D6AA><EFBFBD><EFBFBD>'});
return '';
}
var tit = "<?php echo $this->_tpl_vars['users']['NickName']; ?>
<font color=green><br>-"+gold+"</font><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD>";
}
if(!gold){
layer.open({content: "<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>",style: 'width:200px;',btn: '<27><>֪<EFBFBD><D6AA><EFBFBD><EFBFBD>'});
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: [<><C8B7>', <><C8A1>'],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>