<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>">
<link href=images/style.css rel=stylesheet type=text/css>
<script language="JavaScript" src="js/common.js" type="text/javascript"></script>
<body>
<table width=100% border=0 align=center cellpadding=0 cellspacing=1 class=tableborder>
<form method="post" name="search">
  <tr>
    <td align="center" class="tablerow">
	类型：
	<select name="typeid">
	<option value="0">不限</option>
	<option value="1">增加</option>
	<option value="2">扣除</option>
	</select>
	&nbsp;&nbsp;日期：<input type="text" name="fromdate" size="10" value="<?=$fromdate?>"> - <input type="text" name="todate" size="10" value="<?=$todate?>">&nbsp;&nbsp;用户ID：<input type="text" name="userid" size="8" value="<?=$userid?>">&nbsp;&nbsp;关键词：<input type="text" name="keywords" size="8" value="<?=$keywords?>">&nbsp;&nbsp;<input type="submit" name="search" value="查 询"></td>
  </tr>
  </form>
</table>
<table width=100% border=0 align=center cellpadding=0 cellspacing=1 class=tableborder>
          <form action="" method=post onSubmit="return checkform(this);">
            <tr class="bgs">
              <td width="11%" height=27>日期</td>
              <td width="12%">用户ID</td>
              <td width="8%" bgcolor="#CED4E8">操作类型</td>
              <td width="9%" bgcolor="#CED4E8">额度</td>
              <td width="9%" bgcolor="#CED4E8">余额</td>
              <td width="43%">备注</td>
              <td width="8%">操作</td>
            </tr>
<?php
foreach($pays AS $row)
{
?>
            <tr>
              <td align=left>&nbsp;&nbsp;<?=$row['date']?></td>
			  <td>
              <? if($row['userid']!=0){ ?>
              <a href="member.php?act=edit&id=<?=$row['userid']?>"><?=$row['userid']?></a>
              <? } ?>
              </td>
              <td><?=$row[paytype]?></td>
              <td><?=$row['amount']?></td>
              <td><?=$row['balance']?></td>
			  <td><?=$row['note']?></td>
              <td class="tda"><a href="pay.php?act=delete&id=<?=$row[payid]?>" onClick="if(!confirm('确定要删除吗？\n\n此操作不可以恢复！'))return false;">删除</a></td>
            </tr>
<?}?>			
          <tr>
		  <td colspan="8">
		  <? include tpl('page');?></td>
		  </tr>
        </form>
		</table>
		
</body>
</html>