<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/WFAdmin/AdmMaster.Master" CodeBehind="Pages.aspx.vb" Inherits="WebFoundations.WFPortal.UI.Pages1" %>

<%@ 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" %>

<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>
			<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 style="z-index: 3; position: relative; top: 0; left: 0;">
		<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>
						<Legend>
							<Appearance Visible="False"/>
						</Legend>
						<PlotArea>
							<Series>
								<telerik:ColumnSeries DataFieldY="HITCOUNT" VisibleInLegend="false">
								<LabelsAppearance Visible="false"/>
								<Appearance>
									<FillStyle BackgroundColor="#12364A" />
								</Appearance>
								<TooltipsAppearance Color="White"/>
								</telerik:ColumnSeries>                                
							</Series>

							<XAxis DataLabelsField="TRK_C_PAGEALIAS"> 
								<MinorGridLines Visible="false" />
								<MajorGridLines Visible="false" />
							</XAxis>
							
							<YAxis>
								<MinorGridLines Visible="false" />
							</YAxis>
						</PlotArea>
					</telerik:RadHtmlChart>
				</center>
				<br />
				<br>
				<telerik:RadGrid ID="grdAccess" runat="server"
					AutoGenerateColumns="False" Width="100%" GridLines="None">
					<ExportSettings ExportOnlyData="True" FileName="Logs" IgnorePaging="True" OpenInNewWindow="True" />
					<MasterTableView>
						<Columns>
							<telerik:GridBoundColumn ItemStyle-Width="50%" ItemStyle-HorizontalAlign="Center"
								HeaderStyle-HorizontalAlign="center"
								DataField="TRK_C_PAGEALIAS" UniqueName="ItemName">
							</telerik:GridBoundColumn>
							<telerik:GridBoundColumn ItemStyle-Width="50%" ItemStyle-HorizontalAlign="Center"
								HeaderStyle-HorizontalAlign="center"
								DataField="HITCOUNT" UniqueName="HitCount">
							</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>
</asp:Content>
