📄 editpersoninf.asp
字号:
<!--#include file="include/sqlstr.asp"-->
<!--#include file="include/bgsub.asp"-->
<!--#include file="include/opendb.asp"-->
<!--#include file="include/checked.asp"-->
<%
'-----------------------------------------
oabusyname=request("oabusyname")
oabusysuid=request("oabusysuid")
oabusyuserdept=request("oabusyuserdept")
oabusyuserlevel=request("oabusyuserlevel")
'--------------------------------------
id=request("id")
if id="" then id=oabusysuid
%>
<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" type="text/css">
<script language="javascript1.2" src="js/openwin.js"></script>
<title>企业办公系统</title>
</head>
<body bgcolor="#ffffff">
<% call bghead() %>
<table align="center">
<tr>
<td height="34"> <b>编辑 <font color=red><b><%=id%></b></font> 的个人基本档案</b> </td>
<form method="post" action="personinf.asp">
<td height="34">
<input type="submit" value="返回" name="submit">
</td>
</form>
<form method="post" action="personinf.asp">
<td height="34">
<input type="submit" name="submit2" value="删除" onClick="return window.confirm('你确定要删除此基本档案吗?');">
</td>
</form>
</tr>
</table>
<%
call bgmid()
%>
<%
dim a(33)
'打开数据库,读出个人档案
set conn=opendb()
set rs=server.createobject("adodb.recordset")
sql="select a.*,b.name,b.userdept,b.userlevel from personinf a left join a_userinf b on a.suid=b.suid where a.suid=" & sqlstr(id)
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
name=rs("name")
userdept=rs("userdept")
userlevel=rs("userlevel")
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
%>
<form name="form1" method="post" action="editpersoninfindb.asp?id=<%=id%>">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td width="33%"><b>员工编号:</b>
<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="100%">
<tr>
<td align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-top: 2 solid #000000; border-bottom: 1 solid #000000" width="15%" height="20"><b>姓
名</b></td>
<td style="border-right: 1 solid #000000; border-top: 2 solid #000000; border-bottom: 1 solid #000000" width="35%"><%=name%></td>
<td align="center" style="border-right: 1 solid #000000; border-top: 2 solid #000000; border-bottom: 1 solid #000000" width="15%"><b>曾
用 名</b></td>
<td style="border-right: 2 solid #000000; border-top: 2 solid #000000; border-bottom: 1 solid #000000" width="35%">
<input type=text style="width:100%" name=a2 value="<%=a(2)%>"></td>
</tr>
<tr>
<td align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000" height="20"><b>性
别</b></td>
<td style="border-right: 1 solid #000000; border-bottom: 1 solid #000000">
<select name=a3 style="width:100%">
<option value="男"<%=selected(a(3),"男")%>>男 </option>
<option value="女"<%=selected(a(3),"女")%>>女</option>
</select>
</td>
<td align="center" style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>民
族</b></td>
<td style="border-right: 2 solid #000000; border-bottom: 1 solid #000000">
<input type=text style="width:100%" name=a4 value="<%=a(4)%>">
</td>
</tr>
<tr>
<td align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000" height="20"><b>所属部门</b></td>
<td style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><%=userdept%></td>
<td align="center" style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>职
务</b></td>
<td style="border-right: 2 solid #000000; border-bottom: 1 solid #000000"><%=userlevel%></td>
</tr>
<tr>
<td align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000" height="20"><b>职
称</b></td>
<td style="border-right: 1 solid #000000; border-bottom: 1 solid #000000">
<input type=text style="width:100%" name=a5 value="<%=a(5)%>">
</td>
<td align="center" style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>出生日期</b></td>
<td style="border-right: 2 solid #000000; border-bottom: 1 solid #000000">
<input type=text style="width:100%" name=a6 value="<%if a(6)="" then
response.write date
else
response.write a(6)
end if
%>">
<font color="#FF0000"> </td>
</tr>
<tr>
<td align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000" height="20"><b>政治面貌</b></td>
<td style="border-right: 1 solid #000000; border-bottom: 1 solid #000000">
<input type=text style="width:100%" name=a7 value="<%=a(7)%>">
</td>
<td align="center" style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>健康状况</b></td>
<td style="border-right: 2 solid #000000; border-bottom: 1 solid #000000">
<input type=text style="width:100%" name=a8 value="<%=a(8)%>">
</td>
</tr>
<tr>
<td align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000" height="20"><b>籍
贯</b></td>
<td style="border-right: 1 solid #000000; border-bottom: 1 solid #000000">
<input type=text style="width:100%" name=a9 value="<%=a(9)%>">
</td>
<td align="center" style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>体
重</b></td>
<td style="border-right: 2 solid #000000; border-bottom: 1 solid #000000">
<input type=text style="width:100%" name=a10 value="<%=a(10)%>">
</td>
</tr>
<tr>
<td align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000" height="20"><b>身份证号码</b></td>
<td style="border-right: 1 solid #000000; border-bottom: 1 solid #000000">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -