<% '************************************************************** ' Software name: PowerEasy SiteWeaver ' Web: //www.powereasy.net ' Copyright (C) 2005-2009 佛山市动易网络科技有限公司 版权所有 '************************************************************** ChannelID = 0 PageTitle = "网站公告列表" strNavPath = strNavPath & strNavLink & " " & PageTitle strFileName = "AnnounceList.asp" strHTML = GetTemplate(ChannelID, 22, 0) Call ReplaceCommonLabel strHTML = Replace(strHTML, "{$PageTitle}", SiteTitle & " >> " & PageTitle) strHTML = Replace(strHTML, "{$ShowPath}", strNavPath) strHTML = Replace(strHTML, "{$MenuJS}", GetMenuJS("", False)) strHTML = Replace(strHTML, "{$Skin_CSS}", GetSkin_CSS(0)) regEx.Pattern = "【AnnounceList\((.*?)\)】([\s\S]*?)【\/AnnounceList】" Set Matches = regEx.Execute(strHTML) For Each Match In Matches strHTML = PE_Replace(strHTML, Match.value, GetCustomFromLabel(Match.SubMatches(0), Match.SubMatches(1))) Next If InStr(strHtml, "{$ShowPage}") > 0 Then strHTML = Replace(strHTML, "{$ShowPage}", ShowPage(strFileName, totalPut, MaxPerPage, CurrentPage, True, True, XmlText("Site", "ShowAnnounce/PageChar", "个公告"), False)) If InStr(strHtml, "{$ShowPage_en}") > 0 Then strHTML = Replace(strHTML, "{$ShowPage_en}", ShowPage_en(strFileName, totalPut, MaxPerPage, CurrentPage, True, True, XmlText("Site", "ShowAnnounce/PageChar", "个公告"), False)) Response.Write strHTML Call CloseConn Function GetCustomFromLabel(strTemp, strList) Dim arrTemp Dim OrderType, OpenType If strTemp = "" Then GetCustomFromLabel = "" Exit Function End If Dim sqlCustom, rsCustom, iCount, strCustomList, strThisClass, strLink iCount = 0 sqlCustom = "" strThisClass = "" strCustomList = "" sqlCustom = "select * from PE_Announce" arrTemp = Split(strTemp, ",") If PE_CLng(Trim(arrTemp(0))) <> 0 Then sqlCustom = sqlCustom & " where DateDiff(" & PE_DatePart_D & ",DateAndTime, " & PE_Now & ") <" & PE_CLng(arrTemp(0)) End If If Trim(arrTemp(1)) = 1 Then OpenType = " target=_blank" Else OpenType = " target=_self" End If If Trim(arrTemp(2)) = 1 Then sqlCustom = sqlCustom & " order by DateAndTime Desc" Else sqlCustom = sqlCustom & " order by DateAndTime asc" End If Set rsCustom = Server.CreateObject("ADODB.Recordset") rsCustom.Open sqlCustom, Conn, 1, 1 If rsCustom.BOF And rsCustom.EOF Then strCustomList = "网站暂时没有任何公告!" rsCustom.Close Set rsCustom = Nothing GetCustomFromLabel = strCustomList Exit Function End If totalPut = rsCustom.RecordCount If CurrentPage < 1 Then CurrentPage = 1 End If If (CurrentPage - 1) * MaxPerPage > totalPut Then If (totalPut Mod MaxPerPage) = 0 Then CurrentPage = totalPut \ MaxPerPage Else CurrentPage = totalPut \ MaxPerPage + 1 End If End If If CurrentPage > 1 Then If (CurrentPage - 1) * MaxPerPage < totalPut Then rsCustom.Move (CurrentPage - 1) * MaxPerPage Else CurrentPage = 1 End If End If Do While Not rsCustom.EOF strLink = "" strTemp = PE_Replace(strList, "{$AnnounceTitle}", rsCustom("Title")) strTemp = PE_Replace(strTemp, "{$AnnounceContent}", strLink & rsCustom("Content") & "") strTemp = PE_Replace(strTemp, "{$AnnounceAuthor}", rsCustom("Author")) strTemp = PE_Replace(strTemp, "{$AnnounceDateAndTime}", FormatDateTime(rsCustom("DateAndTime"), 1)) strCustomList = strCustomList & strTemp rsCustom.MoveNext iCount = iCount + 1 If iCount >= MaxPerPage Then Exit Do Loop rsCustom.Close Set rsCustom = Nothing GetCustomFromLabel = strCustomList End Function %>
  • 街采:幸福都是奋斗出来的 2019-02-15
  • 西部网(陕西新闻网)www.cnwest.com 2019-02-14
  • 广州市花都区人民法院公告专栏 2019-02-13
  • 东莞:科研人员可带项目离岗创业 2019-02-13
  • 康熙瓷器“冰梅纹”的缘起 2019-02-12
  • “黔电送粤”配套大型煤矿项目获批 盘江股份控股 2019-02-12
  • 竹编:缝隙里的乡愁文章中国国家地理网 2019-02-11
  • 告别“电钻音”安静“不扰民” 九阳率先推出静音破壁机 2019-02-10
  • 房地产就有国家和集体之土地不计价到计价,这笔是经济收入还是财产收入? 2019-02-10
  • 北京12.4万人申报积分落户 初核结果7月31日后公布 2019-02-09
  • 地市链接--山西频道--人民网 2019-02-09
  • Vacant land transformed into ecological agriculture park - Chongqing News - CQNEWS 2019-02-08
  • 李肇星:与《人民日报》的不解之缘 2019-02-08
  • 差距!摩洛哥国脚乌龙后主动道歉 这一点国足得好好学学 2019-02-07
  • 文化山西:唐代山西作家有多少? 2019-02-07