<?php
if( !defined('ISDVBBS') ){
	header('HTTP/1.0 404 Not Found');
	exit;
}
?>
<br>
<table border="0" cellspacing="1" cellpadding="1"  align="center" class="tableborder">
  <form name="searchform" method="post" action="?action=search">
  <tr>
    <td colspan="2" class="tit1"><?=$lang['pay.info1']?></td>
  </tr>
  <tr>
	<td class="forumrow" style="text-align:center;" width="10%">
		<input type="submit" name="Submit" value="<?=$lang['pay.info31']?>" style="color: #FF0000;width:80px;height:50px;border:1px outset;">
	</td>
    <td height="25" class="forumrow"><?=$lang['pay.info2']?><br><?=$lang['pay.info3']?></td>
  </tr>
  <tr>
    <td height="25" colspan="2"  class="forumrow"><?=$lang['pay.info4']?>
	<input name="keyword" size="20" type="text"><?=$lang['pay.info5']?>
	<input name="start_time" size="20" type="text"><?=$lang['pay.info6']?>
	<input name="end_time" size="20" type="text"><?=$lang['pay.info7']?>
	</td>
  </tr>
  <tr>
    <td height="25" colspan="2"  class="forumrow"><?=$lang['pay.info8']?>
	<select name="type">
	<option value="0"><?=$lang['pay.info22']?></option>
	<option value="1" <?If(intval($type)==1)echo "selected"?>><?=$lang['pay.info23']?></option>
	<option value="2" <?If(intval($type)==2)echo "selected"?>><?=$lang['pay.info24']?></option>
	</select><?=$lang['pay.info9']?>
	<select name="pay_state">
	<option value="0"><?=$lang['pay.info22']?></option>
	<option value="1" <?If(intval($pay_state)==1)echo "selected"?>><?=$lang['pay.info25']?></option>
	<option value="2" <?If(intval($pay_state)==2)echo "selected"?>><?=$lang['pay.info26']?></option>
	</select><?=$lang['pay.info10']?>
	<input type="radio" name="more_less" value="Y" checked><?=$lang['pay.info11']?>
	<input type="radio" name="more_less" value="N">
	<input type="text" name="money_num" size="15">
	<input type="submit" class="button" name="Submit" value="<?=$lang['pay.info12']?>">
	</td>
  </tr>
  </form>
</table>
<br>
<table border="0" cellspacing="1" cellpadding="1"  align="center" class="tableborder">
  <tr>
    <td colspan="6" class="tit1"><?=$lang['pay.info27']?></td>
  </tr>
  <tr class="forumrow1">
    <td style="text-align:center;"><?=$lang['pay.info13']?></td>
    <td style="text-align:center;"><?=$lang['pay.info14']?></td>
    <td style="text-align:center;"><?=$lang['pay.info15']?></td>
    <td style="text-align:center;"><?=$lang['pay.info16']?></td>
    <td style="text-align:center;"><?=$lang['pay.info17']?></td>
    <td style="text-align:center;"><?=$lang['pay.info18']?></td>
  </tr>
  <?
    $bgColor='#CAD7F7';
	if(!empty($pay_list)){
		if(is_array($pay_list)){
			foreach($pay_list as $pay_arr){
				$money_count+=$pay_arr['o_paymoney'];
				is_numeric($pay_arr['o_addtime']) AND ($pay_arr['o_addtime'] = gmdate('Y-m-d H:i:s', $pay_arr['o_addtime']+getUserTimeZoneOffset()));
  ?>
  <tr class="forumrow" style="padding:1px;">
    <td height="25" style="text-align:center;"><a href="../dispuser.php?name=<?=$pay_arr['o_username']?>" target="_blank"><?=$pay_arr['o_username']?></a></td>
    <td height="25" style="text-align:center;"><?=$pay_arr['o_paycode']?></td>
    <td height="25" style="text-align:center;"><?=$pay_arr['o_paymoney']?></td>
    <td height="25" style="text-align:center;"><?if($pay_arr['o_type']==1){echo $lang['pay.info23'];} else{ echo $lang['pay.info24'];}?></td>
    <td height="25" style="text-align:center;"><?if($pay_arr['o_issuc']==0){echo $lang['pay.info25'];} else{ echo $lang['pay.info26'];}?></td>
    <td height="25" style="text-align:center;"><?=$pay_arr['o_addtime']?></td>
  </tr>
  <?
			if ($bgColor=='#CAD7F7')
				$bgColor='#D7DCE1';
			else
				$bgColor='#CAD7F7';
			}
		}
	}
  ?>
  <tr>
    <td height="25" class="forumrow1" colspan="6"><?=$lang['pay.info19'].$money_count.$lang['pay.info20'].$search_money_count.$lang['pay.info21']?></td>
  </tr>
  <tr>
    <td colspan="6" class="forumrow">
	<?
		if($total!=0){
			$p = new page;
			$p->setall($page,$total,$page_size,$lang['pay.info28'],$lang['pay.info29'],'100%','center','biz');
			print $p->printpage(null,1);		
		}
	?>
	</td>
  </tr>
</table>