<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager" %>
<%@ Page CodeBehind="admin_log.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Webdisk.admin_log" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
  <HEAD>
		<TITLE></TITLE>
		<LINK href="images/Site_Css.css" type="text/css" rel="stylesheet">
			<META http-equiv="Content-Type" content="text/html; charset=gb2312">
			<LINK href="images/Css.css" type="text/css" rel="stylesheet">
				<META content="MSHTML 6.00.6000.16544" name="GENERATOR">
				<style type="text/css">.style4 { COLOR: #ff0000 }
	</style>
<script type="text/javascript" language="javascript" src="../js/function.js"></script>
</HEAD>
	<BODY bgColor="#ffffff" topMargin="5" marginheight="0" marginwidth="0">
		<form id="Form1" name="Form1" method="post" runat="server">
			<DIV></DIV>
			<DIV>
				<TABLE cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
					<TBODY>
						<TR>
							<TD class="menubar_title"><IMG hspace="3" src="images/default.gif" align="absMiddle" vspace="3" border="0">&nbsp;
								<asp:label id="title" runat="server"></asp:label>操作日志查看</TD>
							<TD class="menubar_readme_text" vAlign="bottom">&nbsp;</TD>
						</TR>
						<TR>
							<TD class="menubar_function_text" height="1">&nbsp;</TD>
							<TD class="menubar_menu_td" align="right">&nbsp;</TD>
						</TR>
						<TR>
							<TD colSpan="2" height="5"></TD>
						</TR>
					</TBODY></TABLE>
				<TABLE cellSpacing="0" cellPadding="0" width="100%" align="center" border="0">
					<TBODY>
						<TR>
							<TD background="images/tab_top_bg.gif" height="22">
								<TABLE cellSpacing="0" cellPadding="0" border="0">
									<TBODY>
										<TR>
											<!--按钮　Start-->
											<TD>
												<TABLE height="22" cellSpacing="0" cellPadding="0" border="0">
													<TBODY>
														<TR>
															<TD width="3"><IMG id="tabImgLeft__0" height="22" src="images/tab_unactive_left.gif" width="3"></TD>
															<TD class="tab" id="tabLabel__0" onclick="javascript:tabClick(0,2)" background="images/tab_unactive_bg.gif"
																UNSELECTABLE="on">日志查看</TD>
															<TD width="3"><IMG id="tabImgRight__0" height="22" src="images/tab_unactive_right.gif" width="3"></TD>
														</TR>
													</TBODY></TABLE>
											</TD>
											<TD>
												<TABLE height="22" cellSpacing="0" cellPadding="0" border="0">
													<TBODY>
														<TR>
															<TD width="3"><IMG id="tabImgLeft__1" height="22" src="images/tab_unactive_left.gif" width="3"></TD>
															<TD class="tab" id="tabLabel__1" onclick="javascript:tabClick(1,2)" background="images/tab_unactive_bg.gif"
																UNSELECTABLE="on">搜索日志</TD>
															<TD width="3"><IMG id="tabImgRight__1" height="22" src="images/tab_unactive_right.gif" width="3"></TD>
														</TR>
													</TBODY></TABLE>
											</TD>
										</TR>
									</TBODY></TABLE>
							</TD>
						</TR>
						<TR>
							<TD bgColor="#ffffff">
								<TABLE cellSpacing="0" cellPadding="0" width="100%" border="0">
									<TBODY>
										<TR>
											<TD width="1" background="images/tab_bg.gif"><IMG height="1" src="images/tab_bg.gif" width="1"></TD>
											<TD vAlign="top" height="100" class="borderstyle" >
												<DIV id="tabContent__0"><asp:datagrid id="DataGrid" runat="server" AllowSorting="True" PageSize="20" Width="100%" AutoGenerateColumns="False"
														CssClass="GridBody">
<AlternatingItemStyle CssClass="GridLine">
</AlternatingItemStyle>

<ItemStyle CssClass="GridItem">
</ItemStyle>

<HeaderStyle CssClass="GridHead">
</HeaderStyle>

<Columns>
<asp:TemplateColumn HeaderText="选择">
<HeaderStyle HorizontalAlign="Center" Width="5%">
</HeaderStyle>

<ItemStyle HorizontalAlign="Center">
</ItemStyle>

<HeaderTemplate>
																	<INPUT type="checkbox" id="CheckBox2" onClick="checkAll()">
																
</HeaderTemplate>

<ItemTemplate>
																	<INPUT id=chkSelect onclick=AddRemoveValues(this) type=checkbox value='<%#DataBinder.Eval(Container.DataItem,"id")%>' name=checkbox>
																
</ItemTemplate>
</asp:TemplateColumn>
<asp:BoundColumn Visible="False" DataField="id"></asp:BoundColumn>
<asp:BoundColumn DataField="ActionPostion" SortExpression="ActionPostion" HeaderText="栏目">
<HeaderStyle HorizontalAlign="Center" Width="10%">
</HeaderStyle>

<ItemStyle HorizontalAlign="Center">
</ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="Action" HeaderText="事件">
<HeaderStyle HorizontalAlign="Center">
</HeaderStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="ActionTime" SortExpression="ActionTime" HeaderText="操作时间">
<HeaderStyle HorizontalAlign="Center" Width="20%">
</HeaderStyle>

<ItemStyle HorizontalAlign="Center">
</ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="IP" SortExpression="IP" HeaderText="IP">
<HeaderStyle HorizontalAlign="Center" Width="15%">
</HeaderStyle>

<ItemStyle HorizontalAlign="Center">
</ItemStyle>
</asp:BoundColumn>
<asp:BoundColumn DataField="ActionUser" SortExpression="ActionUser" HeaderText="操作人">
<HeaderStyle HorizontalAlign="Center" Width="15%">
</HeaderStyle>

<ItemStyle HorizontalAlign="Center">
</ItemStyle>
</asp:BoundColumn>
</Columns>

<PagerStyle PageButtonCount="20" Mode="NumericPages">
</PagerStyle>
													</asp:datagrid><br>
													<DIV align="right"><webdiyer:aspnetpager id="Pager" runat="server" PageSize="20" CssClass="page" Height="20px" LastPageText="<font face=webdings>:</font>"
															NextPageText="<font face=webdings>4</font>" PrevPageText="<font face=webdings>3</font>" FirstPageText="<font face=webdings>9</font>"
															ShowBoxThreshold="21" HorizontalAlign="Right" NumericButtonCount="15" ShowCustomInfoSection="Left" AlwaysShow="True" onpagechanged="Pager_PageChanged"></webdiyer:aspnetpager></DIV>
													<br>
													勾选记录：
													<asp:button id="btndel" runat="server" Width="50px" CssClass="formbutton" Text="删除" onclick="btndel_Click"></asp:button>&nbsp;&nbsp;
													<asp:button id="btndelete" runat="server" Width="70px" CssClass="formbutton" Text="清空日志" onclick="btndelete_Click"></asp:button>&nbsp;&nbsp;
													<asp:button id="btnexport" runat="server" CssClass="formbutton" Text="导出日志" onclick="btnexport_Click"></asp:button><input id="HdnSelectedValues" type="hidden" name="HdnSelectedValues" runat="server">
												</DIV> <!--内容框End-->
												<DIV id="tabContent__1">
													<TABLE cellSpacing="1" cellPadding="3" width="100%" align="center" border="0">
														<TBODY>
															<TR>
																<TD class="table_body" width="22%">关键字</TD>
																<TD class="table_none" width="78%"><input class="tableTdtext" id="key" type="text" size="20" name="username" runat="server"></TD>
															</TR>
															<TR>
																<TD class="table_body">关键字匹配</TD>
																<TD class="table_none"><select id="type" name="type" runat="server">
																		<option value="0" selected>全部列</option>
																		<option value="1">栏目</option>
																		<option value="2">事件</option>
																		<option value="3">IP</option>
																		<option value="4">操作人</option>
																	</select></TD>
															</TR>
															<TR>
																<TD class="table_body">&nbsp;</TD>
																<TD class="table_none"><asp:button class="formbutton" id="Submit1" runat="server" Width="70px" Text=" 搜 索 " onclick="Submit1_Click"></asp:button></TD>
															</TR>
														</TBODY></TABLE>
												</DIV>
												<!--内容框Start--></TD>
											<TD width="1" background="images/tab_bg.gif"><IMG height="1" src="images/tab_bg.gif" width="1"></TD>
										</TR>
									</TBODY></TABLE>
							</TD>
						</TR>
						<TR>
							<TD background="images/tab_bg.gif" bgColor="#ffffff"><IMG height="1" src="images/tab_bg.gif" width="1"></TD>
						</TR>
					</TBODY></TABLE> <!--选项卡 End--></DIV>
			<DIV>
				<div align="center"></div>
			</DIV>
		</form>
		<script language="javascript">
        function tabClick(idx,count) {
          for (i_tr = 0; i_tr < count; i_tr++) {
            if (i_tr == idx) {
              var tabImgLeft = eval('document.all.tabImgLeft__' + idx);
              var tabImgRight = eval('document.all.tabImgRight__' + idx);
              var tabLabel = eval('document.all.tabLabel__' + idx);
              var tabContent = eval('document.all.tabContent__' + idx);

              tabImgLeft.src = 'images/tab_active_left.gif';
              tabImgRight.src = 'images/tab_active_right.gif';
              tabLabel.background = 'images/tab_active_bg.gif';
              tabContent.style.visibility = 'visible';
              tabContent.style.display = 'block';
              continue;
            }
            var tabImgLeft = eval('document.all.tabImgLeft__' + i_tr);
            var tabImgRight = eval('document.all.tabImgRight__' + i_tr);
            var tabLabel = eval('document.all.tabLabel__' + i_tr);
            var tabContent = eval('document.all.tabContent__' + i_tr);

            tabImgLeft.src = 'images/tab_unactive_left.gif';
            tabImgRight.src = 'images/tab_unactive_right.gif';
            tabLabel.background = 'images/tab_unactive_bg.gif';
            tabContent.style.visibility = 'hidden';
            tabContent.style.display = 'none';
          }
        }
        tabClick(0,2);
		</script>
		<BR>
	</BODY>
</HTML>
