📄 viewcustomer.asp
字号:
<%Option Explicit%>
<!--#include file="config.asp"-->
<%
If session("admin")<>"ok" Then
response.redirect"index.asp"
End If
Dim Id,Company,Address,Name,nTitle,Tel1,Tel2,VIP,Demo,Date1,Date2
Id=request.querystring("Id")
If Id="" Then
Dim strJS
strJS=strJS+"<script language='javascript'>"
strJS=strJS+"alert('页面参数不正确,请返回!');"
strJS=strJS+"location.href='main.asp';"
strJS=strJS+"</script>"
response.write strJS
End If
%>
<!--#include file="conn.asp"-->
<%
Dim objRS,strSQL
set objRS=Server.createobject("adodb.recordset")
strSQL="select * from customer where Id="&Id
objRS.Open strSQL,objConn,1,3
Company=objRS("Company")
Address=objRS("Address")
Name=objRS("Name")
nTitle=objRS("Title")
Tel1=objRS("Tel1")
Tel2=objRS("Tel2")
VIP=objRS("VIP")
Demo=objRS("Demo")
Date1=objRS("Date1")
Date2=objRS("Date2")
objRS.Close
objConn.Close
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title><%=title%></title>
<style type="text/css">
td{font-size:10pt;font-family:宋体;color:#000000;height:30px}
textarea,input{border-top:1 solid #cccccc;border-left:1 solid #cccccc;}
</style>
</head>
<body bgcolor="#000000">
<table width="500" align="center" bordre=0 bgcolor="#ffffff"><tr><td width="100%">
<table align="center" border=0 width="98%" cellspacing=0 cellpadding=0>
<tr>
<td width="100%" align="center" valign="middle" style="font-size:11pt"><b><%=cnVersion%></b></td>
</tr>
</table>
<table align="center" border=1 width="98%" cellspacing="0" cellpadding="0" bordercolorlight="#D4D0C8" bordercolordark="#999999">
<tr bgcolor="#D4D0C8">
<td width="100%" align="left" colspan=2> ++查看客户资料++</td>
</tr>
<form name="addForm" method="post" onsubmit="return check(this);" action="editcustomerok.asp">
<tr>
<td width="25%" align="center" bgcolor="#D4D0C8">单位名称</td>
<td width="75%" align="left"> <%=Company%></td>
</tr>
<tr>
<td width="25%" align="center" bgcolor="#D4D0C8">单位地址</td>
<td width="75%" align="left"> <%=Address%></td>
</tr>
<tr>
<td width="25%" align="center" bgcolor="#D4D0C8">联 系 人</td>
<td width="75%" align="left"> <%=Name%></td>
</tr>
<tr>
<td width="25%" align="center" bgcolor="#D4D0C8">现任职务</td>
<td width="75%" align="left"> <%=nTitle%></td>
</tr>
<tr>
<td width="25%" align="center" bgcolor="#D4D0C8">办公电话</td>
<td width="75%" align="left"> <%=Tel1%></td>
</tr>
<tr>
<td width="25%" align="center" bgcolor="#D4D0C8">个人电话</td>
<td width="75%" align="left"> <%=Tel2%></td>
</tr>
<tr>
<td width="25%" align="center" bgcolor="#D4D0C8">重要程度</td>
<td width="75%" align="left">
<%If 1=VIP Then%>
普通
<%ElseIf 2=VIP Then%>
<font color="#008000">重要</font>
<%ElseIf 3=VIP Then%>
<font color="#ff0000">非常重要</font>
<%End If%>
</td>
</tr>
<tr>
<td width="25%" align="center" bgcolor="#D4D0C8">备 注</td>
<td width="75%" align="left"> <%=Demo%></td>
</tr>
<tr>
<td width="25%" align="center" bgcolor="#D4D0C8">添加日期</td>
<td width="75%" align="left"> <%=Date1%></td>
</tr>
<tr>
<td width="25%" align="center" bgcolor="#D4D0C8">最后更新</td>
<td width="75%" align="left"> <%=Date2%></td>
</tr>
<tr bgcolor="#D4D0C8">
<td width="100%" align="center" colspan=2>
[<a href="javascript:window.close();">关闭窗口</a>]
</td>
</tr>
</form>
</table>
</td></tr></table>
</body>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -