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

📄 showclientinf.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"-->
<!--#include file="asp/maillink.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_client_addressinf=rs("allow_edit_client_addressinf")
printflag=request("printflag")
id=request("id")
%>
<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">
<title>外部通讯录</title>
<script language="javascript">
function printfun()
{
location.href="showclientinf.asp?project=<%=request("project")%>&id=<%=id%>&printflag=1";
}
</script>
</head>
<body bgcolor="#ffffff" topmargin="5" leftmargin="5">
<%
if printflag="" then
	 
end if
%>
<center>
<table align="center">
<tr>
<td><b>客户详细资料</b>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<%
if allow_edit_client_addressinf="yes" and printflag="" then
%>
<form method="post" action="editclientinf.asp">
<td><input type="submit" value="编辑"><input type="hidden" name="project" value="<%=request("project")%>">
<input type="hidden" name="id" value="<%=request("id")%>">
</td>
</form>
<%
end if
if printflag="" then
%>
<form method="post" action="client_notebook.asp">
<td><input type="submit" value="返回"><input type="hidden" name="project" value="<%=request("project")%>">&nbsp;<input type="button" name="printbtn" value="打印" onclick="printfun();">
</td>
</form>
<%
end if
%>
</tr>
</table>
</center>
<%
if printflag="" then
	 
end if
set rs=server.createobject("adodb.recordset")
sql="select * from clientinf where id=" & id
rs.open sql,conn,1
%>
<br><br>
<center>
  <table border="1" cellpadding="5" cellspacing="0" width="80%" bordercolorlight="#808080" bordercolordark="#D4D0C8">
    <tr>
      <td align=center height=25 width="101"><b>客户姓名</b></td>
      <td bgcolor="#FFFFFF" width="172"><%=keepformat(checked3(rs("name")))%></td>
      <td align=center width="98"><b>客户性别</b></td>
      <td bgcolor="#FFFFFF" width="168"><%=checked3(rs("sex"))%></td>
     </tr>
     <tr>
      <td align=center height=25 width="101"><b>职&nbsp;&nbsp;&nbsp;&nbsp;位</b></td>
      <td bgcolor="#FFFFFF" width="172"><%=keepformat(checked3(rs("position")))%></td>
      <td align=center width="98"><b>业务项目</b></td>
      <td bgcolor="#FFFFFF" width="168"><%=keepformat(checked3(rs("project")))%></td>
    </tr>
    <tr>
      <td align=center height=25 width="101"><b>所在单位</b></td>
      <td colspan="3" bgcolor="#FFFFFF" width="442"><%=keepformat(checked3(rs("company")))%></td>
    </tr>
    <tr>
      <td align=center height=25 width="101"><b>部&nbsp;&nbsp;&nbsp;&nbsp;门</b></td>
      <td bgcolor="#FFFFFF" width="172"><%=keepformat(checked3(rs("dept")))%></td>
      <td align=center width="98"><b>邮政编码</b></td>
      <td bgcolor="#FFFFFF" width="168"><%=keepformat(checked3(rs("postcard")))%></td>
    </tr>
    <tr>
      <td align=center height=25 width="101"><b>公司地址</b></td>
      <td colspan="3" bgcolor="#FFFFFF" width="442"><%=keepformat(checked3(rs("address")))%></td>
    </tr>
    <tr>
      <td align=center height=25 width="101"><b>传真号码</b></td>
      <td colspan="3" bgcolor="#FFFFFF" width="442"><%=keepformat(checked3(rs("fax")))%></td>
    </tr>
    <tr>
      <td align=center height=25 width="101"><b>联系电话</b></td>
      <td bgcolor="#FFFFFF" width="172"><%=keepformat(checked3(rs("tel")))%></td>
      <td align=center width="98"><b>手&nbsp;&nbsp;&nbsp;&nbsp;机</b></td>
      <td bgcolor="#FFFFFF" width="168"><%=keepformat(checked3(rs("handset")))%></td>
    </tr>
    <tr>
      <td align=center height=25 width="101"><b>呼&nbsp;&nbsp;&nbsp;&nbsp;机</b></td>
      <td bgcolor="#FFFFFF" width="172"><%=keepformat(checked3(rs("callno")))%></td>
      <td align=center width="98"><b>电子邮箱</b></td>
      <td bgcolor="#FFFFFF" width="168"><%=keepformat(maillink(rs("email")))%></td>
    </tr>
    <tr>
      <td align=center height=25 width="101"><b>备注说明</b></td>
      <td colspan="3" bgcolor="#FFFFFF" width="442"><%=keepformat(checked3(rs("remark")))%></td>
    </tr>
  </table>
</center>
<%
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
conn.close
set conn=nothing
%>
  </table>
  </center>
</div>
</body>

⌨️ 快捷键说明

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