<!--<?php 
if($statistics){
print <<<EOT
-->
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<style>
td {font-size: 9pt;line-height: 1.5;}
body {font-size: 9pt;line-height: 1.5;}
a:link { font-size: 9pt; color: #000000; text-decoration: none }
a:visited{ font-size: 9pt; color: #000000; text-decoration: none }
a:hover {font-size: 9pt;color: red}
</style>
<table width="100%"  border="0" cellpadding="4" cellspacing="1" bgcolor="#A5D0F1">
  <tr>
    <td background="images/wbg.gif" bgcolor="#F0F3F8" colspan="3"><b>会员登录</b></td>
	<td background="images/wbg.gif" bgcolor="#F0F3F8" colspan="3" align="right">
	<a href="statistics.php?mode=logins&page=$page"><b>全部</b></a>
	<a href="statistics.php?mode=logins&usertype=P&logintype=$logintype&loginstatus=$loginstatus&user=$user&page=$page"><b>管理员</b></a>
	<a href="statistics.php?mode=logins&usertype=C&logintype=$logintype&loginstatus=$loginstatus&user=$user&page=$page"><b>前台会员</b></a>
	
	<a href="statistics.php?mode=logins&usertype=$usertype&loginstatus=$loginstatus&logintype=login&user=$user&page=$page"><b>登录</b></a>
	<a href="statistics.php?mode=logins&usertype=$usertype&loginstatus=$loginstatus&logintype=logout&user=$user&page=$page"><b>退出</b></a>
	
	<a href="statistics.php?mode=logins&usertype=$usertype&logintype=$logintype&loginstatus=success&user=$user&page=$page"><b>成功</b></a>
	<a href="statistics.php?mode=logins&usertype=$usertype&logintype=$logintype&loginstatus=failure&user=$user&page=$page"><b>失败</b></a></td>
  </tr>
<FORM action="statistics.php?mode=logins" method="POST" name="searchuser">
  <tr bgcolor="#FFFFFF">
    <td colspan="4">
<!--
EOT;
include ('resultspage.htm');
print <<<EOT
-->
    </td>
	<td colspan="2" align="right">
<INPUT type="hidden" name="action" value="searchuser">
<INPUT type="hidden" name="mode" value="logins">
会员名:<INPUT type="text" id="user" name="user" size="10" maxlength="20" value="$user">
<INPUT type="submit" value=" 搜索" >
    </td>
  </tr>
</FORM>
  <tr height="25" bgcolor="#F0F3F8">
    <td width="25%">时间</td> 
	<td width="25%" align="left">会员名</td>
	<td width="10%">会员类型</td>
	<td width="10%">动作</td>
	<td width="20%">IP地址</td>
	<td width="10%">状态</td>
  </tr>
<!--
EOT;
foreach($statistics as $statistics){
$bgcolor =($bgcolor == '#FFFFFF')?'#F0F3F8':'#FFFFFF';
$statistics[date_time] = get_datetime($statistics[date_time]);
$logintype = ($statistics[usertype] == "C")?"前台会员":"<font color=red><b>管理员</b></font>";
print <<<EOT
-->
  <tr height="28" bgcolor="$bgcolor">
	<td style="padding-left:5px;"><NOBR>$statistics[date_time]</NOBR></td>
	<td style="padding-left:5px;"><a href="logins.php?user=$statistics[login]">$statistics[login]</a></td>
	<td style="padding-left:5px;">$logintype</td>
	<td style="padding-left:5px;">
<!--
EOT;
$loginaction = ($statistics[action] != "login")?"<b>退出</b>":"登录";
print <<<EOT
-->
$loginaction
	</td>
	<td style="padding-left:5px;">$statistics[ip]</td>
	<td style="padding-left:5px;">
<!--
EOT;
$loginstatues = ($statistics[status] != "success")?"<font color=red>失败</font>":"成功";
print <<<EOT
-->
$loginstatues
	</td>
  </tr>
<!--
EOT;
}print <<<EOT
-->
  <tr bgcolor="#FFFFFF">
    <td colspan="6">
<!--
EOT;
include ('resultspage.htm');
print <<<EOT
-->
    </td>
  </tr>
</table>
<BR>
<!--
EOT;
}else{print <<<EOT
-->
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<style>
td {font-size: 9pt;line-height: 1.5;}
body {font-size: 9pt;line-height: 1.5;}
a:link { font-size: 9pt; color: #000000; text-decoration: none }
a:visited{ font-size: 9pt; color: #000000; text-decoration: none }
a:hover {font-size: 9pt;color: red}
</style>
<table width="100%"  border="0" cellpadding="4" cellspacing="1" bgcolor="#A5D0F1">
  <tr>
    <td background="images/wbg.gif" bgcolor="#F0F3F8"><b>会员登录</b></td>
	<td background="images/wbg.gif" bgcolor="#F0F3F8" align="right">
	<a href="statistics.php?mode=logins&page=$page"><b>全部</b></a>
	<a href="statistics.php?mode=logins&usertype=P&logintype=$logintype&loginstatus=$loginstatus&user=$user&page=$page"><b>管理员</b></a>
	<a href="statistics.php?mode=logins&usertype=C&logintype=$logintype&loginstatus=$loginstatus&user=$user&page=$page"><b>前台会员</b></a>
	
	<a href="statistics.php?mode=logins&usertype=$usertype&loginstatus=$loginstatus&logintype=login&user=$user&page=$page"><b>登录</b></a>
	<a href="statistics.php?mode=logins&usertype=$usertype&loginstatus=$loginstatus&logintype=logout&user=$user&page=$page"><b>退出</b></a>
	
	<a href="statistics.php?mode=logins&usertype=$usertype&logintype=$logintype&loginstatus=success&user=$user&page=$page"><b>成功</b></a>
	<a href="statistics.php?mode=logins&usertype=$usertype&logintype=$logintype&loginstatus=failure&user=$user&page=$page"><b>失败</b></a></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td height="80" colspan="2" align="center">没有相关记录</td>
  </tr>
</table>
<!--
EOT;
}?>-->