javastr=""
<%dim conn   
dim connstr
on error resume next
connstr="DBQ="+server.mappath("pastmdb/#past.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
set conn=server.createobject("adodb.connection")
conn.open connstr

function HTMLEncode2(fString)
fString = replace(fString, "</P><P>", "")
fString = replace(fString, ">", "")
fString = replace(fString, "<", "")
HTMLEncode2 = fString
end function%>

<%sql="select * from news_moban where newsid="&request("newsid")&""
set rs=conn.execute(sql)
newsid=rs("newsid")
channel=rs("channel")
channelink=rs("channelink")
channelid=rs("channelid")
nnclass=rs("nnclass")
anclass=rs("anclass")
nclass=rs("nclass")
title=rs("title")
updatetime=rs("updatetime")
if rs("copy")="原创" then
aaa="作者:"
if rs("writer")="" then
writer="web"
else
writer=rs("writer")
end if
if rs("hander")="" then
hander=""
else
hander=rs("hander")
bbb="编辑:"
end if
else  '如果转载则原则为显示发表编辑，按要求添加作者
if rs("writer")="" then
writer=""
else
aaa="作者:"
writer=rs("writer")
end if
bbb="编辑:"
if rs("hander")="" then
hander="web"
else
hander=rs("hander")
end if
end if
copy=rs("copy")
fromwhere=rs("fromwhere")
pages=rs("pages")
pathlink=rs("pathlink")
pathlink=split(pathlink,"/")
rs.close
dim act
act=request.QueryString("act")
select case act


case "one"
'增加点击
conn.execute("update news_moban set count=count+1 where newsid="&request("newsid")&" ")%>

javastr=javastr+"<table width=100% cellspacing=0 cellpadding=0 border=0 align=center>"

javastr=javastr+"<tr><td style=\"padding-left:10px;background-color:#EFEFEF;height=25\">"
<!--导航 -->
javastr=javastr+"<table width=100% cellspacing=0 cellpadding=0 border=0 align=center><tr>"
javastr=javastr+"<td>"
javastr=javastr+"<a href=\"http://it532.cn\" class=\"00\" title=青岛IT532商频网>IT532</a> > "
javastr=javastr+"<a href=\"../../<%=channelink%>pd.asp\" class=\"00\"><%=channel%></a> > "
javastr=javastr+"<a href=\"../../news_more.asp?channelid=<%=channelid%>&nnclass=<%=nnclass%>\" class=\"00\"><%=nnclass%></a> > "
javastr=javastr+"<a href=\"../../news_more.asp?channelid=<%=channelid%>&anclass=<%=anclass%>\" class=\"00\"><%=anclass%></a> > "
javastr=javastr+"<a href=\"../../news_more.asp?channelid=<%=channelid%>&nclass=<%=nclass%>\" class=\"00\"><%=nclass%></a> > 正文"
javastr=javastr+"</td>"
javastr=javastr+"<td align=right>"
javastr=javastr+"<marquee direction=\"left\" height=\"22\" width=\"150\" scrollamount=1>视频预订热线：82924086</marquee>"
javastr=javastr+"</td>"
javastr=javastr+"</tr></table>"

javastr=javastr+"</td></tr>"
javastr=javastr+"<tr><td height=2></td></tr>"
<!--广告1 -->
javastr=javastr+"<tr><td align=center>"
<%sql="select  * from shop_gg where ggid=16"
set rs=conn.execute(sql)
b=split(rs("2542"),".")
a=split(rs("2542url"),",")%>
javastr=javastr+"<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"
javastr=javastr+"<tr><td style=\"padding-top:5px\">" 
<%if rs("2542")="" then
elseif b(1)="swf" then%> 
javastr=javastr+"<embed src=\"http://it532.cn/bigqd/<%=rs("2542")%>\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"<%=a(0)%>\" height=\"<%=a(1)%>\"></embed>"
<%elseif b(1)="jpg" or b(1)="gif" then%>
javastr=javastr+"<a href=\"<%=a(2)%>\" target=\"_top\"><img src=\"http://it532.cn/bigqd/<%=rs("2542")%>\" width=\"<%=a(0)%>\" height=\"<%=a(1)%>\" border=\"0\"></a>"
<%end if%>
javastr=javastr+"</td></tr></table>"
javastr=javastr+"</td></tr>"
<!--GOOGLE广告 -->
javastr=javastr+"<tr><td style=\"padding-top:2px\" align=\"center\">" 
javastr=javastr+"<iframe src=\"../../ad_two.asp?action=moban_ad1\" height=60 width=490 scrolling=no frameborder=0></iframe>"
javastr=javastr+"</td></tr>" 
<!--主题 -->
javastr=javastr+"<tr><td align=center class=td16 height=50><%=title%></td></tr>"
<!--发布属性 -->
javastr=javastr+"<tr><td align=center class=td12>"
javastr=javastr+"发布时间:<%=updatetime%>　类型:<%=copy%>　来源:<%=fromwhere%>　<%=aaa%><%=writer%>　<%=bbb%><%=hander%>"
javastr=javastr+"</td></tr>"
<!--广告2 -->
javastr=javastr+"<tr><td align=center>"
javastr=javastr+"<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"
javastr=javastr+"<tr><td style=\"padding-top:5px\">" 
<%sql="select * from shop_gg where ggid=16"
set rs=conn.execute(sql)
b=split(rs("1441"),".")
a=split(rs("1441url"),",")
if rs("1441")="" then
elseif b(1)="swf" then%> 
javastr=javastr+"<embed src=\"../../<%=rs("1441")%>\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"<%=a(0)%>\" height=\"<%=a(1)%>\"></embed>"
<%elseif b(1)="jpg" or b(1)="gif" then%>
javastr=javastr+"<a href=\"<%=a(2)%>\" target=\"_top\"><img src=\"../../<%=rs("1441")%>\" width=\"<%=a(0)%>\" height=\"<%=a(1)%>\" border=\"0\"></a>"
<%end if%>
javastr=javastr+"</td></tr>"
javastr=javastr+"<tr><td height=\"5\"></td></tr>" 
javastr=javastr+"<tr><td>"
javastr=javastr+"<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\"><tr><td>"
javastr=javastr+"<table cellpadding=\"1\" cellspacing=\"0\" width=\"100%\">"
<%sql="select top 10 * from news_moban where channelid=50 and att<>5 order by updatetime desc"
set rs=conn.execute(sql)
do while not rs.eof
if not rs.eof then%>
javastr=javastr+"<tr><td><a href=\"../<%=rs("pathlink")%>\" target=\"_top\" title=\"<%=rs("title")%>\"><%=left(rs("title"),15)%></a></td>"
<%rs.movenext
end if
if not rs.eof then%>
javastr=javastr+"<td><a href=\"../<%=rs("pathlink")%>\" target=\"_top\" title=\"<%=rs("title")%>\"><%=left(rs("title"),15)%></a></td></tr>"
<%rs.movenext
end if
loop
sql="select top 3 * from news_moban where channelid=50 and att<>5 order by updatetime desc"
set rs=conn.execute(sql)
if not rs.eof then%>
javastr=javastr+"<tr><td colspan=\"2\"><marquee direction=\"left\" height=\"20\" width=\"100%\">"
<%while not rs.eof%>
javastr=javastr+"<a href=\"<%=rs("pathlink")%>\"><font color=\"red\"><%=rs("title")%></font></a>&nbsp;"
<%rs.movenext
wend%>
javastr=javastr+"</marquee></td></tr>"
<%end if%>
javastr=javastr+"</table>"
javastr=javastr+"</td>"
javastr=javastr+"<td>"
javastr=javastr+"<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">"
javastr=javastr+"<tr><td align=\"right\">"
<%sql="select * from shop_gg where ggid=16"
set rs=conn.execute(sql)
b=split(rs("1443"),".")
a=split(rs("1443url"),",")
if rs("1443")="" then%>
<!--自动显示补贴广告 -->
javastr=javastr+"<iframe src=\"../../ad_two.asp?action=news\" scrolling=no frameborder=0 width=180 height=150></iframe>"
<!--自动补贴广告结束 -->
<%elseif b(1)="swf" then%> 
javastr=javastr+"<embed src=\"../../<%=rs("1443")%>\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"<%=a(0)%>\" height=\"<%=a(1)%>\"></embed>"
<%elseif b(1)="jpg" or b(1)="gif" then%>
javastr=javastr+"<a href=\"<%=a(2)%>\" target=\"_top\"><img src=\"../../<%=rs("1443")%>\" width=\"<%=a(0)%>\" height=\"<%=a(1)%>\" border=\"0\"></a>"
<%end if%>
javastr=javastr+"</td></tr></table>"
javastr=javastr+"</td></tr></table>"

javastr=javastr+"</td></tr>"
javastr=javastr+"<tr><td height=5></td></tr>"
javastr=javastr+"</table>" 
javastr=javastr+"</td></tr>"

javastr=javastr+"</table>"


<%case "two"%>
javastr=javastr+"<table cellpadding=0 cellspacing=0 width=100% border=0>"
<!--关闭按钮 -->
javastr=javastr+"<tr><td align=right class=tdtop>【<a href=\"#\" onclick=\"window.print();return false\">打印</a>】【<a href=\"javascript:window.close()\">关闭</a>】</td></tr>"

<!--GOOGLE广告 -->
javastr=javastr+"<tr><td align=\"center\">" 
javastr=javastr+"<iframe src=\"../../ad_two.asp?action=moban_news\" height=65 width=490 scrolling=no frameborder=0></iframe>"
javastr=javastr+"</tr></td>" 
<!--广告３ -->
javastr=javastr+"<tr><td align=\"center\">" 
<%sql="select * from shop_gg where ggid=16"
set rs=conn.execute(sql)
b=split(rs("16030"),".")
a=split(rs("16030url"),",")
if rs("16030")="" then%>
<!--自动显示补贴广告 -->
javastr=javastr+"<iframe src=\"../../ad_two.asp?action=news_three\" scrolling=no frameborder=0 width=490 height=60></iframe>"
<!--自动补贴广告结束 -->
<%elseif b(1)="swf" then%> 
javastr=javastr+"<embed src=\"http://it532.cn/bigqd/<%=rs("16030")%>\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"<%=a(0)%>\" height=\"<%=a(1)%>\"></embed>"
<%elseif b(1)="jpg" or b(1)="gif" then%>
javastr=javastr+"<a href=\"<%=a(2)%>\" target=\"_top\"><img src=\"http://it532.cn/bigqd/<%=rs("16030")%>\" width=\"<%=a(0)%>\" height=\"<%=a(1)%>\" border=\"0\"></a>"
<%end if%>
javastr=javastr+"</td></tr>"
<!--反馈 -->
javastr=javastr+"<tr><td align=\"center\" style=\"padding-top:5px\">" 
javastr=javastr+"<table width=94% border=0 align=center cellpadding=0 cellspacing=0>"
javastr=javastr+"<tr>"
javastr=javastr+"<td style=\"padding-top:2px;border-bottom:1px solid #188ad6\">"
javastr=javastr+"<table width=100% border=0 cellspacing=0 cellpadding=0>"
javastr=javastr+"<tr>"
javastr=javastr+"<td height=20 align=center bgcolor=#188AD6 style=\"padding-left:5px;padding-right:5px\"><a href=\"http://it532.cn\" style=\"text-decoration:none\"><font color=#FFFFFF><b>评论文章</b></font></a></td>"
javastr=javastr+"<td align=right>"
javastr=javastr+"<font color=#0000FF>IT532.cn力倡IT文化，崇尚互联共享，欢迎各种媒体转载我们的原创作品[转载请注明出处]。</font>"
javastr=javastr+"</td></tr>"
javastr=javastr+"</table></td>"
javastr=javastr+"</tr>"
javastr=javastr+"<tr>"
javastr=javastr+"<td align=right style=\"padding-top:2px\">"
javastr=javastr+"<table width=100% border=0 align=center cellpadding=2 cellspacing=1 bgcolor=#FFFFFF>"
javastr=javastr+"<tr bgcolor=#EEEDED><td></td><td>网友昵称</td><td>评价摘要</td><td>来源</td><td>评价时间</td></tr>"
<%set rs=server.createobject("adodb.recordset")
rs.open "select top 5 * from news_pinglun where channel='"&channel&"' and newsid="&newsid&" order by pinglundate desc",conn,1,1
plcount=rs.recordcount
while not rs.eof%>
javastr=javastr+"<tr bgcolor=#EEEDED>"
javastr=javastr+"<td width=20><img src=\"../../image/pinglun01.gif\"></td>"
javastr=javastr+"<td><a href=\"../../news_pinglunlist.asp?channel=<%=channel%>&id=<%=newsid%>#<%=trim(rs("pingluntitle"))%>\" target=_blank><%=trim(rs("pinglunname"))%></a></td>"
javastr=javastr+"<td><%=left(server.HTMLEncode(rs("pingluncontent")),10)%></td>"
javastr=javastr+"<td><%=rs("ip")%></td>"
javastr=javastr+"<td><%=trim(rs("pinglundate"))%></td>"
javastr=javastr+"</tr>"
<%if trim(rs("huifu"))<>"" then%>
javastr=javastr+"<tr>"
javastr=javastr+"<td colspan=5 bgcolor=#EEEDED style=\"padding-left:20px\"><b><font color=#ff6600>回复：</font></b><%=rs("huifu")%></td>"
javastr=javastr+"</tr>"
<%end if
rs.movenext
wend%>
javastr=javastr+"</table>"
<%if plcount>0 then%>
javastr=javastr+"<a href=\"../../news_pinglunlist.asp?channel=<%=channel%>&id=<%=newsid%>\" target=_blank>浏览全部<%=plcount%>条评论>></a>"
<%end if
rs.close
set rs=nothing%>
javastr=javastr+"</td></tr>"
javastr=javastr+"<tr>"
javastr=javastr+"<td><table width=500 border=0 cellpadding=0 cellspacing=4>"
javastr=javastr+"<form name=pinglunform method=post action=\"../../moban_pinglun.asp?action=save&channel=<%=channel%>&id=<%=newsid%>\" target=_top>"
javastr=javastr+"<tr>"
javastr=javastr+"<td width=65>姓 名：</td>"
javastr=javastr+"<td><input class=wenbenkuang name=pinglunname type=text id=pinglunname maxlength=18></td>"
javastr=javastr+"</tr>"
javastr=javastr+"<tr>"
javastr=javastr+"<td>标 题：</td>"
javastr=javastr+"<td><input class=wenbenkuang name=pingluntitle type=text id=pingluntitle size=50 value=\"<%=title%>\"></td>"
javastr=javastr+"</tr>"
javastr=javastr+"<tr>"
javastr=javastr+"<td valign=top>内 容：</td>"
javastr=javastr+"<td><textarea class=wenbenkuang name=pingluncontent cols=50 rows=3 id=pingluncontent style=\"BORDER-RIGHT: #ffffff 1px groove; border-top: border-left: color: #333333; border-bottom: height: 18px\"></textarea></td>"
javastr=javastr+"</tr>"
javastr=javastr+"<tr>"
javastr=javastr+"<td></td>"
javastr=javastr+"<td><input class=go-wenbenkuang name=submit value=提交评论 type=submit onclick=\"return check();\"></td>"
javastr=javastr+"</tr></form>"
javastr=javastr+"</table>"
javastr=javastr+"</td></tr></table>"

javastr=javastr+"</td></tr>"

<!--拍卖商品 -->
javastr=javastr+"<tr><td align=center style=\"padding-top:5px;padding-bottom:5px\">"
<%set rs=server.createobject("adodb.recordset")
rs.open"select top 8 * from price_user order by datetime desc",conn,1,1%>
javastr=javastr+"<table width=94% border=0 cellspacing=0 cellpadding=0 style=\"background:url(../../image/news_page1.jpg);background-repeat:no-repeat\"><tr>"
javastr=javastr+"<td width=61><a href=\"../../reg.asp\"><img src=\"../../user/images/img_03.gif\" width=60 height=250 border=0></a></td>"
javastr=javastr+"<td style=\"padding:5px;border:1px solid #005991\" align=center bgcolor=#B6E3FF>"
javastr=javastr+"<table border=0 cellspacing=0 cellpadding=3"
<%while not rs.eof%>
javastr=javastr+"<tr>"

<%if not rs.eof then%>
javastr=javastr+"<td align=center><a href=\"../../Uindex/productlist.asp?id=<%=rs("id")%>\"><img src=\"../../<%=rs("pic")%>\" border=\"1\" style=\"border-color:#333333\" height=75 width=95></a><br><br><b><%=rs("bookname")%></b><br><font color=red>出价--<%=rs("money")%>元</font></td>"
<%rs.movenext
end if
if not rs.eof then%>
javastr=javastr+"<td align=center><a href=\"../../Uindex/productlist.asp?id=<%=rs("id")%>\"><img src=\"../../<%=rs("pic") %>\" border=\"1\" style=\"border-color:#333333\" height=75 width=95></a><br><br><b><%=rs("bookname")%></b><br><font color=red>出价-<%=rs("money")%>元</font></td>"
<%rs.movenext
end if
if not rs.eof then%>
javastr=javastr+"<td align=center><a href=\"../../Uindex/productlist.asp?id=<%=rs("id")%>\"><img src=\"../../<%=rs("pic") %>\" border=\"1\" style=\"border-color:#333333\" height=75 width=95></a><br><br><b><%=rs("bookname")%></b><br><font color=red>出价-<%=rs("money")%>元</font></td>"
<%rs.movenext
end if
if not rs.eof then%>
javastr=javastr+"<td align=center><a href=\"../../Uindex/productlist.asp?id=<%=rs("id")%>\"><img src=\"../../<%=rs("pic") %>\" border=\"1\" style=\"border-color:#333333\" height=75 width=95></a><br><br><b><%=rs("bookname")%></b><br><font color=red>出价-<%=rs("money")%>元</font></td></tr>"
<%rs.movenext
end if
wend%>
javastr=javastr+"</table>"
<%rs.close
set rs=nothing%>
javastr=javastr+"</td></tr></table>"
javastr=javastr+"</td></tr>"

<!--新闻中心 -->
javastr=javastr+"<tr><td align=center>"

javastr=javastr+"<table width=94% border=0 cellspacing=0 cellpadding=1>"
javastr=javastr+"<tr>"
javastr=javastr+"<td style=\"padding-top:2px;border-bottom:1px solid #188ad6\">"
javastr=javastr+"<table border=0 cellspacing=0 cellpadding=0>"
javastr=javastr+"<tr>"
javastr=javastr+"<td height=20 align=center bgcolor=#188AD6 style=\"padding-left:5px;padding-right:5px\"><a href=\"http://it532.cn\" style=\"text-decoration:none\"><font color=#FFFFFF><b>新闻中心</b></font></a></td>"
javastr=javastr+"</tr>"
javastr=javastr+"</table></td>"
javastr=javastr+"</tr>"
<%sql="select top 30 * from news_moban where att<>5 order by updatetime desc"
set rs=conn.execute(sql)
while not rs.eof
text=rs("title")%>
javastr=javastr+"<tr>"
javastr=javastr+"<td>·<a href=\"../<%=rs("pathlink")%>\" target=_blank><font color=\"<%=rs("titlecolor")%>\"><%=text%></font></a><font color=#6D6D6D>-<%=day(rs("updatetime"))%>日</font></td></tr>"
<%rs.movenext
wend%>
javastr=javastr+"</table>"

javastr=javastr+"</td></tr>"
javastr=javastr+"</table>"
<%end select%>
document.write(javastr)