<%@ Page language="c#" Inherits="WebApplication2.Admin.SystemLog" CodeFile="systemlog.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>SystemLog</title>
		<LINK href="adminstyle.css" type="text/css" rel="stylesheet">
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="C#" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
	</HEAD>
	<body>
		<form id="Form1" method="post" runat="server">
			<FONT face="宋体">
				<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="98%" border="0" class="table_1">
					<TBODY>
						<TR>
							<TD style="height: 238px"><asp:DataGrid AutoGenerateColumns="False" Height="88px" ID="DataGrid1" runat="server" ShowFooter="true"
									ShowHeader="true" Width="100%">
									<ItemStyle HorizontalAlign="Center" BackColor="#fafff7"
										Height="25px"></ItemStyle>
									<AlternatingItemStyle BackColor="#fafff7"></AlternatingItemStyle>
									<HeaderStyle Font-Bold="True" HorizontalAlign="Center" BackColor="#66cc00"
										Height="30px"></HeaderStyle>
									<FooterStyle HorizontalAlign="Center" BackColor="White"></FooterStyle>
									<columns>
										<asp:TemplateColumn HeaderText="用户">
											<itemtemplate>
												<a href='<%# ss(Convert.ToString(DataBinder.Eval(Container.DataItem,"UserName")),Convert.ToString(DataBinder.Eval(Container.DataItem,"Affairs")))%>'>
													<%# Convert.ToString(DataBinder.Eval(Container.DataItem,"UserName"))%>
												</a>
											</itemtemplate>
										</asp:TemplateColumn>
										<asp:TemplateColumn HeaderText="角色">
											<itemtemplate>
												<%# Convert.ToString(DataBinder.Eval(Container.DataItem,"Affairs"))=="1"? "网站主":Convert.ToString(DataBinder.Eval(Container.DataItem,"Affairs"))=="2"? "广告主":Convert.ToString(DataBinder.Eval(Container.DataItem,"Affairs"))=="3"? "管理员":"未知" %>
											</itemtemplate>
										</asp:TemplateColumn>
										<asp:BoundColumn DataField="AffairsType" HeaderText="事件"></asp:BoundColumn>
										<asp:BoundColumn DataField="DataAndTime" HeaderText="时间"></asp:BoundColumn>
										<asp:BoundColumn DataField="ip" HeaderText="IP"></asp:BoundColumn>
										<asp:BoundColumn DataField="Remarks" HeaderText="事件详细信息"></asp:BoundColumn>
										<asp:TemplateColumn HeaderText="操作/来源页面">
											<itemtemplate>
												<table id="Table2" cellspacing="0" cellpadding="0" width="100%" border="0">
													<tr>
														<td style="WIDTH:70px">操作页面：</td>
														<td style="WIDTH:70px"><a href='<%#DataBinder.Eval(Container.DataItem,"webPage")%>' target=_blank><%#DataBinder.Eval(Container.DataItem,"webPage")%></a></td>
													</tr>
													<tr>
														<td style="WIDTH:70px">来源页面：</td>
														<td style="WIDTH:70px"><a href='<%#DataBinder.Eval(Container.DataItem,"fromPage")%>' target=_blank><%#DataBinder.Eval(Container.DataItem,"fromPage")%></a></td>
													</tr>
												</table>
											</itemtemplate>
										</asp:TemplateColumn>
									</columns>
								</asp:DataGrid></TD>
						</TR>
					</TBODY>
				</TABLE>
			</FONT>
			<asp:LinkButton id="LinkButton1" runat="server" CommandArgument="frist" onclick="gopage">首页</asp:LinkButton>&nbsp;|&nbsp;
			<asp:LinkButton id="LinkButton2" runat="server" CommandArgument="pre" onclick="gopage">上一页</asp:LinkButton>&nbsp;|&nbsp;
			<asp:LinkButton id="LinkButton3" runat="server" CommandArgument="next" onclick="gopage">下一页</asp:LinkButton>&nbsp;|&nbsp;
			<asp:LinkButton id="LinkButton4" runat="server" CommandArgument="end" onclick="gopage">尾页</asp:LinkButton>&nbsp;
			<asp:Label id="Label1" runat="server">0</asp:Label>/
			<asp:Label id="Label2" runat="server">0</asp:Label>&nbsp;记录数共
			<asp:Label id="Label3" runat="server" ForeColor="Red">0</asp:Label>条 第
			<asp:DropDownList id="DropDownList1" runat="server" AutoPostBack="True" onselectedindexchanged="DropDownList1_SelectedIndexChanged"></asp:DropDownList>页
		</form>
	</body>
</HTML>
