网站通知
共有新闻 篇,阅读量已达 人次
最早的新闻发布于,最近的新闻于发布
<%
dim st
st = Timer
const pubCMS_documents_view = "(select DocumentID, Subject, Keywords, Vote, Documents.CategoryID, hits, Style, PublishDate, voteNum, Commend, TempletID, Author, fromID, FileUrl, Summary, CreateDateTime, UpdateDateTime, Documents.Audit, ParentDocumentID, Content, UserName, DocumentType, ParentID, CategoryLevel, CategoryName, OrderNum, OrderNum2, Directory, SubDirectoryRule, DirectoryUrl, CategoryHomeUrl, Description, HomePageTempletID, IsColumn, IsVirtual, Path, FileNameRule, DocumentTempletID, DefaultTextFormat, useDocumentTemplate, useTextFormat, Meta, Properties, DefaultContentTemplate from Documents inner join Category on Documents.CategoryID=Category.CategoryID where fileurl is not null and Documents.audit=1 union all select Documents.DocumentID, Subject, Keywords, Vote, Documents.CategoryID, hits, Style, PublishDate, voteNum, Commend, TempletID, Author, fromID, FileUrl, Summary, CreateDateTime, UpdateDateTime, Documents.Audit, ParentDocumentID, Content, UserName, DocumentType, ParentID, CategoryLevel, CategoryName, OrderNum, OrderNum2, Directory, SubDirectoryRule, DirectoryUrl, CategoryHomeUrl, Description, HomePageTempletID, IsColumn, IsVirtual, Path, FileNameRule, DocumentTempletID, DefaultTextFormat, useDocumentTemplate, useTextFormat, Meta, Properties, DefaultContentTemplate from ([column] inner join Documents on [column].documentid=documents.documentid) inner join Category on [column].CategoryID=Category.CategoryID where isColumn=1 and fileurl is not null and Documents.audit=1) documents_view "
const pubCMS_documents_view2 = "(select DocumentID, Subject, Keywords, Vote, Documents.CategoryID, hits, Style, PublishDate, voteNum, Commend, TempletID, Author, fromID, FileUrl, Summary, CreateDateTime, UpdateDateTime, Documents.Audit, ParentDocumentID, Content, UserName, DocumentType, ParentID, CategoryLevel, CategoryName, OrderNum, OrderNum2, Directory, SubDirectoryRule, DirectoryUrl, CategoryHomeUrl, Description, HomePageTempletID, IsColumn, IsVirtual, Path, FileNameRule, DocumentTempletID, DefaultTextFormat, useDocumentTemplate, useTextFormat, Meta, Properties, DefaultContentTemplate from Documents inner join Category on Documents.CategoryID=Category.CategoryID where fileurl is not null and Documents.audit=1) documents_view "
dim wtable
wtable= pubCMS_documents_view & " where path like '/root/05_yjck/04_wzxw%' "
dim con
set con = CreateObject("ADODB.Connection")
con.open Application("ConnectionString")
dim td
set td = new Dataset
td.sql = "select subject, publishdate, fileurl, cast(content as nvarchar(500)) from " & wtable & " and year(publishdate)=year(getdate()) and month(publishdate)=month(getdate()) and day(publishdate)=day(getdate()) order by publishdate desc"
td.execute(con)
dim yt
set yt = new Dataset
yt.sql = "select subject, publishdate, fileurl, cast(content as nvarchar(500)) from " & wtable & " and year(publishdate)=year(getdate()) and month(publishdate)=month(getdate()) and day(publishdate)=day(getdate())-1 order by publishdate desc"
yt.execute(con)
dim bf
set bf = new Dataset
bf.sql = "select subject, publishdate, fileurl from " & wtable & " and year(publishdate)=year(getdate()) and datepart(wk, publishdate) = datepart(wk, getdate()) and day(publishdate) 0 or yt.recordcount > 0 or bf.recordcount > 0 or pw.recordcount > 0 then
rs.FirstPageSize = 6
end if
rs.AbsolutePage = Request("page")
dim an
an = " and (year(publishdate)
<% If rs.AbsolutePage = 1 Then %>
<% End If %>
日期:今天
-
<% If td.eof Then %>
- 暂无信息... <% End If %> <% do until td.eof %>
- <%= td(0) %>[<%= td(1) %>]
- <% = getContent(td(3)) %> <% td.movenext loop %>
日期:昨天
-
<% If yt.eof Then %>
- 暂无信息... <% End If %> <% do until yt.eof %>
- <%= yt(0) %>[<%= yt(1) %>]
- <% = getContent(yt(3)) %> <% yt.movenext loop %>
日期:前几天
-
<% If bf.eof Then %>
- 暂无信息... <% End If %> <% do until bf.eof %>
- <%= bf(0) %>[<%= bf(1) %>] <% bf.movenext loop %>
日期:上周
-
<% If pw.eof Then %>
- 暂无信息... <% End If %> <% do until pw.eof %>
- <%= pw(0) %>[<%= pw(1) %>] <% pw.movenext loop %>
日期:更早
-
<% do until rs.eof %>
- <%= rs(0) %>[<%= rs(1) %>] <% rs.movenext loop %>
