📄 stafpersoninf.asp
字号:
<!--#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.redirect "default.asp"
'--------------------------------------
'打开数据库,读出权限
set conn=opendb("oabusy","conn","accessdsn")
set rs=server.createobject("adodb.recordset")
sql="select allow_see_all_personinf from userinf where username=" & sqlstr(oabusyusername)
rs.open sql,conn,1
cook_allow_see_all_personinf=rs("allow_see_all_personinf")
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 6.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>
</head>
<body bgcolor="#eeeeee" topmargin="5" leftmargin="5">
<% call bghead() %>
<center>
<table>
<tr>
<td>
<b>教职工基本档案</b>
</td>
<%
if cook_allow_see_all_personinf="yes" then
%>
<form action="stafpersoninf.asp" method=get name="form1">
<td>
<select name="userdept" size=1 onChange="document.form1.submit();">
<%
'打开数据库读出部门
set conn=opendb("oabusy","conn","accessdsn")
set rs=server.createobject("adodb.recordset")
sql="select DISTINCT userdept from userinf"
rs.open sql,conn,1
if not rs.eof and not rs.bof then firstdept=rs("userdept")
if request("userdept")<>"" then firstdept=request("userdept")
while not rs.eof and not rs.bof
%>
<option value="<%=rs("userdept")%>"<%=selected(firstdept,rs("userdept"))%>><%=rs("userdept")%></option>
<%
rs.movenext
wend
%>
</select>
</td>
</form>
<%
else
firstdept=oabusyuserdept
end if
%>
<form action="stafpersoninf.asp" method=get name="form2">
<td>
<input type="hidden" name="userdept" value="<%=firstdept%>">
<select name="username" size=1>
<%
set conn=opendb("oabusy","conn","accessdsn")
set rs=server.createobject("adodb.recordset")
sql="select name,username from userinf where userdept=" & sqlstr(firstdept) & " and userlevel<>'总管' and forbid='no'"
rs.open sql,conn,1
if not rs.eof and not rs.bof then username=rs("username")
if request("username")<>"" then username=request("username")
while not rs.eof and not rs.bof
%>
<option value="<%=rs("username")%>"<%=selected(username,rs("username"))%>><%=rs("name")%></option>
<%
rs.movenext
wend
%>
</select>
<td>
<input type="submit" name="submit" value="查询">
</td>
</form>
</tr>
</table>
</center>
<%
call bgmid()
%>
<%
'读出姓名、部门、职位
set conn=opendb("oabusy","conn","accessdsn")
set rs=server.createobject("adodb.recordset")
sql="select name,userdept,userlevel from userinf where username=" & sqlstr(username)
rs.open sql,conn,1
if not rs.eof and not rs.bof then
name=rs("name")
userdept=rs("userdept")
userlevel=rs("userlevel")
end if
'打开数据库,读出个人档案
set conn=opendb("oabusy","conn","accessdsn")
set rs=server.createobject("adodb.recordset")
sql="select * from personinf where username=" & sqlstr(username)
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>
<br>
<table border="0" cellpadding="0" cellspacing="0" width="95%">
<tr>
<td width="30%"><b>教职工编号:</b><%=a(1)%></td>
<td width="35%"><b>录入时间:</b><%=inputdate%></td>
<td align="right"><b>修改时间:</b><%=updatedate%></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="95%">
<tr>
<td width="15%" align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-top: 2 solid #000000; border-bottom: 1 solid #000000"><b>姓 名</b></td>
<td width="35%" style="border-right: 1 solid #000000; border-top: 2 solid #000000; border-bottom: 1 solid #000000"><%=name%></td>
<td width="15%" align="center" style="border-right: 1 solid #000000; border-top: 2 solid #000000; border-bottom: 1 solid #000000"><b>曾 用 名</b></td>
<td width="100%" style="border-right: 1 solid #000000; border-top: 2 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(2))%></td>
<td width="80" height="100" rowspan="5" align="center" valign=center style="border-right: 2 solid #000000; border-top: 2 solid #000000; border-bottom: 1 solid #000000">
<%
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 #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>性 别</b></td>
<td style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(3))%></td>
<td align="center" style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>民 族</b></td>
<td style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(4))%></td>
</tr>
<tr>
<td align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><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: 1 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"><b>职 称</b></td>
<td style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(5))%></td>
<td align="center" style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>出生日期</b></td>
<td style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(6))%></td>
</tr>
<tr>
<td align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>政治面貌</b></td>
<td style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(7))%></td>
<td align="center" style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>健康状况</b></td>
<td style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(8))%></td>
</tr>
<tr>
<td align="center" width="15%" height="20" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>籍 贯</b></td>
<td width="35%" style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(9))%></td>
<td width="15%" align="center" style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>体 重</b></td>
<td width="35%" colspan="2" style="border-right: 2 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(10))%></td>
</tr>
<tr>
<td height="20" align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>身份证号</b></td>
<td style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(11))%></td>
<td align="center" style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>身 高</b></td>
<td colspan="2" style="border-right: 2 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(12))%></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"><%=checked3(a(13))%></td>
<td align="center" style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>毕业院校</b></td>
<td colspan="2" style="border-right: 2 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(14))%></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"><%=checked3(a(15))%></td>
<td align="center" style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>专 业</b></td>
<td colspan="2" style="border-right: 2 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(16))%></td>
</tr>
<tr>
<td height="20" align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>工 龄</b></td>
<td style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(17))%></td>
<td align="center" style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>学 历</b></td>
<td colspan="2" style="border-right: 2 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(18))%></td>
</tr>
<tr>
<td height="20" align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>外语语种</b></td>
<td style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(19))%></td>
<td align="center" style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>外语水平</b></td>
<td colspan="2" style="border-right: 2 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(20))%></td>
</tr>
<tr>
<td height="20" align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>普通话程度</b></td>
<td style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(21))%></td>
<td align="center" style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>粤语程度</b></td>
<td colspan="2" style="border-right: 2 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(22))%></td>
</tr>
<tr>
<td height="20" align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>计算机能力</b></td>
<td style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(23))%></td>
<td align="center" style="border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>户口所在地</b></td>
<td colspan="2" style="border-right: 2 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(24))%></td>
</tr>
<tr>
<td height="20" align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>现 住 址</b></td>
<td colspan="4" style="border-right: 2 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(25))%></td>
</tr>
<tr>
<td height="20" align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>档案存放地</b></td>
<td colspan="4" style="border-right: 2 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(26))%></td>
</tr>
<tr>
<td height="20" align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>个人专长<br>
以及爱好</b></td>
<td colspan="4" style="border-right: 2 solid #000000; border-bottom: 1 solid #000000"><%=checked3(a(27))%></td>
</tr>
<tr>
<td height="20" align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>本人曾受<br>过何种奖<br>励和处分</b></td>
<td colspan="4" style="border-right: 2 solid #000000; border-bottom: 1 solid #000000"><%=keepformat(checked3(a(28)))%></td>
</tr>
<tr>
<td height="20" align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>工作经历</b></td>
<td colspan="4" style="border-right: 2 solid #000000; border-bottom: 1 solid #000000"><%=keepformat(checked3(a(29)))%></td>
</tr>
<tr>
<td height="20" align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>家庭情况</b></td>
<td colspan="4" style="border-right: 2 solid #000000; border-bottom: 1 solid #000000"><%=keepformat(checked3(a(30)))%></td>
</tr>
<tr>
<td height="20" align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>本 人<br>联系方式</b></td>
<td colspan="4" style="border-right: 2 solid #000000; border-bottom: 1 solid #000000"><%=keepformat(checked3(a(31)))%></td>
</tr>
<tr>
<td height="20" align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 1 solid #000000"><b>发生意外<br>紧急情况<br>通知何人</b></td>
<td colspan="4" style="border-right: 2 solid #000000; border-bottom: 1 solid #000000"><%=keepformat(checked3(a(32)))%></td>
</tr>
<tr>
<td height="20" align="center" style="border-left: 2 solid #000000; border-right: 1 solid #000000; border-bottom: 2 solid #000000"><b>备 注</b></td>
<td colspan="4" style="border-right: 2 solid #000000; border-bottom: 2 solid #000000"><%=keepformat(checked3(a(33)))%></td>
</tr>
</table>
<br>
</center>
<%
call bgback()
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -