<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"-->
<%if WS_S.MemberPriv("WS_SystemSetAttendanceSet")<>1 then response.Write "<script>alert('对不起,您的权限不够!');window.close();</script>":response.end
ColumnName="":Tablename="HX_AttendancenodutyMan":action=request("action")
if action="saveinfo" then
WS_AttendancenodutyManUid=request("WS_AttendancenodutyManUid")
 if WS_AttendancenodutyManUid<>"" then
   AttendancenodutyManUidarr=split(WS_AttendancenodutyManUid,"|")
   for ii=0 to ubound(AttendancenodutyManUidarr)
     if WS_S.HX_ISNUM(AttendancenodutyManUidarr(ii)) then
         Orderby=" where WS_AttendancenodutyManID="&AttendancenodutyManUidarr(ii)
         set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
         if rs.recordcount<=0 then rs.addnew:rs("WS_AttendancenodutyManID")=AttendancenodutyManUidarr(ii):rs.update	
	  end if  
   next 
  response.write "<script>window.opener.location.reload();if(!confirm('是否继续添加？')) window.close();else location.href='AttendancenodutyManadd.asp';</script>"
  response.end   
 end if   
end if
response.Write "<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><script Language='JavaScript'>function CheckForm(){   if(document.form1.WS_AttendancenodutyManName.value=='')   { alert('免签人员不能为空！');   document.form1.WS_AttendancenodutyManName.focus();     return (false);   }   return (true);}</script><body topmargin='10' leftmargin='0' bottommargin='0'><table width='450'  border='0' cellspacing='1' cellpadding='0' align=center bgcolor='#613c25'><tr><td colspan='2' bgcolor=FFFBE8><table width='100%'  border='0' 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'><tr><td height='24'><font color='FF0000'>说明：已添加用户将不被添加；</font></td></tr></table><table border='0' width='450' cellpadding='3' cellspacing='1' align='center' bgcolor='#613c25'><form action='?action=saveinfo'  method='post' name='form1' onsubmit='return CheckForm();'><tr bgcolor='#FFFBE8'><td width='80'>免签人员：</td><td width='355'><input type='hidden' name='WS_AttendancenodutyManUid'><input type='text' name='WS_AttendancenodutyManName' size='46' readonly> <input onclick=""openwin(510,500,'../HXinclude/HX_Selectuser.asp?checkuser=AttendancenodutyMan')"" name='checkuser' type='button' value='选择' class='bdlogin' title='选择免签人员'></td></tr><tr align='center' bgcolor='#FFFBE8' class='TableControl'><td colspan='2' nowrap><input type='submit' value=' 确 定 '>&nbsp;&nbsp;        <input type='button' value=' 关 闭 ' onClick='window.close();'></td></tr></form></table></td></tr></table>"
%>