工会web
This commit is contained in:
240
GonghuiWeb/www/m_c/%%88^884^8844AD2A%%ds.tpl.php
Normal file
240
GonghuiWeb/www/m_c/%%88^884^8844AD2A%%ds.tpl.php
Normal file
@@ -0,0 +1,240 @@
|
||||
<?php /* Smarty version 2.6.26, created on 2018-01-17 17:05:12
|
||||
compiled from dh/ds.tpl */ ?>
|
||||
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
|
||||
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'in_array', 'dh/ds.tpl', 19, false),array('modifier', 'count', 'dh/ds.tpl', 34, false),array('modifier', 'default', 'dh/ds.tpl', 43, false),array('modifier', 'replace', 'dh/ds.tpl', 111, false),array('function', 'gradetit', 'dh/ds.tpl', 44, false),)), $this); ?>
|
||||
<?php if ($this->_tpl_vars['userinfo']['Grade'] >= 200): ?>
|
||||
<div class="imgs" style="position:fixed;bottom:0;left:0;width:100%;z-index:999;-webkit-overflow-scrolling: touch;"><img src="/m/img/hd/bar<?php echo $this->_tpl_vars['hdid']; ?>
|
||||
.jpg"></div>
|
||||
<div class="dh_left">
|
||||
<div class="pf-left">
|
||||
<div class="dh_left_nr xlh-25">
|
||||
注:牛牛四局算一局。十三张三局算一局<br>
|
||||
</div>
|
||||
<?php $_from = $this->_tpl_vars['huodong']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
|
||||
foreach ($_from as $this->_tpl_vars['ka'] => $this->_tpl_vars['va']):
|
||||
?>
|
||||
<div class="dh_left_nr xlh-25" style="border-top:1px #ccc solid;padding-top:5px;">
|
||||
<a href="javascript:;" onclick="aaload(<?php echo $this->_tpl_vars['va']['Hdid']; ?>
|
||||
);"><font class="<?php if ($this->_tpl_vars['va']['Hdid'] == $this->_tpl_vars['hdid']): ?>xc-red<?php else: ?>xc-ccc<?php endif; ?>"><?php echo $this->_tpl_vars['va']['Htitle']; ?>
|
||||
<br><?php echo $this->_tpl_vars['va']['Hshow']; ?>
|
||||
</font></a>
|
||||
</div>
|
||||
<?php endforeach; endif; unset($_from); ?>
|
||||
<div class="clear"></div>
|
||||
<div style="margin-top:80px;"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="dh_right">
|
||||
<div class="xlh-25 xfs-14" style="height:50px;">
|
||||
<?php if (((is_array($_tmp=$this->_tpl_vars['time'])) ? $this->_run_mod_handler('in_array', true, $_tmp, $this->_tpl_vars['hdy_arr']) : in_array($_tmp, $this->_tpl_vars['hdy_arr']))): ?>
|
||||
<font color=green>
|
||||
<?php if ($this->_tpl_vars['xcz'] > 800): ?>
|
||||
您想获得大奖,还需要打<font color=red><?php echo $this->_tpl_vars['xcz']; ?>
|
||||
</font>局,加油吧!<br>
|
||||
<?php elseif ($this->_tpl_vars['xcz']): ?>
|
||||
您离第一名只差<font color=red><?php echo $this->_tpl_vars['xcz']; ?>
|
||||
</font>局,继续加油!!<br>
|
||||
<?php else: ?>
|
||||
继续保持第一,大奖就是您的啦!!<br>
|
||||
<?php endif; ?></font>
|
||||
<?php else: ?>
|
||||
累计游戏局数第一,可获<?php echo $this->_tpl_vars['jpin'][0]; ?>
|
||||
!<br>
|
||||
<?php endif; ?>
|
||||
<span id="timeTXT<?php echo $this->_tpl_vars['hdid']; ?>
|
||||
"></span><br>
|
||||
</div>
|
||||
<table width="100%">
|
||||
<?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 <?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 == 1): ?>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>
|
||||
<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"><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['NickName']; ?>
|
||||
<br><font color=#ccc><?php echo gradetit(array('GradeArr' => $this->_tpl_vars['GradeArr'],'gjf' => $this->_tpl_vars['data'][$this->_sections['loop']['index']]['Grade']), $this);?>
|
||||
</div></td>
|
||||
<?php if ($this->_sections['loop']['rownum'] == 1): ?>
|
||||
<td align=center class="hy_img"><img src="/m/img/hd/jp<?php echo $this->_tpl_vars['hdid']; ?>
|
||||
.jpg"></td>
|
||||
<td align=right><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['Pm']; ?>
|
||||
局<br><font color="red"><?php echo $this->_tpl_vars['jpin'][$this->_tpl_vars['t']]; ?>
|
||||
</font></td>
|
||||
<?php else: ?>
|
||||
<?php if ($this->_tpl_vars['time'] > $this->_tpl_vars['sjjs'] && $this->_tpl_vars['data'][$this->_sections['loop']['index']]['UserID'] == $this->_tpl_vars['userinfo']['UserID']): ?>
|
||||
<td align=center class="hy_img" onclick="ling(<?php echo $this->_tpl_vars['userinfo']['GameID']; ?>
|
||||
,<?php echo $this->_tpl_vars['hdid']; ?>
|
||||
)";>领取</a></td>
|
||||
<?php endif; ?>
|
||||
<td align=right colspan=2><?php echo $this->_tpl_vars['data'][$this->_sections['loop']['index']]['Pm']; ?>
|
||||
局<br><font color="#ccc">+<?php echo $this->_tpl_vars['jpin'][$this->_tpl_vars['t']]; ?>
|
||||
元宝</font></td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php endfor; endif; ?>
|
||||
</table>
|
||||
<div style="margin-top:80px;"></div>
|
||||
</div>
|
||||
<div class="clear"></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:50px;text-align:center;font-size:20px;color:#999;line-height:40px;">送iPad活动?<br>您的经验值不够!<?php echo $this->_tpl_vars['userinfo']['Grade']; ?>
|
||||
/200 <br>请先玩游戏升级吧!</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="clear"></div>
|
||||
<script>
|
||||
function aaload(hdid){
|
||||
var w_width =$(window).width();
|
||||
var w_height =$(window).height();
|
||||
var left_height = w_height-25;
|
||||
var right_width = w_width-120;
|
||||
layer.open({type:2,shade:false});
|
||||
$.get('/dh/index.php', {
|
||||
ty : 'ds',
|
||||
hdid : hdid,
|
||||
gameid : gid
|
||||
}, function(data, status) {
|
||||
$("#content").html(data);
|
||||
$(".pf-left").height(left_height);
|
||||
$(".gdinfo").width(right_width);
|
||||
});
|
||||
}
|
||||
function ling(gid,hdid){
|
||||
$.post("hd.php",{gid:gid,hdid:hdid},function(ret){
|
||||
if(ret.yuanbao){
|
||||
var ybs = $("#yuanbao").text();
|
||||
$("#yuanbao").text(parseInt(ybs)+parseInt(ret.yuanbao));
|
||||
$(".anniu").hide();
|
||||
layer.open({content:"领取"+ret.yuanbao+"个元宝",style: 'width:180px;',btn: '我知道了'});
|
||||
}else{
|
||||
layer.open({content:"没有领取记录!",style: 'width:180px;',btn: '我知道了'});
|
||||
}
|
||||
}, "json").error(function(){
|
||||
layer.open({content: '系统维护,请稍后!',style: 'width:180px;',btn: '我知道了'});
|
||||
});
|
||||
}
|
||||
setInterval(function(){
|
||||
var StaTime= new Date('<?php echo ((is_array($_tmp=$this->_tpl_vars['sjks'])) ? $this->_run_mod_handler('replace', true, $_tmp, "-", "/") : smarty_modifier_replace($_tmp, "-", "/")); ?>
|
||||
/01 00:00:00');//开始时间
|
||||
var EndTime= new Date('<?php echo ((is_array($_tmp=$this->_tpl_vars['sjjs'])) ? $this->_run_mod_handler('replace', true, $_tmp, "-", "/") : smarty_modifier_replace($_tmp, "-", "/")); ?>
|
||||
/30 23:59:59');//结束时间
|
||||
var NowTime = new Date();//当前时间
|
||||
var d=0;
|
||||
var h=0;
|
||||
var m=0;
|
||||
var s=0;
|
||||
if(StaTime > NowTime){//倒计时
|
||||
var t = StaTime.getTime() - NowTime.getTime();
|
||||
var html = "<font class='xc-999'>活动开始倒计时:</font>";
|
||||
d=Math.floor(t/1000/60/60/24);
|
||||
h=Math.floor(t/1000/60/60%24);
|
||||
m=Math.floor(t/1000/60%60);
|
||||
s=Math.floor(t/1000%60);
|
||||
if(d > 0){
|
||||
html += d+"<font class='xc-999'>天</font>";
|
||||
}
|
||||
if(h > 0){
|
||||
html += h+"<font class='xc-999'>小时</font>";
|
||||
}
|
||||
if(m > 0){
|
||||
html += m+"<font class='xc-999'>分</font>";
|
||||
}
|
||||
html += s+"<font class='xc-999'>秒</font>";
|
||||
}else{//开始计时
|
||||
var t = EndTime.getTime() - NowTime.getTime();
|
||||
if(t > 0){
|
||||
var html = "<font class='xc-999'>剩余时间:</font>";
|
||||
d=Math.floor(t/1000/60/60/24);
|
||||
h=Math.floor(t/1000/60/60%24);
|
||||
m=Math.floor(t/1000/60%60);
|
||||
s=Math.floor(t/1000%60);
|
||||
if(d > 0){
|
||||
html += d+"<font class='xc-999'>天</font>";
|
||||
}
|
||||
if(h > 0){
|
||||
html += h+"<font class='xc-999'>小时</font>";
|
||||
}
|
||||
if(m > 0){
|
||||
html += m+"<font class='xc-999'>分</font>";
|
||||
}
|
||||
html += s+"<font class='xc-999'>秒</font>";
|
||||
|
||||
}else{
|
||||
var html = "<font color=red>本次活动结束啦!元宝请自己点击领取!</font>";
|
||||
}
|
||||
}
|
||||
var box=document.getElementById("timeTXT<?php echo $this->_tpl_vars['hdid']; ?>
|
||||
");
|
||||
box.innerHTML = html;
|
||||
},1000);
|
||||
layer.closeAll();
|
||||
</script>
|
||||
Reference in New Issue
Block a user