127 lines
4.6 KiB
PHP
127 lines
4.6 KiB
PHP
<?php /* Smarty version 2.6.26, created on 2020-04-18 12:42:53
|
|
compiled from gong/adm.tpl */ ?>
|
|
<?php if ($this->_tpl_vars['union_ok']): ?>
|
|
<style>
|
|
.button_hui {background:#999999;}
|
|
.huan_li li {float:left;list-style:none;margin-right:20px;}
|
|
</style>
|
|
<div class="xb-ef xlh-30 xta-c xfs-14">添加公会成员</div>
|
|
<div class="xmt-10">
|
|
<table>
|
|
<tr>
|
|
<td width="60" align=right>游戏ID</td>
|
|
<td><input type="number" class="input" maxlength="6" style="width:80px;" id="gids" value=""></td>
|
|
<td><input type="radio" name="open" value="1" checked> 可开房 <input type="radio" name="open" value="0"> 不能开房</td>
|
|
<td><input type="hidden" id="unionid" value="<?php echo $this->_tpl_vars['userinfo']['UnionID']; ?>
|
|
">
|
|
<input type="button" class="button" value="添加会员" style="width:70px;" onclick="union_edit('join');"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="xb-ef xlh-30 xta-c xfs-14 xmt-10">公会房卡转入</div>
|
|
<div class="xmt-10">
|
|
<table>
|
|
<tr>
|
|
<td width="60" align=right>公会房卡</td>
|
|
<td><font class="xc-red"><b><?php echo $this->_tpl_vars['union']['UnionCard']; ?>
|
|
张</b></font></td>
|
|
<td class="xc-ccc">一旦转入公会房卡,将不能转出</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="60" align=right>我的房卡</td>
|
|
<td><input type="number" class="input" maxlength="6" style="width:80px;" id="fang" value="<?php echo $this->_tpl_vars['userinfo']['InsureScore']; ?>
|
|
"></td>
|
|
<td><input type="button" class="button" value="我的房卡转入公会房卡" style="width:150px;" onclick="union_tit('fang');"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<?php if ($this->_tpl_vars['union']['UnionGoldOpen']): ?>
|
|
<div class="xb-ef xlh-30 xta-c xfs-14 xmt-10">欢乐场管理</div>
|
|
<div class="xmt-10">
|
|
<div class="xfr">
|
|
<?php if ($this->_tpl_vars['union']['UnionGoldOpen']): ?>
|
|
<input type="button" class="button button_hui" value="关闭欢乐场" style="width:70px;" onclick="huan_open();">
|
|
<?php else: ?>
|
|
<input type="button" class="button" value="开启欢乐场" style="width:70px;" onclick="huan_open();">
|
|
<?php endif; ?>
|
|
</div>
|
|
<div class="xfl xlh-30">欢乐场:必须要有欢乐分才可以游戏,添加欢乐分请到公会信息里。</div>
|
|
<div class="clear"></div>
|
|
<div id="huan_nr"></div>
|
|
</div>
|
|
<?php endif; ?>
|
|
<div class="xb-ef xlh-30 xta-c xfs-14 xmt-10">公会信息修改</div>
|
|
<div class="xmt-10">
|
|
<table>
|
|
<tr>
|
|
<td width="60" align=right>公会名称</td>
|
|
<td><input type="text" class="input" maxlength="6" style="width:80px;" id="cname" value="<?php echo $this->_tpl_vars['union']['UnionName']; ?>
|
|
"></td>
|
|
<td class="xc-ccc">例如:聚闲庄、友谊麻将</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="60" align=right></td>
|
|
<td><input type="button" class="button" value="修改信息" style="width:70px;" onclick="union_edit('edit');"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<?php endif; ?>
|
|
<div class="clear"></div>
|
|
<script>
|
|
function huan_content(kid,tys){
|
|
$.get("/gong/index.php", {
|
|
ty : 'huan',
|
|
md5 : md5,
|
|
gameid : gid,
|
|
kid : kid,
|
|
tys : tys
|
|
}, function(data, status) {
|
|
$("#huan_nr").html(data);
|
|
});
|
|
}
|
|
<?php if ($this->_tpl_vars['union']['UnionGoldOpen']): ?>
|
|
huan_content(0,0);
|
|
<?php endif; ?>
|
|
function huan(title,kid,ty,v){
|
|
var conf = [];
|
|
conf['limit'] = ['限制入场','分',['100','200','300','500','800','1000']];
|
|
conf['score'] = ['游戏倍数','倍',['1','2','3','5','10','20']];
|
|
conf['gold'] = ['每张房卡手续分','分',['2','3','5','6','8','10']];
|
|
var html = "<div class='in'>";
|
|
html += '<div class="xlh-25 xfs-14"><b>'+title+'</b> '+conf[ty][0]+' <font color="#999">点击下面选择</font></div><div class="huan_li xfs-14"><ul>';
|
|
for(var i=0;i<conf[ty][2].length;i++){
|
|
html += '<li onclick="huan_xz('+kid+',\''+ty+'\','+conf[ty][2][i]+');" ';
|
|
if(conf[ty][2][i] == v){
|
|
html += ' class="xc-red"';
|
|
}
|
|
html += '>'+conf[ty][2][i]+''+conf[ty][1]+'</li>';
|
|
}
|
|
html += '</ul></div></div>';
|
|
layer.open({
|
|
type: 1
|
|
,content: html
|
|
,anim: 'bottom'
|
|
,style: 'position:fixed; left:0; bottom:0; width:100%; height:80px; border: none; -webkit-animation-duration: .5s; animation-duration: .5s;'
|
|
});
|
|
}
|
|
function huan_xz(kid,ty,va){
|
|
var obj = {ty:'huan',kid:kid,tys:ty,va:va,gameid:gid};
|
|
layer.open({type:2,shade:false});
|
|
$.get('/gong/cl.php', obj, function(data, status) {
|
|
layer.closeAll();
|
|
if(data == 'ok'){
|
|
huan_content(kid,ty);
|
|
}else{
|
|
layer.open({content:data,style: 'width:220px;',btn: '我知道了'});
|
|
}
|
|
});
|
|
}
|
|
function huan_open(){
|
|
<?php if ($this->_tpl_vars['union']['UnionGoldOpen']): ?>
|
|
union_tit("goldopen",0,"关闭欢乐场?<br>欢乐数据将会清空!");
|
|
<?php else: ?>
|
|
union_tit("goldopen",0,"开启欢乐场?<br>用户必须要有欢乐分<br>欢乐分请到公会信息添加");
|
|
<?php endif; ?>
|
|
}
|
|
layer.closeAll();
|
|
</script>
|