<!--<?php
include_once PrintEot('left');

print <<<EOT
-->
<table width=98% align=center cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=2>{#guide}</td></tr>
<tr><td class=b><br>
<ul>{#log_info}</ul>
<br></td></tr></table><br>

<form action="$basename&" method=post>
<input type=hidden name=action value=search>
<table width=98% align=center cellspacing=0 cellpadding=0>
<tr><td><table width=100% cellspacing=1 cellpadding=3 class=i_table>
<tr><td class=head colspan=5><b>{#log_search}</b></td></tr>
<tr align=center>
<td class=b>{#record_keyword}</td>
<td class=b><input type=text name=keyword></td>
<td class=b><input type=submit value='{#submit}'></td></tr>
</table></td></tr></table></form>
<br>

<table width='98%' align=center cellspacing=1 cellpadding=5 class=i_table style='word-break:break-all;'>
<tr><td class=head colspan=9>{#log_title}</td></tr>
<!--
EOT;
if($a_type=='adminlog'){
print <<<EOT
-->
<tr align='center'>
	<td class=head_2 width="10%">{#username}</td>
	<td class=head_2 width="10%">{#record_pwd}</td>
	<td class=head_2 width="30%">{#record_log}</td>
	<td class=head_2 width="10%">IP</td>
	<td class=head_2 width="15%">{#record_time}</td>
	<td class=head_2 width="30%">{#record_other}</td>
</tr>
$adlogfor
<!--
EOT;
}elseif($a_type=='forumlog'){
print <<<EOT
-->
<tr class=head_2 align='center'><td>{#admin}</td><td>{#username}</td>
<td width='15%'>{#forum}</td>
<td colspan=3>{#record_log}</td><td>IP</td><td>{#record_time}</td></tr>
$adlogfor
<!--
EOT;
}elseif($a_type=='creditlog'){
print <<<EOT
-->
<tr class=head_2 align='center'><td width=8%>{#record_credit}</td><td width=10%>{#author}</td>
<td width=5%>{#record_point}</td><td width=12%>{#record_position}</td>
<td width=10%>{#admin}</td><td width=10%>IP</td>
<td width=15%>{#record_time}</td><td>{#record_reason}</td></tr>
<!--
EOT;
foreach($creditdb as $credit){
if($credit){
print <<<EOT
-->
<tr class=b align=center><td>$credit[name]</td><td>$credit[5] </td><td>$credit[6]</td>
<td><a href="read.php?tid=$credit[1]">{#record_position}</a></td>
<td>$credit[3]</td>
<td>$credit[4]</td>
<td>$credit[time]</td><td>$credit[8]</td></tr>
<!--
EOT;
}}}
print <<<EOT
-->
</table><br>
<center>
$pages
<!--
EOT;
if($action=='search'){print <<<EOT
-->
<br><br><a href='$basename'>{#log_view}</a>
<!--
EOT;
}if($admin_gid==3){print <<<EOT
-->
<br><br><a href="$basename&del=Y">{#log_del}</a></center>
<!--
EOT;
}include_once PrintEot('adminbottom');
?>
-->