?? 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 + -