<%@ page language="C#" autoeventwireup="true" inherits="Admin_sys_affiche_add, Fm.Web" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>


<!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="../Admin/skin/css.css" rel="stylesheet" type="text/css" />
     <link href="/images/css/inbox.css"rel="stylesheet" type="text/css" />
        <script language=javascript>
        　//验证是否为空
          function Yan()
          {
             var title=document.getElementById("aff_title");
             var user=document.getElementById("aff_user");
            // var content=document.getElementById("aff_content");
             var time=document.getElementById("aff_time");
             if(title.value=="")
             {
                  alert("公告标题不能为空");
                  return false;
             }
             else if(user.value=="")
             {
                  alert("发布人不能为空");
                  return false;
             }
//             else if(content.value=="")
//             {
//                   alert("内容不能为空");
//                   return false;
//             }
             else 
             { 
                 return true;
             }
          }
        
        </script>
</head>
<body>
    <form id="form1" runat="server">
    <div align=center>
        <table style="width: 90%" class="Ibx_gTable_Con">
            <tr>
                <td colspan="2">
                    公告添加</td>
            </tr>
            <tr>
                <td align="right" width="20%">
                    公告标题:</td>
                <td align="left" width="70%">
                    <asp:TextBox ID="aff_title" runat="server" Width="425px"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="right" width="20%" style="height: 28px">
                    发布人:</td>
                <td align="left" style="height: 28px" width="70%">
                    <asp:TextBox ID="aff_user" runat="server"></asp:TextBox></td>
            </tr>
            <tr>
                <td align="right" width="20%">
                    内容:</td>
                <td align="left" width="70%">
                    &nbsp;<FCKeditorV2:FCKeditor ID="aff_content" runat="server" Height="500px">
                    </FCKeditorV2:FCKeditor>
                </td>
            </tr>
            <tr>
                <td align="center" colspan="2">
                    <asp:ImageButton ID="ImageButton1" runat="server" OnClientClick="return Yan()" ImageUrl="~/Admin/skin/images/button_save.gif" OnClick="ImageButton1_Click" /></td>
            </tr>
        </table>
    
    </div>
    </form>
</body>
</html>
