⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 attendanceadd.asp

📁 又一套oa 系统,供大家使用学习,更多的源代码正在上传中,好的程序应该大家共同使用
💻 ASP
字号:
<!--#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_AttendanceDuty":action=request("action")
if action="saveinfo" then
Orderby=" where WS_AttendanceName='"&DUTY_NAME&"'"
set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
   if rs.recordcount>0 then
     HX_GoBack "排班类型设置有冲突!","" 
   else
      response.write "<script>window.opener.location.reload();if(!confirm('是否继续添加?')) window.close();else location.href='AttendanceAdd.asp';</script>"
     response.end
   end if
end if
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><script Language='JavaScript'>function CheckForm(){   if(document.form1.DUTY_NAME.value=='')   { alert('说明不能为空!');   document.form1.DUTY_NAME.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='#115F8F'><tr><td colspan='2' bgcolor=ffffff><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'>说明:上下班登记时间范围在 0:00:00 至 23:59:59 之间,请按时间顺序指定</font></td></tr></table><table border='0' width='450' cellpadding='3' cellspacing='1' align='center' bgcolor='#CCCCCC'><form action='?action=saveinfo'  method='post' name='form1' onsubmit='return CheckForm();'><tr bgcolor='#FFFFFF'><td width='136'> 排班类型说明:</td><td width='299'><input type='text' name='DUTY_NAME' size='25' maxlength='100' value=''></td></tr><tr bgcolor='#FFFFFF'><td> 第1次登记:</td><td><input type='text' name='DUTY_TIME1' style='ime-mode:disabled' size='8' maxlength='8' readonly> <input name='button' type='button' title='选择时间' onClick=""document.form1.DUTY_TIME1.value=showModalDialog('selecttime.htm', '', 'dialogWidth:20em; dialogHeight:5em; status:0;help:0');"" value='选择'>&nbsp;<select name='DUTY_TYPE1' class='BigSelect'><option value='1' selected>上班</option><option value='2' >下班</option></select></td></tr><tr bgcolor='#FFFFFF'><td> 第2次登记:</td><td><input type='text' name='DUTY_TIME2' style='ime-mode:disabled' size='8' maxlength='8' readonly> <input name='button' type='button' title='选择时间' onClick=""document.form1.DUTY_TIME2.value=showModalDialog('selecttime.htm', '', 'dialogWidth:20em; dialogHeight:5em; status:0;help:0');"" value='选择'>&nbsp;<select name='DUTY_TYPE2' class='BigSelect'><option value='1' >上班</option><option value='2' selected>下班</option></select></td></tr><tr bgcolor='#FFFFFF'><td> 第3次登记:</td><td><input type='text' name='DUTY_TIME3' style='ime-mode:disabled' size='8' maxlength='8' readonly> <input name='button' type='button' title='选择时间' onClick=""document.form1.DUTY_TIME3.value=showModalDialog('selecttime.htm', '', 'dialogWidth:20em; dialogHeight:5em; status:0;help:0');"" value='选择'>&nbsp;<select name='DUTY_TYPE3' class='BigSelect'><option value='1' selected>上班</option><option value='2' >下班</option></select></td></tr><tr bgcolor='#FFFFFF'><td> 第4次登记:</td><td><input type='text' name='DUTY_TIME4' style='ime-mode:disabled' size='8' maxlength='8' readonly> <input name='button' type='button' title='选择时间' onClick=""document.form1.DUTY_TIME4.value=showModalDialog('selecttime.htm', '', 'dialogWidth:20em; dialogHeight:5em; status:0;help:0');"" value='选择'>&nbsp;<select name='DUTY_TYPE4' class='BigSelect'><option value='1' >上班</option><option value='2' selected>下班</option></select></td></tr><tr bgcolor='#FFFFFF'><td> 第5次登记:</td><td><input type='text' name='DUTY_TIME5' style='ime-mode:disabled' size='8' maxlength='8' readonly> <input name='button' type='button' title='选择时间' onClick=""document.form1.DUTY_TIME5.value=showModalDialog('selecttime.htm', '', 'dialogWidth:20em; dialogHeight:5em; status:0;help:0');"" value='选择'>&nbsp;<select name='DUTY_TYPE5' class='BigSelect'><option value='1' selected>上班</option><option value='2'>下班</option></select></td></tr><tr bgcolor='#FFFFFF'><td> 第6次登记:</td><td><input type='text' name='DUTY_TIME6' style='ime-mode:disabled' size='8' maxlength='8' readonly> <input name='button' type='button' title='选择时间' onClick=""document.form1.DUTY_TIME6.value=showModalDialog('selecttime.htm', '', 'dialogWidth:20em; dialogHeight:5em; status:0;help:0');"" value='选择'>&nbsp;<select name='DUTY_TYPE6' class='BigSelect'><option value='1'>上班</option><option value='2' selected>下班</option></select></td></tr><tr align='center' bgcolor='#FFFFFF' 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>"%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -