<% '请勿改动下面这三行代码 const ChannelID=1 Const ShowRunTime="Yes" MaxPerPage=20 SkinID=0 PageTitle="首页" Set rsArticle= Server.CreateObject("ADODB.Recordset") Set rsPic= Server.CreateObject("ADODB.Recordset") %> 洛江区教育信息网欢迎您

设为首页
联系站长
加入收藏
视频会议 本站留言
 
    最近更新
<% call ShowSiteCountAll() %>
  局长信箱
  联系信箱
  联系电话:22633810
 
<% call ShowPicArticle(0,1,36,1,1,120,90,50,false,true) %>   <% call ShowNewArticle(10,34) %>
<% call ShowAnnounce(1,5) %>
     
  <% call ShowSpecial(10) %>  
     
 
 
 
 
 
 
<% dim sqlRoot,rsRoot,trs,arrClassID,TitleStr,ClassCount,iClassID sqlRoot="select top 6 C.ClassID,C.ClassName,C.RootID,L.LayoutFileName,L.LayoutID,C.Child From ArticleClass C inner join Layout L on C.LayoutID=L.LayoutID where C.ParentID=0 and IsElite=True and LinkUrl='' order by C.RootID" Set rsRoot= Server.CreateObject("ADODB.Recordset") rsRoot.open sqlRoot,conn,1,1 dim sqlClassAD,rsClassAD,ClassAD sqlClassAD="select * from Advertisement where IsSelected=True" sqlClassAD=sqlClassAD & " and (ChannelID=0 or ChannelID=" & ChannelID & ")" sqlClassAD=sqlClassAD & " and ADType=2 order by ID Desc" set rsClassAD=server.createobject("adodb.recordset") rsClassAD.open sqlClassAD,conn,1,1 if rsRoot.bof and rsRoot.eof then response.Write("还没有任何栏目,请首先添加栏目。") else ClassCount=rsRoot.recordcount iClassID=0 do while not rsRoot.eof %> <% iClassID=iClassID+1 if iClassID mod 2=0 then response.write "" else response.write "" end if rsRoot.movenext loop end if rsRoot.close set rsRoot=nothing %>
<% arrClassID=rsRoot(0) response.write "" & rsRoot(1) & "" if rsRoot(5)>0 then set trs=conn.execute("select ClassID from ArticleClass where RootID=" & rsRoot(2) & " and Child=0 and LinkUrl=''") do while not trs.eof arrClassID=arrClassID & "," & trs(0) trs.movenext loop end if %>
  <% call ShowAD(1) %>
