88 lines
3.7 KiB
Smarty
88 lines
3.7 KiB
Smarty
|
|
<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','<!--{$union.UnionID}-->');">
|
|||
|
|
<div class="xfr"><!--{$users.NickName}--><3E><><font color=#ff00ff><!--{$users.UnionMemberGold}--><3E><></font></div>
|
|||
|
|
< <20><><EFBFBD>ع<EFBFBD><D8B9><EFBFBD> <20><><!--{$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="<22><><EFBFBD>ӻ<EFBFBD><D3BB>ַ<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="<22><><EFBFBD>ٻ<EFBFBD><D9BB>ַ<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"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
|||
|
|
<td align="center" class="xb-ef"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD></td>
|
|||
|
|
<td align="center" class="xb-ef"><3E><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1></td>
|
|||
|
|
</tr>
|
|||
|
|
<!--{section name=loop loop=$gold}-->
|
|||
|
|
<!--{assign var="i" value=$smarty.section.loop.rownum}-->
|
|||
|
|
<tr class="xlh-25 <!--{if $i%2==0 }--> xb-ef<!--{/if}-->">
|
|||
|
|
<td align=right><!--{if $gold[loop].UnionGold>0}--><font color=red><!--{else}--><font color=green><!--{/if}--><!--{$gold[loop].UnionGold}--></font> </td>
|
|||
|
|
<td align=right><!--{$gold[loop].UnionGoldAfter}--> </td>
|
|||
|
|
<td align=right><!--{$gold[loop].Time|date_format:"%Y-%m-%d"}--> </td>
|
|||
|
|
</tr>
|
|||
|
|
<!--{/section}-->
|
|||
|
|
</table>
|
|||
|
|
</div>
|
|||
|
|
<div class="xfl hy_nrb">
|
|||
|
|
<table width="100%">
|
|||
|
|
<tr class="xlh-30">
|
|||
|
|
<td align="center" colspan=3 class="xb-ef"><3E><>Ա<EFBFBD><D4B1>Ϸ<EFBFBD><CFB7>¼</td>
|
|||
|
|
</tr>
|
|||
|
|
<!--{section name=loop loop=$consumer}-->
|
|||
|
|
<!--{assign var="i" value=$smarty.section.loop.rownum}-->
|
|||
|
|
<tr class="xlh-25 <!--{if $i%2==0 }--> xb-ef<!--{/if}-->">
|
|||
|
|
<td align=right><!--{if $consumer[loop].Gold>0}--><font color=red><!--{else}--><font color=green><!--{/if}--><!--{$consumer[loop].Gold}--></font> </td>
|
|||
|
|
<td align=right><!--{$consumer[loop].Time|date_format:"%Y-%m-%d %H:%M:%S"}--> </td>
|
|||
|
|
</tr>
|
|||
|
|
<!--{/section}-->
|
|||
|
|
</table>
|
|||
|
|
</div>
|
|||
|
|
<div class="clear"></div>
|
|||
|
|
<script>
|
|||
|
|
function goldEdit(id){
|
|||
|
|
if(id == 'plus'){
|
|||
|
|
var gold = $("#gold_plus").val();
|
|||
|
|
var tit = "<!--{$users.NickName}--><br><font color=red>+"+gold+"</font><3E><><EFBFBD>ַ<EFBFBD>";
|
|||
|
|
}else{
|
|||
|
|
var gold = $("#gold_reduce").val();
|
|||
|
|
if(gold > <!--{$users.UnionMemberGold}-->){
|
|||
|
|
layer.open({content: "<22>۳<EFBFBD><DBB3>ִ<EFBFBD><D6B4><EFBFBD><!--{$users.UnionMemberGold}--><3E>֣<EFBFBD>",style: 'width:200px;',btn: '<27><>֪<EFBFBD><D6AA><EFBFBD><EFBFBD>'});
|
|||
|
|
return '';
|
|||
|
|
}
|
|||
|
|
var tit = "<!--{$users.NickName}--><font color=green><br>-"+gold+"</font><3E><><EFBFBD>ַ<EFBFBD>";
|
|||
|
|
}
|
|||
|
|
if(!gold){
|
|||
|
|
layer.open({content: "<22><><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 : '<!--{$union.UnionID}-->',
|
|||
|
|
sort : '<!--{$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','<!--{$union.UnionID}-->','<!--{$users.UserID}-->');
|
|||
|
|
}else{
|
|||
|
|
remind_error(data,'220');
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
}});
|
|||
|
|
}
|
|||
|
|
layer.closeAll();
|
|||
|
|
</script>
|