<% Dim ArtClassID,FoundErr,ErrMsg ArtClassID=Trim(Request("ArtClassID")) If ArtClassID="" Then ArtClassID=0 End If If IsNumeric(ArtClassID) = False Then GoError "文章分类ID参数错误,请不要试图破坏此系统。" End If If ArtClassID<>0 Then Set oRs=oConn.Execute("Select ClassID,ckey1,ckey2,ckey3,ClassName From NewsClass Where ClassID="&ArtClassID) If oRs.Eof Then GoError "无此文章栏目,请添加后在来!" else ckey1=ors("ckey1") ckey2=ors("ckey2") ckey3=ors("ckey3") WebTitle=ors("ClassName") End If oRs.Close End If %> <%=ckey3%><%else%><%=W_WebSiteIntr%><%end if%>"> <%if ckey1<>"" then%><%=ckey1%>-<%else%><%=WebTitle%>-<%end if%><%= WebName%>
公司新闻
<% Call ArticleClass() %>
公司新闻 首页 > <% Call HoriNavi() %>
<% If ArtClassID <>0 Then Dim ChildID sSql="Select ClassID,ClassName,ParentPath,Child From NewsClass Where ClassID="&ArtClassID oRs.Open sSql,oConn,1,1 If Not oRs.Eof Then if oRs("ClassID")>0 then if oRs("Child")>0 then ChildID="" set tClass=oConn.execute("select ClassID from NewsClass where ParentID=" & oRs("ClassID") & " or ParentPath like '" & oRs("ParentPath") & "," & oRs("ClassID") & ",%'") do while not tClass.eof if ChildID="" then ChildID=tClass(0) else ChildID=ChildID & "," & tClass(0) end if tClass.movenext loop else ChildID=ArtClassID end if end if End If oRs.Close sSql="Select D_ID,D_ClassID,D_Title,D_Count,D_Time,jianjie,D_Picture From NewsData Where d_classid in ("&ChildID&") and d_recycle=false ORDER BY d_id DESC" Else sSql="Select D_ID,D_ClassID,D_Title,D_Count,D_Time,jianjie,D_Picture From NewsData Where d_recycle=false ORDER BY d_id DESC" End If oRs.Open sSql,oConn,1,1 dim MaxPerPage dim totalPut dim CurrentPage dim TotalPages dim i MaxPerPage=W_ArtRecoNum if not ors.eof then ors.MoveFirst end if ors.pagesize=MaxPerPage If trim(Request("Page"))<>"" then If IsNumeric(trim(Request("Page"))) = False Then GoError "分页参数错误,请不要试图破坏此系统。" End If CurrentPage= CLng(request("Page")) If CurrentPage> ors.PageCount then CurrentPage = ors.PageCount End If Else CurrentPage= 1 End If totalPut=ors.recordcount if CurrentPage<>1 then if (currentPage-1)*MaxPerPage <%if ors("D_Picture")<>"" then%> <%end if%> <% oRs.MoveNext i=i+1 Loop %> <% Else %> <% End If oRs.Close %>
 
" title="<%=oRs("D_Title")&vbcrlf%>点击次数:<%=oRs("D_Count")%>次"><%=oRs("D_Title")%>  <% = formatdatetime(oRs("D_Time"),vblongdate)%>
<% Response.Write "共"&totalPut&"篇文章 " k=currentPage if k<>1 then response.write "["+"首页] " response.write "["+"上一页] " else Response.Write "[首页] [上一页]" end if if k<>n then response.write "["+"下一页] " response.write "["+"尾页] " else Response.Write "[下一页] [尾页]" end if Response.Write " 页次:"¤tpage&"/"&n&"页 "&W_ArtRecoNum&"篇文章/页" %> 转到:
暂无信息!