|
|
<%
strTipContent = "who"
Set objRS = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT tipoId FROM tipContent WHERE tipo = '"&strTipContent&"'"
objRS.open strSQL, objConexao
if objRs.EOF then
'response.redirect ("message.asp?msg=Em breve, novos conteúdos")
else
strTipoId = objRS("tipoId")
set objRS = nothing
Set objRS = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT TOP 1 contentId, imagem, titulo, content FROM Content WHERE default = true and tipoId = " & strTipoId
objRS.open strSQL, objConexao
End If
%>
 |
<%if not objRs.EOF and objRs("imagem") <> "" then%> " /><%else%> <%end if%> |
<%if objRs.EOF then%>
Aguarde, em breve novos conteúdos.
<%else%>
<%=objRS("Titulo")%>
<%=Left(objRS("Content"),200)%> ...
<%
objRs.Close
set objRs = nothing
%>
<%end if%>
|
|
 |
 |
 |
<%
Set objRS = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT * FROM tipo order by numberOrder asc"
objRS.open strSQL, objConexao
'Set rs = Server.CreateObject("ADODB.Recordset")
'SQL = "SELECT * FROM product where promocao = true and index = true order by contentId desc"
'RS.open SQL, objConexao
%>
|
|
 |
|
 |
 |
 |
<%
strTipContent = "quality"
Set objRS = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT tipoId FROM tipContent WHERE tipo = '"&strTipContent&"'"
objRS.open strSQL, objConexao
if objRs.EOF then
'response.redirect ("message.asp?msg=Em breve, novos conteúdos")
else
strTipoId = objRS("tipoId")
set objRS = nothing
Set objRS = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT TOP 1 contentId, imagem, titulo"&session("lang")&" as aliasTitulo, content"&session("lang")&" as aliasContent FROM Content WHERE default = true and tipoId = " & strTipoId
objRS.open strSQL, objConexao
End If
%>
<%if objRs.EOF then%>
Aguarde, em breve novos conteúdos.
<%else%>
<%=objRS("aliasTitulo")%>
<%=Left(objRS("aliasContent"),300)%> ...
<%
objRs.Close
set objRs = nothing
%>
<%end if%>
|
 |
 |
 |
<%
strTipContent = "tecnology"
Set objRS = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT tipoId FROM tipContent WHERE tipo = '"&strTipContent&"'"
objRS.open strSQL, objConexao
if objRs.EOF then
'response.redirect ("message.asp?msg=Em breve, novos conteúdos")
else
strTipoId = objRS("tipoId")
set objRS = nothing
Set objRS = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT TOP 1 contentId, imagem, titulo"&session("lang")&" as aliasTitulo, content"&session("lang")&" as aliasContent FROM Content WHERE default = true and tipoId = " & strTipoId
objRS.open strSQL, objConexao
End If
%>
<%if objRs.EOF then%>
Aguarde, em breve novos conteúdos.
<%else%>
<%=objRS("aliasTitulo")%>
<%=Left(objRS("aliasContent"),300)%> ...
<%
objRs.Close
set objRs = nothing
%>
<%end if%>
|
|
|
 |
|
|
|
|