<% '************************************************************** ' 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-04-23
  • Map Out Your Life in Chongqing 2019-04-23
  • 镜头下:80年代的中国农村,民风纯朴,贫穷但是快乐 2019-04-22
  • 张德江:必须毫不动摇坚持、与时俱进完善人民代表大会制度 2019-04-21
  • 炒菜为什么要热锅快炒 2019-04-21
  • 蔡英文广邀“友邦”访台 被讽神仙也救不了“断交” 2019-04-20
  • 这是一个错误的观点! 2019-04-20
  • 2017传媒大事记:荧屏再掀“文化热”媒体融合发展步入深水区 2019-04-19
  • 晋中市直机关将开展纪念建党97周年“红色+”系列活动 2019-04-18
  • 实验室里“种植”钻石,这样的人造钻戒你能接受吗? 2019-04-17
  • 南昌重拳整治酒驾毒驾 2019-04-17
  • 你的第一段就认识错误。中国人如果认为神赐就能有幸福,就不会有后羿射日精卫填海愚公移山的故事了。中华文明世界观推导出的方法论就是八个字,事在人为,人定胜天。 2019-04-16
  • 学习新思想,千万师生同上一堂课 2019-04-16
  • 紫光阁中共中央国家机关工作委员会 2019-04-15
  • 统帅关怀励兵心 矢志强军谋打赢 2019-04-15