<% option explicit %> <% 'on error resume next if trim(Application("ConnectionString"))="" or trim(Application("ConnectionString"))<>"driver={Microsoft Access Driver (*.mdb)};DBQ=" & server.MapPath("bvnews.asp") & ";uid=;PWD=;" then Application("ConnectionString")="driver={Microsoft Access Driver (*.mdb)};DBQ=" & server.MapPath("bvnews.asp") & ";uid=;PWD=;" end if Function LinkURLs(strInput) Dim iCurrentLocation Dim iLinkStart Dim iLinkEnd Dim strLinkText Dim strOutPut strLinkText="" strOutput="" iCurrentLocation=1 Do while Instr(iCurrentLocation,strInput,"[url]",1)<>0 iLinkStart=Instr(iCurrentLocation,strInput,"[url]",1) iLinkEnd=Instr(iCurrentLocation+1,strInput,"[/url]",1) If iLinkEnd=0 then iLinkEnd=len(strINput)+1 select case Mid(strInput,iLinkEnd-1,1) case ".","!","?" iLinkEnd=iLinkEnd-1 end select stroutput=strOutput & Mid(strInput,iCurrentLocation,iLinkStart-iCurrentLocation) strLinkText=replace(Mid(strInput,iLinkStart+5,iLinkEnd-iLinkStart-5),"[/url]","") strOutput=strOutput & "" & strLinkText & "" iCurrentLocation=iLinkEnd Loop strOutput=strOutput & Mid(strInput,iCurrentLocation) LinkURLs=replace(strOutput,"[/url]","",1,-1,1) End Function Function LinkIMGs(strInput) Dim iCurrentLocation Dim iLinkStart Dim iLinkEnd Dim strLinkText Dim strOutPut strLinkText="" strOutput="" iCurrentLocation=1 Do while Instr(iCurrentLocation,strInput,"[img]",1)<>0 iLinkStart=Instr(iCurrentLocation,strInput,"[img]",1) iLinkEnd=Instr(iCurrentLocation+1,strInput,"[/img]",1) If iLinkEnd=0 then iLinkEnd=len(strINput)+1 select case Mid(strInput,iLinkEnd-1,1) case ".","!","?" iLinkEnd=iLinkEnd-1 end select stroutput=strOutput & Mid(strInput,iCurrentLocation,iLinkStart-iCurrentLocation) strLinkText=replace(Mid(strInput,iLinkStart+5,iLinkEnd-iLinkStart-5),"[/img]","") strOutput=strOutput & "" iCurrentLocation=iLinkEnd Loop strOutput=strOutput & Mid(strInput,iCurrentLocation) LinkIMGs=replace(strOutput,"[/img]","",1,-1,1) End Function Function LinkEmail(strInput) Dim iCurrentLocation Dim iLinkStart Dim iLinkEnd Dim strLinkText Dim strOutPut strLinkText="" strOutput="" iCurrentLocation=1 Do while Instr(iCurrentLocation,strInput,"[email]",1)<>0 iLinkStart=Instr(iCurrentLocation,strInput,"[email]",1) iLinkEnd=Instr(iCurrentLocation+1,strInput,"[/email]",1) If iLinkEnd=0 then iLinkEnd=len(strINput)+1 select case Mid(strInput,iLinkEnd-1,1) case ".","!","?" iLinkEnd=iLinkEnd-1 end select stroutput=strOutput & Mid(strInput,iCurrentLocation,iLinkStart-iCurrentLocation) strLinkText=replace(Mid(strInput,iLinkStart+7,iLinkEnd-iLinkStart-7),"[/email]","") strOutput=strOutput & "" & strLinkText & "" iCurrentLocation=iLinkEnd Loop strOutput=strOutput & Mid(strInput,iCurrentLocation) LinkEmail=replace(strOutput,"[/email]","",1,-1,1) End Function function encrypt(ecode) Dim texts dim i for i=1 to len(ecode) texts=texts & chr(asc(mid(ecode,i,1))+i) next encrypt = texts end function function UBB(str) str=LinkURLs(str) str=LinkIMGs(str) str=LinkEmail(str) UBB=str end function %> <% dim sql,rs,rsc,thedate dim reviewable,aboutnews set rs=server.createobject("adodb.recordset") '查找显示相关新闻数目及是否开放评论权限 rs.open "select * from news_parameter where parameterid=1",conn,1,1 if not rs.bof and not rs.eof then aboutnews=rs("aboutnews") if rs("reviewable")=1 then reviewable=1 else reviewable=0 end if else aboutnews=5 reviewable=1 end if rs.close set rs=nothing set rs=server.createobject("adodb.recordset") sql="update news set hits=hits+1 where newsid=" & cstr(request("newsid")) conn.execute sql if session("purview")="" then rs.open "select * from news where newsid=" & cstr(request("newsid")) & " and audit=1",conn,1,1 else rs.open "select * from news where newsid=" & cstr(request("newsid")),conn,1,1 end if if err.number <> 0 then response.write "数据库出错" else if rs.bof and rs.eof then rs.close response.write "该新闻不存在或未经过审核" else %> 镇江一中——<%=rs("topic")%>

