<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/WFAdmin/AdmMaster.Master" CodeBehind="UserVisits.aspx.vb" Inherits="WebFoundations.WFPortal.UI.UserVisits"
	Title="Untitled Page" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register Assembly="WebFoundations.ServerControls" Namespace="WebFoundations.ServerControls" TagPrefix="cc1" %>
<%@ Register Src="../../../WFControls/WFPagePicker.ascx" TagName="WFPagePicker" TagPrefix="uc1" %>
<%@ Register TagPrefix="wff" Namespace="WebFoundations.ServerControls" Assembly="WebFoundations.ServerControls" %>

<asp:Content ContentPlaceHolderID="TagHead" runat="server">
	<script type="text/javascript">
		function postBackHiddenField(hiddenFieldID) {
			var hiddenField = $get(hiddenFieldID);
			if (hiddenField) {
				hiddenField.value = (new Date()).getTime();
				__doPostBack(hiddenFieldID, '');
			}
		}
	</script>
</asp:Content>

<asp:Content ContentPlaceHolderID="FilterContent" runat="server">
	<div class="fields">
		<label>
			<asp:Label ID="lblpage" runat="server" />
			<uc1:WFPagePicker ID="portalpicker" runat="server" AddSelect="false"
				AdminMode="true" AutoSelectLast="true" ShowArea="true" ShowPage="true" NoLabels="true" />
		</label>
		<label>
			<div style="width:100% !important;text-align:right;">
			<asp:Label ID="lbldatefrom" runat="server" />
			<cc1:DatePicker ID="datefrom" Width="115px" DisableLowerValuesFor="dateto" runat="server" />
			<asp:Label ID="lbldateto" runat="server" />
			<cc1:DatePicker ID="dateto" Width="115px" runat="server" />
			</div>
		</label>
	</div>
	<asp:Button ID="btnbuscar" runat="server" CssClass="search" />
</asp:Content>

<asp:Content ContentPlaceHolderID="ActionContent" runat="server">
	<ul>
		<li>
			<asp:HyperLink ID="lnkrefresh" runat="server" CssClass="refresh" /></li>
		<li>
			<asp:LinkButton ID="lnkExport" runat="server" CssClass="export" /></li>
	</ul>
</asp:Content>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">
	<asp:HiddenField ID="PostBackHidden" runat="server"></asp:HiddenField>
	<div>
		<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="updateform">
			<ProgressTemplate>
				<div class="up-loading"></div>
			</ProgressTemplate>
		</asp:UpdateProgress>
		<asp:UpdatePanel ID="updateform" runat="server">
			<ContentTemplate>
				<div style="width: 100%; text-align: center">
					&nbsp;
				</div>
				<telerik:RadGrid ID="grdLog" runat="server" AutoGenerateColumns="False" GridLines="None">
					<ExportSettings ExportOnlyData="True" FileName="Logs" IgnorePaging="True" OpenInNewWindow="True" />
					<MasterTableView>
						<Columns>
							<telerik:GridTemplateColumn UniqueName="ItemName">
								<ItemTemplate>
									<asp:Label ID="lbldate" runat="server" Text="Label"></asp:Label>
								</ItemTemplate>
								<ItemStyle HorizontalAlign="Center" Width="33%" />
								<HeaderStyle HorizontalAlign="Center" />
							</telerik:GridTemplateColumn>
							<telerik:GridBoundColumn
								DataField="TRK_C_USERNAME" UniqueName="UserName">
								<ItemStyle HorizontalAlign="Center" Width="33%" />
								<HeaderStyle HorizontalAlign="Center" />
							</telerik:GridBoundColumn>
							<telerik:GridBoundColumn
								DataField="HITCOUNT" UniqueName="HitCount">
								<ItemStyle HorizontalAlign="Center" Width="33%" />
								<HeaderStyle HorizontalAlign="Center" />
							</telerik:GridBoundColumn>
						</Columns>
						<ExpandCollapseColumn Visible="False">
							<HeaderStyle Width="19px" />
						</ExpandCollapseColumn>
						<RowIndicatorColumn Visible="False">
							<HeaderStyle Width="20px" />
						</RowIndicatorColumn>
					</MasterTableView>
					<ClientSettings AllowColumnsReorder="false" AllowDragToGroup="false"
						AllowColumnHide="false"
						Selecting-AllowRowSelect="true" Scrolling-AllowScroll="false"
						Scrolling-UseStaticHeaders="true">
					</ClientSettings>
				</telerik:RadGrid>
			</ContentTemplate>
			<Triggers>
				<asp:AsyncPostBackTrigger ControlID="ctl00$FilterContent$btnbuscar" EventName="Click" />
				<asp:AsyncPostBackTrigger ControlID="PostBackHidden" EventName="ValueChanged" />
			</Triggers>
		</asp:UpdatePanel>
	</div>
	<wff:WindowManager ID="EditWindow" runat="server">
		<Windows>
			<telerik:RadWindow ID="EditDialog" runat="server" Height="340px" Width="450px" ReloadOnShow="false" Modal="true" />
		</Windows>
	</wff:WindowManager>
</asp:Content>
