<%@ Page Language="VB" MasterPageFile="~/Site.master" AutoEventWireup="false" CodeFile="Approve.aspx.vb" ValidateRequest="false" Title="Charter - CMS" Inherits="Approve" %>
<%@ Register TagPrefix="FCKeditorV2" Namespace="FredCK.FCKeditorV2" Assembly="FredCK.FCKeditorV2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="adminPageBody" Runat="Server">

        
    <div>
        <asp:HyperLink ID="linkPreview" runat="server" Target="_blank">Click here to view all approved changes</asp:HyperLink>
        <br />
        <asp:HyperLink ID="lnkCreate" Font-Bold="true" NavigateUrl="Default.aspx" runat="server">CMS Menu</asp:HyperLink>
              <br />
              <br />
        <strong>Choose the Template ID to Approve:</strong>
        <asp:DropDownList ID="ddlTemplate" runat="server" AutoPostBack="True" 
            DataTextField="TemplateName" DataValueField="TemplateID">
        </asp:DropDownList>
        <asp:Button ID="btnApprove" runat="server" Font-Bold="True" Text="Approve Template" />
        &nbsp;
        &nbsp;&nbsp;<br />
        <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True"
            AutoGenerateColumns="False" CellPadding="4" DataSourceID="ObjectDataSource2" ForeColor="#333333"
            GridLines="None" Width="571px">
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <Columns>
                <asp:CommandField ShowSelectButton="True" />
                <asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True"
                    SortExpression="ID" />
                <asp:BoundField DataField="CONTENT_NAME" HeaderText="CONTENT_NAME" SortExpression="CONTENT_NAME" />
                <asp:CheckBoxField DataField="SEARCH_RESULT_DISPLAYABLE" HeaderText="SEARCHABLE"
                    SortExpression="SEARCH_RESULT_DISPLAYABLE" />
                <asp:BoundField DataField="CreatedBy" HeaderText="Created By" />
                <asp:BoundField DataField="CreatedDate" HeaderText="Created Date" />
                <asp:CommandField ShowDeleteButton="True" />
            </Columns>
            <RowStyle BackColor="#EFF3FB" />
            <EditRowStyle BackColor="#2461BF" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <AlternatingRowStyle BackColor="White" />
        </asp:GridView>
        <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" DeleteMethod="DeleteEdits"
            SelectMethod="GetPendingVersions" TypeName="CMSContentManager">
            <DeleteParameters>
                <asp:Parameter Name="ID" Type="Int32" />
            </DeleteParameters>
            <SelectParameters>
                <asp:ControlParameter ControlID="ddlTemplate" Name="TemplateID" PropertyName="SelectedValue"
                    Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
        &nbsp;&nbsp;
        <br />
        <br />
        <br />
        <FCKeditorV2:FCKeditor ID="FCKeditor" runat="server" BasePath="FCKeditor/" Height="495px"
            ToolbarSet="Greenhouse" Width="700px" Visible="False">
        </FCKeditorV2:FCKeditor>
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
    
    </div>

</asp:Content>