<%@ page language="C#" validaterequest="false" masterpagefile="AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_Admin_AddAnnounce, mallz" title="添加修改公告" enableEventValidation="false" %>

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

    <table class="nick">
        <tr>
           <td colspan="2" class="tit">编辑公告</td>
        </tr>
        <tr>
            <td class="ltd">标题：</td>
            <td class="rtd"><asp:TextBox ID="txtTitle" MaxLength="50" Width="200px"  runat="server" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtTitle"
                              ErrorMessage="不能空"></asp:RequiredFieldValidator> 
            </td>
        </tr>
        <tr>
            <td class="ltd">类型：</td>
            <td class="rtd">
                <asp:DropDownList ID="droptype" runat="server"  >
                    <asp:ListItem Text="弹窗" Value="1"></asp:ListItem>
                    <asp:ListItem Text="滚动" Value="2"></asp:ListItem>
                   
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="ltd">等级：</td>
            <td class="rtd">
                <asp:DropDownList ID="dropImportant" runat="server"  >
                    <asp:ListItem Text="普通" Value="0"></asp:ListItem>
                    <asp:ListItem Text="重要" Value="1"></asp:ListItem>
                    <asp:ListItem Text="紧急" Value="2"></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="ltd">发布人：</td>
            <td class="rtd"><asp:TextBox MaxLength="50"  ID="txtzuozhe" runat="server" Enabled="false" /></td>
        </tr>
        <tr>
            <td class="ltd">开始日期：</td>
            <td class="rtd"><asp:TextBox ID="txtBeginDate" runat="server"  />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtBeginDate"
                              ErrorMessage="不能空"></asp:RequiredFieldValidator>          
            </td>
        </tr>
        <tr>
            <td class="ltd">结束日期：</td>
            <td class="rtd"><asp:TextBox ID="txtEndDate" runat="server" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtEndDate"
                              ErrorMessage="不能空"></asp:RequiredFieldValidator> 
             </td>
        </tr>
        <tr>
            <td class="ltd">公告内容：</td>
	    <td class="rtd" >
             <asp:TextBox ID="txtcontent" runat="server"  style="display:none;"/>
             <iframe src="Editor/Editor.aspx?ID=ctl00_ContentPlaceHolder1_txtcontent" height="300" width="100%" frameborder="0" ></iframe>
             </td>
        </tr>
        <tr>
            <td class="btm" colspan="2">
                <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="添 加" />              
                <asp:Button ID="Button2" runat="server" OnClick="Button2_Click" Text="修 改" />
                <input type="button" onclick="javascript:{location.href='Admin_Announce.aspx';}" value="返 回" />
            </td>
        </tr>
        </table>
	<table class="adminlist"></table>
</asp:Content>

