<%@ Page Language="C#" AutoEventWireup="true" Inherits="System_Other_Notice, QianboCMS" EnableEventValidation="false" %>
<!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 runat="server">
    <title>用户公告管理</title>
    <link href="../Css/layout.css" type="text/css" rel="stylesheet" />
    <script language="javascript" type="text/javascript" src="../../Js/DatePicker/WdatePicker.js"></script>
    <script language="javascript">
        function isok() {
            if (document.form1.Title.value == "") {
                alert("标题不能为空！")
                document.form1.Title.focus();
                return false;
            }
            if (document.form1.IsPriority.value == "") {
                alert("优先级别必须为1～100之间的数字字符！")
                document.form1.IsPriority.focus();
                return false;
            }
            if (isNaN(document.form1.IsPriority.value)) {
                alert("优先级别必须为数字字符！");
                document.form1.IsPriority.focus();
                return false;
            }
            return true;
        }
    </script>
</head>

<body>
    <form id="form1" runat="server">
        <table cellspacing="1" cellpadding="0" class="wzdh" align="center">
            <tr>
                <td style="padding-left: 10px;">
                    <img src="../Images/Skin/Default/you.gif" align="absmiddle" />
                    您现在的位置：<a href="../SystemInfo.aspx">后台管理</a> &gt;&gt; <a href="NoticeList.aspx">会员后台公告</a> &gt;&gt; 添加公告
				</td>
            </tr>
        </table>
        <table cellspacing="1" cellpadding="0" class="border" align="center">
            <tr>
                <td class="wzlist"><a href="NoticeList.aspx">用户后台公告列表</a> | <a href="Notice.aspx">添加公告</a> | <a href="NoticeList.aspx?UserId=-1&TypeId=4">我发的公告</a> | <a href="NoticeList.aspx?UserId=0&TypeId=3">未审核公告</a> | <a href="NoticeList.aspx?UserId=0&TypeId=5">已过期公告</a></td>
            </tr>
        </table>
        <table border="0" cellpadding="0" cellspacing="1" class="border" align="center">
            <tbody>
                <tr>
                    <td class="bqleft">标题：</td>
                    <td class="bqright">
                        <asp:TextBox ID="Title" runat="server"></asp:TextBox>
                        <asp:Label ID="Label1" runat="server"></asp:Label>
					</td>
                </tr>
                <tr>
                    <td class="bqleft">公告内容：</td>
                    <td class="bqright">
                        <asp:TextBox ID="Content" runat="server" Columns="45" Rows="6" TextMode="MultiLine"></asp:TextBox>
					</td>
                </tr>
                <tr>
                    <td class="bqleft">过期时间：</td>
                    <td class="bqright">
                        <asp:TextBox ID="OverdueDate" runat="server" onClick="WdatePicker()"></asp:TextBox>
					</td>
                </tr>
                <tr class="bqleft">
                    <td class="bqleft">优先级别：</td>
                    <td class="bqright">
                        <asp:TextBox ID="IsPriority" runat="server" MaxLength="2" onkeyup="value=value.replace(/[^\d]/g,'')">0</asp:TextBox>
                        <asp:Label ID="Label2" runat="server"></asp:Label>
					</td>
                </tr>
                <tr>
                    <td class="bqleft">公告状态：</td>
                    <td class="bqright">
                        <asp:RadioButtonList ID="IsState" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem>草稿</asp:ListItem>
                            <asp:ListItem Selected="True">审核通过</asp:ListItem>
                        </asp:RadioButtonList>
					</td>
                </tr>
                <tr>
                    <td class="bqleft">发布人：</td>
                    <td class="bqright">
                        <asp:Label ID="UserName" runat="server"></asp:Label>
					</td>
                </tr>
                <tr>
                    <td class="bqleft">发布时间：</td>
                    <td class="bqright">
                        <asp:Label ID="AddDate" runat="server"></asp:Label>
					</td>
                </tr>
                <tr>
                    <td class="bqleft"></td>
                    <td class="bqright">
                        <asp:Button ID="Button1" runat="server" Text="提交" CssClass="btn" onmousedown="isok()" OnClick="Button1_Click" />
					</td>
                </tr>
            </tbody>
        </table>
    </form>
</body>
</html>