<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/WFAdmin/AdmMaster.Master" CodeBehind="TrackPortal.aspx.vb" Inherits="WebFoundations.WFPortal.UI.TrackPortal"
	Title="Untitled Page" %>
<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>
<%@ 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="lblportal" runat="server" />
			<uc1:WFPagePicker ID="portalpicker" runat="server" Width="225" AddSelect="false"
				AdminMode="true" AutoSelectLast="true" ShowArea="false" ShowPage="false" 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" />
	<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>
				<center>
				<telerik:RadHtmlChart ID="chtAccess" Visible="False" runat="server" RenderMode="Auto" Height="500" Width="800">
						<ChartTitle>
							<Appearance Position="Top" />
						</ChartTitle>
						<PlotArea>
							<Series>
								<telerik:ScatterLineSeries DataFieldY="HITCOUNT" DataFieldX="LASTDATE">
								<Appearance>
									<FillStyle BackgroundColor="#12364A"/>
								</Appearance>
								<TooltipsAppearance DataFormatString="{0:dd/MM/yyyy}" Color="White">
									<ClientTemplate>
									</ClientTemplate>
								</TooltipsAppearance>
								<LabelsAppearance DataField="HITCOUNT"/>
								</telerik:ScatterLineSeries>                                
							</Series>

							<XAxis DataLabelsField="LASTDATE" Type="Date"> 
								<LabelsAppearance DataFormatString="dd/MM/yyyy"></LabelsAppearance>
								<MajorGridLines Color="#EFEFEF" Width="2"></MajorGridLines>
								<MinorGridLines Color="#F7F7F7" Width="1"></MinorGridLines>
							</XAxis>
							<YAxis>
								<TitleAppearance></TitleAppearance>
								<MajorGridLines Color="#EFEFEF" Width="2"></MajorGridLines>
								<MinorGridLines Color="#F7F7F7" Width="1"></MinorGridLines>
							</YAxis>
						</PlotArea>
				</telerik:RadHtmlChart>
				</center>
				<br>
				<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="50%" />
								<HeaderStyle HorizontalAlign="Center" />
							</telerik:GridTemplateColumn>
							<telerik:GridBoundColumn
								DataField="HITCOUNT" UniqueName="HitCount">
								<ItemStyle HorizontalAlign="Center" Width="50%" />
								<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="true" Modal="true" />
		</Windows>
	</wff:WindowManager>
</asp:Content>
