%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% Dim RsUltvideos Dim RsUltvideos_numRows Set RsUltvideos = Server.CreateObject("ADODB.Recordset") RsUltvideos.ActiveConnection = MM_Podcast_STRING RsUltvideos.Source = "SELECT * FROM Podcast ORDER BY Data DESC" RsUltvideos.CursorType = 2 RsUltvideos.CursorLocation = 3 RsUltvideos.LockType = 1 RsUltvideos.Open() RsUltvideos.Pagesize = 3 IF Request.QueryString("pagina")="" then intpagina=1 ELSE IF cint(Request.QueryString("pagina"))<1 then intpagina=1 ELSE IF cint(Request.QueryString("pagina"))> RsUltvideos.PageCount then intpagina=RsUltvideos.PageCount ELSE intpagina= Request.QueryString("pagina") END IF END IF END IF RsUltvideos.AbsolutePage = intpagina %> <% Dim RsVideoPrincipal Dim RsVideoPrincipal_numRows Set RsVideoPrincipal = Server.CreateObject("ADODB.Recordset") RsVideoPrincipal.ActiveConnection = MM_Podcast_STRING RsVideoPrincipal.Source = "Select Top 1 * from Chamadas where CategoriaID= 1 order by chamadaid DESC" RsVideoPrincipal.CursorType = 0 RsVideoPrincipal.CursorLocation = 2 RsVideoPrincipal.LockType = 1 RsVideoPrincipal.Open() RsVideoPrincipal_numRows = 0 %> <% Dim RsDestaques Dim RsDestaques_numRows Set RsDestaques = Server.CreateObject("ADODB.Recordset") RsDestaques.ActiveConnection = MM_Podcast_STRING RsDestaques.Source = "Select top 7 Podcast.* from PodCast inner join Chamadas on (Chamadas.PodcastId = Podcast.PodcastID) where Chamadas.categoriaID=2 order by Chamadas.ChamadaID DESC, chamadas.ordem ASC" RsDestaques.CursorType = 0 RsDestaques.CursorLocation = 2 RsDestaques.LockType = 1 RsDestaques.Open() RsDestaques_numRows = 0 %> <% Dim RsPrograma Dim RsPrograma_numRows Set RsPrograma = Server.CreateObject("ADODB.Recordset") RsPrograma.ActiveConnection = MM_Podcast_STRING RsPrograma.Source = "Select top 4 * from Podcast where CategoriaID = 11 order by data desc" RsPrograma.CursorType = 0 RsPrograma.CursorLocation = 2 RsPrograma.LockType = 1 RsPrograma.Open() RsPrograma_numRows = 0 %> <% Dim RsCategorias Dim RsCategorias_numRows Set RsCategorias = Server.CreateObject("ADODB.Recordset") RsCategorias.ActiveConnection = MM_Podcast_STRING RsCategorias.Source = "Select * from Categorias order by Nome" RsCategorias.CursorType = 0 RsCategorias.CursorLocation = 2 RsCategorias.LockType = 1 RsCategorias.Open() RsCategorias_numRows = 0 %> <% Dim RsPublicidade Dim RsPublicidade_numRows Set RsPublicidade = Server.CreateObject("ADODB.Recordset") RsPublicidade.ActiveConnection = MM_Podcast_STRING RsPublicidade.Source = "SELECT * FROM Publicidade" RsPublicidade.CursorType = 0 RsPublicidade.CursorLocation = 2 RsPublicidade.LockType = 1 RsPublicidade.Open() RsPublicidade_numRows = 0 %> <% Dim PodcastExib Dim PodcastExib_numRows If request.QueryString("video") <> "" then WHEREC = " where PodcastID="&cint(request.QueryString("video")) Elseif not RsVideoPrincipal.EOF then WHEREC = " where PodcastID = "&cint(RsVideoPrincipal.Fields.Item("PodcastID").Value) end if Set PodcastExib = Server.CreateObject("ADODB.Recordset") PodcastExib.ActiveConnection = MM_Podcast_STRING PodcastExib.Source = "SELECT * FROM Podcast"&WHEREC PodcastExib.CursorType = 0 PodcastExib.CursorLocation = 2 PodcastExib.LockType = 1 PodcastExib.Open() PodcastExib_numRows = 0 If PodCastExib.EOf then MSG = "Nenhum video encontrado..." End if %>
![]() |
|||||||||||||||
|
|||||||||||||||
|
|||||||||||||||
|
|||||||||||||||
|
|||||||||||||||
|
|||||||||||||||