<?php include 'header.tpl.php';?>
<style>
.me_position{position:absolute;border:1px #39B9E6 solid;padding:5px;background:#ffffff;width:350px;line-height:18px;margin-left:-350px}
</style>
<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(217);" 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>状态：<select name="s_state"><option value=-101>不限</option>
		<?php
		foreach($arr_state as $item=>$key){
			$str_sel="";
			if($key==$get_s_state) $str_sel=" selected";
			echo "<option value='".$key."'".$str_sel.">".$item."</option>";
		}
		?>
		</select>　时间：<input type="text" name="s_addtime1" value="<?php echo $get_s_addtime1;?>" onfocus="setday(this);"> 到 <input type="text" name="s_addtime2" value="<?php echo $get_s_addtime2;?>" onfocus="setday(this);"></td></tr><tr><td>用户账号或订单号：<input type="text" name="s_key" value="<?php echo $get_s_key?>">　<input type="button" name="s_btnok" value="查找" class="pBtn" onclick="frmExecute('')"> 　<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></tr>
	<?php foreach($arr_order as $item){ ?>
<tr class='pTabRow' id="id_row_<?php echo $item["order_id"]?>" onmouseover="admin_row_mouseover(<?php echo $item["order_id"];?>)" onmouseout="admin_row_mouseout(<?php echo $item["order_id"];?>);">
	<td class='pTabCol' width="60"><input type='checkbox' name='orderids[]' value='<?php echo $item['order_id'];?>' onclick="admin_row_sel(this.checked,<?php echo $item["order_id"]?>);"></td><td class='pTabCol'><?php echo $arr_uname["id_".$item['order_user_id']];?></td><td class='pTabCol'><?php echo $arr_name["id_".$item['order_user_id']];?></td><td class='pTabCol'><?php echo $item['order_number'];?></td><td class='pTabCol'><?php echo $item['order_money'];?></td>
	<td class='pTabCol'><?php echo $item["addtime"];?></td><td class='pTabCol' onmouseover="document.getElementById('id_info_<?php echo $item["order_id"];?>').style.display='';" onmouseout="document.getElementById('id_info_<?php echo $item["order_id"];?>').style.display='none';"><?php echo $item['state'];?><br><div class="me_position" style="display:none;" id="id_info_<?php echo $item["order_id"];?>">支付方式：<?php echo $item["order_paymethod"];?><br>支付订单号：<?php echo $item["order_pay_id"];?><br>支付时间：<?php echo $item["order_pay_time"];?><br>备注：<?php echo $item["order_beta"];?></div></td>
	</tr>
	<?php }?>
</table>
</div>
<div class="pPage">
<?php echo $page_split_page?>
</div>
<div class="pFootAct">
<li><input type='checkbox' name='orderidall' value='1' onclick="admin_row_selall(this.form,'orderidall','orderids');">全选　<select name="selact" onchange="me_change(this.value);">
	<option value="">--操作--</option>
	<?php if($obj_ctl_limit->chk_act("state")){?><option value="state">状态</option><?php }?>
	<?php if($obj_ctl_limit->chk_act("del")){?><option value="del_sel">删除</option><?php }?>
	</select>
	<span id="id_state" style="display:none">
		<select name="state_val">
		<?php
		foreach($arr_state as $item=>$key){
			echo "<option value='".$key."'>".$item."</option>";
		}
		?>
		</select></span>
	&nbsp;<input type="button" name="btnExe" value="执行" onclick="frmExecute(document.all.selact.value);" class="pBtn"></li>
</div>
<script>
function me_change(msgx){
	var objx=document.getElementById("id_state");
	if(msgx=="state"){
		objx.style.display="";
	}else{
		objx.style.display="none";
	}
}
</script>
<?php include 'footer.tpl.php';?>		