<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%> <% 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 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 %>
<%If MSG = "" Then%> <% If (PodcastExib.Fields.Item("Tipo").Value) = 0 Then%> <%Elseif (PodcastExib.Fields.Item("Tipo").Value) = 1 Then%> &flashvars=&autostart=False&javascriptid=jstest&enablejs=true" width="181" height="150"> <% Else %> " /> " width="181" height="150" autostart="False" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/windows/mediaplayer/download/default.asp" name="WMPlay" transparentatstart="True" showcontrols="1" showdisplay="0" showstatusbar="1" animationatstart="0" filename="<%=(PodcastExib.Fields.Item("Link").Value)%>" autosize="0"> <%End If%> <% Else%> <%= MSG %> <% End If%>