<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>
<script type="text/javascript" src="../include/calendar.php"></script>
<link rel="stylesheet" rev="stylesheet" href="../include/calendar/calendar.css" type="text/css" media="all" />
<body>
<table width=100% border=0 align=center cellpadding=0 cellspacing=1 class=tableborder>

<form method="get" name="search">
  <tr bgcolor=#FFFFFF >
    <td align="center" class="tablerow">
	用户ID：<input name='userid' type='text' value="<?=$userid?>" size=12>
	&nbsp;&nbsp;
	开始日期：<input name="begindate" type="text" id="begindate" size="12" value="<?=$begindate?>" onClick="return showCalendar('begindate', '%Y-%m-%d', false, false, 'begindate');" />&nbsp;&nbsp;截止日期：<input name="enddate" type="text" id="enddate" size="12" value="<?=$enddate?>" onClick="return showCalendar('enddate', '%Y-%m-%d', false, false, 'enddate');" />&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>
	
            <tr class="bgs">
              <td width="9%" height=25>用户ID</td>
              <td width="9%" height=25>类型</td>
              <td width="9%" bgcolor="#CED4E8">积分数</td>
			  <td width="9%" bgcolor="#CED4E8">兑现金额</td>
              <td width="19%" bgcolor="#CED4E8">兑现时间</td>
              <td width="12%">IP</td>
              <td width="42%">备注</td>
            </tr>
			<?php
			foreach($exchanges AS $row)
			{
			?>
            <tr bgcolor=#FFFFFF align=center>
              <td><a href="member.php?act=edit&id=<?=$row['userid']?>"><?=$row['userid']?></a></td>
              <td><?=$row[tid]?></td>
			  <td><?=$row[cnum]?></td>
              <td style="color:<?=$row['value']>0 ? 'red' : 'blue'?>"><?=$row['value']?> <?=$row[unit]?></td>
              <td><?=$row[addtime]?></td>
              <td><?=$row['ip']?></td>
              <td><?=$row['note']?></td>
            </tr>
			<?}?>			
          <tr>
		  <td colspan="7">
		     &nbsp;&nbsp;&nbsp;&nbsp;
		  <? include tpl('page');?></td>
		  </tr>
		</table>
		
</body>
</html>