📄 contact_person.asp
字号:
<!--#include file="../config.asp"-->
<!--#include file="../inc/check_login.asp"-->
<!--#include file="../inc/functions.asp"-->
<%
Application_ID = 1000100 '本功能编号,含义请查看编码表
if not CheckAuth(Session("Employee_ID"),Application_ID) then '验证权限
Server.Transfer "../err/un_authorized.htm"
response.end
end if
%>
<!--**************身份验证部分****************-->
<%
Customer_ID = request("Customer_ID")
if not IsNot(Customer_ID,"n") then
response.write "客户编号丢失"
response.end
end if
Set conn = Server.CreateObject("ADODB.Connection")
Set rs = Server.CreateObject("ADODB.Recordset")
conn.open connstr
'取得客户名称
sql = "sp_Customer_Get_Customer_Name " & Customer_ID
set rs = conn.execute(sql)
if not rs.eof then
Customer_Name = rs("Customer_Name")
else
response.write "没有该客户"
response.end
end if
rs.close
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK rel="stylesheet" type="text/css" href="../style.css">
<script language="JavaScript" type="text/javascript" src="../js/functions.js"></script>
</head>
<body>
<table border=0 cellpadding=1 cellspacing=1 width="100%">
<tr>
<td><a href="list.asp">客户管理</a> → <%=Customer_Name%> → <a href="contact_person_new.asp?Customer_ID=<%= Customer_ID %>" target="foot">添加客户联系人</a></td>
<td align="right">◆ <a href="list.asp?UseResult=yes">返回上次客户查询结果</a></td>
</tr>
</table>
<hr size=1>
<table border="0" cellpadding=0 cellspacing=0 bgcolor="#EEEEEE">
<tr>
<td><a href="detail.asp?Customer_ID=<%= Customer_ID %>">客户信息</a> </td>
<td width="1" bgcolor="#FFFFFF"></td>
<td> <a href="buy_rec.asp?Customer_ID=<%= Customer_ID %>">采购记录</a> </td>
<td width="1" bgcolor="#FFFFFF"></td>
<td> <a href="pursue_rec.asp?Customer_ID=<%= Customer_ID %>">跟进记录</a> </td>
<td width="1" bgcolor="#FFFFFF"></td>
<td> <a href="relapse_rec.asp?Customer_ID=<%= Customer_ID %>">回访记录</a> </td>
<td width="1" bgcolor="#FFFFFF"></td>
<td> <a href="demand.asp?Customer_ID=<%= Customer_ID %>">需求表</a> </td>
<td width="1" bgcolor="#FFFFFF"></td>
<td bgcolor="#000000"> <font color="#FFFFFF">联系人</font> </td>
<td width="1" bgcolor="#FFFFFF"></td>
<td> <a href="docs.asp?Customer_ID=<%= Customer_ID %>">客户文档</a> </td>
<td width="50" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td colspan="14" bgcolor="#999999" height="1"></td>
</tr>
</table>
<table border=0 cellpadding=1 cellspacing=1 width="100%">
<tr bgcolor="#EFEFEF">
<td>姓名</td>
<td>性别</td>
<td>部门</td>
<td>职务</td>
<td>电话</td>
<td>传真</td>
<td>手机</td>
<td><font face="Wingdings">*</font></td>
<td>操作</td>
</tr>
<%
ID_Pointer = request("ID_Pointer")
IsFirstPage = False
if not IsNot(ID_Pointer,"n") then ID_Pointer = MaxRecordNum
if CStr(ID_Pointer) = CStr(MaxRecordNum) then IsFirstPage = true
PageSize = request.Cookies("PageSize")
if not IsNot(PageSize,"n") then PageSize = DefaultPageSize
'取得联系人
sql = "select * from Customers_Contact_Person where Customer_ID = " & Customer_ID & " order by Contact_Person_ID DESC"
'response.write sql
rs.open sql,conn,1
if rs.eof then
response.write "<tr><td colspan=18>暂时没有记录</td></tr></table>"
response.end
end if
PageSize = request.Cookies("PageSize")
if not IsNot(PageSize,"n") then PageSize = DefaultPageSize
rs.pagesize = PageSize
PageCount = rs.PageCount
PageNo = request("PageNo")
if PageNo = "" or CInt(PageNo) < 1 then PageNo = 1
if CInt(PageNo) > PageCount then PageNo = PageCount
rs.absolutepage = PageNo
i = 0
while not rs.eof and i < rs.pagesize
Contact_Person_ID = rs("Contact_Person_ID")
Contact_Person_Name = rs("Contact_Person_Name")
Gender = rs("Gender")
Dept = rs("Dept")
Rank = rs("Rank")
Tel = rs("Tel")
Fax = rs("Fax")
Mobile = rs("Mobile")
Email = rs("Email")
if Gender then
Gender = "男"
else
Gender = "女"
end if
if i mod 2 = 0 then
response.write "<tr>"
else
response.write "<tr bgcolor=#EFEFEF>"
end if
%>
<td><%= Contact_Person_Name %></td>
<td><%= Gender %></td>
<td><%= Dept %></td>
<td><%= Rank %></td>
<td><%= Tel %></td>
<td><%= Fax %></td>
<td><%= Mobile %></td>
<% If len(Email) > 5 then %>
<td><a href="mailto:<%= Email %>"><font face="Wingdings">*</font></a></td>
<% Else %>
<td> </td>
<% End If %>
<td>
<a href="contact_person_modi.asp?Contact_Person_ID=<%=Contact_Person_ID%>" target="foot">修改</a>/<a href="contact_person_del.asp?Contact_Person_ID=<%=Contact_Person_ID%>" target="foot" onClick="return ConfirmOption('删除联系人');">删除</a>
</td>
</tr>
<%
i = i + 1
rs.movenext
wend
rs.close
set rs = nothing
conn.close
set conn = nothing
%>
<tr bgcolor="#EFEFEF">
<td colspan="10">
<a href="contact_person.asp?PageNo=1&Customer_ID=<%= Customer_ID %>"><font face="Webdings">5</font>第一页</a>
<a href="contact_person.asp?PageNo=<%= PageNo - 1 %>&Customer_ID=<%= Customer_ID %>"><font face="Webdings">3</font>上一页</a>
<a href="contact_person.asp?PageNo=<%= PageNo + 1 %>&Customer_ID=<%= Customer_ID %>"><font face="Webdings">4</font>下一页</a>
<a href="contact_person.asp?PageNo=<%= PageCount %>&Customer_ID=<%= Customer_ID %>"><font face="Webdings">6</font>最后一页</a>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -