<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%if WS_S.MemberPriv("WS_SystemSetNotifyManage")<>1 then HX_GoBack "对不起,您的权限不够!",""
const WSOAWith=450:const WSOAHeight=260:action=request("action")
if action="saveinfo" then
  NotifyTitle=request("NotifyTitle"):NotifyContent=request("Content"):WS_NotifyToUid=request("WS_NotifyToUid"):NotifyFlag=request("NotifyFlag"):ColumnName="":Tablename="HX_Notify":Orderby=""
  set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby):rs.addnew:rs("WS_NotifyTitle")=NotifyTitle:rs("WS_NotifyContent")=NotifyContent:rs("WS_NotifyToMan")=WS_NotifyToUid:rs("WS_NotifyMan")=loginuid:rs("WS_NotifyDate")=date:rs("WS_NotifyFlag")=NotifyFlag:rs.update
  response.write "<script>window.opener.location.reload();if(confirm('是否继续添加？')) {location.href='NotifyAdd.asp';}else {window.close();}</script>"
  response.end
end if
WSOASCOMSTR="<head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>通知公告添加</title><link rel=stylesheet type=text/css href='../HXinclude/HX_Css.css'><script src='../HXinclude/HX_Function.js'></script></head>"
WSOASCOMSTR=WSOASCOMSTR&"<body topmargin='10' leftmargin='0' bottommargin='0'><table width='550'  border='0' cellspacing='1' cellpadding='0' align=center bgcolor='#613c25'><tr><td colspan='2' bgcolor=FFFBE8><table width='100%'  border='0'"
WSOASCOMSTR=WSOASCOMSTR&" cellspacing='0' cellpadding='0'><tr><td height='25' background='../hximages/titleline.gif'><font class='fontmenu'>通知公告添加</font></td></tr></table><table width='100%'  border='0' cellspacing='1' cellpadding='3' bgcolor=FFFBE8>"
WSOASCOMSTR=WSOASCOMSTR&"<form name='form1' method='post' action='?action=saveinfo' onSubmit='return Notfiycheck(this);'><tr bgcolor='#FFFBE8'><td width='20%' height='23'>　公告标题：</td><td width='80%' height='23'><input name='NotifyTitle' type='text' size='46'>"
WSOASCOMSTR=WSOASCOMSTR&"</td></tr><tr bgcolor='#FFFBE8'><td height='23' valign='top'>　重 要 性：</td><td height='23'><select name='NotifyFlag'><option value='0'>普通</option><option value='1'>重要</option><option value='2'>加急</option></select></td></tr><tr bgcolor='#FFFBE8'>"
WSOASCOMSTR=WSOASCOMSTR&"<td height='23' valign='top'>　接 受 人：</td><td height='23'><select name='WS_NotifyToUid'>"
WSOASCOMSTR=WSOASCOMSTR&"<option value='0'>全体人员</option>"
set URS=WS_S.HX_SetRSD("","HX_CompanyUser"," where WS_leave=False and WS_Uid<>"&loginuid&" order by WS_Uid asc")
if URS.recordcount>0 then
do until URS.eof
Call WS_S.HX_OutUserInfo(urs("WS_Uid"))
 WSOASCOMSTR=WSOASCOMSTR&"<option value='"&urs("WS_Uid")&"'>["&Outdepartment&OutAppointment&"]"&OutName&"</option>"
URS.movenext
loop
end if
response.Write WSOASCOMSTR&"</select></td></tr><tr bgcolor='#FFFBE8'><td width='20%' height='89' valign='top'>　公告内容：</td><td width='80%' height='89'>"%><!--#include file='../HXEditor/WSOAEDITOR.ASP'-->
<%WSOASCOMSTR="</td></tr><tr bgcolor='#FFFBE8'><td width='20%'></td><input name='Content' type='hidden' value=''><td width='80%'><input type='Submit' value=' 添 加 '> <input type='reset' value=' 重 填 '> <input type='button' name='Submit' value=' 关 闭 ' onclick='javascript:window.close();'>"
WSOASCOMSTR=WSOASCOMSTR&"</td></tr></form></table></td></tr></table>"
response.Write WSOASCOMSTR%>