镇江市第一中学教学资源网

   
 
教学常用软件
 
  1. [教学辅助]中国手语合成系统 用于帮助健听人和听力障碍者交流及手语、手指语教学(27MB)
  2. [网站开发]Macromedia Studio MX 简体中文正式版[内含flash mx,dreamweaver mx,fireworks mx,freehand10](430MB)
  3. [课件制作]几何画板 3.05 简体中文版 (787KB)
  4. [媒体播放]微软 Windows Media Player 7.1 (10.22MB)Windows Media Player 9 (12.75MB)
  5. [视频插件]Windows Media Codecs V8 流媒体播放解码插件 (717KB)
  6. [视频插件]DivX Pro 5.02 - MPEG4格式AVI视频播放解码插件 (1.07MB)
  7. [下载工具]网络蚂蚁NetAnts 1.25中文版 (883KB)Net Transport 1.50 多国语言版 (1.3MB)
  8. [压缩工具]WinRAR 3.3 中文版(1.1MB)
  9. [媒体播放]RealPlayer 8 Plus(5.6MB)RealOnePlayer(7.96MB)
  10. [媒体制作]Macromedia Director MX 多媒体编辑工具 (32.3MB)
  11. [文字处理]WPS Office 2003 金山办公组合 (113MB)
  12. [办公软件]Microsoft Office 2000 (372MB)Microsoft Office 97 (127MB)
  13. [电子阅读]PDF文档阅读器 Adobe Acrobat Reader 5.05 简体中文正式版 (21.2MB)
  14. [图片浏览]Ulead Photo Explorer 7.0 Pro 简体中文正式零售版 (8.59MB)
  15. [FTP 工具]FTP传输工具CuteFTP Pro 2.01 (4.44MB)
  16. [网络通讯]NetMeeting 3.01 中文版For Win9x (1.59MB)
  17. [系统加强]Microsoft微软DirectX 8.1b最新4.08.01.0901简体中文版For Win9x/ME(11.67MB)Win2000(7.59MB)
  18. [系统补丁]Windows 2000 Service Pack 4 简体中文版(132MB) Windows XP Service Pack 1a 简体中文版(145MB)
  19. [安全工具]天网防火墙稳定版v2.5 (935KB)
  20. [安全工具]美萍反黄专家 4.3标准版 (615KB)
  21. [系统工具]Win98系统策略编辑器 (111KB)
  22. [图形图像]Ulead PhotoImpact 6.0 简体中文完全正式版 (343MB)
  23. [网页动画]Flash文字动画制作 Swish v2.0 简体中文版 (1.7MB) Swish max v1.0 简体中文版 (7.3MB)
  24. [网络通讯]即时通讯MSN Messenger 6 简体中文正式版 For Win9x/ME(6.2MB)Win2000(6.3MB)WinXP(4.6MB)
  25. [网页浏览]微软网页浏览器Microsoft Internet Explorer 6 简体中文版 (80MB)
  26. [图形图像]Adobe PhotoShop 6.01 简体中文正式版 (113MB)
  27. [媒体播放]豪杰超级解霸 3000 正式零售版(64.3MB)
  28. [媒体制作]Adobe Premiere 6.0 正式版 (64.8MB)
  29. [操作系统]Win98 第二版(191MB)Win2k 专业版(348MB) Win2k 服务器版 (397MB) WinXP 专业版(657MB)
  30. [程序开发]Visual FoxPro 6.0 简体中文版 (67.8MB)
  31. [媒体播放]PowerDVD XP 最新零售6 Channel完全版(8.2MB)
  32. [翻译软件]金山词霸 2003(567MB)金山快译 2003(215MB)
  33. [课件制作]Macromedia AuthorWare 6.5 中文汉化版 (60.4MB)
  34. [网络代理]Sygate Home Network 简体中文版 (4.7MB)
  35. [系统备份]磁盘克隆软件Ghost8(DOS简版) (670KB)
  36. [安全工具]Microsoft Baseline Security Analyzer(3.8MB)
  37. [磁盘管理]磁盘整理 PerfectDisk v6.0 服务器版(5MB)单机版(5MB)
  38. [媒体播放]QuickTime V6.40(11.4MB)
  39. [中文输入]紫光拼音输入法v3.0 (6.6MB)极品五笔输入法v5.5 (1.3MB)
 
 

镇江市第一中学 版权所有 © 2007-2008 信息技术组


<% end if end if%>