<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="adminvisitloggrid.aspx.cs" Inherits="Focus.Admin.adminvisitloggrid" %>

<%@ Register TagPrefix="cc1" Namespace="Focus.Control" Assembly="Focus.Control" %>
<%@ Register TagPrefix="cc2" Namespace="Focus.Control" Assembly="Focus.Control" %>
<%@ Register TagPrefix="cc4" Namespace="Focus.Control" Assembly="Focus.Control" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
    <head>
		<title></title>
		<link href="styles/datagrid.css" type="text/css" rel="stylesheet" />		
		<link href="styles/calendar.css" type="text/css" rel="stylesheet" />
	 	<script type="text/javascript" src="js/common.js"></script>
	 	<link href="styles/fntmanager.css" type="text/css" rel="stylesheet" />        
        <link href="styles/modelpopup.css" type="text/css" rel="stylesheet" />
        <script type="text/javascript" src="js/modalpopup.js"></script>
    </head>
    <body>
		<form id="Form1" method="post" runat="server">
		 <cc1:Hint id="Hint1" runat="server" HintImageUrl="images"></cc1:Hint>
		<div class="ManagerForm">
		<fieldset>
		<legend style="background:url(images/icons/LookUp.gif) no-repeat 3px 20%;">搜索日志</legend>
			<table  class="table1" cellspacing="0" cellpadding="4" border="0" width="100%" >
				<tr>
					<td width="20%" class="td2">发生时间范围:</td>
					<td class="td2" colspan="3">
					    <cc4:Calendar id="postdatetimeStart" runat="server" ReadOnly="True" ScriptPath="js/calendar.js"></cc4:Calendar> -
						<cc4:Calendar id="postdatetimeEnd" runat="server" ReadOnly="True" ScriptPath="js/calendar.js"></cc4:Calendar>
					</td>
				</tr>
				<tr>
					<td class="td1" width="20%">搜索内容:</td>
					<td class="td1" width="30%">
					    <cc2:TextBox id="others" runat="server" RequiredFieldType="暂无校验" width="200"></cc2:TextBox>
					</td>
					<td class="td2" width="20%">管理员名称:<br /></td>
					<td class="td2" width="30%">
				        <cc2:TextBox id="Username" runat="server" HintTitle="提示" HintInfo="多用户名中间请用半角逗号 &amp;quot;,&amp;quot; 分割" 
				        RequiredFieldType="暂无校验" width="200"></cc2:TextBox>
				    </td>
				</tr>
				<tr><td align="center" colspan="4"><cc1:Button ID="SearchLog" runat="server" 
                        Text=" 开始搜索" ButtonImgUrl="images/search.gif" onclick="SearchLog_Click"></cc1:Button></td></tr>
		  </table>
		  </fieldset>
		  </div>
			<cc1:datagrid id="DataGrid1" runat="server" OnPageIndexChanged="DataGrid_PageIndexChanged" >
				<Columns>						
					 <asp:TemplateColumn HeaderText="选择">
						<ItemTemplate>
							<input id="visitid" onclick="javascript:SH_SelectOne(this)" type="checkbox" name="visitid" 
							value="<%# DataBinder.Eval(Container, "DataItem.visitid").ToString() %>" />
						</ItemTemplate>
					</asp:TemplateColumn>					
					<asp:BoundColumn DataField="visitid" HeaderText="visitid [递增]" Visible="false" ></asp:BoundColumn>
					<asp:BoundColumn DataField="username" HeaderText="操作者" ></asp:BoundColumn>
					<asp:BoundColumn DataField="grouptitle" HeaderText="用户组" ></asp:BoundColumn>
					<asp:BoundColumn DataField="ip"  HeaderText="IP地址" ></asp:BoundColumn>
					<asp:BoundColumn DataField="postdatetime" HeaderText="操作时间" ></asp:BoundColumn>
					<asp:BoundColumn DataField="actions" HeaderText="功能名称" ></asp:BoundColumn>
					<asp:BoundColumn DataField="others"  HeaderText="操作说明" ></asp:BoundColumn>
					<asp:BoundColumn DataField="state"  HeaderText="操作情况" ></asp:BoundColumn>
				</Columns>
			</cc1:datagrid>
			<table cellspacing="0" cellpadding="3" rules="rows" border="0">
				<tbody>
					<tr>
						<td>
							<input type="radio" name="deleteMode" checked="checked" onclick="changeDeleteModeState(1,this.form)" value="chkall" />
							<input title="选中/取消选中 本页所有Case" onClick="CheckAll(this.form)" type="checkbox" name="chkall" id="chkall" />全选/取消全选
							&nbsp;<input type="radio" name="deleteMode" onclick="changeDeleteModeState(2,this.form)" value="deleteNum" />
							保留最新<cc2:TextBox id="deleteNum" runat="server" RequiredFieldType="暂无校验" size="5" MaxLength="5" Enabled="true"></cc2:TextBox>条记录
							&nbsp;<input type="radio" name="deleteMode" onclick="changeDeleteModeState(3,this.form)" value="deleteFrom">
							删除<cc4:Calendar id="deleteFrom" runat="server" ReadOnly="True" ScriptPath="js/calendar.js" Enabled="False"></cc4:Calendar>之前的记录
							&nbsp;&nbsp;<cc1:Button id="DelRec" runat="server" Text=" 删 除 "   
                                ButtonImgUrl="images/del.gif" onclick="DelRec_Click"></cc1:Button>
						</td>
					</tr>
				</tbody>
			</table>
		</form>		
	</body>
</html>
