📄 viewinfo.asp
字号:
<!--#Include file="../Common/Inc_DatConn.asp"-->
<!--#Include file="Common/Inc_Config.asp"-->
<!--#Include file="Common/Inc_Function.asp"-->
<!--#Include file="Common/Inc_Code.asp"-->
<%
'┌─ 风云ASP在线 ────────────────────────┐
'│ │
'│ 作者:赵振波. http://www.fyasp.com │
'│ │
'│ Q Q:176189168 │
'│ │
'│ Email:fy96@163.com │
'│ │
'│ 程序定做,系统开发,网站制作,提供高质量的网络产品、技术和服务!│
'│ │
'│【版权声明】 │
'│ │
'│ 本程序版权归坐看风云所有,未经授权擅自修改、复制或散布本程序│
'│ │
'│的部分或全部,将承受严厉的民事和刑事处罚,对已知的违反者将给予法 │
'│ │
'│律范围内的全面制裁。对非法使用此程序所造成的一切后果本人概不负责!│
'│ │
'└─────────────────── http://www.fyasp.com ──┘
%>
<%if IsTimeOut(Session("strAccount"),Session("strPassWord")) then Response.Redirect "index.asp"%>
<html>
<head>
<title><% = strSiteName%> - 网站后台管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="Common/Site.css" type="text/css">
</head>
<body topmargin="1" leftmargin="1">
<%
Dim intInfoKey
Dim rdsInfo
Dim sqlInfo
intInfoKey = Request.QueryString("Id")
if intInfoKey = "" then intInfoKey = 0
set rdsInfo = Server.CreateObject("ADODB.Recordset")
sqlInfo = "Select * From Dat_Information Where InfoKey = "& intInfoKey
rdsInfo.Open sqlInfo,Conn,1,1
if not rdsInfo.EOF then
%>
<table border="0" width="100%" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="100%" class="booktable">
<table border="0" width="100%" cellspacing="1" cellpadding="0" align="center">
<tr>
<td width="100%" height="30" class="bottom" colspan="2"> 来自 <font color="#FF0000"><% = rdsInfo("ContactMan")%></font> 的信息资料:</td>
</tr>
<tr>
<td width="25%" height="25" class="banma1" align="right">信息状态:</td>
<td width="75%" height="25" bgcolor="#FFFFFF">
<%
if rdsInfo("State") = 0 then
Response.Write " <font color=""#FF0000"">关闭</font>"
else
Response.Write " <font color=""#FF0000"">开启</font>"
end if
%>
</td>
</tr>
<tr>
<td height="25" class="banma1" align="right">供求类别:</td>
<td height="25" bgcolor="#FFFFFF">
<%xxlx3=rdsInfo("InfoClass")
Select Case xxlx3
Case "1"
strInfoClass = "<font color=#FFFF00>[销售]</font>"
Case "2"
strInfoClass = "<font color=#FFFF00>[求购]</font>"
Case "3"
strInfoClass = "<font color=#FFFF00>[要闻]</font>"
Case "4"
strInfoClass = "<font color=#FFFF00>[动态]</font>"
Case "5"
strInfoClass = "<font color=#FFFF00>[招聘]</font>"
Case "6"
strInfoClass = "<font color=#FFFF00>[求职]</font>"
Case "7"
strInfoClass = "<font color=#FFFF00>[展会]</font>"
Case "8"
strInfoClass = "<font color=#FFFF00>[其它]</font>"
End Select
Response.Write ""&strInfoClass&""%>
</td>
</tr>
<tr>
<td height="25" class="banma1" align="right">价格:</td>
<td height="25" bgcolor="#FFFFFF"> <% = rdsInfo("jg")%></td>
</tr>
<tr>
<td height="25" class="banma1" align="right">图片:</td>
<td height="25" bgcolor="#FFFFFF"><%if rdsInfo("pic")<>"" and rdsInfo("pic")<>"http://" then%>
<a href="../<%=rdsInfo("pic")%>" target="_blank">
<img border="0" src="../<%=rdsInfo("pic")%>" width="177" height="112" alt="<% = rdsInfo("Topic")%>" style="border: 1px solid #C0C0C0; padding: 1px"></a>
<%else%><img border="0" src="../x/NoPic2.jpg" width="135" height="112"><%end if%></td>
</tr>
<tr>
<td height="25" class="banma1" align="right">主题:</td>
<td height="25" bgcolor="#FFFFFF"> <% = rdsInfo("Topic")%></td>
</tr>
<tr>
<td class="banma1" align="right">内容:</td>
<td bgcolor="#FFFFFF" align="center" valign="top">
<table border="0" width="96%" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="50" style="line-height:150%"><% = rdsInfo("Content")%></td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="25" class="banma1" align="right">联系人:</td>
<td height="25" bgcolor="#FFFFFF"> <% = rdsInfo("ContactMan")%></td>
</tr>
<tr>
<td height="25" class="banma1" align="right">企业名称:</td>
<td height="25" bgcolor="#FFFFFF"> <% = rdsInfo("CompanyName")%></td>
</tr>
<tr>
<td height="25" class="banma1" align="right">地址:</td>
<td height="25" bgcolor="#FFFFFF"> <% = rdsInfo("Add")%></td>
</tr>
<tr>
<td height="25" class="banma1" align="right">邮编:</td>
<td height="25" bgcolor="#FFFFFF"> <% = rdsInfo("Postalcode")%></td>
</tr>
<tr>
<td height="25" class="banma1" align="right">电话:</td>
<td height="25" bgcolor="#FFFFFF"> <% = rdsInfo("Tel")%></td>
</tr>
<tr>
<td height="25" class="banma1" align="right">传真:</td>
<td height="25" bgcolor="#FFFFFF"> <% = rdsInfo("Fax")%></td>
</tr>
<tr>
<td height="25" class="banma1" align="right">Homepage:</td>
<td height="25" bgcolor="#FFFFFF"> <% = rdsInfo("Homepage")%></td>
</tr>
<tr>
<td height="25" class="banma1" align="right">E-Mail:</td>
<td height="25" bgcolor="#FFFFFF"> <% = rdsInfo("Email")%></td>
</tr>
<tr>
<td height="25" class="banma1" align="right">面向地区:</td>
<td height="25" bgcolor="#FFFFFF"> <% = rdsInfo("InfoAdd")%></td>
</tr>
<tr>
<td height="25" class="banma1" align="right">有效期:</td>
<td height="25" bgcolor="#FFFFFF">
<%
if rdsInfo("InfoDate") = "1" then
Response.Write " 一天"
elseif rdsInfo("InfoDate") = "3" then
Response.Write " 三天"
elseif rdsInfo("InfoDate") = "7" then
Response.Write " 一星期"
elseif rdsInfo("InfoDate") = "15" then
Response.Write " 半个月"
elseif rdsInfo("InfoDate") = "30" then
Response.Write " 一个月"
elseif rdsInfo("InfoDate") = "60" then
Response.Write " 两个月"
elseif rdsInfo("InfoDate") = "90" then
Response.Write " 一个季度"
elseif rdsInfo("InfoDate") = "182" then
Response.Write " 半年"
else
Response.Write " 一年"
end if
%>
</td>
</tr>
<tr>
<td height="25" class="banma1" align="right">IP 地址:</td>
<td height="25" bgcolor="#FFFFFF"> <% = rdsInfo("Ip")%></td>
</tr>
<tr>
<td height="25" class="banma1" align="right">发布时间:</td>
<td height="25" bgcolor="#FFFFFF"> <% = rdsInfo("CreateTime")%></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width="100%" height="40" align="right"><input onclick="parent.location.href='javascript:close();'" type="button" value="关闭窗口" class="button" name="Button"> </td>
</tr>
</table>
<%
end if
rdsInfo.Close
set rdsInfo = nothing
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -