📄 personinf.asp
字号:
<%response.expires=0%>
<!--#include file="asp/sqlstr.asp"-->
<!--#include file="asp/bgsub.asp"-->
<!--#include file="asp/opendb.asp"-->
<!--#include file="asp/checked.asp"-->
<!--#include file="asp/keepformat.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
'--------------------------------------
'打开数据库,读出编辑通讯录权限
set conn=opendb("oabusy","conn","accessdsn")
set rs=server.createobject("adodb.recordset")
sql="select * from userinf where username=" & sqlstr(oabusyusername)
rs.open sql,conn,1
allow_edit_person_personinf=rs("allow_edit_person_personinf")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css/css.css">
<meta http-equiv="expires" content="no-cache">
<title>企业办公自动化IE37-OA系统</title>
</head>
<body bgcolor="#ffffff" topmargin="5" leftmargin="5">
<center>
<table align="center">
<tr>
<td>
<b><%=oabusyname%>的个人基本档案</b>
</td>
<%
if allow_edit_person_personinf="yes" then
%>
<form method="post" action="editpersoninf.asp"><td>
<input type="submit" value="编辑">
</td>
</form>
<form method="post" action="personinf.asp"><td>
<input type="submit" name="submit" value="删除" onclick="return window.confirm('你确定要删除你的个人基本档案吗?');">
</td>
</form>
<%
end if
%>
</tr>
</table>
</center>
<%
if request.form("submit")="删除" then
sql="delete from personinf where username=" & sqlstr(oabusyusername)
conn.execute sql
end if
'打开数据库,读出个人档案
set rs=server.createobject("adodb.recordset")
sql="select * from personinf where username=" & sqlstr(oabusyusername)
rs.open sql,conn,1
dim a(33)
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")
id=rs("id")
else
for i=1 to 33
a(i)=""
next
inputdate=""
updatedate=""
havephoto="no"
end if
%>
<center>
<table border="0" cellpadding="5" cellspacing="0" width="95%">
<tr>
<td width="30%"><b>员工编号:<%=a(1)%></b></td>
<td width="35%"><b>录入时间:<%=inputdate%></b></td>
<td align="right"><b>修改时间:<%=updatedate%></b></td>
</tr>
</table>
<table border="1" cellpadding="5" cellspacing="0" width="95%" bordercolorlight="#808080" bordercolordark="#D4D0C8">
<tr>
<td width="15%" align="center" style="border-left: 2 solid #cccccc; border-right: 1 solid #cccccc; border-top: 2 solid #cccccc; border-bottom: 1 solid #cccccc">姓 名</td>
<td width="35%" style="border-right: 1 solid #cccccc; border-top: 2 solid #cccccc; border-bottom: 1 solid #cccccc"><%=oabusyname%></td>
<td width="15%" align="center" style="border-right: 1 solid #cccccc; border-top: 2 solid #cccccc; border-bottom: 1 solid #cccccc">曾 用 名</td>
<td width="100%" style="border-right: 1 solid #cccccc; border-top: 2 solid #cccccc; border-bottom: 1 solid #cccccc"><%=keepformat(checked3(a(2)))%></td>
<td width="80" height="100" rowspan="5" align="center" valign=center style="border-right: 2 solid #cccccc; border-top: 2 solid #cccccc; border-bottom: 1 solid #cccccc">
<%
if havephoto="yes" then
%>
<img src="showphoto.asp?id=<%=id%>" width="80" height="100" border="0">
<%
else
%>
<table width=80>
<tr>
<td align=center>
无<br>照<br>片
</td>
</tr></table>
<%
end if
%>
</td>
</tr>
<tr>
<td align="center" style="border-left: 2 solid #cccccc; border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc">性 别</td>
<td style="border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc"><%=keepformat(checked3(a(3)))%></td>
<td align="center" style="border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc">民 族</td>
<td style="border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc"><%=keepformat(checked3(a(4)))%></td>
</tr>
<tr>
<td align="center" style="border-left: 2 solid #cccccc; border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc">所属部门</td>
<td style="border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc"><%=oabusyuserdept%></td>
<td align="center" style="border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc">职 务</td>
<td style="border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc"><%=oabusyuserlevel%></td>
</tr>
<tr>
<td align="center" style="border-left: 2 solid #cccccc; border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc">职 称</td>
<td style="border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc"><%=keepformat(checked3(a(5)))%></td>
<td align="center" style="border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc">出生日期</td>
<td style="border-right: 1 solid #cccccc; border-bottom: 1 solid #cccccc"><%=keepformat(checked3(a(6)))%></td>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -