<%--
//-----------------------------------------------------------
// 文件名称: System_Notice_Operate.aspx
// 页面名称: 公告信息
//
// 描    述:
//
// 修改标识: Add By 钟治宇 2008-11-17  /24
// 会员详细内容不能上传图片 添加了一个控件
//-----------------------------------------------------------
--%>
<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Admin.System_Notice_Operate, V5Shop.Shop.Config" culture="auto" uiculture="auto" meta:resourcekey="PageResource1" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>
<%@ Register Src="control/PageBottom.ascx" TagName="PageBottom" TagPrefix="uc1" %>
<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>

<!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">
<title>V5Shop</title>
<link href="css/css.css" rel="stylesheet" type="text/css">
<link href="css/control.css" rel="stylesheet" type="text/css">
<link href="js/calendar-system.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript" src="js/Common.js"></script>
<script type="text/javascript" language="javascript" src="Js/Calendar.js"></script>
<script type="text/javascript" language="javascript" src="Js/Calendar-zh.js"></script>
<script type="text/javascript" language="javascript" src="Js/Calendar-Setup.js"></script>
<script type="text/javascript" src="editor/fckeditor.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        
    <div class="OperateTitle">
        <div>
            <asp:Label ID="lblTitleAdd" runat="server" Text="【 公告信息添加 】"></asp:Label> 
            <asp:Label ID="lblTitleEdit" runat="server" Text="【 公告信息编辑 】" Visible="false"></asp:Label> 
            <a href="System_Notice_Manage.aspx" title="返回公告列表">返回列表</a>
        </div>
    </div>
    <div>
        <table id="OperateTable" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
                <td width="20%" height="30" align="right">
                    <asp:Label ID="lblTitle" runat="server" Text="公告标题："></asp:Label> 
                </td>
                <td align=left>
                    <asp:TextBox ID="txtTitle" runat="server" Width="300px" MaxLength="100"></asp:TextBox>  
                    <span class="NeedMsg">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtTitle" runat="server" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td height="30" align="right">
                    <asp:Label ID="lblAuthor" runat="server" Text="发 布 人："></asp:Label>  
                </td>
                <td align=left>
                    <asp:TextBox ID="txtAuthor" runat="server" Width="300px" MaxLength="50"></asp:TextBox> 
                    <span class="NeedMsg">*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" ControlToValidate="txtAuthor" runat="server" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td height="30" align="right">
                    <asp:Label ID="lblContent" runat="server" Text="公告内容："></asp:Label> 
                </td>
                <td align=left>
                  <%--   2008-11-17/24  --%>
                    <button id="btnSelectPicture" runat="server" class="button" style="vertical-align: middle;
                        width: 72px; text-align: center" type="button">
                        图片选择</button></br>
                    <cc1:FCKeditor ID="fckcontent" runat="server" width="600px"></cc1:FCKeditor>
                </td>
            </tr>
            <tr>
                <td height="30" align="right">
                    <asp:Label ID="lblDate" runat="server" Text="发表时间："></asp:Label> 
                </td>
                <td align=left>
                    <asp:TextBox ID="txtDate" runat="server" meta:resourcekey="DateResource2" Width="300px"></asp:TextBox> 
                    <img id="sltdate" src="images/calendar1.gif" title="打开日历" alt="打开日历" align="absmiddle" /><span class="NeedMsg">*</span> 
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" ControlToValidate="txtDate" runat="server" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ControlToValidate="txtDate"
                            runat="server" ErrorMessage="日期格式不正确" ValidationExpression="^\d{4}-(\d{2}|\d{1})-(\d{2}|\d{1})( (\d{2}|\d{1}):(\d{2}|\d{1}):(\d{2}|\d{1}))*"
                            Display="Dynamic"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td height="30" align="right"></td>
                <td align=left>
                    <asp:Button ID="btnAdd" runat="server" Text="确定" OnClick="btnAdd_Click" class="button"/>
                    <asp:Button ID="btnEdit" runat="server" Text="更新" OnClick="btnEdit_Click" Visible="False" class="button"/>
                    <input id="iptReset" runat="server" type="reset" value="重置" class="button"/>    
                    <input id="Button1" runat="server" type="button" value="返回列表" onclick="window.location.href='System_Notice_Manage.aspx'" class="button"/>    
                </td>
            </tr>
        </table>  
        <script type="text/javascript">
            //加TABLE样式
            InitTrClass();
            //加载日期控件
            Calendar.setup({
                inputField     :    "txtDate",
                ifFormat       :    "%Y-%m-%d", 
                button         :    "sltdate",
                align          :    "Br",
                singleClick    :    true
            });
        </script>
    </div>
    <uc1:PageBottom ID="PageBottom1" runat="server" />
    </form>
</body>
</html>

