<%@ page language="C#" autoeventwireup="true" validaterequest="false" inherits="sys_Notice_NoticeAdd, Web" %>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>学校网上订餐预约系统</title>
    <link href="/control/plugin/bootstrap3/css/bootstrap.min.css" rel="stylesheet" />
    <script src="/control/js/jquery.js"></script>
    <script src="/control/plugin/bootstrap3/js/bootstrap.min.js"></script>
        <script src="/control/plugin/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
    <script src="/control/plugin/bootstrap-datepicker/js/locales/bootstrap-datepicker.zh-CN.js"></script>
        <link href="/control/plugin/bootstrap-datepicker/css/datepicker3.css" rel="stylesheet" />
    <style>
        .l {
            font-weight: initial;
        }
        .rd{
            color:red;
        }
    </style>
</head>
<body>
    <div class="container">
    <form id="from1" runat="server" class="form-horizontal">
        <div class="form-group">
            <label class="col-sm-2 control-label">
                标题<span class='rd'>*</span>：</label>
            <div class="col-sm-7">

                <asp:TextBox ID="txtn_title" runat="server" MaxLength="50" CssClass="form-control"></asp:TextBox>

            </div>
            <div class="col-sm-3">


                <asp:RequiredFieldValidator ID="rfvn_title" runat="server" ForeColor="Red" ErrorMessage="请填写标题" ControlToValidate="txtn_title"></asp:RequiredFieldValidator>

            </div>
        </div>
         <div class="form-group">
            <label class="col-sm-2 control-label">
                日期<span class='rd'>*</span>：</label>
            <div class="col-sm-7">
                <asp:TextBox ID="txtn_date" runat="server" CssClass="form-control form_date"></asp:TextBox>

            </div>
            <div class="col-sm-3">
                <asp:RequiredFieldValidator ID="rfvn_date" runat="server" ErrorMessage="请填写日期" ForeColor="Red" ControlToValidate="txtn_date"></asp:RequiredFieldValidator>
            </div>
        </div>

      
        <div class="form-group">
            <label class="col-sm-2 control-label">
                内容：</label>
            <div class="col-sm-10">
                <asp:TextBox ID="txtn_content" TextMode="MultiLine" runat="server" CssClass="form-control form_date"></asp:TextBox>
            </div>
            
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <asp:Button ID="btnSubmit" runat="server" Text="保存" CssClass="btn btn-default btn-primary" OnClick="btnSubmit_Click" />
            </div>
        </div>
       
    </form></div>

    <script src="/editor/ckeditor/ckeditor.js"></script>
    <script src="/editor/ckfinder/ckfinder.js"></script>
    <script type="text/javascript">

        var editor = null;
        window.onload = function () {
            editor = CKEDITOR.replace('txtn_content', {
                toolbar: 'Full',
                height: 300
            });
            CKFinder.setupCKEditor(editor, '/editor/ckfinder/');
        };

        $(".form_date").datepicker({
            language: "zh-CN",
            format: "yyyy-mm-dd",
            todayBtn: "linked",
            todayHighlight: true,
            autoclose: "true",
        });
        $(function () {
            window.parent.ShowDialog();
        });
    </script>
</body>
</html>
