<% if LayoutFileName_Index<>"index.asp" then call CloseConn() response.Redirect LayoutFileName_Index end if '请勿改动下面这三行代码 const ChannelID=2 Const ShowRunTime="Yes" MaxPerPage=20 SkinID=0 PageTitle="首页" Set rsArticle= Server.CreateObject("ADODB.Recordset") Set rsPic= Server.CreateObject("ADODB.Recordset") %> <%=strPageTitle & " >> " & PageTitle%> <%call MenuJS()%> onmousemove='HideMenu()' onLoad="javascipt:setTimeout('refreshMe()',1000);">
用 户 登 录
<% call ShowUserLogin() %>
专 题 栏 目
先进性教育活动
农民经纪人
龙头企业
市场动态
专家指导
机 构 设 置
  局机关 种子公司
  农技站 农经站
  兽医站 土肥站
  种子站 园艺站
  植保站 农  场
  农广校 农科所
农业议事机构
农业工作领导小组
扶贫开发领导小组
劳动力转移指挥部
农民负担监督管理委员会
“三夏”工作指挥部
奶业产业化领导小组
最 新 调 查
<% call ShowVote() %>
<% dim sqlRoot,rsRoot,trs,arrClassID,TitleStr sqlRoot="select 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 C.IsElite=True and C.LinkUrl='' and C.BrowsePurview>=" & UserLevel & " order by C.RootID" Set rsRoot= Server.CreateObject("ADODB.Recordset") rsRoot.open sqlRoot,conn,1,1 if rsRoot.bof and rsRoot.eof then response.Write("还没有任何栏目,请首先添加栏目。") else do while not rsRoot.eof %> <% rsRoot.movenext loop end if rsRoot.close set rsRoot=nothing %>
  <% arrClassID=rsRoot(0) response.write "" & rsRoot(1) & "" if rsRoot(5)>0 then response.write ":" set trs=conn.execute("select top 4 C.ClassID,C.ClassName,C.RootID,L.LayoutFileName,C.LinkUrl From ArticleClass C inner join Layout L on C.LayoutID=L.LayoutID where C.ParentID=" & rsRoot(0) & " and C.IsElite=True and C.LinkUrl='' and C.BrowsePurview>=" & UserLevel & " order by C.OrderID") do while not trs.eof if trs(4)<>"" then response.write "  " & trs(1) & "" else response.write "  " & trs(1) & "" end if trs.movenext loop set trs=conn.execute("select ClassID from ArticleClass where RootID=" & rsRoot(2) & " and Child=0 and LinkUrl='' and BrowsePurview>=" & UserLevel) do while not trs.eof arrClassID=arrClassID & "," & trs(0) trs.movenext loop end if %>
<% sql="select top 1 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 & ") and DefaultPicUrl<>'' order by A.OnTop,A.ArticleID desc" rsPic.open sql,conn,1,1 if rsPic.bof and rsPic.eof then response.write "
没有任何图片文章" else strPic="" call GetPicArticleTitle(20,135,100) response.write strPic end if rsPic.close %>
 
<% sql="select top 5 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(26,True,True,False,0,False,True) end if rsArticle.close %>
    <%response.write "更多>>>"%>
    本 站 公 告
    <% call ShowAnnounce(1,5) %>
    文 章 搜 索
    <% call ShowSearchForm("Search.asp",1) %>
    最 新 热 门
    <% call ShowHot(5,14) %>
    最 新 推 荐
    <% call ShowElite(5,14) %>
    最 新 热 图
    <% call ShowPicArticle(0,2,20,1,1,150,100,200,true,false) %>
    友 情 链 接

    <% call ShowFriendSite(1,10,1,1) %>

    <% call ShowFriendSite(2,10,1,3) %>

    申请
      更多>>>
    <% call Bottom() %> <% call PopAnnouceWindow(400,300) %> <% set rsArticle=nothing set rsPic=nothing call CloseConn() %>