⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 read.asp

📁 办公系统
💻 ASP
字号:
<!--#include file="../includes/db.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>办公自动化系统</title>
</head>

<body>
<center>
<%
call insureID()
dim User_id
User_id=request("User_id")
if User_id="" then
	call trigErr()
end if
sql= "SELECT Users_info.*, Dept.Dept_name AS Dept_name, Dept.Dept_id AS Dept_id, " _
	&"[Position].Position_name AS Position_name " _
	&"FROM Users_info INNER JOIN Dept " _
	&"ON Users_info.Dept_id = Dept.Dept_id INNER JOIN [Position] " _
	&"ON Users_info.Position_id = [Position].Position_id " _
	&"WHERE User_id="&User_id&" AND Fired=0"
call openDB()
rs.open sql,conn,1,1
if rs.eof then
	call trigErr()
end if
%>
<table border="0" width="100%" cellspacing="0" cellpadding="0" height="50">
 <tr>
  <td width="100%"> </td>
 </tr>
</table>
 <table width="75%" border="0" cellpadding="0" cellspacing="1" bgcolor="#5A8BCE">
 <tr>
  <td height="35" align=left bgcolor="#E6F7FF"><div align="center"><b><font color="#000000">员工详细情况</font></b></div></td>
  </tr>
</table>
<table width="75%" border="0" cellpadding="4" cellspacing="1" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" bgcolor="#5A8BCE">
 <tr>
  <td width="30%" bgcolor="#FCFCFC">员工号</td>
  <td width="45%" bgcolor="#FCFCFC" colspan="2"><%=rs("User_id")%></td>
 </tr>
 <tr>
  <td width="30%" bgcolor="#FCFCFC">姓名</td>
  <td width="45%" bgcolor="#FCFCFC" colspan="2"><%=rs("Name")%></td>
 </tr>
 <tr>
  <td width="30%" bgcolor="#FCFCFC">性别</td>
  <td width="45%" bgcolor="#FCFCFC" colspan="2"><%=rs("Sex")%></td>
 </tr>
 <tr>
  <td width="30%" bgcolor="#FCFCFC">部门</td>
  <td width="45%" bgcolor="#FCFCFC" colspan="2"><%=rs("Dept_name")%></td>
 </tr>
 <tr>
  <td width="30%" bgcolor="#FCFCFC">职位</td>
  <td width="45%" bgcolor="#FCFCFC" colspan="2"><%=rs("Position_name")%></td>
 </tr>
 <tr>
  <td width="30%" height=50 colspan=3 bgcolor="#EFEFEF" align=center>
 	[<a href="javaScript:history.back()">返回</a>]
 <%
if session("Position_id")=1 and rs("Position_id")<>1 then
	response.write "&nbsp;&nbsp;[<a href=""Modify_Position.asp?User_id="&rs("User_id")&""">变更职位</a>]"
end if
if ((session("Position_id")=4 AND session("Dept_id")=rs("Dept_id") AND rs("Position_id")<>4) _
	or session("Position_id")=1 AND rs("Position_id")<>1) then
  	response.write "&nbsp;&nbsp;[<a href=""Fire.asp?User_id="&User_id&"&Name=" _
  	&rs("Name")&"""><font color=#FF0000>辞退</font></a>]"
end if
call closeDB()
%> 
  </td>
 </tr>
</table>
</center>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -