<%@ Page Language="C#" MasterPageFile="~/AdminMaster.master" AutoEventWireup="true" CodeFile="EditPageContents.aspx.cs" Inherits="EditPageContents" Title="Untitled Page" ValidateRequest="false" EnableEventValidation="false" %>

<%@ Register src="US_MainAdminChecker.ascx" tagname="US_MainAdminChecker" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table style="width:100%;">
        <tr>
            <td style="text-align: right" colspan="3">
                <asp:Label ID="Lbl_Title" runat="server" CssClass="LabelHeaader" 
                    Text="ویرایش محتویات صفحات اصلی"></asp:Label>
            </td>
        </tr>
        <tr>
            <td style="text-align: right">
                <asp:Label ID="Lbl_PageName" runat="server" CssClass="Label" Text="عنوان صفحه:"></asp:Label>
            </td>
            <td style="text-align: right">
                <asp:DropDownList ID="Drp_PageNames" runat="server" CssClass="DropDownList" 
                    DataSourceID="LinqDt_Cmb_PageContents" DataTextField="PageTitle" 
                    DataValueField="PageContentID">
                </asp:DropDownList>
                <asp:LinqDataSource ID="LinqDt_Cmb_PageContents" runat="server" 
                    ContextTypeName="LSC_WareHouseDataContext" OrderBy="PageContentID" 
                    Select="new (PageContentID, PageTitle)" TableName="tblPageContents">
                </asp:LinqDataSource>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="text-align: right">
                <asp:Label ID="Lbl_PageContent" runat="server" CssClass="Label" 
                    Text="محتویات صفحه:"></asp:Label>
            </td>
            <td style="text-align: right">
                <asp:TextBox ID="TextBox2" runat="server" BackColor="White" Height="250px" 
                    TextMode="MultiLine" Width="646px"></asp:TextBox>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="text-align: right">
                &nbsp;</td>
            <td style="text-align: right">
                <asp:Button ID="Btn_Edit" runat="server" CssClass="ButtonEdit" 
                    Text="ویرایش صفحه" onclick="Btn_Edit_Click" />
                <asp:Button ID="Btn_Save" runat="server" CssClass="ButtonSave" 
                    Text="ثبت تغییرات" Enabled="False" onclick="Btn_Save_Click" />
                <asp:Button ID="Btn_Cancel" runat="server" CssClass="ButtonCancel" 
                    Text="لغو عملیات" Enabled="False" onclick="Btn_Cancel_Click" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                <asp:Label ID="Lbl_Message" runat="server" CssClass="LabelError"></asp:Label>
                <uc1:US_MainAdminChecker ID="US_MainAdminChecker1" runat="server" />
                </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <script type="text/javascript" src="nicEdit.js"></script>
<script type="text/javascript">	bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });</script>
<p>

</p>

</asp:Content>

