📄 editpersoninf.asp
字号:
<%@ LANGUAGE = VBScript %>
<!--#include file="asp/sqlstr.asp"-->
<!--#include file="asp/opendb.asp"-->
<!--#include file="asp/checked.asp"-->
<%
'-----------------------------------------
oabusyname=request.cookies("oabusyname")
oabusyusername=request.cookies("oabusyusername")
oabusyuserdept=request.cookies("oabusyuserdept")
oabusyuserlevel=request.cookies("oabusyuserlevel")
if oabusyusername="" then
response.write("<script language=""javascript"">")
response.write("window.top.location.href='default.asp';")
response.write("</script>")
response.end
end if
'--------------------------------------
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link rel="stylesheet" href="css/css.css">
<script language="javascript1.2" src="js/openwin.js"></script>
<title>OA办公系统.边缘特别版</title>
<style type="text/css">
<!--
.style1 {color: #098abb}
-->
.style2 {color: #0d79b3;
font-weight: bold;
}
.style7 {color: #2d4865}
</style>
</head>
<body topmargin="0" leftmargin="0">
<table width="583" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="21"><div align="center">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="2" height="25"><span class="style2"><img src="images/main/l3.gif" width="2" height="25"></span></td>
<td background="images/main/m3.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="21"><div align="center"><span class="style2"><img src="images/main/icon.gif" width="15" height="12"></span></div></td>
<td class="style7">个人基本档案</td>
</tr>
</table></td>
<td width="1"><span class="style2"><img src="images/main/r3.gif" width="1" height="25"></span></td>
</tr>
</table>
<font color="0D79B3"></font></div></td>
</tr>
</table>
<center>
<br>
<table bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF">
<tr>
<td> 编辑<%=oabusyname%>的个人基本档案 </td>
<form method="post" action="personinf.asp">
<td>
<input type="submit" value="返回">
</td>
<form method="post" action="personinf.asp">
<td>
<input type="submit" name="submit" value="删除" onclick="return window.confirm('你确定要删除你的个人基本档案吗?');">
</td>
</form>
</form>
</tr>
</table>
</center>
<%
dim a(33)
'打开数据库,读出个人档案
set conn=opendb("oabusy","conn","accessdsn")
set rs=server.createobject("adodb.recordset")
sql="select * from personinf where username=" & sqlstr(oabusyusername)
rs.open sql,conn,1
if not rs.eof and not rs.bof then
for i=1 to 33
a(i)=rs("a" & i)
next
inputdate=rs("inputdate")
updatedate=rs("updatedate")
havephoto=rs("havephoto")
else
for i=1 to 33
a(i)=""
next
a(26)="请填清楚单位、地址、电话"
a(30)="请按亲属关系、姓名、性别、工作单位及职务、地址顺序填写"
a(32)="请按关系、姓名、地址、电话顺序填写"
inputdate=""
updatedate=""
havephoto="no"
end if
%>
<center>
<br>
<form method="post" ENCTYPE="multipart/form-data" action="editpersoninfindb.asp">
<table border="0" cellpadding="0" cellspacing="0" width="95%">
<tr>
<td width="33%">员工编号:
<input type=text size=10 name=a1 value="<%=a(1)%>">
</td>
<td width="33%"></td>
<td align="right"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="540" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF">
<tr>
<td align="center" style="border-left: 2 solid #B0C8EA; border-right: 1 solid #B0C8EA; border-top: 2 solid #B0C8EA; border-bottom: 1 solid #B0C8EA" width="15%" height="20">姓
名</td>
<td style="border-right: 1 solid #B0C8EA; border-top: 2 solid #B0C8EA; border-bottom: 1 solid #B0C8EA" width="35%"><%=oabusyname%></td>
<td align="center" style="border-right: 1 solid #B0C8EA; border-top: 2 solid #B0C8EA; border-bottom: 1 solid #B0C8EA" width="15%">曾
用 名</td>
<td style="border-right: 2 solid #B0C8EA; border-top: 2 solid #B0C8EA; border-bottom: 1 solid #B0C8EA" width="35%">
<input type=text size=10 name=a2 value="<%=a(2)%>">
</td>
</tr>
<tr>
<td align="center" style="border-left: 2 solid #B0C8EA; border-right: 1 solid #B0C8EA; border-bottom: 1 solid #B0C8EA" height="20">性
别</td>
<td style="border-right: 1 solid #B0C8EA; border-bottom: 1 solid #B0C8EA">
<select name=a3 size=1>
<option value="男"<%=selected(a(3),"男")%>>男 </option>
<option value="女"<%=selected(a(3),"女")%>>女</option>
</select>
</td>
<td align="center" style="border-right: 1 solid #B0C8EA; border-bottom: 1 solid #B0C8EA">民
族</td>
<td style="border-right: 2 solid #B0C8EA; border-bottom: 1 solid #B0C8EA">
<input type=text size=10 name=a4 value="<%=a(4)%>">
</td>
</tr>
<tr>
<td align="center" style="border-left: 2 solid #B0C8EA; border-right: 1 solid #B0C8EA; border-bottom: 1 solid #B0C8EA" height="20">所属部门</td>
<td style="border-right: 1 solid #B0C8EA; border-bottom: 1 solid #B0C8EA"><%=oabusyuserdept%></td>
<td align="center" style="border-right: 1 solid #B0C8EA; border-bottom: 1 solid #B0C8EA">职
务</td>
<td style="border-right: 2 solid #B0C8EA; border-bottom: 1 solid #B0C8EA"><%=oabusyuserlevel%></td>
</tr>
<tr>
<td align="center" style="border-left: 2 solid #B0C8EA; border-right: 1 solid #B0C8EA; border-bottom: 1 solid #B0C8EA" height="20">职
称</td>
<td style="border-right: 1 solid #B0C8EA; border-bottom: 1 solid #B0C8EA">
<input type=text size=10 name=a5 value="<%=a(5)%>">
</td>
<td align="center" style="border-right: 1 solid #B0C8EA; border-bottom: 1 solid #B0C8EA">出生日期</td>
<td style="border-right: 2 solid #B0C8EA; border-bottom: 1 solid #B0C8EA">
<input type=text size=10 name=a6 value="<%=a(6)%>">
</td>
</tr>
<tr>
<td align="center" style="border-left: 2 solid #B0C8EA; border-right: 1 solid #B0C8EA; border-bottom: 1 solid #B0C8EA" height="20">政治面貌</td>
<td style="border-right: 1 solid #B0C8EA; border-bottom: 1 solid #B0C8EA">
<input type=text size=10 name=a7 value="<%=a(7)%>">
</td>
<td align="center" style="border-right: 1 solid #B0C8EA; border-bottom: 1 solid #B0C8EA">健康状况</td>
<td style="border-right: 2 solid #B0C8EA; border-bottom: 1 solid #B0C8EA">
<input type=text size=10 name=a8 value="<%=a(8)%>">
</td>
</tr>
<tr>
<td align="center" style="border-left: 2 solid #B0C8EA; border-right: 1 solid #B0C8EA; border-bottom: 1 solid #B0C8EA" height="20">籍
贯</td>
<td style="border-right: 1 solid #B0C8EA; border-bottom: 1 solid #B0C8EA">
<input type=text size=10 name=a9 value="<%=a(9)%>">
</td>
<td align="center" style="border-right: 1 solid #B0C8EA; border-bottom: 1 solid #B0C8EA">体
重</td>
<td style="border-right: 2 solid #B0C8EA; border-bottom: 1 solid #B0C8EA">
<input type=text size=10 name=a10 value="<%=a(10)%>">
</td>
</tr>
<tr>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -