employee_info.asp
来自「适用于网络/信息企业」· ASP 代码 · 共 255 行
ASP
255 行
<!--#include file="../INC/Conn.asp"-->
<!--#include file="inc/Check.asp"-->
<!--#include file="inc/public.asp"-->
<%
dim Makking,day1
Makking = Trim(Request.QueryString("Makking"))
'---------------------------------
select case Makking
case "save"
IF Request.Form("Birthday") = "" Then
Birthday = "1900-1-1"
Else
Birthday = Request.Form("Birthday")
End IF
sql="select * from Employee where Employee_ID='"& Session("Eboer_CRM_Employee_ID") &"'"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,3
if rs.bof and rs.eof then
Save_title="·对不起,调用用户数据出错"
call Save_err()
else
Rs("Compellation") =Request.Form("Compellation")
Rs("Sex") =Request.Form("Sex")
Rs("Identity_Card") =Request.Form("Identity_Card")
Rs("Birthday") =cdate(Birthday)
Rs("Stature") =Request.Form("Stature")
Rs("Nationality") =Request.Form("Nationality")
Rs("Nation") =Request.Form("Nation")
Rs("Polity") =Request.Form("Polity")
Rs("Academic_Credentials")=Request.Form("Academic_Credentials")
Rs("Finish_School") =Request.Form("Finish_School")
Rs("Mail_Address") =Request.Form("Mail_Address")
Rs("Family_Address") =Request.Form("Family_Address")
Rs("House_Address") =Request.Form("House_Address")
Rs("Family_Telephone") =Request.Form("Family_Telephone")
Rs("House_Telephone") =Request.Form("House_Telephone")
Rs("Mobile_Telephone") =Request.Form("Mobile_Telephone")
Rs("Education_Background")=Request.Form("Education_Background")
Rs("Work_Experience") =Request.Form("Work_Experience")
Rs("Resume") =Request.Form("Resume")
IF Request.Form("Job_Time") <> "" Then
Rs("Job_Time") =cdate(Request.Form("Job_Time"))
End IF
end if
rs.update
rs.close
set rs=nothing
Save_title="·修改成功"
call Save_ok()
case ""
Dim Employee_ID
Dim Compellation
Dim Sex
Dim Identity_Card
Dim Birthday
Dim Stature
Dim Nationality
Dim Nation
Dim Polity
Dim Academic_Credentials
Dim Finish_School
Dim Mail_Address
Dim Family_Address
Dim House_Address
Dim Family_Telephone
Dim House_Telephone
Dim Mobile_Telephone
Dim Education_Background
Dim Work_Experience
Dim Resume_
Dim Job_Time
sql="select * from Employee where Employee_ID='"& Session("Eboer_CRM_Employee_ID") &"'"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if rs.eof and rs.bof then
Save_title="·对不起,没有找到该用户"
call Save_err()
else
Employee_ID =Rs("Employee_ID")
Compellation =Rs("Compellation")
Sex =Rs("Sex")
Identity_Card =Rs("Identity_Card")
Birthday =Rs("Birthday")
Stature =Rs("Stature")
Nationality =Rs("Nationality")
Nation =Rs("Nation")
Polity =Rs("Polity")
Academic_Credentials=Rs("Academic_Credentials")
Finish_School =Rs("Finish_School")
Mail_Address =Rs("Mail_Address")
Family_Address =Rs("Family_Address")
House_Address =Rs("House_Address")
Family_Telephone =Rs("Family_Telephone")
House_Telephone =Rs("House_Telephone")
Mobile_Telephone =Rs("Mobile_Telephone")
Education_Background=Rs("Education_Background")
Work_Experience =Rs("Work_Experience")
Resume_ =Rs("Resume")
Job_Time =Rs("Job_Time")
END IF
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>亿博尔</title>
</head>
<link href="Images/Admin.css" rel="stylesheet" type="text/css">
<body>
<table width="98%" height="40" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#D8D8D8">
<tr>
<td height="30" align="left" bgcolor="ffffff"><table width="100%" height="100%" border="0" cellpadding="3" cellspacing="0">
<tr bgcolor="eeeeee">
<td width="5%" align="center"><img src="./Images/1.gif" width="13" height="12"></td>
<td width="85%"><span class="style2">管理中心 >>> 个人资料</span></td>
<td width="10%" align="right"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<table width="98%" height="90%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#D8D8D8">
<tr>
<td valign="top" bgcolor="ffffff"><table width="96%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top" bgcolor="ffffff">
<form method='POST' name="Userinfo" action="./Employee_Info.asp?Makking=save">
<br>
<table width=100% border=0 align='center' cellpadding=1
cellspacing=1 bordercolordark=#ffffff bgcolor="#EBEBEB" class='size09'>
<tr>
<td width='18%' height="22" align="right" bgcolor="ffffff">用户ID:</td>
<td width="82%" height="22" bgcolor="ffffff"> <input name="Employee_ID" type="text" disabled="true" class="box1" id="Employee_ID" value="<%=Employee_ID%>" size="30" readonly="true"></td>
</tr>
<tr>
<td width='18%' height="22" align="right" bgcolor="ffffff">姓名:</td>
<td height="22" bgcolor="ffffff"> <input name="Compellation" type="text" id="Compellation" value="<%=Compellation%>" size="30" maxlength="50"></td>
</tr>
<tr>
<td width='18%' height="22" align="right" bgcolor="ffffff">身份证号:</td>
<td height="22" bgcolor="ffffff"> <input name="Identity_Card" type="text" id="Compellation32" value="<%=Identity_Card%>" size="30" maxlength="50"></td>
</tr>
<tr>
<td width='18%' height="22" align="right" bgcolor="ffffff">性别:</td>
<td height="22" bgcolor="ffffff"><select name="Sex" id="select" class="box3">
<option value="1" <%if Sex=1 then%>selected<%end if%>>男</option>
<option value="2" <%if Sex=2 then%>selected<%end if%>>女</option>
</select></td>
</tr>
<tr>
<td width='18%' height="22" align="right" bgcolor="ffffff">出生日期:</td>
<td height="22" bgcolor="ffffff"> <input name="Birthday" type="text" id="Birthday" value="<%=Birthday%>" size="30" maxlength="50">
格式为2005-1-1</td>
</tr>
<tr>
<td width='18%' height="22" align="right" bgcolor="ffffff">身高:</td>
<td height="22" bgcolor="ffffff"> <input name="Stature" type="text" id="Stature" value="<%=Stature%>" size="10" maxlength="50"></td>
</tr>
<tr>
<td width='18%' height="22" align="right" bgcolor="ffffff">祖籍:</td>
<td height="22" bgcolor="ffffff"> <input name="Nationality" type="text" id="Nationality" value="<%=Nationality%>" size="20" maxlength="50"></td>
</tr>
<tr>
<td width='18%' height="22" align="right" bgcolor="ffffff">民族:</td>
<td height="22" bgcolor="ffffff"> <input name="Nation" type="text" id="Nation" value="<%=Nation%>" size="20" maxlength="50"></td>
</tr>
<tr>
<td width='18%' height="22" align="right" bgcolor="ffffff">政治面貌:</td>
<td height="22" bgcolor="ffffff"><input name="Polity" type="text" id="Polity" value="<%=Polity%>" size="20" maxlength="50"></td>
</tr>
<tr>
<td width='18%' height="22" align="right" bgcolor="ffffff">学历:</td>
<td height="22" bgcolor="ffffff"><input name="Academic_Credentials" type="text" id="Academic_Credentials" value="<%=Academic_Credentials%>" size="20" maxlength="50"></td>
</tr>
<tr>
<td width='18%' height="22" align="right" bgcolor="ffffff">毕业学校:</td>
<td height="22" bgcolor="ffffff"><input name="Finish_School" type="text" id="Finish_School" value="<%=Finish_School%>" size="30" maxlength="50"></td>
</tr>
<tr>
<td width='18%' height="22" align="right" bgcolor="ffffff">邮件地址:</td>
<td height="22" bgcolor="ffffff"> <input name="Mail_Address" type="text" id="Mail_Address" value="<%=Mail_Address%>" size="30" maxlength="50"></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="ffffff">家庭电话:</td>
<td height="22" bgcolor="ffffff"> <input name="Family_Telephone" type="text" id="Family_Telephone" value="<%=Family_Telephone%>" size="30" maxlength="50"></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="ffffff">现住址电话:</td>
<td height="22" bgcolor="ffffff"> <input name="House_Telephone" type="text" id="House_Telephone" value="<%=House_Telephone%>" size="30" maxlength="50"></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="ffffff">移动电话:</td>
<td height="22" bgcolor="ffffff"> <input name="Mobile_Telephone" type="text" id="Mobile_Telephone" value="<%=Mobile_Telephone%>" size="30" maxlength="50"></td>
</tr>
<tr>
<td width='18%' height="22" align="right" bgcolor="ffffff">家庭住址:</td>
<td height="22" bgcolor="ffffff"><input name="Family_Address" type="text" id="Family_Address" value="<%=Family_Address%>" size="50" maxlength="50"></td>
</tr>
<tr>
<td width='18%' height="22" align="right" bgcolor="ffffff">现住地址:</td>
<td height="22" bgcolor="ffffff"><input name="House_Address" type="text" id="House_Address" value="<%=House_Address%>" size="50" maxlength="50"></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="ffffff">教育背景:</td>
<td height="22" bgcolor="ffffff"> <textarea name="Education_Background" cols="50" rows="5" id="Education_Background"><%=Education_Background%></textarea></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="ffffff">工作经历:</td>
<td height="22" bgcolor="ffffff"> <textarea name="Work_Experience" cols="50" rows="5" id="Work_Experience"><%=Work_Experience%></textarea></td>
</tr>
<tr>
<td height="10" align="right" bgcolor="ffffff">个人简介:</td>
<td height="10" bgcolor="ffffff"> <textarea name="Resume" cols="50" rows="5" id="textarea2"><%=Resume_%></textarea></td>
</tr>
<tr>
<td height="22" align="right" bgcolor="ffffff">入职时间:</td>
<td height="22" bgcolor="ffffff">
<input name="Job_Time" type="text" id="Job_Time" value="<%=Job_Time%>" size="30" maxlength="50">
格式为2005-1-1</td>
</tr>
</table>
<p>
<input name="B1" type="image" src="Images/refer.gif" width="36" height="21" border="0" >
<a href="javascript:history.go(-1)"><img src="Images/back.gif" width="36" height="21" border="0"></a></p>
</form></td>
</tr>
</table> </td>
</tr>
</table>
<%end select
Conn.Close
Set Conn = Nothing
%>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="6"></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?