infomore.asp
来自「CityCN V2.1 是自主开发的基于ASP+Access的新型资讯信息系统。」· ASP 代码 · 共 246 行
ASP
246 行
<%response.buffer=true
Session.CodePage=936%>
<!--#include file="config.asp" -->
<!--#include file="conn.asp" -->
<!--#include file="ad.asp" -->
<%
dim id
id=trim(request.QueryString("id"))
if len(id)=0 or IsNumeric(id)=flase then response.redirect "error.asp?v=infomore_error" end if
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from 资讯 where 编号="& id,conn,1,1
if rs.eof or rs.bof then response.redirect "error.asp?v=infomore_no" end if
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name=keywords content="<%=sitekeywords%>">
<meta name="description" content="<%=sitedescription%>">
<title><%=rs("名称")%> -- <%=sitename%></title>
<link href="style.css" rel="stylesheet" type="text/css">
<link href="skin/style_<%=trim(request.cookies("skin_color"))%>.css" rel="stylesheet" type="text/css">
<SCRIPT language='javascript' src='inc/pop.js'></SCRIPT>
</head>
<body leftmargin="0" topmargin="0" ondragstart="window.event.returnvalue=false" oncontextmenu="return false" onselectstart="return false" ondragstart="return false" ondragstart="return false">
<noscript><iframe src="*.htm"></iframe></noscript>
<div align="<%=sitealign%>">
<table width="683" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="183" bgcolor="#E9E9E9">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#990000" height="110" align="center">
<img border="0" src="images/logo2.gif" width="160" height="85" alt="CityCN.net LOGO">
</td>
</tr>
<tr>
<td bgcolor="#ffffff" height="1"></td>
</tr>
<tr>
<td class="skin_shen" height="55" align="center"><span style="font-size: 12pt; line-height: 12pt; font-weight: 700; color: #FFFFFF; letter-spacing: 5">资讯相关信息</span></td>
</tr>
<tr>
<td height="1" bgcolor="#ffffff"></td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td align=center>
<table border="0" width="90%" cellpadding="6" bgcolor="#FFFFFF" style="border-left:1px solid #D3D3D3; border-right:1px solid #D3D3D3; border-top:1px solid #D3D3D3;">
<tr>
<td align=center>
<TABLE cellPadding=4 cellspacing="0" width="140">
<TR>
<TD width="40" align="left" style="border-bottom:1px dotted #cccccc">名称:</TD>
<TD width="100" align="left" style="border-bottom:1px dotted #cccccc; color:#ff6600"><%=rs("名称")%></TD>
</TR>
<TR>
<TD align="left" style="border-bottom:1px dotted #cccccc">城市:</TD>
<TD align="left" style="border-bottom:1px dotted #cccccc; color:#ff6600"><%=rs("城市")%>(<%=rs("区号")%>)</TD>
</TR>
<TR>
<TD align="left" style="border-bottom:1px dotted #cccccc">类别:</TD>
<TD align="left" style="border-bottom:1px dotted #cccccc; color:#ff6600">
<%dim rslb
set rslb=server.CreateObject("adodb.recordset")
rslb.open "select * from 资讯类别 where 类别编号=" & rs("类别"),conn,1,1
if rslb.recordcount=1 then
response.write rslb("类别名")
end if
rslb.close
set rslb=nothing%>
</TD>
</TR>
<TR>
<TD align="center" style="border-bottom:1px dotted #cccccc" colspan="2" height="30"><%response.write "<img border=0 title='推荐指数→"&rs("推荐指数")&"级' src='images/info_tui_"&rs("推荐指数")&".gif' width=55 height=12>"%></TD>
</TR>
<TR>
<TD colspan="2" align="center" height="2"></TD>
</TR>
</TABLE>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="skin_qian" align="center" height="55">
<font style="font-size: 12pt;letter-spacing: 5px;font-weight: 700" color="#FFFFFF">相关操作</font></td>
</tr>
<tr>
<td height="1" bgcolor="#ffffff"></td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td align="center">
<table border="0" width="90%" cellpadding="6" bgcolor="#FFFFFF" style="border-left:1px solid #D3D3D3; border-right:1px solid #D3D3D3; border-top:1px solid #D3D3D3;">
<tr>
<td align=center>
<TABLE cellPadding=4 cellspacing="0" width="140">
<TR>
<TD align="center" style="border-bottom:1px dotted #cccccc" height="30">
<a href="infomore_pl.asp?id=<%=id%>#add_pl">发表评论</a></TD>
</TR>
<TR>
<TD align="center" style="border-bottom:1px dotted #cccccc" height="30">
<a href="infomore_pl.asp?id=<%=id%>">查看评论</a></TD>
</TR>
<TR>
<TD align="center" style="border-bottom:1px dotted #cccccc" height="30"><a target="_blank" href="mod_info.asp?id=<%=id%>">店家管理</a></TD>
</TR>
<TR>
<TD align="center" height="2"></TD>
</TR>
</TABLE>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="skin_qian" height="30" align="center"> </td>
</tr>
</table>
</td>
<td width="500">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellpadding="5" cellspacing="0">
<tr>
<td height="40" bgcolor="#2B78A8" style="font-size:12pt; line-height:12pt; color: #FFFF00; font-weight:bold"><%=rs("名称")%></td>
</tr>
<tr>
<td height="1" bgcolor="#ffffff"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td align="center">
<table width="500" border="1" cellpadding="6" style="border-collapse: collapse" bordercolor="#CCCCCC">
<tr><td style="font-size: 10pt" bgcolor="#EFEFEF" colspan="2"><font face="Wingdings" style="font-size: 12pt" color="#FF9800">î</font> <font color="#FF6600"><b>资讯介绍</b></font></td></tr>
<tr><td style="font-size: 10pt" colspan="2"><%if rs("图片1")<>"" and rs("图片1")<>"http://" then response.write "<a href='view_image.asp?id="&rs("编号")&"&name="&rs("名称")&"&picurl="&rs("图片1")&"'><img src='"&rs("图片1")&"' title='点击看原始图片' align='right' border='0' height='100' width='150'></a>"%> <%=rs("介绍")%></td></tr>
<tr><td height="2" colspan="2"></td></tr>
<%if rs("消费")<>"" then%>
<tr><td style="font-size: 10pt" bgcolor="#EFEFEF" colspan="2"><font face="Wingdings" style="font-size: 12pt" color="#FF9800">î</font> <font color="#FF6600"><b>消费情况</b></font></td></tr>
<tr><td colspan="2"><%=rs("消费")%></td></tr>
<tr><td height="2" colspan="2"></td></tr>
<%end if%>
<%if rs("地址")<>"" or rs("公交")<>"" then%>
<tr><td style="font-size: 10pt" bgcolor="#EFEFEF" colspan="2"><font face="Wingdings" style="font-size: 12pt" color="#FF9800">î</font> <font color="#FF6600"><b>资讯地址</b></font></td></tr>
<%if rs("地址")<>"" then response.write "<tr><td width=80 align='center'>资讯地址:</td><td width=420>"&rs("地址")&"</td></tr>" end if%>
<%if rs("公交")<>"" then response.write "<tr><td width=80 align='center'>公交线路:</td><td width=420>"&rs("公交")&"</td></tr>" end if%>
<tr><td height="2" colspan="2"></td></tr>
<%end if%>
<%if rs("电话")<>"" or rs("网站")<>"" or rs("即时通讯")<>"" then%>
<tr><td style="font-size: 10pt" bgcolor="#EFEFEF" colspan="2"><font face="Wingdings" style="font-size: 12pt" color="#FF9800">î</font> <font color="#FF6600"><b>联系方式</b></font></td></tr>
<%if rs("电话")<>"" then response.write "<tr><td width=80 align='center'>联系电话:</td><td width=420>"&rs("电话")&"</td></tr>" end if%>
<%if rs("网站")<>"" and len(rs("网站"))>7 then response.write "<tr><td width=80 align='center'>资讯网址:</td><td width=420><a target='_blank' href='"&rs("网站")&"'>"&rs("网站")&"</a></td></tr>" end if%>
<%if rs("即时通讯")<>"" then response.write "<tr><td width=80 align='center'>腾讯QQ:</td><td width=420><a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin="&rs("即时通讯")&"&Site="&sitesname&"&Menu=yes><img border='0' align='absmiddle' SRC=http://wpa.qq.com/pa?p=1:"&rs("即时通讯")&":1 alt='QQ:"&rs("即时通讯")&"'> "&rs("即时通讯")&"</a></td></tr>" end if%>
<tr><td height="2" colspan="2"></td></tr>
<%end if%>
<%if rs("其他")<>"" then%>
<tr><td style="font-size: 10pt" bgcolor="#EFEFEF" colspan="2"><font face="Wingdings" style="font-size: 12pt" color="#FF9800">î</font> <font color="#FF6600"><b>更多信息</b></font></td></tr>
<tr><td colspan="2"><%=rs("其他")%></td></tr>
<tr><td height="2" colspan="2"></td></tr>
<%end if%>
<%if rs("图片2")<>"" and rs("图片2")<>"http://" then%>
<tr><td style="font-size: 10pt" bgcolor="#EFEFEF" colspan="2"><font face="Wingdings" style="font-size: 12pt" color="#FF9800">î</font> <font color="#FF6600"><b>相关图片</b></font></td></tr>
<tr><td colspan="2" align="center">
<%
if rs("图片2")<>"" and rs("图片2")<>"http://" then response.write "<a href='view_image.asp?id="&rs("编号")&"&name="&rs("名称")&"&picurl="&rs("图片2")&"'><img src='"&rs("图片2")&"' title='点击看原始图片' border=0 height=100 width=150></a> "
if rs("图片3")<>"" and rs("图片3")<>"http://" then response.write "<a href='view_image.asp?id="&rs("编号")&"&name="&rs("名称")&"&picurl="&rs("图片3")&"'><img src='"&rs("图片3")&"' title='点击看原始图片' border=0 height=100 width=150></a> "
if rs("图片4")<>"" and rs("图片4")<>"http://" then response.write "<a href='view_image.asp?id="&rs("编号")&"&name="&rs("名称")&"&picurl="&rs("图片4")&"'><img src='"&rs("图片4")&"' title='点击看原始图片' border=0 height=100 width=150></a>"
%>
</td></tr>
<tr><td height="2" colspan="2"></td></tr>
<%end if%>
</table>
<table width="500"><tr><td height="2"></td></tr></table>
<table width="500" border="1" cellpadding="8" style="border-collapse: collapse" bordercolor="#CCCCCC">
<tr><td height="2" align="center"><!--详细页广告--><%call ad_info_more(rs("城市"))%></td></tr>
</table>
<table width="500"><tr><td height="2"></td></tr></table>
<table width="500" border="1" cellpadding="5" style="border-collapse: collapse; line-height:48pt" bordercolor="#CCCCCC">
<tr>
<td width="400" style="font-size: 10pt" bgcolor="#EFEFEF"><font face="Wingdings" style="font-size: 12pt" color="#FF9800">î</font> <font color="#FF6600"><b>网友评论</b></font></td>
<td bgcolor="#ffffff" width="100" align="center">
<a style="font-size: 10pt; color: #666666; font-weight: bold" href="infomore_pl.asp?id=<%=id%>#add_pl">发表评论</a><img border="0" src="images/arrow.gif"></td>
</tr>
<%dim rspl
set rspl=server.CreateObject("adodb.recordset")
rspl.open "select * from 资讯评论 where 审核=1 and 资讯编号="& rs("编号") &" order by 编号 desc",conn,1,1
if rspl.recordcount=0 then
response.write "<tr><td colspan='2'>暂时没有评论</td></tr>"
else
dim i
i=0
do while not rspl.eof and not rspl.bof and i<2
response.write "<tr><td colspan='2' style='line-height:12pt'>"
response.write "<font color='#FF3300'>"&rspl("发言内容")&"</font><br>"
response.write "<div align='right'><font color='#999999'>留言人 <u>" &rspl("发言者姓名")& "</u> | " &rspl("发言时间")& " | " &rspl("发言者联系方式") &" | IP保密</font></div>"
response.write "</td></tr>"
rspl.movenext
i=i+1
loop
response.write "<tr><td width='400' style='font-size: 10pt;color: #666666;font-weight:700' bgcolor='#EFEFEF'>共有评论 <font color='red'>"&rspl.recordcount&"</font> 条</td>"
response.write "<td width='100' bgcolor='#ffffff' align='right'><a style='font-size: 10pt; color: #666666; font-weight:700' href='infomore_pl.asp?id="&rs("编号")&"'>更多评论</a> <img border='0' src='images/hot.gif'></td></tr>"
end if
rspl.close
set rspl=nothing%>
</td>
</tr>
<tr><td height="2" colspan="2"></td></tr>
</table>
</td>
</tr>
</table>
<table width="500" border="0" cellpadding="5" cellspacing="0">
<tr><td height="4" bgcolor="#ffffff" colspan="2"></td></tr>
<tr>
<td height="35" bgcolor="#2B78A8" style="font-size:9pt; color: #FFFFff" width="300">更新日期:<%=rs("日期")%></td>
<td height="35" bgcolor="#2B78A8" style="font-size:9pt; color: #FFFFff" align="right"><input type='button' value=' 关 闭 ' onclick='javascript:window.close()'></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<%
rs.close
set rs=nothing
%>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?