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

📄 persondispinfo.asp

📁 很好的OA办公系统
💻 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")
id=request("id")
printflag=request("printflag")
if id="" then
	response.redirect "person_notebook.asp"
	response.end
end if
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="expires" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css/css.css">
<script language="javascript">
function deleteask()
{
	if (confirm("您真的要删除该通讯录吗?"))
		location.href="persondelete.asp?id=<%=id%>";
}

function printfun()
{
	location.href="persondispinfo.asp?id=<%=id%>&printflag=1";
}
</script>
<title>个人通讯录</title>
</head>
<body bgcolor="#ffffff" topmargin="5" leftmargin="5">
<%
if printflag="" then
	 
end if
if printflag="" then
%>
<center>
<table align="center">
<tr>
<td>
<b>查看资料</b>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td><input type="button" value="编辑" onclick="location.href='personeditrecord.asp?id=<%=cstr(id)%>'">&nbsp;<input type="button" value="删除" onclick="deleteask()">&nbsp;<input type="button" value="返回" onclick="history.go(-1);">&nbsp;<input type="button" value="打印" onclick="printfun();">
</td>
</tr>
</table>
</center>
<%
end if
if printflag="" then
	 
end if
set conn=opendb("oabusy","conn","accessdsn")
set rs=server.createobject("adodb.recordset")
sql="select * from personrecord,persontype where personrecord.id="&id&" and persontype.id=personrecord.recordtype"
rs.open sql,conn,1
if rs.eof or rs.bof then
	conn.close
	set rs=nothing
	response.write("<font color=""#ff0000"" size=""+3"">")
	response.write("<center>错误,该条信息可能已经被删除!</center>")
	response.write("</font>")
	response.end
end if
if rs("thisinfousername")<>oabusyusername then
	conn.close
	set rs=nothing
	response.write("<font color=""#ff0000"" size=""+1"">")
	response.write("<center>对不起,您不能查看该条资料!</center>")
	response.write("</font>")
	response.end
end if
xm=server.htmlencode(rs("xm"))
xb=rs("sex")
zw=server.htmlencode(rs("userzw"))
if zw="" then zw="&nbsp;"
lb=rs("typename")
dw=server.htmlencode(rs("company"))
zzdh=server.htmlencode(rs("hometel"))
if zzdh="" then zzdh="&nbsp;"
yzbm=server.htmlencode(rs("postcard"))
if yzbm="" then yzbm="&nbsp;"
dhfj=server.htmlencode(rs("companytel"))
if dhfj="" then dhfj="&nbsp;"
sj=server.htmlencode(rs("handset"))
if sj="" then sj="&nbsp;"
hj=server.htmlencode(rs("callset"))
if hj="" then hj="&nbsp;"
dzyj=server.htmlencode(rs("email"))
if dzyj="" then dzyj="&nbsp;"
zzdz=server.htmlencode(rs("homeaddress"))
if zzdz="" then zzdz="&nbsp;"
cz=server.htmlencode(rs("fax"))
if cz="" then cz="&nbsp;"
bz=server.htmlencode(rs("remark"))
if bz="" then bz="&nbsp;"
%>
<center>     
<br>     
  <table border="1" cellpadding="5" cellspacing="0" width="80%" bordercolorlight="#808080" bordercolordark="#D4D0C8">     
    <tr>     
      <td width="94" align=center height="25"><b>姓名</b></td>    
      <td width="227" height="25" bgcolor="#FFFFFF"><%=keepformat(xm)%></td>    
      <td width="96" align=center height="25"><b>性别</b></td>    
      <td width="219" height="25" bgcolor="#FFFFFF"><%=xb%></td>    
    </tr>    
    <tr>    
      <td align=center width="94" height="25"><b>职务</b></td>    
      <td width="227" height="25" bgcolor="#FFFFFF"><%=keepformat(zw)%></td>    
      <td align=center width="96" height="25"><b>通讯录类别</b></td>    
      <td width="219" height="25" bgcolor="#FFFFFF"><%=keepformat(lb)%></td>    
    </tr>    
    <tr>    
      <td align=center width="94" height="25"><b>单位</b></td>    
      <td colspan="3" width="544" height="25" bgcolor="#FFFFFF"><%=keepformat(dw)%></td>    
    </tr>    
    <tr>    
      <td align=center width="94" height="25"><b>住宅电话</b></td>    
      <td width="227" height="25" bgcolor="#FFFFFF"><%=keepformat(zzdh)%></td>    
      <td align=center width="96" height="25"><b>邮政编码</b></td>    
      <td width="219" height="25" bgcolor="#FFFFFF"><%=keepformat(yzbm)%></td>    
    </tr>    
    <tr>    
      <td align=center width="94" height="25"><b>电话或分机</b></td>    
      <td width="228" height="25" bgcolor="#FFFFFF"><%=keepformat(dhfj)%></td>    
      <td width="97" height="25">    
        <p align="center"><b>手&nbsp;&nbsp;&nbsp;&nbsp;机</b></p>    
      </td>    
      <td width="220" height="25" bgcolor="#FFFFFF"><%=keepformat(sj)%></td>    
    </tr>    
    <tr>    
      <td align=center width="94" height="25"><b>呼&nbsp;&nbsp;&nbsp;&nbsp;机</b></td>    
      <td width="228" height="25" bgcolor="#FFFFFF"><%=keepformat(hj)%></td>    
      <td width="97" height="25">    
        <p align="center"><b>Email</b></td>    
      <td width="220" height="25" bgcolor="#FFFFFF"><%=keepformat(dzyj)%></td>    
    </tr>    
    <tr>    
      <td align=center width="94" height="25"><b>住宅地址</b></td>    
      <td width="542" colspan="3" height="25" bgcolor="#FFFFFF"><%=keepformat(zzdz)%></td>    
    </tr>    
    <tr>    
      <td align=center width="94" height="25"><b>传真</b></td>    
      <td width="542" colspan="3" height="25" bgcolor="#FFFFFF"><%=keepformat(cz)%></td>    
    </tr>    
    <tr>    
      <td align=center width="94" height="25"><b>备注说明</b></td>    
      <td colspan="3" width="544" height="25" bgcolor="#FFFFFF"><%=keepformat(bz)%></td>    
    </tr>    
  </table>    
<%
if printflag="" then
%>
<input type="button" value="返回" onclick="history.go(-1);">    
<% 
end if
%>
</center>       
<%
conn.close
set conn=nothing
set rs=nothing
if printflag="" then
	%>
<div align="center">
  <center>
  <table>
    <tr>
      <td height=19>
        <table border="0" cellpadding="0" cellspacing="0" width="610" height="19">
		  <tr>
          <td width="100%" height=20><p align="center"><font color="#808080">IE37 &copy; <a href="http://www.ie37.com" target="_blank">IE37.com</a></font></td> 
		  </tr>
        </table>
      </td>
    </tr>
<%
else
	response.write("<script language=""javascript"">")
	response.write("if (confirm('按“确定”按钮开始打印!'))")
	response.write("	window.print();")
	response.write("else")
	response.write("	history.go(-1);")
	response.write("</script>")
end if
%>      
  </table>
  </center>
</div>
</body>      

⌨️ 快捷键说明

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