<?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 language="javascript" src="template/javascript.js"></script><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></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 == 'use') 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="use" type="hidden"><div class="topuplog-inquire-form"><input name="begindate" placeholder="例：<?php echo GetTime($timestamp,'Y-m-d')?>" id="datepicker1" type="text" class="txt" value="<?php echo $begindate; ?>" />
                                                 - 
                                                <input name="enddate" placeholder="例：<?php echo GetTime($timestamp,'Y-m-d')?>" id="datepicker2" type="text" class="txt" value="<?php echo $enddate; ?>"/></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>编号</td><td>扣除金币</td><td>备注</td><td>扣除时间</td></tr></thead><tbody><?php 
                                                if($rows_num > 0){
                                                $i=1; 
                                                foreach($record as $record){
                                                ?><tr <?php if($i%2 == 0) echo 'class="row-even"'?>><td>&nbsp;<input class="checkbox" type='checkbox' name='useids[]' value='<?=$record[id]?>' id="<?=$record[id]?>'"></td><td><?php echo $record['id']; ?></td><td><?php echo $record['paycost']; ?></td><td><?php echo $record['subject']; ?></td><td><?php echo GetTime($record['pubtime']); ?></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>