news_info.asp 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <!--#include file="top1.asp"-->
  2. <div class="CategoryList_Title"><a href="javascript:history.go(-1);"><i class="fl"></i></a>当前新闻标题</div>
  3. <!-- c_main -->
  4. <div class="cpBox container">
  5. <div class="proLeft">
  6. <div class="pro_l_m">
  7. <h3 class="ttt"><span>新闻资讯</span><br>News</h3>
  8. <ul>
  9. <%
  10. set rs = server.CreateObject("adodb.recordset")
  11. sql="select * from nsclass where nb_id=44 order by ns_order asc"
  12. rs.open sql,conn,1
  13. int j=0
  14. Do While Not rs.eof
  15. %>
  16. <li ><a href="news.asp?small=<%=rs("ns_id")%>&big=<%=rs("nb_id")%>"><%=left(rs("ns_name"),8)%></a></li>
  17. <%
  18. rs.MoveNext
  19. j=j+1
  20. loop
  21. rs.close
  22. set rs=nothing
  23. %>
  24. </ul>
  25. </div>
  26. <!--#include file="left.asp"-->
  27. </div>
  28. <div class="cpList">
  29. <div class="rtop"><span class="fl"><%=Get_Sname(request("small"))%></span><div class="sitepath fr"><a href="/">首页</a> &gt; <a href="#">新闻资讯</a> &gt; <%=Get_Sname(request("small"))%></div></div>
  30. <div class="c_main">
  31. <%
  32. id=request("id")
  33. Set rs = Server.CreateObject("Adodb.RecordSet")
  34. sql="select * from bdnews where nws_id="&id&""
  35. rs.open sql,conn,2,3
  36. if rs.eof then
  37. else
  38. rs("nws_click")=rs("nws_click")+1
  39. rs.update
  40. %>
  41. <div class="child_tit">
  42. <h2><%=rs("nws_title")%></h2>
  43. <h4><span>发布时间:<%=formatdatetime(rs("nws_time"),2)%> <span>浏览量:<%=rs("nws_click")%></span></span>
  44. <span style="display:inline-block;width: 210px;" class="bdsharebuttonbox bdshare-button-style1-16" data-bd-bind="1507542040647">分享到:
  45. <a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间" style="float: none;"></a>
  46. <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博" style="float: none;"></a>
  47. <a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博" style="float: none;"></a>
  48. <a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网" style="float: none;"></a>
  49. <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信" style="float: none;"></a>
  50. <a href="#" class="bds_more" data-cmd="more" style="float: none;"></a>
  51. </span>
  52. </h4>
  53. <script>
  54. window._bd_share_config = {
  55. "common": {
  56. "bdSnsKey": {},
  57. "bdText": "",
  58. "bdMini": "2",
  59. "bdMiniList": false,
  60. "bdPic": "",
  61. "bdStyle": "1",
  62. "bdSize": "16"
  63. },
  64. "share": {}
  65. };
  66. with (document) 0[(getElementsByTagName('head')[0] || body)
  67. .appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];
  68. </script>
  69. </div>
  70. <%=rs("nws_cont")%>
  71. </div>
  72. <!-- OranPager -->
  73. <div class="two">
  74. <%
  75. call nextdata("bdnews","news_info.asp","篇")
  76. sub nextdata(tab,page,dw)
  77. id=trim(request.QueryString("id"))
  78. small=request("small")
  79. set rs2=server.CreateObject("adodb.recordset")
  80. sql="select top 1 * from "&tab&" where nws_id>"&id&" and ns_id="&small&" order by nws_id asc "
  81. rs2.open sql,conn,1,1
  82. IF rs2.eof and rs2.bof Then
  83. Response.Write(" <div class='twol'>上一"&dw&":没有上一条记录</div>")
  84. else
  85. Response.Write("<div class='twol'>上一"&dw&":<a href="""&page&"?id="&rs2("nws_id")&"&small="&small&""">"&rs2("nws_Title")&"</a></div>")
  86. end IF
  87. rs2.close
  88. Set rs2=Nothing
  89. set rs2=server.CreateObject("adodb.recordset")
  90. sql="select top 1 * from "&tab&" where nws_id<"&id&" and ns_id="&small&" order by nws_id desc"
  91. rs2.open sql,conn,1,1
  92. IF rs2.eof and rs2.bof Then
  93. Response.Write(" <div class='twor'>上一"&dw&":没有下一条记录</div>")
  94. else
  95. Response.Write("<div class='twor'>下一"&dw&":<a href="""&page&"?id="&rs2("nws_id")&"&small="&small&""">"&rs2("nws_Title")&"</a></div>")
  96. end IF
  97. rs2.close
  98. Set rs2=Nothing
  99. end sub %>
  100. <% rs.close
  101. set rs=nothing
  102. end if%>
  103. </div>
  104. <!-- OranPager:end -->
  105. </div>
  106. <div class="clearfix"></div>
  107. </div>
  108. <!--#include file="foot.asp"-->
  109. </body>
  110. </html>