<%@ page language="C#" autoeventwireup="true" inherits="general_SystemManage_NoticeAdd, CrmCommand" %>
<%@ 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>
    <script  src="../../Javascript/Trim.js"  language=javascript></script>
    <script>
     function ShowDept()
   {
    
   
   var R=  window.showModalDialog("Dept_Select.aspx","newwindow","dialogWidth=300px;dialogHeight=600px");
   
  if( R != null && R != "")
   {
   
      var S = R.split(',');
      var ids = "";
      var names ="";
     

      for(i=0;i<S.length;i=i+2)
      {
         names =names + S[i]+",";
       
      }
       for(i=1;i<S.length;i=i+2)
      {
         ids =ids + S[i]+",";
        
      }
  
      document.getElementById("ToName").value =names.substring(0,names.length-2);
      document.getElementById("ToId").value =ids.substring(0,ids.length-1);
         
  }
  
   }
   function formCheck()
   {
          if(TrimStr(document.getElementById("TxtSubjectName").value) == "")
          {
              alert('标题不能为空');
              return false;
          }
          if(TrimStr(document.getElementById("ToName").value) == "")
          {
              alert('部门范围不能为空');
              return false;
          }
          
   }
    </script>
</head>
<body class ="bodycolor" leftmargin="0" topmargin="0">
    <form id="form1" runat="server">
        <table class="small" cellSpacing="1" bgcolor="black" border="0" style="width: 765px" align="center">
            <tr>
                <td class="TableData" style="height: 23px; width: 80px;" >
                    标&nbsp;&nbsp;&nbsp;&nbsp; 题:
                    </td>
                <td class="TableData" style="height: 23px" >
                    <asp:TextBox ID="TxtSubjectName" runat="server" CssClass="BigInput" Width="200px"></asp:TextBox>
                   </td></tr>
                   <tr>
                <td class="TableData" style="width: 80px">
                    部门范围：
                <INPUT id="ToId" type="hidden"  name="ToId" runat="server"></td>
                <td class="TableData">
					<TEXTAREA class="BigStatic" id="ToName" name="ToName" rows="3" readOnly cols="40" runat="server"></TEXTAREA><INPUT class="SmallButton" title="设置部门" onclick="ShowDept();"
								type="button" value="选择部门" name="button"></td>
            </tr>      
            <tr>
                <td class="TableData" style="width: 80px">
                    提&nbsp;&nbsp;&nbsp;&nbsp; 醒：
                    </td>
                <td class="TableData">
                    <input id="ckbSms" runat="server"  checked name="ckbSms" type="checkbox" />使用内部短信提醒员工
                    <!--<input id="ckbMobile" runat="server" name="ckbMobile" type="checkbox" /><label for="ckbMobile">使用手机短信提醒员工</label>--></td>
            </tr>
            <tr>
                <td class="TableData" style="width: 80px">
                    置&nbsp;&nbsp;&nbsp;&nbsp; 顶：
                    </td>
                <td class="TableData">
                    <input id="ckbImportant" runat="server" name="ckbImportant" type="checkbox" /><label
                        for="ckbImportant">使公告通知置顶，显示为重要</label></td>
            </tr>
                 <tr>
                <td class="TableData" style="height: 247px" colspan="2">详细内容:<fckeditorv2:fckeditor id="FCKeditor1"  height="300" BasePath = "../../FCK/"  runat="server"></fckeditorv2:fckeditor></td></tr>
            <tr>
                <td class="TableData"  align="center" colspan="2">
                    <asp:Button ID="Button7" OnClientClick="return formCheck()" runat="server" CssClass="BigButton" Height="26px" OnClick="Button7_Click"
                        Text="发  布" Width="60px" />&nbsp;&nbsp;
                    <input id="Reset1" class="BigButton" style="height: 25px; width: 60px;" type="reset" value="重  置" /></td>
            </tr>
                </table>
        &nbsp;
    </form>
</body>
</html>
