<!--<?php
include_once PrintEot('left');
print <<<EOT
-->
<h3><b>提示信息</b></h3>
<div class="tr5">1.　為了保證後台的安全性,系統只允許論壇創始人和管理員刪除操作日記<br>2.　系統保留三天的論壇管理日志，只允許刪除三天前的日志.</div>


<form action="$basename&" method="post">
<h2>搜索</h2>
<table width="100%" cellspacing="0" cellpadding="0">

<tr class="tr3 tac"><td>用戶名 <input type="text" class="input" name='username1'></td>
<td>管理員 <input type="text" class="input" name='username2'></td>
<td><select name="type">
<option value="all">全 部</option>
<option value="topped" $type_sel[topped]>{$lang[logtype][topped]}</option>
<option value="digest" $type_sel[digest]>{$lang[logtype][digest]}</option>
<option value="highlight" $type_sel[highlight]>{$lang[logtype][highlight]}</option>
<option value="push" $type_sel[push]>{$lang[logtype][push]}</option>
<option value="locked" $type_sel[locked]>{$lang[logtype][locked]}</option>
<option value="remind" $type_sel[remind]>{$lang[logtype][remind]}</option>
<option value="shield" $type_sel[shield]>{$lang[logtype][shield]}</option>
<option value="down" $type_sel[down]>{$lang[logtype][down]}</option>
<option value="delete" $type_sel[delete]>{$lang[logtype][delete]}</option>
<option value="move" $type_sel[move]>{$lang[logtype][move]}</option>
<option value="copy" $type_sel[copy]>{$lang[logtype][copy]}</option>
<option value="edit" $type_sel[edit]>{$lang[logtype][edit]}</option>
<option value="credit" $type_sel[credit]>{$lang[logtype][credit]}</option>
<option value="deluser" $type_sel[deluser]>{$lang[logtype][deluser]}</option>
<option value="recycle" $type_sel[recycle]>{$lang[logtype][recycle]}</option>
</select>
</td>
<td><input type="submit" class="btn" value='提 交'></td></tr>
</table>
</form>
<form action="$basename&" method="post">
<input type="hidden" name="action" value="del">
<table width="100%" cellspacing="0" cellpadding="0">
<tr><td class="tr4" colspan="9"><b>操作日志</b></td></tr>
<tr class="tr3 tac s3">
<td width="3%">ID</td>
<td width="7%">類型</td>
<td width="10%">對象</td>
<td width="10%">管理員</td>
<td width="10%">論壇</td>
<td width="*">描述</td>
<td width="15%">操作日期</td>
<td width="10%">IP</td>
<td width="7%">刪除</td>
</tr>
<!--
EOT;
$num=($page-1)*$db_perpage;
foreach($logdb as $key => $value){
$num++;
print <<<EOT
-->
<tr class="tr3 tac">
<td>$num</td>
<td>{$lang[logtype][$value[type]]}</td>
<td><a href="u.php?action=show&username=$value[username1]" target="_blank">$value[username1]</a></td>
<td><a href="u.php?action=show&username=$value[username2]" target="_blank">$value[username2]</a></td>
<td><a href="thread.php?fid=$value[field1]" target="_blank">{$forum[$value[field1]][name]}</a></td>
<td><div style='overflow:hidden;text-overflow:ellipsis;white-space:nowrap;' align="left">$value[descrip]</div></td>
<td>$value[date]</td>
<td>$value[ip]</td>
<td>
<!--
EOT;
if(($timestamp-$value[timestamp])>259100){print <<<EOT
-->
<input type="checkbox" name="selid[]" value="$value[id]" onclick="pwJsCheck(this)" />
<!--
EOT;
}print <<<EOT
-->
</td></tr>
<!--
EOT;
}
$j_url=EncodeUrl("$basename&action=delall");
print <<<EOT
-->
</table><br>$pages
<center>
	<input type="button" name="chkall" class="btn" value="全 選" onclick="CheckAll(this.form)">
	<input type="submit" name="submit" class="btn" value="提 交"> <a href="$j_url"><b class="xia2" style="margin-left:2em;">刪除多余管理日志</b></a>
</center></form><br>
<!--
EOT;
include_once PrintEot('adminbottom');
?>
-->