<%@ Register tagPrefix="bbs" tagName="AdminFooter" src="controls/admin_footer.ascx"%>
<%@ Register tagPrefix="bbs" tagName="AdminHeader" src="controls/admin_header.ascx"%>
<%@ Register tagPrefix="Dvbbs" namespace="Dvbbs.Controls" assembly="Dvbbs.Web"%>
<%@ Page Inherits="Dvbbs.bbs.UI.Admin.admin_log" %>
<bbs:AdminHeader title="论坛安全日志" runat="server" id="AdminHeader1" />
<script language="javascript">
function clearAll()
{
	if (!confirm('确定要删除本列表中所有记录吗?'))
	{
		return false;
	}
	location.href = '?action=clear';
}

function CheckAll(form)
{
	for (var i=0;i<form.elements.length;i++)
	{
		var e = form.elements[i];
		if (e.name == 'remove')
			e.checked = form.checkallpri.checked;
	}
}
</script>
<form name="search" method="get">
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0" ID="table1">
		<tr>
			<th colspan="2">论坛系统日志</th>
		</tr>
		<tr>
			<td rowspan="2" class="left" width="30%">搜索范围</td>
			<td width="70%" class="right">所属版面：
				<select id="BoardID" name="BoardID">
					<option value="">所有论坛</option>
					<% foreach (Dvbbs.bbs.Entity.BoardJumpList.BoardInfo bi in Dvbbs.bbs.Entity.ForumCaching.GetBoardJumpList()) { %>
					<option value="<%=bi.BoardId.ToString()%>" <%=(BoardID==bi.BoardId.ToString()?"selected":"")%>><%=bi.BoardType%></option>
					<% } %>
				</select></td>
		</tr>
		<tr>
			<td class="left">日志类型：
				<select id="LogType" name="LogType">
					<option value="" <%=(LogType==""?"selected":"")%>>全部日志</option>
					<option value="1" <%=(LogType=="1"?"selected":"")%>>帖子管理</option>
					<option value="2" <%=(LogType=="2"?"selected":"")%>>置顶操作</option>
					<option value="3" <%=(LogType=="3"?"selected":"")%>>奖惩操作</option>
					<option value="4" <%=(LogType=="4"?"selected":"")%>>用户处理</option>
					<option value="5" <%=(LogType=="5"?"selected":"")%>>后台日志</option>
					<option value="6" <%=(LogType=="6"?"selected":"")%>>注册登录</option>
				</select></td>
		</tr>
		
		<tr>
			<td rowspan="2" class="left" width="30%">关 键 字</td>
			<td width="70%" class="right">关键字： <input type="text" class="otherinput" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)"
					onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" id="Text1"
					style="WIDTH:180px" maxlength="28" runat="server" NAME="keyword"></td>
		</tr>
		<tr>
			<td class="left">关键字匹配：
				<select id="KeyType" name="KeyType">
					<option value="0" <%=(KeyType=="0"?"selected":"")%>>全部列</option>
					<option value="1" <%=(KeyType=="1"?"selected":"")%>>对象</option>
					<option value="2" <%=(KeyType=="2"?"selected":"")%>>事件内容</option>
					<option value="3" <%=(KeyType=="3"?"selected":"")%>>IP</option>
					<option value="4" <%=(KeyType=="4"?"selected":"")%>>操作者</option>
				</select></td>
		</tr>
		
		
		
		<tr>
			<td colspan="2" align="center">
				<input type="submit" class="button" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)"
					onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" value="搜 索">
				<input type="button" class="button" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)"
					onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" value="清空列表"
					onclick="javascript:return clearAll()">
			</td>
		</tr>
	</table>
</form>
<form id="deloprator" runat="server">
	<table width="100%" class="maintable" cellpadding="0" cellspacing="1" border="0" ID="table1">
		<tr align="center">
			<td nowrap class="title"><b>删除？</b></td>
			<td nowrap class="title"><b>对象</b></td>
			<td nowrap class="title">事件内容</td>
			<td nowrap class="title"><b>操作者</b></td>
			<td nowrap class="title"><b>IP</b></td>
			<td nowrap class="title"><b>时间</b></td>
		</tr>
		<asp:Repeater enableviewstate="false" id="list" runat="server">
			<ItemTemplate>
				<tr onmouseover="this.className='highlight'" onmouseout="this.className=''">
					<td align="center"><Dvbbs:Span id="remove" runat="server"/></td>
					<td nowrap><Dvbbs:Anchor id="upage" runat="server" /></td>
					<td><Dvbbs:Span id="action" runat="server" /></td>
					<td><Dvbbs:Anchor id="name" runat="server" /></td>
					<td nowrap><Dvbbs:Span id="ip" runat="server" /></td>
					<td nowrap><Dvbbs:Span id="time" runat="server" /></td>
				</tr>
			</ItemTemplate>
		</asp:Repeater>
		<tr>
			<td colspan="6" class="bottom">
				<input name="checkallpri" id="checkallpri" type="checkbox" class="checkbox" onclick="CheckAll(deloprator)">
			删除选中的记录 &nbsp; <input type="submit" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)" onMouseOver="IEvent('mouseover',this)"
					onMouseOut="IEvent('mouseout',this)" class="button" value="删 除"> &nbsp;
			&nbsp;&nbsp;<Dvbbs:Span id="result" runat="server"/>
			</td>
		</tr>
		<tr>
			<td class="title" colspan="6"><Dvbbs:Pager id="pager" per="25" runat="server" /></td>
		</tr>
	</table>
</form>
</td>
<td></td>
</tr> </table>
<bbs:AdminFooter runat="server" id="AdminFooter1" />
