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

📄 viewcustomer.asp

📁 统架构:ASP+ACCESS 版本系列:个人版 开发时间:2005年12月20日 开发者: 搏天网络 联系QQ:359042595 演示地址:http://www.bootweb.cn/oa
💻 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>&nbsp;&nbsp;++查看客户资料++</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">&nbsp;&nbsp;<%=Company%></td>
 </tr>
 <tr>
  <td width="25%" align="center" bgcolor="#D4D0C8">单位地址</td>
  <td width="75%" align="left">&nbsp;&nbsp;<%=Address%></td>
 </tr>
 <tr>
  <td width="25%" align="center" bgcolor="#D4D0C8">联 系 人</td>                    
  <td width="75%" align="left">&nbsp;&nbsp;<%=Name%></td>                    
 </tr>                    
 <tr>                    
  <td width="25%" align="center" bgcolor="#D4D0C8">现任职务</td>                    
  <td width="75%" align="left">&nbsp;&nbsp;<%=nTitle%></td>                    
 </tr>                    
 <tr>                    
  <td width="25%" align="center" bgcolor="#D4D0C8">办公电话</td>                    
  <td width="75%" align="left">&nbsp;&nbsp;<%=Tel1%></td>                    
 </tr>                    
 <tr>                    
  <td width="25%" align="center" bgcolor="#D4D0C8">个人电话</td>                    
  <td width="75%" align="left">&nbsp;&nbsp;<%=Tel2%></td>                    
 </tr>                    
 <tr>                    
  <td width="25%" align="center" bgcolor="#D4D0C8">重要程度</td>                    
  <td width="75%" align="left">         
  <%If 1=VIP Then%>         
  &nbsp;&nbsp;普通
  <%ElseIf 2=VIP Then%>         
  &nbsp;&nbsp;<font color="#008000">重要</font>
  <%ElseIf 3=VIP Then%>         
  &nbsp;&nbsp;<font color="#ff0000">非常重要</font>
  <%End If%>         
  </td>         
 </tr>                    
 <tr>                    
  <td width="25%" align="center" bgcolor="#D4D0C8">备  注</td>                    
  <td width="75%" align="left">&nbsp;&nbsp;<%=Demo%></td>                    
 </tr>
 <tr>                    
  <td width="25%" align="center" bgcolor="#D4D0C8">添加日期</td>                    
  <td width="75%" align="left">&nbsp;&nbsp;<%=Date1%></td>                    
 </tr> 
 <tr>                    
  <td width="25%" align="center" bgcolor="#D4D0C8">最后更新</td>                    
  <td width="75%" align="left">&nbsp;&nbsp;<%=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 + -