<%@ Page Language="C#" MasterPageFile="../Admin.Master" AutoEventWireup="true" ValidateRequest="false"
    CodeBehind="AnnounceEdit.aspx.cs" Inherits="ETongJin.YM.Web.Admin.AnnounceEdit" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" href="../../Utility/jquery-ui.css" rel="stylesheet" />

    <script type="text/javascript" src="../../Utility/jquery-ui-datepicker.js"></script>

    <script type="text/javascript" src="../../Utility/colorpicker.js"></script>

    <script type="text/javascript">
        $(document).ready(function() {
            $('#<%=txtColor.ClientID %>').attachColorPicker().change(function() {
                $(this).css("color", $('#<%=txtColor.ClientID %>').getValue());
            });
            $('#<%=txtEnd.ClientID %>').datepicker({
                showButtonPanel: true
            });

            $('#<%=txtBegin.ClientID %>').datepicker({
                showButtonPanel: true
            });

        });
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="tableBorder" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <th colspan="2" class="ym12_bti">
                网站公告管理
            </th>
        </tr>
        <tr>
            <td align="right">
                标题：
            </td>
            <td class="td1">
                <asp:TextBox ID="txtTitle" ForeColor=" #999" runat="server" Width="254px"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="Dynamic"
                    ErrorMessage="不能为空！" ControlToValidate="txtTitle"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right">
                内容：
            </td>
            <td class="td1">
                <input type="hidden" name="txtContent" id="txtContent" runat="server" />
                <iframe id="myiframe" src="../../Utility/Editor/editor.htm?id=<%=txtContent.ClientID%>&ReadCookie=0"
                    frameborder="0" scrolling="no" width="650px" height="460px"></iframe>
            </td>
        </tr>
        <tr>
            <td align="right">
                标题颜色：
            </td>
            <td class="td1">
                <input type="text" runat="server" value="#000000" size="7" id="txtColor" />
            </td>
        </tr>
        <tr>
            <td align="right">
                字体大小：
            </td>
            <td class="td1">
                <input type="text" size="2" maxlength="2" value="12" runat="server" id="txtFontSize" />px
            </td>
        </tr>
        <tr>
            <td align="right">
                开始时间：
            </td>
            <td class="td1">
                <input type="text" runat="server" size="10" id="txtBegin" />
                (留空为立即开始)
            </td>
        </tr>
        <tr>
            <td align="right">
                结束时间：
            </td>
            <td class="td1">
                <input type="text" runat="server" size="10" id="txtEnd" />
                (留空为永久有效)
            </td>
        </tr>
        <tr>
            <td class="td1" colspan="2" style="text-align: left">
                <asp:Button ID="Button2" runat="server" Text=" 确 定 " OnClick="Button2_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
