conn.asp 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342
  1. <%'数据库路径--------------------------------
  2. set Conn=server.createobject("adodb.connection")
  3. Conn.open"provider=microsoft.jet.oledb.4.0;data source=" & server.mappath("Database/#database1#.mdb")
  4. Function RemoveHTML(strHTML)
  5. Dim objRegExp, Match, Matches
  6. Set objRegExp = New Regexp
  7. objRegExp.IgnoreCase = True
  8. objRegExp.Global = True
  9. '取闭合的<>
  10. objRegExp.Pattern = "<.+?>"
  11. '进行匹配
  12. Set Matches = objRegExp.Execute(strHTML)
  13. ' 遍历匹配集合,并替换掉匹配的项目
  14. For Each Match in Matches
  15. strHtml=Replace(strHTML,Match.Value,"")
  16. Next
  17. RemoveHTML=strHTML
  18. Set objRegExp = Nothing
  19. End Function
  20. %>
  21. <%'特殊字符过滤------------------------
  22. sub passChk()
  23. dim sql_injdata
  24. SQL_injdata = "and|exec|insert|select|delete|update|count|*|chr|mid|master|truncate|char|declare|or"
  25. SQL_inj = split(SQL_Injdata,"|")
  26. '防止Get方法注入
  27. If Request.QueryString<>"" Then
  28. For Each SQL_Get In Request.QueryString
  29. For SQL_Data=0 To Ubound(SQL_inj)
  30. if instr(Request.QueryString(SQL_Get),Sql_Inj(Sql_DATA))>0 Then
  31. response.Redirect("../index.asp")
  32. end if
  33. next
  34. Next
  35. End If
  36. '防止Post方法注入
  37. If Request.Form<>"" Then
  38. For Each Sql_Post In Request.Form
  39. For SQL_Data=0 To Ubound(SQL_inj)
  40. if instr(Request.Form(Sql_Post),Sql_Inj(Sql_DATA))>0 Then
  41. response.Redirect("../index.asp")
  42. end if
  43. next
  44. next
  45. end if
  46. end sub
  47. call passChk()
  48. %>
  49. <%'网站配置
  50. dim webtitle,webname,weburl,webemail,address,postcode,phone,copyright,webqq,qqstate,icp,weblogo,gonggao
  51. set rs=server.CreateObject("adodb.recordset")
  52. rs.Open "select * from webinfo",conn,1,1
  53. webtitle=trim(rs("webtitle"))
  54. weburl=trim(rs("weburl"))
  55. webname=trim(rs("webname"))
  56. webemail=trim(rs("webemail"))
  57. keywords=rs("keywords")
  58. description=rs("description")
  59. address=trim(rs("address"))
  60. postcode=trim(rs("postcode"))
  61. phone=trim(rs("phone"))
  62. mobilephone=rs("mobilephone")
  63. fax=rs("fax")
  64. dibu=trim(rs("dibu"))
  65. tjscript=trim(rs("tjscript"))
  66. webqq=trim(rs("webqq"))
  67. qqstate=trim(rs("qqstate"))
  68. qqsite=trim(rs("qqsite"))
  69. icp=trim(rs("icp"))
  70. rs.close
  71. set rs=nothing%>
  72. <%
  73. Sub shouye_news(top,Cla,lk,Clink)
  74. set rs=server.createobject("adodb.recordset")
  75. sql2= "select top "&top&" * from bdnews where nb_id="&Cla&" order by nws_id asc "
  76. rs.open sql2,conn,1,3
  77. if rs.eof then
  78. response.Write"<br><br><br>暂无记录"
  79. else%>
  80. <%
  81. do while not rs.eof
  82. %>
  83. <table width="94%" border="0" cellspacing="0" cellpadding="0">
  84. <tr>
  85. <td width="20" align="left"><img src="images/3.gif" width="9" height="9" /></td>
  86. <td align="left"><a href="<%=lk%>?thex=<%=rs("nws_id")%>&Cla=<%=rs("nb_id")%>&small=<%=rs("ns_id")%>"><%=left(rs("nws_title"),14)&"..."%></a></td>
  87. </tr>
  88. </table>
  89. <%
  90. rs.movenext
  91. loop
  92. %>
  93. <%
  94. end if
  95. rs.close
  96. set rs=nothing
  97. end sub
  98. %>
  99. <%
  100. Function idx_txt(big,small,Tnum)
  101. dim Rst
  102. Set Rs=Server.Createobject("Adodb.Recordset")
  103. if big="" and small<>"" then
  104. sql="select * from bdnews where ns_id="&small&" and nws_stop=1 order by nws_order asc"
  105. end if
  106. if big="" and small="" then
  107. sql="select * from bdnews where nws_stop=1 order by nws_order asc"
  108. end if
  109. if big<>"" and small="" then
  110. sql="select * from bdnews where nb_id="&big&" and nws_stop=1 order by nws_order asc"
  111. end if
  112. if big<>"" and small<>"" then
  113. sql="select * from bdnews where nb_id="&big&" and nws_stop=1 and ns_id="&small&" order by nws_order asc"
  114. end if
  115. rs.open sql,conn,1,3
  116. if rs.eof then
  117. else
  118. Rst=left(rs("nws_note"),Tnum)
  119. rs.close
  120. set rs=nothing
  121. end if
  122. idx_txt=Rst
  123. end Function
  124. %>
  125. <%
  126. Function ab_txt(big)
  127. dim Rst
  128. Set Rs=Server.Createobject("Adodb.Recordset")
  129. sql="select * from bdnews where nb_id="&big&" order by nws_order asc"
  130. rs.open sql,conn,1,3
  131. if rs.eof then
  132. else
  133. Rst=rs("nws_cont")
  134. rs.close
  135. set rs=nothing
  136. end if
  137. ab_txt=Rst
  138. end Function
  139. %>
  140. <%
  141. Function A_txt(big,small)
  142. dim Rst
  143. Set Rs=Server.Createobject("Adodb.Recordset")
  144. if big="" and small<>"" then
  145. sql="select * from bdnews where ns_id="&small&" order by nws_order asc"
  146. end if
  147. if big="" and small="" then
  148. sql="select * from bdnews where nws_tj=1 order by nws_order asc"
  149. end if
  150. if big<>"" and small="" then
  151. sql="select * from bdnews where nb_id="&big&" order by nws_order asc"
  152. end if
  153. if big<>"" and small<>"" then
  154. sql="select * from bdnews where nb_id="&big&" and ns_id="&small&" order by nws_order asc"
  155. end if
  156. rs.open sql,conn,1,3
  157. if rs.eof then
  158. else
  159. Rst=rs("nws_cont")
  160. rs.close
  161. set rs=nothing
  162. end if
  163. A_txt=Rst
  164. end Function
  165. %>
  166. <%
  167. sub shouye_picgundong(top,big,lk)
  168. set rs=conn.execute("select top "&top&" * from bdnews where nb_id="&big&" and Fileurl<>'' order by nws_id desc")
  169. if rs.eof then
  170. response.Write "无记录"
  171. else
  172. %>
  173. <DIV id=demo style="OVERFLOW: hidden; WIDTH: 960; COLOR: #ffffff">
  174. <table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
  175. <tr>
  176. <td id=demo1 width="958"><table width="100%" border="0" cellspacing="0" cellpadding="10">
  177. <tr>
  178. <%do while not rs.eof
  179. if len(rs("nws_title"))>8 then
  180. nws_title=left(rs("nws_title"),8)&"..."
  181. else
  182. nws_title=rs("nws_title")
  183. end if
  184. %>
  185. <td height="140"><table width="134" border="0" align="center" cellpadding="0" cellspacing="0">
  186. <tr>
  187. <td ><table width="134" border="0" cellspacing="0" cellpadding="0">
  188. <tr>
  189. <td width="134" height="180" align="center" valign="middle" bgcolor="cccccc"><a href="<%=lk%>?thex=<%=rs("nws_id")%>&big=<%=rs("nb_id")%>&small=<%=rs("ns_id")%>" target="_self"><img src="<%=replace(rs("Fileurl"),"../../","")%>" alt="点击查看详情" width="124" height="171" border="0"></a></td>
  190. </tr>
  191. </table></td>
  192. </tr>
  193. <tr>
  194. <td height="30" align="center"><%=nws_title%></td>
  195. </tr>
  196. </table></td>
  197. <%
  198. rs.movenext
  199. loop
  200. %>
  201. </tr>
  202. </table></td>
  203. <td width="1" id=demo2 ></td>
  204. </tr>
  205. </table>
  206. <SCRIPT>
  207. var speed3=25//速度数值越大速度越慢
  208. demo2.innerHTML=demo1.innerHTML
  209. function Marquee(){
  210. if(demo2.offsetWidth-demo.scrollLeft<=0)
  211. demo.scrollLeft-=demo1.offsetWidth
  212. else{
  213. demo.scrollLeft++
  214. }
  215. }
  216. var MyMar=setInterval(Marquee,speed3)
  217. demo.onmouseover=function() {clearInterval(MyMar)}
  218. demo.onmouseout=function() {MyMar=setInterval(Marquee,speed3)}
  219. </SCRIPT>
  220. </DIV>
  221. <%end if%>
  222. <%end sub%>
  223. <%
  224. Function Get_Bname(big)
  225. if big="" then exit Function
  226. Set rs = Server.CreateObject("Adodb.RecordSet")
  227. sql="select * from nbclass where nb_id="&big&""
  228. rs.open sql,conn,2,3
  229. if rs.eof then
  230. else
  231. Rst=rs("nb_name")
  232. end if
  233. rs.close
  234. set rs=nothing
  235. Get_Bname=Rst
  236. End Function
  237. %>
  238. <%
  239. Function Get_Sname(small)
  240. if small="" then exit Function
  241. Set rs = Server.CreateObject("Adodb.RecordSet")
  242. sql="select * from nsclass where ns_id="&small&""
  243. rs.open sql,conn,2,3
  244. if rs.eof then
  245. else
  246. Rst=rs("ns_name")
  247. end if
  248. rs.close
  249. set rs=nothing
  250. Get_Sname=Rst
  251. End Function
  252. %>
  253. <%
  254. Sub news(big,small,lk,Clink)
  255. dim CurrentPage,TotalPages
  256. MaxPerPage=8
  257. Set Rs1=Server.Createobject("Adodb.Recordset")
  258. if big="" and small<>"" then
  259. sql="select * from bdnews where ns_id="&small&" and nws_stop=1 order by nws_time desc"
  260. end if
  261. if big="" and small="" then
  262. sql="select * from bdnews where nws_stop=1 order by nws_time desc"
  263. end if
  264. if big<>"" and small="" then
  265. sql="select * from bdnews where nb_id="&big&" and nws_stop=1 order by nws_time desc"
  266. end if
  267. if big<>"" and small<>"" then
  268. sql="select * from bdnews where nb_id="&big&" and nws_stop=1 and ns_id="&small&" order by nws_time desc"
  269. end if
  270. rs1.open sql,conn,1,3
  271. if rs1.eof then
  272. response.Write("暂时无相关信息!")
  273. else
  274. rs1.pagesize=MaxPerPage
  275. If trim(Request("Page"))<>"" then
  276. CurrentPage= CLng(request("Page"))
  277. If CurrentPage> rs1.PageCount then
  278. CurrentPage = rs1.PageCount
  279. End If
  280. Else
  281. CurrentPage= 1
  282. End If
  283. totalPut=rs1.recordcount
  284. if CurrentPage<>1 then
  285. if (currentPage-1)*MaxPerPage < totalPut then
  286. rs1.move(currentPage-1)*MaxPerPage
  287. end if
  288. end if
  289. %>
  290. <div class="agent_con">
  291. <!--n_top-->
  292. <ul class="sec2">
  293. <%
  294. do while not rs1.eof and pp<8
  295. %>
  296. <li>
  297. <div class="img_date">
  298. <div class="img_datam"><p class="date"><%=day(formatdatetime(rs1("nws_time"),2))%></p><p class="month"><%=year(formatdatetime(rs1("nws_time"),2))%>-<%=month(formatdatetime(rs1("nws_time"),2))%></p></div>
  299. </div>
  300. <div class="news_list">
  301. <h3><a href="<%=lk%>?id=<%=rs1("nws_id")%>&big=<%=rs1("nb_id")%>&small=<%=rs1("ns_id")%>"> <%=rs1("nws_title")%></a></h3>
  302. <p><%=left(rs1("nws_note"),100)%>...</p>
  303. </div>
  304. </li>
  305. <%pp=pp+1
  306. rs1.movenext
  307. loop
  308. rs1.close
  309. set rs1=nothing
  310. %>
  311. </ul>
  312. <div class="clear"></div>
  313. </div>
  314. <div class="one1">
  315. <div class="fy">
  316. <table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
  317. <form id="form1" name="form1" method="post" action="?big=<%=big%>&small=<%=small%>">
  318. <tr>
  319. <td height="60" align="center" style="font-size:12px;"><%
  320. dim n,k
  321. if (totalPut mod MaxPerPage)=0 then
  322. n= totalPut \ MaxPerPage
  323. else
  324. n= totalPut \ MaxPerPage + 1
  325. end if
  326. k=currentPage
  327. k=currentPage
  328. if k<>1 then
  329. response.write "["+"<a href=?page=1&big="&big&"&small="&small&" class='new_link'>首页</a></b>] "
  330. response.write "["+"<a href=?page="+cstr(k-1)+"&big="&big&"&small="&small&" class='new_link'>上一页</a>] "
  331. else
  332. Response.Write "[首页] [上一页]"
  333. end if
  334. if k<>n then
  335. response.write "["+"<a href=?page="+cstr(k+1)+"&big="&big&"&small="&small&" class='new_link'>下一页</a>] "
  336. response.write "["+"<a href=?page="+cstr(n)+"&big="&big&"&small="&small&" class='new_link'>尾页</a>] "
  337. else
  338. Response.Write "[下一页] [尾页]"
  339. end if
  340. response.Write("<font color='red'> | </font>"&k&"/"&n&" <font color='red'> | </font> 库中共"&totalPut&"条信息 ")
  341. response.Write(" <select name='page'>")
  342. for myi=1 to n
  343. response.Write("<option value='"&myi&"'>"&myi&"</option>")
  344. next
  345. response.Write("</select>")
  346. response.Write(" <input type=submit name=Submit3 value=转到>")%>
  347. </td>
  348. </tr>
  349. </form>
  350. </table>
  351. </div>
  352. </div>
  353. <%
  354. end if
  355. end Sub
  356. %>
  357. <%
  358. Sub news2(big,small,lk,Clink)
  359. dim CurrentPage,TotalPages
  360. MaxPerPage=8
  361. Set Rs1=Server.Createobject("Adodb.Recordset")
  362. if big="" and small<>"" then
  363. sql="select * from bdnews where ns_id="&small&" and nws_stop=1 order by nws_id desc"
  364. end if
  365. if big="" and small="" then
  366. sql="select * from bdnews where nws_stop=1 order by nws_id desc"
  367. end if
  368. if big<>"" and small="" then
  369. sql="select * from bdnews where nb_id="&big&" and nws_stop=1 order by nws_id desc"
  370. end if
  371. if big<>"" and small<>"" then
  372. sql="select * from bdnews where nb_id="&big&" and nws_stop=1 and ns_id="&small&" order by nws_id desc"
  373. end if
  374. rs1.open sql,conn,1,3
  375. if rs1.eof then
  376. response.Write("暂时无相关信息!")
  377. else
  378. rs1.pagesize=MaxPerPage
  379. If trim(Request("Page"))<>"" then
  380. CurrentPage= CLng(request("Page"))
  381. If CurrentPage> rs1.PageCount then
  382. CurrentPage = rs1.PageCount
  383. End If
  384. Else
  385. CurrentPage= 1
  386. End If
  387. totalPut=rs1.recordcount
  388. if CurrentPage<>1 then
  389. if (currentPage-1)*MaxPerPage < totalPut then
  390. rs1.move(currentPage-1)*MaxPerPage
  391. end if
  392. end if
  393. %>
  394. <ul class="sec4 rightm">
  395. <%
  396. do while not rs1.eof and pp<8
  397. %>
  398. <li>
  399. <h4><a href="<%=lk%>?id=<%=rs1("nws_id")%>&big=<%=rs1("nb_id")%>&small=<%=rs1("ns_id")%>"><%=rs1("nws_title")%></a></h4>
  400. <p><%=left(rs1("nws_note"),60)%></p>
  401. </li>
  402. <%pp=pp+1
  403. rs1.movenext
  404. loop
  405. rs1.close
  406. set rs1=nothing
  407. %>
  408. <div class="clear"></div>
  409. </ul>
  410. <div>
  411. <table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
  412. <form id="form1" name="form1" method="post" action="?big=<%=big%>&small=<%=small%>">
  413. <tr>
  414. <td height="60" align="center" style="font-size:12px;"><%
  415. dim n,k
  416. if (totalPut mod MaxPerPage)=0 then
  417. n= totalPut \ MaxPerPage
  418. else
  419. n= totalPut \ MaxPerPage + 1
  420. end if
  421. k=currentPage
  422. k=currentPage
  423. if k<>1 then
  424. response.write "["+"<a href=?page=1&big="&big&"&small="&small&" class='new_link'>首页</a></b>] "
  425. response.write "["+"<a href=?page="+cstr(k-1)+"&big="&big&"&small="&small&" class='new_link'>上一页</a>] "
  426. else
  427. Response.Write "[首页] [上一页]"
  428. end if
  429. if k<>n then
  430. response.write "["+"<a href=?page="+cstr(k+1)+"&big="&big&"&small="&small&" class='new_link'>下一页</a>] "
  431. response.write "["+"<a href=?page="+cstr(n)+"&big="&big&"&small="&small&" class='new_link'>尾页</a>] "
  432. else
  433. Response.Write "[下一页] [尾页]"
  434. end if
  435. response.Write("<font color='red'> | </font>"&k&"/"&n&" <font color='red'> | </font> 库中共"&totalPut&"条信息 ")
  436. response.Write(" <select name='page'>")
  437. for myi=1 to n
  438. response.Write("<option value='"&myi&"'>"&myi&"</option>")
  439. next
  440. response.Write("</select>")
  441. response.Write(" <input type=submit name=Submit3 value=转到>")%>
  442. </td>
  443. </tr>
  444. </form>
  445. </table>
  446. </div>
  447. <%
  448. end if
  449. end Sub
  450. %>
  451. <%
  452. Sub search_news(Cla,small,lk,Clink,key)
  453. dim CurrentPage,TotalPages
  454. MaxPerPage=12
  455. Set Rs1=Server.Createobject("Adodb.Recordset")
  456. sql="select * from bdnews where nws_title like '%"&key&"%' order by nws_order asc"
  457. rs1.open sql,conn,1,3
  458. if rs1.eof then
  459. response.Write("暂时无相关信息!")
  460. else
  461. rs1.pagesize=MaxPerPage
  462. If trim(Request("Page"))<>"" then
  463. CurrentPage= CLng(request("Page"))
  464. If CurrentPage> rs1.PageCount then
  465. CurrentPage = rs1.PageCount
  466. End If
  467. Else
  468. CurrentPage= 1
  469. End If
  470. totalPut=rs1.recordcount
  471. if CurrentPage<>1 then
  472. if (currentPage-1)*MaxPerPage < totalPut then
  473. rs1.move(currentPage-1)*MaxPerPage
  474. end if
  475. end if
  476. do while not rs1.eof and pp<12
  477. %>
  478. <table width="100%" border="0" cellpadding="0" cellspacing="0" class="xian">
  479. <tr>
  480. <td width="90%" align="left"><a href="<%=lk%>?thex=<%=rs1("nws_id")%>&Cla=<%=rs1("nb_id")%>&small=<%=rs1("ns_id")%>" target="_self" class="link3">·<%=rs1("nws_title")%></a></td>
  481. <td width="10%" align="left">[<%=formatdatetime(rs1("nws_time"),2)%>]</td>
  482. </tr>
  483. </table>
  484. <%pp=pp+1
  485. rs1.movenext
  486. loop
  487. rs1.close
  488. set rs1=nothing
  489. %>
  490. <table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
  491. <form id="form1" name="form1" method="post" action="?Cla=<%=Cla%>&small=<%=small%>">
  492. <tr>
  493. <td height="35" align="center"><%
  494. dim n,k
  495. if (totalPut mod MaxPerPage)=0 then
  496. n= totalPut \ MaxPerPage
  497. else
  498. n= totalPut \ MaxPerPage + 1
  499. end if
  500. k=currentPage
  501. k=currentPage
  502. if k<>1 then
  503. response.write "["+"<a href=?page=1&Cla="&Cla&"&small="&small&" class='new_link'>首页</a></b>] "
  504. response.write "["+"<a href=?page="+cstr(k-1)+"&Cla="&Cla&"&small="&small&" class='new_link'>上一页</a>] "
  505. else
  506. Response.Write "[首页] [上一页]"
  507. end if
  508. if k<>n then
  509. response.write "["+"<a href=?page="+cstr(k+1)+"&Cla="&Cla&"&small="&small&" class='new_link'>下一页</a>] "
  510. response.write "["+"<a href=?page="+cstr(n)+"&Cla="&Cla&"&small="&small&" class='new_link'>尾页</a>] "
  511. else
  512. Response.Write "[下一页] [尾页]"
  513. end if
  514. response.Write("<font color='red'> | </font>共"&n&"页 / "&totalPut&"条信息 / ")
  515. response.Write("当前第"&k&"页")
  516. response.Write(" <select name='page'>")
  517. for myi=1 to n
  518. response.Write("<option value='"&myi&"'>"&myi&"</option>")
  519. next
  520. response.Write("</select>")
  521. response.Write(" <input type=submit name=Submit3 value=转到/>")%>
  522. </td>
  523. </tr>
  524. </form>
  525. </table>
  526. <%
  527. end if
  528. end Sub
  529. %>
  530. <%
  531. Sub news_pic(big,small,lk,Clink)
  532. dim CurrentPage,TotalPages
  533. MaxPerPage=5
  534. Set Rs1=Server.Createobject("Adodb.Recordset")
  535. if big="" and small<>"" then
  536. sql="select * from bdnews where ns_id="&small&" and nws_stop=1 order by nws_order asc"
  537. end if
  538. if big="" and small="" then
  539. sql="select * from bdnews where nws_stop=1 order by nws_order asc"
  540. end if
  541. if big<>"" and small="" then
  542. sql="select * from bdnews where nb_id="&big&" and nws_stop=1 order by nws_order asc"
  543. end if
  544. if big<>"" and small<>"" then
  545. sql="select * from bdnews where nb_id="&big&" and nws_stop=1 and ns_id="&small&" order by nws_order asc"
  546. end if
  547. rs1.open sql,conn,1,3
  548. if rs1.eof then
  549. response.Write("暂时无相关信息!")
  550. else
  551. rs1.pagesize=MaxPerPage
  552. If trim(Request("Page"))<>"" then
  553. CurrentPage= CLng(request("Page"))
  554. If CurrentPage> rs1.PageCount then
  555. CurrentPage = rs1.PageCount
  556. End If
  557. Else
  558. CurrentPage= 1
  559. End If
  560. totalPut=rs1.recordcount
  561. if CurrentPage<>1 then
  562. if (currentPage-1)*MaxPerPage < totalPut then
  563. rs1.move(currentPage-1)*MaxPerPage
  564. end if
  565. end if
  566. %>
  567. <div class="agent_con">
  568. <%
  569. do while not rs1.eof and pp<5
  570. %>
  571. <dl class="dl_42">
  572. <dt><a href="<%=lk%>?id=<%=rs1("nws_id")%>&big=<%=rs1("nb_id")%>&small=<%=rs1("ns_id")%>" target="_blank"><img src="<%=replace(rs1("Fileurl"),"../../","")%>"></a></dt>
  573. <dd>
  574. <a href="<%=lk%>?id=<%=rs1("nws_id")%>&big=<%=rs1("nb_id")%>&small=<%=rs1("ns_id")%>" target="_blank"><h4><%=left(rs1("nws_title"),12)%></h4><p><%=left(rs1("nws_note"),300)%>...</p></a>
  575. </dd>
  576. <div class="clear"></div>
  577. </dl>
  578. <%pp=pp+1
  579. rs1.movenext
  580. loop
  581. rs1.close
  582. set rs1=nothing
  583. %>
  584. </div>
  585. <div class="one1">
  586. <div class="fy">
  587. <table width="400" border="0" align="center" cellpadding="0" cellspacing="0">
  588. <form id="form1" name="form1" method="post" action="?big=<%=big%>&small=<%=small%>">
  589. <tr>
  590. <td height="60" align="center" style="font-size:12px;"><%
  591. dim n,k
  592. if (totalPut mod MaxPerPage)=0 then
  593. n= totalPut \ MaxPerPage
  594. else
  595. n= totalPut \ MaxPerPage + 1
  596. end if
  597. k=currentPage
  598. k=currentPage
  599. if k<>1 then
  600. response.write "["+"<a href=?page=1&big="&big&"&small="&small&" class='new_link'>首页</a></b>] "
  601. response.write "["+"<a href=?page="+cstr(k-1)+"&big="&big&"&small="&small&" class='new_link'>上一页</a>] "
  602. else
  603. Response.Write "[首页] [上一页]"
  604. end if
  605. if k<>n then
  606. response.write "["+"<a href=?page="+cstr(k+1)+"&big="&big&"&small="&small&" class='new_link'>下一页</a>] "
  607. response.write "["+"<a href=?page="+cstr(n)+"&big="&big&"&small="&small&" class='new_link'>尾页</a>] "
  608. else
  609. Response.Write "[下一页] [尾页]"
  610. end if
  611. response.Write("<font color='red'> | </font>"&k&"/"&n&" <font color='red'> | </font> 库中共"&totalPut&"条信息 ")
  612. response.Write(" <select name='page'>")
  613. for myi=1 to n
  614. response.Write("<option value='"&myi&"'>"&myi&"</option>")
  615. next
  616. response.Write("</select>")
  617. response.Write(" <input type=submit name=Submit3 value=转到>")%>
  618. </td>
  619. </tr>
  620. </form>
  621. </table>
  622. </div>
  623. </div>
  624. <%
  625. end if
  626. end Sub
  627. %>
  628. <%
  629. Sub news_pic1(Cla,small,lk,Clink)
  630. dim CurrentPage,TotalPages
  631. MaxPerPage=8
  632. Set Rs1=Server.Createobject("Adodb.Recordset")
  633. if Cla="" and small<>"" then
  634. sql="select * from bdnews where ns_id="&small&" and nws_stop=1 order by nws_id desc"
  635. end if
  636. if Cla="" and small="" then
  637. sql="select * from bdnews where nws_stop=1 order by nws_id desc"
  638. end if
  639. if Cla<>"" and small="" then
  640. sql="select * from bdnews where nb_id="&Cla&" and nws_stop=1 order by nws_id desc"
  641. end if
  642. if Cla<>"" and small<>"" then
  643. sql="select * from bdnews where nb_id="&Cla&" and nws_stop=1 and ns_id="&small&" order by nws_id desc"
  644. end if
  645. rs1.open sql,conn,1,3
  646. if rs1.eof then
  647. response.Write("暂时无相关信息!")
  648. else
  649. rs1.pagesize=MaxPerPage
  650. If trim(Request("Page"))<>"" then
  651. CurrentPage= CLng(request("Page"))
  652. If CurrentPage> rs1.PageCount then
  653. CurrentPage = rs1.PageCount
  654. End If
  655. Else
  656. CurrentPage= 1
  657. End If
  658. totalPut=rs1.recordcount
  659. if CurrentPage<>1 then
  660. if (currentPage-1)*MaxPerPage < totalPut then
  661. rs1.move(currentPage-1)*MaxPerPage
  662. end if
  663. end if
  664. %>
  665. <%
  666. do while not rs1.eof and pp<8
  667. %>
  668. <a class="cfr1" href="<%=lk%>?thex=<%=rs1("nws_id")%>&cla=<%=rs1("nb_id")%>&small=<%=rs1("ns_id")%>">
  669. <dl>
  670. <dt><img src="<%=replace(rs1("Fileurl"),"../../","")%>" alt=""/></dt>
  671. <dd>
  672. <h2><%=left(rs1("nws_title"),8)%></h2>
  673. <img src="img/pro_icon.png" alt=""/>
  674. <h5>VIEW MORE</h5>
  675. </dd>
  676. </dl>
  677. </a>
  678. <li>
  679. <%pp=pp+1
  680. rs1.movenext
  681. loop
  682. rs1.close
  683. set rs1=nothing
  684. %>
  685. <div class="clear"></div>
  686. <div class="one1">
  687. <table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
  688. <form id="form1" name="form1" method="post" action="?Cla=<%=Cla%>&small=<%=small%>">
  689. <tr>
  690. <td height="60" align="center" style="font-size:12px;"><%
  691. dim n,k
  692. if (totalPut mod MaxPerPage)=0 then
  693. n= totalPut \ MaxPerPage
  694. else
  695. n= totalPut \ MaxPerPage + 1
  696. end if
  697. k=currentPage
  698. k=currentPage
  699. if k<>1 then
  700. response.write "["+"<a href=?page=1&Cla="&Cla&"&small="&small&" class='new_link'>首页</a></b>] "
  701. response.write "["+"<a href=?page="+cstr(k-1)+"&Cla="&Cla&"&small="&small&" class='new_link'>上一页</a>] "
  702. else
  703. Response.Write "[首页] [上一页]"
  704. end if
  705. if k<>n then
  706. response.write "["+"<a href=?page="+cstr(k+1)+"&Cla="&Cla&"&small="&small&" class='new_link'>下一页</a>] "
  707. response.write "["+"<a href=?page="+cstr(n)+"&Cla="&Cla&"&small="&small&" class='new_link'>尾页</a>] "
  708. else
  709. Response.Write "[下一页] [尾页]"
  710. end if
  711. response.Write("第"&k&"页")
  712. response.Write(" | 共"&n&"页 | 库中"&totalPut&"条信息 | ")
  713. response.Write(" <select name='page'>")
  714. for myi=1 to n
  715. response.Write("<option value='"&myi&"'>"&myi&"</option>")
  716. next
  717. response.Write("</select>")
  718. response.Write(" <input type=submit name=Submit3 value=点击>")%>
  719. </td>
  720. </tr>
  721. </form>
  722. </table>
  723. </div>
  724. <%
  725. end if
  726. end Sub
  727. %>
  728. <%
  729. Sub news_pic2(Cla,small,lk,Clink)
  730. dim CurrentPage,TotalPages
  731. MaxPerPage=12
  732. Set Rs1=Server.Createobject("Adodb.Recordset")
  733. if Cla="" and small<>"" then
  734. sql="select * from bdnews where ns_id="&small&" and nws_stop=1 order by nws_id desc"
  735. end if
  736. if Cla="" and small="" then
  737. sql="select * from bdnews where nws_stop=1 order by nws_id desc"
  738. end if
  739. if Cla<>"" and small="" then
  740. sql="select * from bdnews where nb_id="&Cla&" and nws_stop=1 order by nws_id desc"
  741. end if
  742. if Cla<>"" and small<>"" then
  743. sql="select * from bdnews where nb_id="&Cla&" and nws_stop=1 and ns_id="&small&" order by nws_id desc"
  744. end if
  745. rs1.open sql,conn,1,3
  746. if rs1.eof then
  747. response.Write("暂时无相关信息!")
  748. else
  749. rs1.pagesize=MaxPerPage
  750. If trim(Request("Page"))<>"" then
  751. CurrentPage= CLng(request("Page"))
  752. If CurrentPage> rs1.PageCount then
  753. CurrentPage = rs1.PageCount
  754. End If
  755. Else
  756. CurrentPage= 1
  757. End If
  758. totalPut=rs1.recordcount
  759. if CurrentPage<>1 then
  760. if (currentPage-1)*MaxPerPage < totalPut then
  761. rs1.move(currentPage-1)*MaxPerPage
  762. end if
  763. end if
  764. %>
  765. <div class="about honor honor1">
  766. <ul>
  767. <%
  768. do while not rs1.eof and pp<12
  769. %>
  770. <li>
  771. <a href="<%=lk%>?thex=<%=rs1("nws_id")%>&cla=<%=rs1("nb_id")%>&small=<%=rs1("ns_id")%>">
  772. <div class="casepic1"><img src="<%=replace(rs1("Fileurl"),"../../","")%>"></div>
  773. <p><%=rs1("nws_title")%></p>
  774. </a>
  775. </li>
  776. <%pp=pp+1
  777. rs1.movenext
  778. loop
  779. rs1.close
  780. set rs1=nothing
  781. %>
  782. <div class="clear"></div>
  783. </ul>
  784. </div>
  785. <div class="happ">
  786. <table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
  787. <form id="form1" name="form1" method="post" action="?Cla=<%=Cla%>&small=<%=small%>">
  788. <tr>
  789. <td height="60" align="center" style="font-size:12px;"><%
  790. dim n,k
  791. if (totalPut mod MaxPerPage)=0 then
  792. n= totalPut \ MaxPerPage
  793. else
  794. n= totalPut \ MaxPerPage + 1
  795. end if
  796. k=currentPage
  797. k=currentPage
  798. if k<>1 then
  799. response.write "["+"<a href=?page=1&Cla="&Cla&"&small="&small&" class='new_link'>首页</a></b>] "
  800. response.write "["+"<a href=?page="+cstr(k-1)+"&Cla="&Cla&"&small="&small&" class='new_link'>上一页</a>] "
  801. else
  802. Response.Write "[首页] [上一页]"
  803. end if
  804. if k<>n then
  805. response.write "["+"<a href=?page="+cstr(k+1)+"&Cla="&Cla&"&small="&small&" class='new_link'>下一页</a>] "
  806. response.write "["+"<a href=?page="+cstr(n)+"&Cla="&Cla&"&small="&small&" class='new_link'>尾页</a>] "
  807. else
  808. Response.Write "[下一页] [尾页]"
  809. end if
  810. response.Write("第"&k&"页")
  811. response.Write(" | 共"&n&"页 | 库中"&totalPut&"条信息 | ")
  812. response.Write(" <select name='page'>")
  813. for myi=1 to n
  814. response.Write("<option value='"&myi&"'>"&myi&"</option>")
  815. next
  816. response.Write("</select>")
  817. response.Write(" <input type=submit name=Submit3 value=点击>")%>
  818. </td>
  819. </tr>
  820. </form>
  821. </table>
  822. </div>
  823. <%
  824. end if
  825. end Sub
  826. %>
  827. <%
  828. Function N_show()
  829. dim Rst,Thex
  830. Thex=request("Thex")
  831. if Thex="" then exit Function
  832. Set rs = Server.CreateObject("Adodb.RecordSet")
  833. sql="select * from bdnews where nws_id="&Thex&""
  834. rs.open sql,conn,2,3
  835. if rs.eof then
  836. else
  837. Rst=Rst&"<center>"&rs("nws_title")&"<hr size=1 color=#e2e2e2 width=500></center>"
  838. Rst=Rst&rs("nws_cont")
  839. end if
  840. rs.close
  841. set rs=nothing
  842. N_show=Rst
  843. End Function
  844. %>
  845. <%
  846. Function Get_Cname(Cla)
  847. if Cla="" then exit Function
  848. Set rs = Server.CreateObject("Adodb.RecordSet")
  849. sql="select * from Cbclass where cb_id="&Cla&""
  850. rs.open sql,conn,2,3
  851. if rs.eof then
  852. else
  853. Rst=rs("cb_name")
  854. end if
  855. rs.close
  856. set rs=nothing
  857. Get_Cname=Rst
  858. End Function
  859. %>
  860. <%
  861. Function Get_Xname(small)
  862. Set rs = Server.CreateObject("Adodb.RecordSet")
  863. sql="select * from Csclass where cs_id="&small&""
  864. rs.open sql,conn,2,3
  865. if rs.eof then
  866. else
  867. Rst="&nbsp;&gt;&gt;&nbsp;"&rs("cs_name")
  868. end if
  869. rs.close
  870. set rs=nothing
  871. Get_Xname=Rst
  872. End Function
  873. %>
  874. <%
  875. Sub thecp(Cla,small,pclink)
  876. dim CurrentPage,TotalPages
  877. MaxPerPage=12
  878. Set Rs1=Server.Createobject("Adodb.Recordset")
  879. if Cla="" and small="" then
  880. sql="select * from bdcp where cxp_stop=1 order by cxp_id desc"
  881. end if
  882. if Cla="" and small<>"" then
  883. sql="select * from bdcp where cs_id="&small&" and cxp_stop=1 order by cxp_id desc"
  884. end if
  885. if Cla<>"" and small="" then
  886. sql="select * from bdcp where cb_id="&Cla&" and cxp_stop=1 order by cxp_id desc"
  887. end if
  888. if Cla<>"" and small<>"" then
  889. sql="select * from bdcp where cb_id="&Cla&" and cxp_stop=1 and cs_id="&small&" order by cxp_id desc"
  890. end if
  891. rs1.open sql,conn,1,3
  892. if rs1.eof then
  893. response.Write("暂时无相关信息!")
  894. else
  895. rs1.pagesize=MaxPerPage
  896. If trim(Request("Page"))<>"" then
  897. CurrentPage= CLng(request("Page"))
  898. If CurrentPage> rs1.PageCount then
  899. CurrentPage = rs1.PageCount
  900. End If
  901. Else
  902. CurrentPage= 1
  903. End If
  904. totalPut=rs1.recordcount
  905. if CurrentPage<>1 then
  906. if (currentPage-1)*MaxPerPage < totalPut then
  907. rs1.move(currentPage-1)*MaxPerPage
  908. end if
  909. end if
  910. %>
  911. <div class="pror cptx">
  912. <ul>
  913. <%
  914. do while not rs1.eof and pp<12
  915. %>
  916. <li>
  917. <a href="<%=pclink%>?Thex=<%=rs1("cxp_id")%>&Cla=<%=rs1("cb_id")%>">
  918. <img src="<%=replace(rs1("Fileurl"),"../../","")%>">
  919. <div class="prorname">
  920. <h1><%=rs1("cxp_name")%></h1>
  921. <div class="prortx">
  922. <p class="prortx_pic"><img src="img/pro_icon.png"></p>
  923. <p class="prortx_more">VIEW MORE</p>
  924. <p class="prortx_nm"><%=rs1("cxp_name")%></p>
  925. </div>
  926. </div>
  927. </a>
  928. </li>
  929. <%pp=pp+1
  930. rs1.movenext
  931. loop
  932. rs1.close
  933. set rs1=nothing
  934. %>
  935. <div class="clear"></div>
  936. </ul>
  937. </div>
  938. <div class="happ">
  939. <table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
  940. <form id="form1" name="form1" method="post" action="?Cla=<%=Cla%>&small=<%=small%>">
  941. <tr>
  942. <td height="35" align="center"><%
  943. dim n,k
  944. if (totalPut mod MaxPerPage)=0 then
  945. n= totalPut \ MaxPerPage
  946. else
  947. n= totalPut \ MaxPerPage + 1
  948. end if
  949. k=currentPage
  950. k=currentPage
  951. if k<>1 then
  952. response.write "["+"<a href=?page=1&Cla="&Cla&"&small="&small&" class='new_link'>首页</a></b>] "
  953. response.write "["+"<a href=?page="+cstr(k-1)+"&Cla="&Cla&"&small="&small&" class='new_link'>上一页</a>] "
  954. else
  955. Response.Write "[首页] [上一页]"
  956. end if
  957. if k<>n then
  958. response.write "["+"<a href=?page="+cstr(k+1)+"&Cla="&Cla&"&small="&small&" class='new_link'>下一页</a>] "
  959. response.write "["+"<a href=?page="+cstr(n)+"&Cla="&Cla&"&small="&small&" class='new_link'>尾页</a>] "
  960. else
  961. Response.Write "[下一页] [尾页]"
  962. end if
  963. response.Write("第"&k&"页")
  964. response.Write(" | 共"&n&"页 | 库中"&totalPut&"条信息 | ")
  965. response.Write(" <select name='page'>")
  966. for myi=1 to n
  967. response.Write("<option value='"&myi&"'>"&myi&"</option>")
  968. next
  969. response.Write("</select>")
  970. response.Write(" <input type=submit name=Submit3 value=点击>")%>
  971. </td>
  972. </tr>
  973. </form>
  974. </table>
  975. </div>
  976. <%
  977. End if
  978. end Sub
  979. %>
  980. <%
  981. Sub search_cp(Cla,small,pclink,key)
  982. dim CurrentPage,TotalPages
  983. MaxPerPage=12
  984. Set Rs1=Server.Createobject("Adodb.Recordset")
  985. sql="select * from bdcp where cxp_name like '%"&key&"%' or cxp_cont like '%"&key&"%' order by cxp_order asc"
  986. rs1.open sql,conn,1,3
  987. if rs1.eof then
  988. response.Write("暂时无相关信息!")
  989. else
  990. rs1.pagesize=MaxPerPage
  991. If trim(Request("Page"))<>"" then
  992. CurrentPage= CLng(request("Page"))
  993. If CurrentPage> rs1.PageCount then
  994. CurrentPage = rs1.PageCount
  995. End If
  996. Else
  997. CurrentPage= 1
  998. End If
  999. totalPut=rs1.recordcount
  1000. if CurrentPage<>1 then
  1001. if (currentPage-1)*MaxPerPage < totalPut then
  1002. rs1.move(currentPage-1)*MaxPerPage
  1003. end if
  1004. end if
  1005. %>
  1006. <div class="pror cptx">
  1007. <ul>
  1008. <%
  1009. do while not rs1.eof and pp<12
  1010. %>
  1011. <li>
  1012. <a href="<%=pclink%>?Thex=<%=rs1("cxp_id")%>&Cla=<%=rs1("cb_id")%>">
  1013. <img src="<%=replace(rs1("Fileurl"),"../../","")%>">
  1014. <div class="prorname">
  1015. <h1><%=rs1("cxp_name")%></h1>
  1016. <div class="prortx">
  1017. <p class="prortx_pic"><img src="img/pro_icon.png"></p>
  1018. <p class="prortx_more">VIEW MORE</p>
  1019. <p class="prortx_nm"><%=rs1("cxp_name")%></p>
  1020. </div>
  1021. </div>
  1022. </a>
  1023. </li>
  1024. <%pp=pp+1
  1025. rs1.movenext
  1026. loop
  1027. rs1.close
  1028. set rs1=nothing
  1029. %>
  1030. <div class="clear"></div>
  1031. </ul>
  1032. </div>
  1033. <div class="happ">
  1034. <table width="650" border="0" align="center" cellpadding="0" cellspacing="0">
  1035. <form id="form1" name="form1" method="post" action="?Cla=<%=Cla%>&small=<%=small%>">
  1036. <tr>
  1037. <td height="35" align="center"><%
  1038. dim n,k
  1039. if (totalPut mod MaxPerPage)=0 then
  1040. n= totalPut \ MaxPerPage
  1041. else
  1042. n= totalPut \ MaxPerPage + 1
  1043. end if
  1044. k=currentPage
  1045. k=currentPage
  1046. if k<>1 then
  1047. response.write "["+"<a href=?page=1&Cla="&Cla&"&small="&small&" class='new_link'>首页</a></b>] "
  1048. response.write "["+"<a href=?page="+cstr(k-1)+"&Cla="&Cla&"&small="&small&" class='new_link'>上一页</a>] "
  1049. else
  1050. Response.Write "[首页] [上一页]"
  1051. end if
  1052. if k<>n then
  1053. response.write "["+"<a href=?page="+cstr(k+1)+"&Cla="&Cla&"&small="&small&" class='new_link'>下一页</a>] "
  1054. response.write "["+"<a href=?page="+cstr(n)+"&Cla="&Cla&"&small="&small&" class='new_link'>尾页</a>] "
  1055. else
  1056. Response.Write "[下一页] [尾页]"
  1057. end if
  1058. response.Write("第"&k&"页")
  1059. response.Write(" | 共"&n&"页 | 库中"&totalPut&"条信息 | ")
  1060. response.Write(" <select name='page'>")
  1061. for myi=1 to n
  1062. response.Write("<option value='"&myi&"'>"&myi&"</option>")
  1063. next
  1064. response.Write("</select>")
  1065. response.Write(" <input type=submit name=Submit3 value=点击>")%>
  1066. </td>
  1067. </tr>
  1068. </form>
  1069. </table>
  1070. </div>
  1071. <%
  1072. End if
  1073. end Sub
  1074. %>
  1075. <%
  1076. Sub shouyepro(Cla,small,pclink)
  1077. page=Request.QueryString("page")
  1078. If page="" Then page="1"
  1079. page=Cint(page)
  1080. Set rs = Server.CreateObject("Adodb.RecordSet")
  1081. if Cla="" and small="" then
  1082. sql="select * from bdcp where cxp_stop=1 order by cxp_order asc"
  1083. end if
  1084. if Cla="" and small<>"" then
  1085. sql="select * from bdcp where cs_id="&small&" and cxp_stop=1 order by cxp_order asc"
  1086. end if
  1087. if Cla<>"" and small="" then
  1088. sql="select * from bdcp where cb_id="&Cla&" and cxp_stop=1 order by cxp_order asc"
  1089. end if
  1090. if Cla<>"" and small<>"" then
  1091. sql="select * from bdcp where cb_id="&Cla&" and cxp_stop=1 and cs_id="&small&" order by cxp_order asc"
  1092. end if
  1093. rs.cursorlocation=3
  1094. rs.open sql,conn,2,3
  1095. rs.PageSize=12
  1096. tcount=rs.RecordCount
  1097. tpage=rs.PageCount
  1098. If rs.Bof And rs.Eof Then
  1099. %>
  1100. <p>
  1101. <Center>
  1102. <font color=red>无相关信息!</font><br>
  1103. <br>
  1104. </Center>
  1105. <%
  1106. Else%>
  1107. <table width="720" align="center">
  1108. <%
  1109. rs.Move (page-1)*rs.pagesize
  1110. For i = 1 to 2
  1111. If rs.Eof Then Exit For
  1112. %>
  1113. <tr>
  1114. <%
  1115. For j = 1 to 4
  1116. If rs.Eof Then Exit For
  1117. %>
  1118. <td align="center" ><table border="0" align="center" cellpadding="0" >
  1119. <tr>
  1120. <td height="120" align="center" valign="middle" width="169" cellspacing="5" ><table width="162" border="0" align="center" cellpadding="0" cellspacing="5" >
  1121. <tr>
  1122. <td width="162" height="120" background="images/19.jpg"><a href="<%=pclink%>?Thex=<%=rs("cxp_id")%>&Cla=<%=rs("cb_id")%>" class="lightit"><img src="<%=replace(rs("Fileurl"),"../../","")%>" width="140" height="100" class="img_border_01" border="0"></a></td>
  1123. </tr>
  1124. </table></td>
  1125. </tr>
  1126. <tr>
  1127. <td height="30" align="center" >[<%=left(rs("cxp_name"),10)%>]</td>
  1128. </tr>
  1129. </table></td>
  1130. <%
  1131. rs.MoveNext
  1132. Next
  1133. %>
  1134. </tr>
  1135. <%
  1136. Next
  1137. %>
  1138. </table>
  1139. <%
  1140. End if
  1141. end Sub
  1142. %>
  1143. <%
  1144. Function P_show()
  1145. dim Rst,Thex
  1146. Thex=request("Thex")
  1147. if Thex="" then exit Function
  1148. Set rs = Server.CreateObject("Adodb.RecordSet")
  1149. sql="select * from bdcp where cxp_id="&Thex&""
  1150. rs.open sql,conn,2,3
  1151. if rs.eof then
  1152. else
  1153. Rst=Rst&"<center>"&rs("cxp_name")&"<hr size=1 color=#e2e2e2 width=500><br></center>"
  1154. Rst=Rst&rs("cxp_cont")
  1155. end if
  1156. rs.close
  1157. set rs=nothing
  1158. P_show=Rst
  1159. End Function
  1160. %>
  1161. <% sub flash_bian(Cla,url,w,h) %>
  1162. <%dim thenum
  1163. set rsx = server.CreateObject ("adodb.recordset")
  1164. Sql = "Select * from bdnews where nb_id="&cla&" and Fileurl<>'"&""&"' order By nws_order asc"
  1165. rsx.open sql,conn,1,3
  1166. if not rsx.eof then
  1167. thenum=rsx.recordcount
  1168. if thenum>=6 then thenum=6
  1169. for i=1 to thenum
  1170. 'links1=links1&""&url&"?thex="&rsx("nws_ID")&"|"
  1171. 'links1=links1&rsx("nws_link")&"|"
  1172. links1=links1&"|"
  1173. pics1=pics1&""&mid(rsx("Fileurl"),7)&"|"
  1174. texts1=texts1&rsx(1)&"|"
  1175. rsx.movenext
  1176. if rsx.eof then exit for
  1177. next
  1178. rsx.close
  1179. set rsx=nothing
  1180. if instr(right(links1,1),"|")>0 then
  1181. links1=left(links1,len(links1)-1)
  1182. texts1=left(texts1,len(texts1)-1)
  1183. pics1=left(pics1,len(pics1)-1)
  1184. end if
  1185. end if%>
  1186. <script type=text/javascript>
  1187. var swf_width=<%= w %>
  1188. var swf_height=<%= h %>
  1189. var files='<%=pics1%>'
  1190. var links='<%=links1%>'
  1191. var texts=''
  1192. document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,50,0,0" width="'+ swf_width +'" height="'+ swf_height +'">');
  1193. document.write('<param name="movie" value="images/Flash.swf"><param name="quality" value="high">');
  1194. document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
  1195. document.write('<param name="FlashVars" value="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'">');
  1196. document.write('<embed src="images/Flash.swf" wmode="opaque" FlashVars="bcastr_file='+files+'&bcastr_link='+links+'&bcastr_title='+texts+'&menu="false"" quality="high" width="'+ swf_width +'" height="'+ swf_height +'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');
  1197. </script>
  1198. <% end sub %>
  1199. <%Sub flash_bian1(w,h)
  1200. dim thenum
  1201. set rsx = server.CreateObject ("adodb.recordset")
  1202. Sql = "Select * from bdcp where cxp_tj=1 and Fileurl<>'"&""&"' order By cxp_order asc"
  1203. rsx.open sql,conn,1,3
  1204. if not rsx.eof then
  1205. thenum=rsx.recordcount
  1206. if thenum>=5 then thenum=5
  1207. for i=1 to thenum
  1208. links1=links1&"Pshow.asp?thex="&rsx("cxp_ID")&"|"
  1209. pics1=pics1&replace(rsx("Fileurl"),"../../","")&"|"
  1210. texts1=texts1&rsx("cxp_name")&"|"
  1211. rsx.movenext
  1212. if rsx.eof then exit for
  1213. next
  1214. rsx.close
  1215. set rsx=nothing
  1216. if instr(right(links1,1),"|")>0 then
  1217. links1=left(links1,len(links1)-1)
  1218. texts1=left(texts1,len(texts1)-1)
  1219. pics1=left(pics1,len(pics1)-1)
  1220. end if
  1221. end if%>
  1222. <script type="text/javascript">
  1223. var swf_width=<%= w %>;
  1224. var swf_height=<%= h %>;
  1225. var text_height=0
  1226. var swf_height = focus_height+text_height
  1227. var pics="<%=pics1%>"
  1228. var links="<%=links1%>"
  1229. var texts="<%=texts1%>"
  1230. document.write('<object ID="focus_flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
  1231. document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="focus.swf"><param name="quality" value="high"><param name="bgcolor" value="#FFFFFF">');
  1232. document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
  1233. document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
  1234. document.write('<embed ID="focus_flash" src="images/playswf1.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#FFFFFF" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
  1235. document.write('</object>');
  1236. </script>
  1237. <%end Sub%>
  1238. <%Sub left_cla(Cla,lk)
  1239. Set rs = Server.CreateObject("Adodb.RecordSet")
  1240. sql="select * from nsclass where nb_id="&Cla&" order by ns_order asc"
  1241. rs.open sql,conn,2,3
  1242. if rs.eof then
  1243. else
  1244. do while not rs.eof%>
  1245. <a href="<%=lk%>?small=<%=rs("ns_id")%>&Cla=<%=rs("nb_id")%>" class="black12"><%=left(rs("ns_name"),5)%></a>
  1246. <%rs.movenext
  1247. loop
  1248. rs.close
  1249. set rs=nothing%>
  1250. <%
  1251. End if
  1252. End Sub
  1253. %>