<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" CodeBehind="StatUserDataReport.aspx.cs" Inherits="PowerEasy.Module.General.WebSite.Admin.Analytics.StatUserDataReport" Title="网站统计报告" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CphNavigation" runat="server">
    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%">
        <tr>
            <td style="width: 80%;">
                <pe:ExtendedSiteMapPath ID="SmpNavigator" runat="server" SiteMapProvider="AdminMapProvider">
                </pe:ExtendedSiteMapPath>
            </td>
            <td style="width: 20%; text-align: right">
                有效统计：<asp:Label ID="LblCount" runat="server" ForeColor="Red"></asp:Label>&nbsp;</td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphContent" runat="server">
    <pe:ExtendedGridView ID="ExtendedGridView1" runat="server" AllowPaging="True" AutoGenerateColumns="False" CheckBoxFieldHeaderWidth="3%" DataSourceID="OdsStat" IsHoldState="True" OnDataBinding="ExtendedGridView1_DataBinding" SerialText="">
        <Columns>
            <pe:BoundField DataField="Key" HeaderText="Key">
                <ItemStyle HorizontalAlign="Left" Width="30%" />
                <HeaderStyle HorizontalAlign="Left" Width="30%" />
            </pe:BoundField>
            <pe:BoundField DataField="Value" HeaderText="访问人数">
                <ItemStyle HorizontalAlign="Left" Width="20%" />
                <HeaderStyle HorizontalAlign="Left" Width="20%" />
            </pe:BoundField>
            <pe:TemplateField HeaderText="百分比">
                <ItemStyle HorizontalAlign="Left" Width="20%" />
                <HeaderStyle HorizontalAlign="Left" Width="20%" />
                <ItemTemplate>
                    <%# string.Format("{0:p}", Convert.ToSingle(Eval("Value")) / m_ItemSum)%>
                </ItemTemplate>
            </pe:TemplateField>
            <pe:TemplateField HeaderText="图示">
                <ItemStyle HorizontalAlign="Left" Width="30%" />
                <HeaderStyle HorizontalAlign="Left" Width="30%" />
                <ItemTemplate>
                    <%# string.Format("<div class='StatBar' style='width:{0}%'>", (Convert.ToSingle(Eval("Value")) / m_ItemSum) * BarWidth)%>
                </ItemTemplate>
            </pe:TemplateField>
        </Columns>
    </pe:ExtendedGridView>
    <asp:ObjectDataSource ID="OdsStat" runat="server" EnablePaging="True" MaximumRowsParameterName="maxiNumRows"
        StartRowIndexParameterName="startRowIndexId" TypeName="PowerEasy.Module.General.BusinessLogic.Analytics.UserDataReport" OldValuesParameterFormatString="original_{0}" SelectCountMethod="Count" SelectMethod="GetList">
        <SelectParameters>
            <asp:Parameter DefaultValue="0" Name="sn" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
</asp:Content>
