<%@ Page Language="VB" 
    AutoEventWireup="false" 
    CodeFile="RatingCommentReport.aspx.vb" 
    Inherits="Reports_RatingCommentReport" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<%@ Register Src="wucHeader.ascx" TagName="TopMenu" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <link href="Styles.css" type="text/css" rel="stylesheet" />
    <title>Content Rating Report</title>
</head>
<body>
    <form id="form1" runat="server" style="">
        <!-- the user control contains the menus, heading, and user id label for the form -->
        <uc1:TopMenu runat="Server" ID="wucHeader1" />
        <br />
        <br />
        <br />
        <asp:Button ID="Daily" runat="server" Text="Past 24 Hours" Width="100" />
        <asp:Button ID="Weekly" runat="server" Text="Past 7 Days" Width="100" />
        <asp:Button ID="Monthly" runat="server" Text="Past 30 Days" Width="100" />
        <asp:Button ID="Yearly" runat="server" Text="Past 365 Days" Width="100" />
        <br />
        <br /><br />
        <div style="font-size:10px;">You can enter a year without day and month, example: <strong>Try Start Date 2008.</strong></div><br />
        <asp:CheckBox ID="chkUseDates" runat="server" Text="Use Date Range?" />
        &nbsp;&nbsp;
        <asp:Label ID="lblStartDate" runat="server" Text="Start Date"></asp:Label>
        <asp:TextBox ID="txtStartDate" runat="server" Width="110px"></asp:TextBox>
        <a onclick="window.open('popup.aspx?textbox=txtStartDate','cal','width=225,height=215,left=270,top=180,toolbar=no,status=no,menubar=no,scrollbars=no')"
            href="javascript:;">
            <img alt="" style="width: 18px; height: 18px" height="18" src="images/SmallCalendar.gif"
                width="18" border="0" />
        </a>&nbsp; &nbsp;&nbsp;
        <asp:Label ID="lblEndDate" runat="server" Text="End Date"></asp:Label>
        <asp:TextBox ID="txtEndDate" runat="server" Width="110px"></asp:TextBox>
        <a onclick="window.open('popup.aspx?textbox=txtEndDate','cal','width=225,height=215,left=270,top=180,toolbar=no,status=no,menubar=no,scrollbars=no')"
            href="javascript:;">
            <img alt="" style="width: 18px; height: 18px" height="18" src="images/SmallCalendar.gif"
                width="18" border="0" />
        </a> &nbsp; <asp:Button ID="btnDateRangeReport" runat="server" Text="Get Report" Width="120" />&nbsp;<asp:Button ID="btnReset" runat="server" Text="Reset" Width="60" />
        <br />
        <br />
        <br />
        <div>
            <span style="font-size: x-small">
                <asp:Label Visible="false" ID="Label1" Text="Click Column header to sort" runat="server" /></span>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnExport" 
                Text="Export To Excel" Width="124px" Visible="true" runat="server" />
            <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="false" AllowSorting="true"
                OnSorting="GridView1_Sorting" CellPadding="5" EnableViewState="true" AlternatingRowStyle-BackColor="Azure"
                HeaderStyle-BackColor="#F8F6F6" CssClass="tstyle">
                <Columns>
                    <asp:BoundField DataField="DocumentID" HeaderText="ID " SortExpression="DocumentID" />
                    <asp:BoundField DataField="Title" HeaderText="Title " SortExpression="Title " />
                    <asp:BoundField DataField="CreateDate" 
                        HeaderText="Feedback Date " SortExpression="CreateDate"
                         DataFormatString="{0:d}" 
                        />
                    <asp:BoundField DataField="Rating" HeaderText="Rating " SortExpression="Rating" />
                    <asp:HyperLinkField DataNavigateUrlFields="DocumentID" DataNavigateUrlFormatString="http://www.charter.com/customers/support.aspx?supportarticleid={0}"
                        Text="URL" HeaderText="Link " Target="_blank" SortExpression="DocumentID " />
                    <asp:BoundField DataField="Comments" HeaderText="Comments " SortExpression="Comments" />
                </Columns>
            </asp:GridView>
        </div>
    </form>
</body>
</html>
