<?php include 'header.tpl.php';?>
<style>
.me_position{position:absolute;baccount:1px #39B9E6 solid;padding:5px;background:#ffffff;width:350px;line-height:18px;margin-left:-350px}
</style>
<script>
function me_score(msgid){
	dialog_show("score_"+msgid,"记分记录","score.php?s_uid="+msgid);
}
function me_gold(msgid){
	dialog_show("gold_"+msgid,"金币记录","gold.php?s_uid="+msgid);
}
</script>
<div class="pMenu">
<li class="sel"><a href="javascript:frmExecute('');">管理</a></li>
<li><span onclick="div_show_hide('objSearch');" style="cursor:hand">查找</span></li>
<li class="info"><a href="javascript:inc_show_help(229);" style="color:#ff0000">帮助</a></li>
</div>
<div class="pSearchDiv" id="objSearch" style="display:<?php if($get_issearch!="1")echo "none"?>">
<table class="sTab">
<tr><td>总积分：<input type="text"name="s_score_total1" value="<?php echo $get_s_score_total1;?>" size=10> 至 <input type="text"name="s_score_total2" value="<?php echo $get_s_score_total2;?>" size=10>&nbsp;&nbsp;当前积分：<input type="text"name="s_score1" value="<?php echo $get_s_score1;?>" size=10> 至 <input type="text"name="s_score_total2" value="<?php echo $get_s_score2;?>" size=10><br>总金币：<input type="text"name="s_gold_total1" value="<?php echo $get_s_gold_total1;?>" size=10> 至 <input type="text"name="s_gold_total2" value="<?php echo $get_s_gold_total2;?>" size=10>&nbsp;&nbsp;当前金币：<input type="text"name="s_gold1" value="<?php echo $get_s_gold1;?>" size=10> 至 <input type="text"name="s_gold2" value="<?php echo $get_s_gold2;?>" size=10><br>用户名或id：<input type="text" name="s_key" value="<?php echo $get_s_key?>">&nbsp;<input type="button" name="s_btnok" value="查找" class="pBtn" onclick="frmExecute('')">&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" name="s_btnok" value="清空" class="pBtn" onclick="window.open('?','_self');"></td><tr>
</table>
</div>
<div>
<table class='pTable'>
<tr class='pTabTitRow'>
	<td class='pTabTitCol'></td><td class='pTabTitCol'>账号</td><td class='pTabTitCol'>名称</td><td class='pTabTitCol'>总积分</td><td class='pTabTitCol'>已用积分</td><td class='pTabTitCol'>当前积分</td><td class='pTabTitCol'>总金币</td><td class='pTabTitCol'>已用金币</td><td class='pTabTitCol'>当前金币</td><td class='pTabTitCol'>操作</td></tr>
	<?php foreach($arr_account as $item){ ?>
<tr class='pTabRow' id="id_row_<?php echo $item["account_user_id"]?>" onmouseover="admin_row_mouseover(<?php echo $item["account_user_id"];?>)" onmouseout="admin_row_mouseout(<?php echo $item["account_user_id"];?>);">
	<td class='pTabCol' width="60"><input type='checkbox' name='accountids[]' value='<?php echo $item['account_user_id'];?>' onclick="admin_row_sel(this.checked,<?php echo $item["account_user_id"]?>);"></td><td class='pTabCol'><?php echo $arr_uname["id_".$item['account_user_id']];?></td><td class='pTabCol'><?php echo $arr_showname["id_".$item['account_user_id']];?></td><td class='pTabCol'><?php echo $item['account_score'];?></td><td class='pTabCol'><?php echo $item['account_score_use'];?></td>
	<td class='pTabCol'><?php echo $item["score"];?></td><td class='pTabCol'><?php echo $item['account_gold'];?></td><td class='pTabCol'><?php echo $item['account_gold_use'];?></td>
	<td class='pTabCol'><?php echo $item["gold"];?></td><td class='pTabCol'><a href="javascript:me_score(<?php echo $item["account_user_id"];?>);">积分记录</a>&nbsp;&nbsp;<a href="javascript:me_gold(<?php echo $item["account_user_id"];?>);">金币记录</a></td>
	</tr>
	<?php }?>
</table>
</div>
<div class="pPage">
<?php echo $page_split_page?>
</div>
<div class="pFootAct">
<li><input type='checkbox' name='accountidall' value='1' onclick="admin_row_selall(this.form,'accountidall','accountids');">全选　<select name="selact" onchange="me_change(this.value);">
	<option value="">--操作--</option>
	<?php if($obj_ctl_limit->chk_act("edit")){?><option value="edit_score">设置积分</option><?php }?>
	<?php if($obj_ctl_limit->chk_act("edit")){?><option value="edit_gold">设置金币</option><?php }?>
	</select>
	<span id="id_edit_score" style="display:none">积分：<input type="text" name="edit_score" value=""> &nbsp;&nbsp;&nbsp;说明：<input type="text" name="edit_score_beta" value="后台修改"> (正数为加，负数为减)</span>
	<span id="id_edit_gold" style="display:none">金币：<input type="text" name="edit_gold" value=""> &nbsp;&nbsp;&nbsp;说明：<input type="text" name="edit_gold_beta" value="后台修改"> (正数为加，负数为减)</span>
	&nbsp;<input type="button" name="btnExe" value="执行" onclick="frmExecute(document.all.selact.value);" class="pBtn"></li>
</div>
<script>
function me_change(msgx){
	var obj_score=document.getElementById("id_edit_score");
	var obj_gold=document.getElementById("id_edit_gold");
	if(msgx=="edit_score"){
		obj_score.style.display="";
		obj_gold.style.display="none";
	}else if(msgx=="edit_gold"){
		obj_score.style.display="none";
		obj_gold.style.display="";
	}else{
		obj_score.style.display="none";
		obj_gold.style.display="none";
	}
}
</script>
<?php include 'footer.tpl.php';?>		