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

📄 personalmodify.asp

📁 一个比较完整的oa系统
💻 ASP
字号:
<!--#INCLUDE FILE="../HXINCLUDE/HXINCLUDEHEAD.ASP"--><%ColumnName="":Tablename="HX_PersonalPDA":WS_PAID=request("WS_PAID")
if WS_PAID="" or isnull(WS_PAID) or (WS_PAID<>"" and not isnumeric(WS_PAID)) then response.write "<script>alert('非法操作');window.close();</script>":response.end    
action=request("action"):Orderby=" where WS_PAID="&WS_PAID
set rs=WS_S.HX_SetRSD(ColumnName,Tablename,Orderby)
if rs.recordcount<=0 then response.write "<script>alert('非法操作');window.close();</script>":response.end  
if action="saveinfo" then rs("WS_Personalname")=request("pname"):rs("WS_Personalsex")=request("sex"):rs("WS_Personalrelation")=request("relation"):rs("WS_Personalcompany")=request("company"):rs("WS_Personalduty")=request("duty"):rs("WS_Personaltel")=request("tel"):rs("WS_PersonalMobile")=request("Mobile"):rs("WS_Personaloicq")=request("oicq"):rs("WS_Personaladdress")=request("address"):rs("WS_Personalemail")=request("email"):rs("WS_Personalbrief")=request("brief"):rs("WS_Userid")=LoginUid:rs.update:response.write "<script>if(confirm('修改成功!\n是否关闭此窗口?')) {window.close();window.opener.location.reload();}else {location.href='PersonalModify.asp?WS_PAID="&WS_PAID&"';}</script>":response.end
pname=rs("WS_Personalname"):sex=rs("WS_Personalsex"):relation=rs("WS_Personalrelation"):company=rs("WS_Personalcompany"):duty=rs("WS_Personalduty"):tel=rs("WS_Personaltel"):Mobile=rs("WS_PersonalMobile"):oicq=rs("WS_Personaloicq"):address=rs("WS_Personaladdress"):email=rs("WS_Personalemail"):brief=rs("WS_Personalbrief")
response.Write "<head><meta http-equiv='Content-Type' content='text/html; charset=gb2312'><title>修改"&pname&"的个人信息</title><link rel=stylesheet type=text/css href='../HXinclude/HX_Css.css'><script src='../HXinclude/HX_Function.js'></script></head><body topmargin='10' leftmargin='0' bottommargin='10'><table width='520'  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='4' bgcolor=f1f1f1><form name='form1' method='post' action='?action=saveinfo' onSubmit='return PersonalPDA(this)'><tr bgcolor='#FFFFFF'><td width='73' height='20' valign='middle'> 姓  名</td><td width='96' height='20' valign='middle'><input name='Pname' type='text' value='"&Pname&"' size='12' maxlength='20'><font color=red> *</font></td><td width='41' height='20' valign='middle'>性 别</td><td width='114' height='20' valign='middle'><select name='sex'><option value='男' "
if sex="男" then response.write "selected"
  response.write ">男</option><option value='女' "
if sex="女" then response.write "selected"
 response.write ">女</option></select></td><td width='41' height='20' valign='middle'>关 系</td><td width='98' height='20' valign='middle'><select name='relation'><option value='家人' "
if relation="家人" then response.write "selected"
 response.write ">家人</option><option value='朋友' "
if relation="朋友" then response.write "selected"
 response.write ">朋友</option><option value='同事' "
if relation="同事" then response.write "selected"
 response.write ">同事</option><option value='领导' "
if relation="领导" then response.write "selected"
 response.write ">领导</option><option value='其他' "
if relation="其他" then response.write "selected"
 response.write ">其他</option></select></td></tr><tr bgcolor='#FFFFFF'><td width='73' height='20'>联系电话</td><td width='96' height='20'><input name='tel' type='text' style='ime-mode:disabled' value='"&tel&"' size='12' maxlength='20'></td><td width='41' height='20'>手 机</td><td width='114' height='20'><input name='Mobile' type='text' style='ime-mode:disabled' value='"&Mobile&"' size='12' maxlength='20'></td><td width='41' height='20'>Oicq</td><td width='98' height='20'><input name='oicq' type='text' style='ime-mode:disabled' value='"&oicq&"' size='12' maxlength='20'></td></tr><tr><td width='73' height='20' bgcolor='#FFFFFF'>所在公司&nbsp;</td><td height='20' colspan='3' bgcolor='#FFFFFF'><input name='company' type='text' value='"&company&"' size='40' maxlength='20'>&nbsp;</td><td width='41' height='20' bgcolor='#FFFFFF'>职 务</td><td width='98' height='20' bgcolor='#FFFFFF'><input name='duty' type='text' value='"&duty&"' size='12' maxlength='20'></td></tr><tr><td width='73' height='20' bgcolor='#FFFFFF'>联系地址</td><td height='20' colspan='3' bgcolor='#FFFFFF'><input name='address' type='text' value='"&address&"' size='40' maxlength='80'></td><td width='41' height='20' bgcolor='#FFFFFF'>E_Mail</td><td width='98' height='20' bgcolor='#FFFFFF'><input name='email' type='text' style='ime-mode:disabled' value='"&email&"' size='12' maxlength='20'></td></tr><tr><td width='73' height='20' bgcolor='#FFFFFF'>备  注</td><td height='20' colspan='5' bgcolor='#FFFFFF'><textarea name='brief' cols='70' rows='6' class='bgline'>"&brief&"</textarea></td></tr><tr><td height='20' bgcolor='#FFFFFF'>&nbsp;</td><td height='20' colspan='5' bgcolor='#FFFFFF'><input type='submit' name='Submit' value=' 修 改 '> <input type='button' name='Submit' value=' 关 闭 ' onclick='window.close();'><input name='WS_PAID' type='hidden' id='WS_PAID' value='"&WS_PAID&"'></td></tr></form></table></td></tr></table>"%>

⌨️ 快捷键说明

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