<%
if (InStr(Request.ServerVariables("PATH_INFO"),"index_") <> 0) then
QualPag = Trim(Mid(Request.ServerVariables("PATH_INFO"),InStr(Request.ServerVariables("PATH_INFO"),"index_"),len(Request.ServerVariables("PATH_INFO"))))
else
QualPag = ""
end if
resto = (Second(now()) mod 2)
QualBanner = "ud"
if (QualPag = "index_agitos.asp") then
if (resto = 0) then
QualBanner = "cds"
else
QualBanner = "dvds"
end if
end if
if (QualPag = "index_cronicas.asp") then
if (resto = 0) then
QualBanner = "livros"
else
QualBanner = "dvds"
end if
end if
if (QualPag = "index_bares_restaurantes.asp") then
if (resto = 0) then
QualBanner = "eletrodom"
else
QualBanner = "ud"
end if
end if
if (QualPag = "index_cultura_diversao.asp") then
if (resto = 0) then
QualBanner = "eletro"
else
QualBanner = "cinefoto"
end if
end if
if (QualPag = "index_eventos.asp") then
if (resto = 0) then
QualBanner = "belezasaude"
else
QualBanner = "presentesfinos"
end if
end if
if (QualPag = "index_utilidades.asp") then
if (resto = 0) then
QualBanner = "info"
else
QualBanner = "telefonia"
end if
end if
response.write ""
response.write ""
%>
<%
' MOSTRANDO OS DADOS *****************************************
if (request("busca") <> "") or (request("buscatop") <> "") then
call(eval("Mostra_" & RTrim(request("opcao")) & "()"))
end if
' ************************************************************
%>
<%
Set db_CARTOES = DataBase_CARMOSION("db_cartoes")
if (Err.Number <> 0) then
response.write "
Não foi possível exibir a página.
"
response.end
end if
if (RTrim(request("opcaocartao")) = "" ) then
if (request("emaildestinatario") <> "") then
SqlDestino = "select * from mensagem where id_msg = " & CInt(request("id"))
set RsDestino = RecordSet_CARMOSION(SqlDestino, db_CARTOES, "")
if not(RsDestino.eof) then
response.write "
"
set RsDestino = nothing
else
response.redirect "index_cartoes.asp"
end if
end if
response.write "
Escolha o estilo de cartão que você deseja:
"
SqlTipoCartao = "select * from tipo order by nome_tipo"
set RsTipoCartao = RecordSet_CARMOSION(SqlTipoCartao, db_CARTOES, "")
cont = 1
do while not(RsTipoCartao.eof)
if (RsTipoCartao("status") = true) then
imagem = RsTipoCartao("imagemcc_tipo")
response.write ""
else
imagem = RsTipoCartao("imagemsc_tipo")
response.write ""
end if
resto = cont mod 3
if (resto = 0) then
response.write " "
else
response.write ""
end if
cont = cont + 1
RsTipoCartao.movenext
loop
set RsTipoCartao = nothing
else
response.write "Cartões :: " & RTrim(request("nomecartao")) & "
"
Set db_CARTOESPEQ = DataBase_CARMOSION("db_cartoes")
if (Err.Number <> 0) then
response.write "
Não foi possível exibir a página.
"
response.end
end if
SqlCartaoPeq = "select * from cartao where id_tipo = " & RTrim(request("id"))
set RsCartaoPeq = RecordSet_CARMOSION(SqlCartaoPeq, db_CARTOESPEQ, "")
contcard = 1
response.write "
"
response.write "
"
response.write "
"
response.write "
"
do while not(RsCartaoPeq.eof)
restocard = contcard mod 3
if (restocard = 0) then
response.write "
"
else
response.write " "
end if
contcard = contcard + 1
RsCartaoPeq.movenext
loop
response.write "
"
response.write "
"
response.write "
"
set RsCartaoPeq = nothing
db_CARTOESPEQ.close
end if
db_CARTOES.close
%>
<%
' MOSTRANDO OS DADOS *****************************************
if (request("busca") <> "") or (request("buscatop") <> "") then
call(eval("Mostra_" & RTrim(request("opcao")) & "()"))
end if
' ************************************************************
%>