<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"--><%if WS_S.MemberPriv("WS_SystemSetAttendanceSet")<>1 then HX_GoBack "对不起,您的权限不够!",""
ColumnName="":Tablename="HX_AttendanceDuty":action=request("action"):ATID=request("ATID")
if not WS_S.HX_IsNUM(ATID) then response.write "<script>alert('非法操作');window.close();</script>":response.end
Orderby=" where WS_ATID="&ATID
set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
if action="saveinfo" then  rs("WS_AttendanceGeneral")=request("WEEK"):rs.update:response.write "<script>alert('修改成功！');window.opener.location.reload();window.close();</script>":response.end
response.Write "<html><head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>修改公休日</title><link rel=stylesheet type=text/css href='../HXinclude/HX_Css.css'></head><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'>请选择 "&rs("WS_AttendanceName")&" 的公休日</td></tr></table><table border='0' width='450' cellpadding='3' cellspacing='1' align='center' bgcolor='#613c25'><form action='?action=saveinfo'  method='post' name='form1'>"
for ii=1 to 7
k=ii-weekday(today,"2")
response.Write "<tr bgcolor='#FFFBE8'><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;        <input type='checkbox' name='WEEK' id='WEEK"&ii&"' class='radio'"
if instr(rs("WS_AttendanceGeneral"),ii)>0 then response.write " checked"
response.Write " value='"&ii&"' style='Background-color:FFFBE8;'><label for='WEEK"&ii&"'>"&weekdayname(ii,false,2)&"</label></td></tr>"
next
response.Write "<tr align='center' bgcolor='#FFFBE8' class='TableControl'><td nowrap><input type='submit' value=' 确 定 '>&nbsp;&nbsp;        <input type='button' value=' 关 闭 ' onClick='window.close();'><input name='ATID' type='hidden' id='ATID' value='"&ATID&"'></td></tr></form></table></td></tr></table>"%>