<%@LANGUAGE="VBSCRIPT"%> <% Dim rsDestaques__MMColParam rsDestaques__MMColParam = "Destaque" If (Request("MM_EmptyValue") <> "") Then rsDestaques__MMColParam = Request("MM_EmptyValue") End If %> <% Dim rsDestaques Dim rsDestaques_numRows Set rsDestaques = Server.CreateObject("ADODB.Recordset") rsDestaques.ActiveConnection = MM_connCorredor_STRING rsDestaques.Source = "SELECT * FROM paginas WHERE tipo = '" + Replace(rsDestaques__MMColParam, "'", "''") + "' ORDER BY id_pagina DESC" rsDestaques.CursorType = 0 rsDestaques.CursorLocation = 2 rsDestaques.LockType = 1 rsDestaques.Open() rsDestaques_numRows = 0 %> <% Dim rsNoticias__MMColParam rsNoticias__MMColParam = "Notícia" If (Request("MM_EmptyValue") <> "") Then rsNoticias__MMColParam = Request("MM_EmptyValue") End If %> <% Dim rsNoticias Dim rsNoticias_numRows Set rsNoticias = Server.CreateObject("ADODB.Recordset") rsNoticias.ActiveConnection = MM_connCorredor_STRING rsNoticias.Source = "SELECT * FROM paginas WHERE tipo = '" + Replace(rsNoticias__MMColParam, "'", "''") + "' ORDER BY data DESC" rsNoticias.CursorType = 0 rsNoticias.CursorLocation = 2 rsNoticias.LockType = 1 rsNoticias.Open() rsNoticias_numRows = 0 %> <% Dim Repeat1__numRows Dim Repeat1__index Repeat1__numRows = 4 Repeat1__index = 0 rsDestaques_numRows = rsDestaques_numRows + Repeat1__numRows %> <% Dim Repeat2__numRows Dim Repeat2__index Repeat2__numRows = 8 Repeat2__index = 0 rsNoticias_numRows = rsNoticias_numRows + Repeat2__numRows %> <% Dim MM_paramName %> <% ' *** Go To Record and Move To Record: create strings for maintaining URL and Form parameters Dim MM_keepNone Dim MM_keepURL Dim MM_keepForm Dim MM_keepBoth Dim MM_removeList Dim MM_item Dim MM_nextItem ' create the list of parameters which should not be maintained MM_removeList = "&index=" If (MM_paramName <> "") Then MM_removeList = MM_removeList & "&" & MM_paramName & "=" End If MM_keepURL="" MM_keepForm="" MM_keepBoth="" MM_keepNone="" ' add the URL parameters to the MM_keepURL string For Each MM_item In Request.QueryString MM_nextItem = "&" & MM_item & "=" If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then MM_keepURL = MM_keepURL & MM_nextItem & Server.URLencode(Request.QueryString(MM_item)) End If Next ' add the Form variables to the MM_keepForm string For Each MM_item In Request.Form MM_nextItem = "&" & MM_item & "=" If (InStr(1,MM_removeList,MM_nextItem,1) = 0) Then MM_keepForm = MM_keepForm & MM_nextItem & Server.URLencode(Request.Form(MM_item)) End If Next ' create the Form + URL string and remove the intial '&' from each of the strings MM_keepBoth = MM_keepURL & MM_keepForm If (MM_keepBoth <> "") Then MM_keepBoth = Right(MM_keepBoth, Len(MM_keepBoth) - 1) End If If (MM_keepURL <> "") Then MM_keepURL = Right(MM_keepURL, Len(MM_keepURL) - 1) End If If (MM_keepForm <> "") Then MM_keepForm = Right(MM_keepForm, Len(MM_keepForm) - 1) End If ' a utility function used for adding additional parameters to these strings Function MM_joinChar(firstItem) If (firstItem <> "") Then MM_joinChar = "&" Else MM_joinChar = "" End If End Function %> Corredor Literário na Paulista
Carregando...

Destaques

<% While ((Repeat1__numRows <> 0) AND (NOT rsDestaques.EOF)) %> '">
" alt="Noticia">

<%=(rsDestaques.Fields.Item("titulo").Value)%>
<%=(rsDestaques.Fields.Item("conteudo").Value)%>[+]

<% Repeat1__index=Repeat1__index+1 Repeat1__numRows=Repeat1__numRows-1 rsDestaques.MoveNext() Wend %> <% If rsDestaques.EOF And rsDestaques.BOF Then %>

Não há destaques no momento

<% End If ' end rsDestaques.EOF And rsDestaques.BOF %>

Últimas Notícias

<% While ((Repeat2__numRows <> 0) AND (NOT rsNoticias.EOF)) %>
"><%=(rsNoticias.Fields.Item("titulo").Value)%>
<%= DoDateTime((rsNoticias.Fields.Item("data").Value), 2, 2057) %>
<% Repeat2__index=Repeat2__index+1 Repeat2__numRows=Repeat2__numRows-1 rsNoticias.MoveNext() Wend %> <% If rsNoticias.EOF And rsNoticias.BOF Then %>

Não há notícias cadastradas

<% End If ' end rsNoticias.EOF And rsNoticias.BOF %>

[+] Índice de Notícias

<% rsDestaques.Close() Set rsDestaques = Nothing %> <% rsNoticias.Close() Set rsNoticias = Nothing %>