<?php 
	defined('IN_ADMIN') or exit('No permission resources.');
	include $this->admin_tpl('header','admin');
?>
<div class="pad_10">
<div class="table-list">
<form name="searchform" action="" method="get" >
<input type="hidden" value="pay" name="m">
<input type="hidden" value="payment" name="c">
<input type="hidden" value="pay_stat" name="a">
<input type="hidden" value="<?php echo $_GET['menuid']?>" name="menuid">

<div class="explain-col search-form">
<?php echo L('username')?>  <input type="text" value="<?php echo $username?>" class="input-text" name="info[username]"> 
<?php echo L('addtime')?>  <?php echo form::date('info[start_addtime]',$start_addtime)?><?php echo L('to')?>   <?php echo form::date('info[end_addtime]',$end_addtime)?> 
<?php echo form::select($trade_status,$status,'name="info[status]"', L('all_status'))?>  
<input type="submit" value="<?php echo L('search')?>" class="button" name="dosubmit">
</div>

</form>
<fieldset>
	<legend><?php echo L('finance').L('totalize')?></legend>
	<table width="100%" class="table_form">
  <tbody>
  <tr>
    <th width="80"><?php echo L('total').L('transactions')?></th>
    <td class="y-bg"><?php echo L('money')?>&nbsp;&nbsp;<span class="font-fixh green"><?php echo $total_amount_num?></span> <?php echo L('bi')?>£¨<?php echo L('trade_succ').L('trade')?>&nbsp;&nbsp;<span class="font-fixh"><?php echo $total_amount_num_succ?></span> <?php echo L('bi')?>£©<br/><?php echo L('point')?>&nbsp;&nbsp;<span class="font-fixh green"><?php echo $total_point_num?></span> <?php echo L('bi')?>£¨<?php echo L('trade_succ').L('trade')?>&nbsp;&nbsp;<span class="font-fixh"><?php echo $total_point_num_succ?></span> <?php echo L('bi')?>£©</td>
  </tr>   
  <tr>
    <th width="80"><?php echo L('total').L('amount')?></th>
    <td class="y-bg"><span class="font-fixh green"><?php echo $total_amount?></span> <?php echo L('yuan')?>£¨<?php echo L('trade_succ').L('trade')?>&nbsp;&nbsp;<span class="font-fixh"><?php echo $total_amount_succ?></span><?php echo L('yuan')?>£©<br/><span class="font-fixh green"><?php echo $total_point?></span><?php echo L('dian')?>£¨<?php echo L('trade_succ').L('trade')?>&nbsp;&nbsp;<span class="font-fixh"><?php echo $total_point_succ?></span><?php echo L('dian')?>£©</td>
  </tr>
</table>
</fieldset>
<div class="bk10"></div>
<fieldset>
	<legend><?php echo L('query_stat')?></legend>
	<table width="100%" class="table_form">
  <tbody>
  <?php if($num) {?>
  <tr>
    <th width="80"><?php echo L('total_transactions')?>£º</th>
    <td class="y-bg"><?php echo L('money')?>£º<span class="font-fixh green"><?php echo $amount_num?></span> <?php echo L('bi')?>£¨<?php echo L('transactions_success')?>£º<span class="font-fixh"><?php echo $amount_num_succ?></span> <?php echo L('bi')?>£©<br/><?php echo L('point')?>£º<span class="font-fixh green"><?php echo $point_num?></span> <?php echo L('bi')?>£¨<?php echo L('transactions_success')?>£º<span class="font-fixh"><?php echo $point_num_succ?></span> <?php echo L('bi')?>£©</td>
  </tr>   
  <tr>
    <th width="80"><?php echo L('total').L('amount')?>£º</th>
    <td class="y-bg"><span class="font-fixh green"><?php echo $amount?></span><?php echo L('yuan')?>£¨<?php echo L('transactions_success')?>£º<span class="font-fixh"><?php echo $amount_succ?></span><?php echo L('yuan')?>£©<br/><span class="font-fixh green"><?php echo $point?></span><?php echo L('dian')?>£¨<?php echo L('transactions_success')?>£º<span class="font-fixh"><?php echo $point_succ?></span><?php echo L('dian')?>£©</td>
  </tr>
  <?php }?>
</table>
</fieldset>
</div>
</div>
</form>
</body>
</html>
<script type="text/javascript">
<!--
	function discount(id, name) {
	window.top.art.dialog({title:'<?php echo L('discount')?>--'+name, id:'discount', iframe:'?m=pay&c=payment&a=public_discount&id='+id ,width:'500px',height:'200px'}, 	function(){var d = window.top.art.dialog({id:'discount'}).data.iframe;
	var form = d.document.getElementById('dosubmit');form.click();return false;}, function(){window.top.art.dialog({id:'discount'}).close()});
}
function detail(id, name) {
	window.top.art.dialog({title:'<?php echo L('discount')?>--'+name, id:'discount', iframe:'?m=pay&c=payment&a=public_pay_detail&id='+id ,width:'500px',height:'550px'});
}
//-->
</script>