<% sql="select top 8 A.ArticleID,A.ClassID,L.LayoutID,L.LayoutFileName,A.Title,A.Key,A.Author,A.CopyFrom,A.UpdateTime,A.Editor,A.TitleFontColor,A.TitleFontType," sql=sql & "A.Hits,A.OnTop,A.Hot,A.Elite,A.Passed,A.IncludePic,A.Stars,A.PaginationType,A.ReadLevel,A.ReadPoint,A.DefaultPicUrl from Article A" sql=sql & " inner join Layout L on A.LayoutID=L.LayoutID where A.Deleted=False and A.Passed=True and A.ClassID in (" & arrClassID & ") order by A.OnTop,A.ArticleID desc" rsArticle.open sql,conn,1,1 if rsArticle.bof and rsArticle.eof then response.write "
  • 没有任何文章
  • " else call ArticleContent(24,True,True,False,1,False,False) end if rsArticle.close %>
       
    <%response.write "more... "%>
    " if not rsClassAD.bof and not rsClassAD.eof then if rsClassAD("isflash")=true then ClassAD= "0 then ClassAD = ClassAD & " width='" & rsClassAD("ImgWidth") & "'" if rsClassAD("ImgHeight")>0 then ClassAD = ClassAD & " height='" & rsClassAD("ImgHeight") & "'" ClassAD = ClassAD & ">0 then ClassAD = ClassAD & " width='" & rsClassAD("ImgWidth") & "'" if rsClassAD("ImgHeight")>0 then ClassAD = ClassAD & " height='" & rsClassAD("ImgHeight") & "'" ClassAD = ClassAD & ">" else ClassAD ="0 then ClassAD = ClassAD & " width='" & rsClassAD("ImgWidth") & "'" if rsClassAD("ImgHeight")>0 then ClassAD = ClassAD & " height='" & rsClassAD("ImgHeight") & "'" ClassAD = ClassAD & " border='0'>" end if response.write ClassAD rsClassAD.movenext end if response.write "
      洛江公众信息网
      K12中小学教育教学网
      中国教育曙光网
      泉州德育教育网
       
    机构设置:
       
    中学网站:
       
    小学网站:
       
    其它网站:
    本站搜索 文章    图片
    <% call CloseConn() '================================================= '过程名:ShowNewSoft '作 用:显示最新更新 '参 数:SoftNum ----最多显示多少个软件 ' TitleLen ----标题最多字符数,一个汉字=两个英文字符 '================================================= sub ShowNewSoft(SoftNum,TitleLen) dim sqlNew,rsNew if SoftNum>0 and SoftNum<=100 then sqlNew="select top " & SoftNum else sqlNew="select top 10 " end if sqlNew=sqlNew & " S.SoftID,S.SoftName,S.SoftVersion,S.Author,S.Keyword,S.UpdateTime,S.Editor,S.Hits,S.DayHits,S.WeekHits,S.MonthHits,S.SoftSize,S.SoftLevel,S.SoftPoint from Soft S where S.Deleted=False and S.Passed=True " sqlNew=sqlNew & " order by S.SoftID desc" Set rsNew= Server.CreateObject("ADODB.Recordset") rsNew.open sqlNew,conn,1,1 if TitleLen<0 or TitleLen>255 then TitleLen=100 if rsNew.bof and rsNew.eof then response.write "
  • 没有下载
  • " else do while not rsNew.eof response.Write "
  • " & gotTopic(rsNew("SoftName") & " " & rsNew("SoftVersion"),TitleLen) & "

  • " rsNew.movenext loop end if rsNew.close set rsNew=nothing end sub '================================================= '过程名:ShowNewPhoto '作 用:显示最近更新的图片 '参 数:PhotoNum ----最多显示多少个图片 ' ShowTitle ----是否显示图片名称,True为显示,False为不显示 ' TitleLen ----标题最多字符数,一个汉字=两个英文字符 '================================================= sub ShowNewPhoto(PhotoNum,ShowTitle,TitleLen) dim sqlNew,rsNew,i if PhotoNum>0 and PhotoNum<=100 then sqlNew="select top " & PhotoNum else sqlNew="select top 10 " end if sqlNew=sqlNew & " P.PhotoID,P.PhotoName,P.PhotoUrl_Thumb,P.Author,P.Keyword,P.UpdateTime,P.Editor,P.Hits,P.DayHits,P.WeekHits,P.MonthHits,P.PhotoSize,P.PhotoLevel,P.PhotoPoint from Photo P where P.Deleted=False and P.Passed=True " sqlNew=sqlNew & " order by P.PhotoID desc" Set rsNew= Server.CreateObject("ADODB.Recordset") rsNew.open sqlNew,conn,1,1 if TitleLen<0 or TitleLen>255 then TitleLen=100 response.write "" if rsNew.bof and rsNew.eof then response.write "" else i=1 do while not rsNew.eof if i mod 5=0 then resposne.write "" end if response.Write "" i=i+1 rsNew.movenext loop end if response.write "
    没有图片
    " response.write "" response.write "" response.write "" response.write "
     " response.write "" response.write "
    " if ShowTitle=True then response.write "" & gotTopic(rsNew("PhotoName"),TitleLen) & "" end if response.write "
    " rsNew.close set rsNew=nothing end sub '================================================= '过程名:ShowClassNavigation '作 用:显示栏目导航 '参 数:无 '================================================= sub ShowSiteNavigation(TableName) dim rsNavigation,sqlNavigation,strNavigation,PrevRootID,i sqlNavigation="select C.ClassID,C.ClassName,C.Depth,L.LayoutFileName,C.RootID,C.LinkUrl,C.Child From " & TableName & " C" sqlNavigation= sqlNavigation & " inner join Layout L on C.LayoutID=L.LayoutID where C.Depth<=1 order by C.RootID,C.OrderID" Set rsNavigation= Server.CreateObject("ADODB.Recordset") rsNavigation.open sqlNavigation,conn,1,1 if rsNavigation.bof and rsNavigation.eof then response.write "没有任何栏目" else strNavigation="
    " & rsNavigation(1) & "" PrevRootID=rsNavigation(4) rsNavigation.movenext i=1 do while not rsNavigation.eof if PrevRootID=rsNavigation(4) then if i mod 6=0 then strNavigation=strNavigation & "" end if strNavigation=strNavigation & "" & rsNavigation(1) & "  " i=i+1 else strNavigation=strNavigation & "
    " & rsNavigation(1) & "" i=1 end if PrevRootID=rsNavigation(4) rsNavigation.movenext loop strNavigation=strNavigation & "
    " response.write strNavigation end if rsNavigation.close set rsNavigation=nothing end sub '================================================= '过程名:ShowSiteCountAll '作 用:显示站点统计信息 '参 数:无 '================================================= sub ShowSiteCountAll() dim sqlCount,rsCount Set rsCount= Server.CreateObject("ADODB.Recordset") set rsCount=nothing response.write "" end sub %>