?? all_views.asp
字號(hào):
<!--#include file="conn.asp" -->
<%
if session("name")="" or session("dd")="" then
response.write "SORRY <br>"
response.write "數(shù)據(jù)在攜帶中出現(xiàn)意外!<br>"
response.write "<a href=login.asp target=_top>回去重來(lái)</a>"
response.end
end if
dim rs,sql
if session("chayue")="0" then
sql="select * from cust_user where id="&request("id")&"and vest_m="&session("dd")&" and cust_s="&request("cust")&""
else
sql="select * from cust_user where id="&request("id")&"and kongzhi='"&session("name")&"'and vest_m="&session("dd")&" and cust_s="&request("cust")&""
end if
set rs=server.createobject("adodb.recordset")
rs.Open sql,conn,1,3
if not rs.EOF then
%>
<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">
<title>客戶管理系統(tǒng)</title>
</head>
<STYLE type=text/css>
BODY { FONT-FAMILY: "宋體","Arial Narrow","Times New Roman"; FONT-SIZE: 9pt}
TD { FONT-FAMILY: "宋體","Arial Narrow","Times New Roman"; FONT-SIZE: 9pt; line-height: 150%}
a:link { color: #3366FF; text-decoration: none}
a:visited { color: #3366FF; text-decoration: none}
a:hover { color: #FF0080; text-decoration: underline}
.p1 { FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
.p2 { COLOR: #c0c0c0; FONT-SIZE: 9pt; LINE-HEIGHT: 14pt}
input { font-family: "宋體"; font-size: 9pt;color:#0000FF}
</STYLE>
<body>
<div align="center">
<table border="0" width="554" id="table2" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr><%
dim foldersql,folderrs,rsclass
rsclass=Request("sclass")
set folderrs=server.createobject("adodb.recordset")
foldersql="select * from customer where id="&request("cust")&" and vest_m ="&session("dd")&" "
folderrs.open foldersql,conn,1,1
com_name=folderrs("com_name")
folderrs.close
set folderrs=nothing
%>
<tr>
<td><%=com_name%> - 聯(lián)系人信息</td>
</tr>
</table>
</div>
<script Language="JavaScript">
<!--
function FrontPage_Form1_Validator(theForm)
{
if (theForm.sclass.selectedIndex < 0)
{
alert("單位必須選擇!");
theForm.sclass.focus();
return (false);
}
if (theForm.name.value == "")
{
alert("聯(lián)系人姓名必須填寫!");
theForm.name.focus();
return (false);
}
if (theForm.name.value.length >16)
{
alert("您的聯(lián)系人姓名填寫是否正確?請(qǐng)確認(rèn)!");
theForm.name.focus();
return (false);
}
return (true);
}
//-->
</script>
<form method="POST" action="add_editsave.asp" name="FrontPage_Form1" onsubmit="return FrontPage_Form1_Validator(this)" >
<input type="hidden" name="id" size="18" maxlength="20" value="<%=request("id")%>"><input type="hidden" name="mclass" size="18" maxlength="20" value="<%=session("dd")%>">
<input type="hidden" name="sclass" value="<%=request("sclass")%>">
<div align="center">
<table border="0" width="554" cellspacing="1" cellpadding="0" height="25" bgcolor="#DADADA" id="table3">
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">客戶姓名 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <%=rs("name")%>
</td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">客戶性別 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <%
if rs("sex") ="0" then
response.write"男"
else
response.write"女"
end if
%>
</td>
</tr>
<%end if%>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">所屬單位 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <%=com_name%>
</td>
</tr>
<%
if rs("city") ="不詳" then
response.write""
else
%>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">部
門 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <%=rs("city")%></td>
</tr>
<%end if
if rs("zhiwu") ="不詳" then
response.write""
else
%>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">職
務(wù) </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <%=rs("zhiwu")%></td>
</tr><%
end if
if rs("mobile") ="未填" then
response.write""
else
%>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">聯(lián)系手機(jī) </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <%=rs("mobile")%></td>
</tr>
<%end if%>
<%
if rs("homephone") ="未知或無(wú)" then
response.write""
else
%>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">固定電話 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <%=rs("homephone")%></td>
</tr>
<%end if%>
<%
if rs("fax") ="未填" then
response.write""
else
%>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">單位傳真 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <%=rs("fax")%></td>
</tr>
<%end if%>
<%
if rs("email") ="未填" then
response.write""
else
%>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">電子郵件 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <%=rs("email")%> <a href="mailto:<%=rs("email")%>">點(diǎn)此給該客戶發(fā)送郵件</a></td>
</tr>
<%end if%>
<%
if rs("oicq") ="未填" then
response.write""
else
%>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">Oicq </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <%=rs("oicq")%> <a alt="點(diǎn)擊發(fā)送消息給對(duì)方" target="_blank" href="http://wpa.qq.com/msgrd?V=1&Uin=<%=rs("oicq")%>&Menu=no">點(diǎn)擊發(fā)送消息給對(duì)方</a></td>
</tr>
<%end if%>
<%
if rs("msn") ="未填" then
response.write""
else
%>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">MSN </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <%=rs("msn")%></td>
</tr>
<%end if%>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">重要度 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <%
if rs("zy") ="0" then
response.write"初步聯(lián)絡(luò)的客戶"
end if
if rs("zy") ="1" then
response.write"一般客戶"
end if
if rs("zy") ="2" then
response.write"<font color=#FF0000>重要的客戶</font>"
end if
%>
</td>
</tr>
<%
if rs("content") ="無(wú)注釋" then
response.write""
else
%>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">備注 </td>
<td width="408" bgcolor="#FFFFFF" height="25">
<%=rs("content")%></td>
</tr>
<%end if%>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">錄入人 </td>
<td width="408" bgcolor="#FFFFFF" height="25"> <%=rs("kongzhi")%></td>
</tr>
<tr>
<td width="143" bgcolor="#EBEBEB" height="25" align="right">入庫(kù)時(shí)間 </td>
<td width="408" bgcolor="#FFFFFF" height="25">
<%=rs("time")%></td>
</tr>
</table>
<p> <a target="mainFrame" href="vbscript:history.back()" style="text-decoration: none"><font color="#FF0000">返回上頁(yè)</font></a></p>
<p> </div>
</form>
</body>
</html>
<%
rs.Close
set rs=nothing
%>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -