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

📄 userxiugai_do.asp

📁 通用考勤系统
💻 ASP
字号:
<%
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
''''版权:野马原创                    ''''
''''联系:ctplr@163.com          ''''
''''说明:需要新功能联系我      ''''
''''QQ:2643148                    ''''
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
%>
<!--#include file="check.asp"-->
<!--#include file="MD5.asp"-->
<!--#include file="conn.asp"-->
 
<link href=left.css rel=stylesheet>
<body background="../back.gif" >
<%
if session("qx")>3 and session("qx")=0 then 
response.write "<script>alert('您的权限不够')</script>"
response.write "<script>history.back()</script>"
end if
 if request("action")="xiugai" then
  autoqd=int(request.form("autoqd"))
  ptype=int(request.form("ptype"))
   aid=request.form("id")
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%容错设置$$$$$$$$$$$$$$$$$$$$$$$$
request.form("monthlattertime")=trim(request.form("monthlattertime"))
if trim(request.form("monthlattertime"))="" then 
 request.form("monthlattertime")=0
end if
 request.form("alllattertime")=trim(request.form("alllattertime"))
if trim(request.form("alllattertime"))="" then 
 request.form("alllattertime")=0
end if
 request.form("monthqdnum")=trim(request.form("monthqdnum"))
if trim(request.form("monthqdnum"))="" then 
 request.form("monthqdnum")=0
end if
 request.form("allqdnum")=trim(request.form("allqdnum"))
if trim(request.form("allqdnum"))="" then 
 request.form("allqdnum")=0
end if

'%%%%%%%%%%%%%%%%%%%%%%%%%%容错设置完毕$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
sql="select * from ct_sql where id="&aid
rs.open sql,cn,3,3
rs("realname")=request.form("realname")
rs("monthlattertime")=int(rs("monthlattertime"))+int(request.form("monthlattertime"))
rs("alllattertime")=int(rs("alllattertime"))+int(request.form("monthlattertime"))+int(request.form("alllattertime"))
rs("monthqdnum")=int(rs("monthqdnum"))+int(request.form("monthqdnum"))
rs("allqdnum")=int(rs("allqdnum"))+int(request.form("allqdnum"))+int(request.form("monthqdnum"))
 ltype=request.form("ltype")
 if ltype<>empty then
if ltype=0 then
 rs("ltype")="员工"
 rs("qx")=5
elseif ltype=1 then
 rs("ltype")="组管理者"
 rs("qx")=0
elseif ltype=2 then
 rs("ltype")="待分配"
 rs("qx")=5
end if
 end if
rs("auto")=autoqd
rs("type")=request.form("ptype")
rs.update
rs.close
set rs=nothing
response.write "<script>location.href='user_xiugai.asp?action=xiugai&id="&aid&"';</script>"
end if

if request("action")="passhy"  then
aid=request("id")
sql="select * from ct_sql where id="&aid
rs.open sql,cn,3,3
rs("password")=md5(123456)
rs.update
rs.close
response.write "<script>alert('密码被还原成123456');history.back();</script>"
 
  end if
%><br>
<br>
<br>
<br>

⌨️ 快捷键说明

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