<?php include mayi_tpl('inc_header');?><link rel="stylesheet" type="text/css" href="template/css/new.my.css" /><link rel="stylesheet" type="text/css" href="template/css/new.exchange.css" /><script src="../admin/js/jquery.172.min.js" type="text/javascript"></script><script type="text/javascript" src="../include/datepicker/datepicker.js"></script><link rel="stylesheet" href="../include/datepicker/ui.css"><script language='javascript'>
$(function(){
	$("#datepicker1").datepicker();
	$("#datepicker2").datepicker();
});
</script><script language="javascript" src="template/javascript.js"></script></head><body class="blue"><div class="container"><div id="main" class="main section-setting"><div class="clearfix main-inner"><div class="content"><div class="clearfix content-inner"><div class='location'><?=$location?></div><div class="content-main"><div class="content-main-inner"><div class="pwrap"><div class="pbody"><div class="clearfix pagetab-wrap"><ul class="pagetab"><li><a href="?m=pay&ac=pay" <?php if($ac == 'pay') echo 'class="current"'; ?>><span>金币充值</span></a></li><li><a href="?m=pay&ac=record" <?php if($ac == 'record') echo 'class="current"'; ?>><span>充值明细</span></a></li><li><a href="?m=pay&ac=use" <?php if($ac == 'user') echo 'class="current"'; ?>><span>消费记录</span></a></li><div class="clearfix topuplogcaption"><div class="topuplog-inquire"><form action="?m=pay&ac=record" method="get"><input name="m" value="pay" type="hidden"><input name="ac" value="record" type="hidden"><div class="topuplog-inquire-form"><input name="begindate" type="text" class="txt" placeholder="例：<?php echo GetTime($timestamp,'Y-m-d')?>"  value="<?php echo $begindate; ?>" id="datepicker1" />
                                                - 
                                                <input name="enddate" type="text" class="txt" placeholder="例：<?php echo GetTime($timestamp,'Y-m-d')?>" value="<?php echo $enddate; ?>" id="datepicker2" /></div><span><input class="newbtn" type="submit" value="查询" /></span></form></div></div></ul></div><div id="msg_success"></div><div id="msg_error"></div><div id="msg_alert"></div><form method="post" action="?m=<?=$m?>&ac=<?=$ac?>&page=<?=$page?>"><div class="datatablewrap"><table class="datatable"><thead><tr><td>&nbsp;<input class="checkall" name="checkall" type="checkbox" id="checkall" onClick="CheckAll(this.form)"/></td><td width="130">单号</td><td>支付费用</td><td>状态</td><td>充值时间</td></tr></thead><tbody><?php 
                                                if($rows_num > 0){
                                                $i=1; 
												if(is_array($record)){
                                                foreach($record as $record){
                                                ?><tr <?php if($i%2 == 0) echo 'class="row-even"'?>><td>&nbsp;<input class="checkbox" type='checkbox' name='recordids[]' value='<?=$record[id]?>' id="<?=$record[id]?>'"></td><td><?php echo $record['orderid']; ?></td><td><font color="red"><?php echo $record['money']; ?><?=$moneytype?></font></td><td><?php echo in_array($record['paybz'],array('支付成功','支付完成','支付成功<br>到帐'))? '<font color=green>'.$record['paybz'].'</font>' : $record['paybz']; ?></td><td><?php echo GetTime($record['posttime']); ?></td></tr><?php 
                                                    $i=$i+1;
                                                 }}
                                                } else {
                                                ?><tr><td height="15" colspan="10"><div class="nodata">没有记录</div></td></tr><?php }?></tbody></table><div class="clearfix datacontrol"><div class="dataaction"><span class="minbtn-wrap"><span class="btn"><input type="submit" value="删除" class="button" name="pay_submit" onClick="if(!confirm('您确定要删除这些充值记录吗?一旦删除将不可恢复'))return false;"/></span></span></div><div class="pagination"><?php echo page2(); ?></div></div></div></form></div><div class="pfoot"><p><b>-</b></p></div></div></div></div></div></div></div></div><?php include mayi_tpl('inc_foot');?></div></body></html>