<?php 
defined('IN_HS') or exit('Access Denied');
include admintpl('header');
?>
<body>

<table cellpadding="2" cellspacing="1" border="0" align=center class="tableBorder" >
  <tr>
    <td class="submenu" align="center"> 奖励记录查询 </td>
  </tr>
<form method="get" name="search">
  <tr>
    <td class="tablerow" align="center">
	<input type="hidden" name="mod" value="<?=$mod?>">
	<input type="hidden" name="file" value="<?=$file?>">
userid：<input name='userid' type='text' value="<?=$userid?>" size=4>
用户名：<input name='biller' type='text' value="<?=$biller?>" size=12>
被推广用户：<input name='tgname' type='text' value="<?=$tgname?>" size=12>

	<input name='submit' type='submit' class='btn' value=' 查询 '></td>
  </tr>
</form>
</table>

<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
  <tr>
    <td></td>
  </tr>
</table>
<table cellpadding="2" cellspacing="1" class="tableborder">
  <tr>
    <th colspan=8>奖励记录</th>
  </tr>
<form method="post" name="myform">
<tr align="center">
<td width="10%" class="tablerowhighlight">userid</td>
<td width="30%" class="tablerowhighlight">用户名</td>
<td width="30%" class="tablerowhighlight">被推广用户</td>
<td width="30%" class="tablerowhighlight">发生时间</td>
</tr>
<?php
foreach($bills AS $bill)
{
?>
<tr align="center"   bgColor='#F1F3F5'>
<td><a href="?mod=member&file=member&action=view&userid=<?=urlencode($bill['userid'])?>" class="member_url"><?=$bill['userid']?></a></td>
<td><a href="?mod=<?=$mod?>&file=<?=$file?>&ip=<?=$bill['ip']?>"><?=$bill['biller']?></a></td>
<td><a href="<?=$bill['refurl']?>" target="_blank"><?=$bill['tgname']?></a></td>
<td><?=$bill['addtime']?></td>
</tr>
<? } ?>
</table>
</form>

<table cellpadding="0" cellspacing="0" border="0" width="100%" height="10">
  <tr>
    <td height="20" align="center"><?=$pages?></td>
  </tr>
</table>
</body>
</html>