Files
wnmj/GonghuiWeb/www/m_c/%%03^030^030A7421%%main.tpl.php
2026-02-24 09:25:17 +08:00

155 lines
8.7 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 2019-01-02 15:52:06
compiled from dh/main.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'dh/main.tpl', 15, false),)), $this); ?>
<?php if ($this->_tpl_vars['userinfo']['Grade'] >= 300): ?>
<!----div class="dh_left">
<div class="elog pf-left">
<ul id="shop_log">
<?php unset($this->_sections['loop']);
$this->_sections['loop']['name'] = 'loop';
$this->_sections['loop']['loop'] = is_array($_loop=$this->_tpl_vars['log']) ? 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']);
?>
<li><?php echo $this->_tpl_vars['log'][$this->_sections['loop']['index']]['NickName']; ?>
<br><font color=#ccc>兑换</font> <font color=red><?php echo $this->_tpl_vars['log'][$this->_sections['loop']['index']]['ShopTitle']; ?>
</font></li>
<?php endfor; endif; ?>
</ul>
<div class="clear"></div>
</div>
</div ---->
<div style="margin:0 auto;width:70%;">
<div class="dh_jp">
<?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']);
?>
<dl><dt onclick="duihuan(<?php echo $this->_tpl_vars['info'][$this->_sections['loop']['index']]['ShopID']; ?>
,<?php echo ((is_array($_tmp=@$this->_tpl_vars['userinfo']['YuanBao'])) ? $this->_run_mod_handler('default', true, $_tmp, 0) : smarty_modifier_default($_tmp, 0)); ?>
,<?php echo $this->_tpl_vars['info'][$this->_sections['loop']['index']]['YuanBao']; ?>
,'<?php echo $this->_tpl_vars['info'][$this->_sections['loop']['index']]['ShopTitle']; ?>
')"><img src="/m/img/jp-<?php echo $this->_tpl_vars['info'][$this->_sections['loop']['index']]['ShopType']; ?>
.jpg"></dt><dd><?php echo $this->_tpl_vars['info'][$this->_sections['loop']['index']]['ShopTitle']; ?>
</dd></dl>
<?php endfor; endif; ?>
</div>
</div>
<?php else: ?>
<div class="dh_left">
<div class="pf-left">
<div class="dh_left_nr xc-ah">
<dl style="color:#999;"><dt>等级</dt><dd>经验值</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:30px;text-align:center;font-size:20px;color:#999;line-height:40px;">元宝兑换奖品?<br>您的经验值不够!<?php echo $this->_tpl_vars['userinfo']['Grade']; ?>
/300 <br>请先玩游戏升级吧!</div>
</div>
<?php endif; ?>
<div class="clear"></div>
<script>
function duihuan(sid,yuanbao,dyuanbao,stitle){
if(dyuanbao > yuanbao){
var cyuanbao = dyuanbao-yuanbao;
layer.open({content: '您的元宝不够<br>还差'+cyuanbao+'个元宝<br>来继续游戏赚元宝吧!',style: 'width:180px;',btn: '我知道了'});
}else{
if(sid == 5 || sid == 6){
layer.open({content: '请到好友栏目点击查看!',style: 'width:180px;',btn: '我知道了'});
return "";
}else if(sid > 6){
var contt = "您将扣除"+dyuanbao+"个元宝<br>请联系微信客服领取wnmj68";
}else{
var contt = "您将扣除"+dyuanbao+"个元宝";
}
layer.open({content: contt,style: 'width:200px;',btn: ['确定领取', '取消'],yes: function(index){
$.get('/dh/dh.php', {
sid : sid,
gameid : gid
}, function(dat, status) {
layer.open({content: dat,style: 'width:180px;',btn: '我知道了',yes: function(index){
var d = new Date(),str = '';
str = d.getMonth() + 1+'-'+d.getDate()+' '+d.getHours()+':'+d.getMinutes()+':'+d.getSeconds();
$("#shop_log").prepend("<li>"+nickname+"<br>兑换 "+stitle+"<br><font color='red'>今天</font> "+str+"</li>");
var ybs = $("#yuanbao").text();
$("#yuanbao").text(parseInt(ybs)-parseInt(dyuanbao));
//window.location.reload();
layer.closeAll();
}});
});
}});
}
}
layer.closeAll();
</script>