Ir para conteúdo
Fórum Script Brasil

Pedro Maia

Membros
  • Total de itens

    1
  • Registro em

  • Última visita

Sobre Pedro Maia

Pedro Maia's Achievements

0

Reputação

  1. O script não está carregando a imagem foto não disponivel como o exemplo: https://www.clarelimoveis.com.br/site/detalhes.asp?lista=busca&id=1604 abaixo segue o codigo alguém poderia corrigir para ser mostrada a imagem de foto não disponivel quando o anuncio não tiver o total de fotos carregadas... <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>C L A R E L I m &oacute; v e i s</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" /> <script src="js/prototype.js" type="text/javascript"></script> <script src="js/scriptaculous.js?load=effects,builder" type="text/javascript"></script> <script src="js/lightbox.js" type="text/javascript"></script> <link href="text.css" rel="stylesheet" type="text/css"> <meta content="Microsoft FrontPage 4.0" name="NewsTime! Jailson Vieira" /> <meta content="FrontPage.Editor.Document" name="ProgId" /> <!--#include file="include.asp"--> <!--#include file="conexao.asp"--> </head> <body bgcolor="#eeeeee" background="body_bg2.jpg" link="#CC0000" vlink="#CC0000" alink="#FF0000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"> <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0" background="transparente3.png"> <tr> <td height="166" bgcolor="#FFFFFF"> <table width="770" height="166" border="0" cellpadding="0" cellspacing="0" class="text"> <tr> <td width="770" height="166" align="left" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tbody> <tr> <td width="1909" valign="top" background="bg_header2.png"> <div align="center"><img src="bg_header4.png" width="990" height="199" border="0" usemap="#Map"> <map name="Map"> <area shape="rect" coords="12,29,359,179" href="index.asp"> <area shape="rect" coords="466,85,567,129" href="aluguel.asp"> <area shape="rect" coords="380,86,463,127" href="vendas.asp"> <area shape="rect" coords="569,89,671,127" href="empresa.asp"> <area shape="rect" coords="674,89,864,128" href="empreendimentos.asp"> <area shape="rect" coords="870,86,965,125" href="contato.asp"> </map> <br> </div></td> </tr> <tr> <td valign="top"> <div align="center"></div></td> </tr> <tr> <td valign="top"><div align="center"><br /> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="1%"><div align="justify"><font size="2" face="Trebuchet MS"><font color="#003366"></font></font></div></td> <td> <div align="center"> <table width="990" border="0" cellpadding="0" cellspacing="0"> <tr> <td><p><font color="#FFFFFF" size="7" face="Times New Roman, Times, serif"><strong><em><font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">+</font> <font color="#FF3300">V</font><font color="#000000">endas</font></em></strong></font></p> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td> <% id=Request.querystring("id") lista=Request.querystring("lista") tipo=Request("tipo") mc_id=Request("mc_id") %> <div align="center"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td>&nbsp;</td> </tr> </table> <div align="center"> <center> <table width="100%" border="0" cellpadding="2"> <tr> <td height="19"> <table border="0" cellpadding="0" cellspacing="0" width="100%" background="imagens/barra_pontos.gif"> <tr> <td><img border="0" src="imagens/separar.gif" width="3" height="3"></td> </tr> </table></td> </tr> <tr> <td> </td> </tr> <tr> <td> <!--- /// INÍCIO RESULTADO /// ------> <% Select Case lista Case "busca" set lista_busca = thfDB.Execute("SELECT * FROM anuncios WHERE id="&id&" ") msgnada = "Infelizmente <b>não</b> localizamos nenhum resultado com estas características. <b>Tente buscar com outra Marca e/ou modelo.</b><br><br>" Case Else End Select If lista_busca.EOF Then Response.Write " " & msgnada & " " Else malha1 = "sim" while not lista_busca.EOF busca_id = lista_busca("id") busca_md_nome = lista_busca("md_nome") busca_tipo = lista_busca("tipo") busca_preco = lista_busca("preço") busca_mc_id = lista_busca("mc_id") busca_rev_id = lista_busca("rev_id") busca_ano = lista_busca("ano") busca_cor = lista_busca("cor") busca_descricao = lista_busca("descricao") busca_v = lista_busca("v") busca_prop = lista_busca("prop") busca_tel = lista_busca("tel") busca_age = lista_busca("age") busca_cores = lista_busca("cores") busca_km = lista_busca("km") busca_comb = lista_busca("comb") busca_portas = lista_busca("portas") busca_cambio = lista_busca("cambio") busca_motor = lista_busca("motor") busca_rodas = lista_busca("rodas") busca_img1 = lista_busca("img1") busca_img2 = lista_busca("img2") busca_img3 = lista_busca("img3") busca_img4 = lista_busca("img4") busca_img5 = lista_busca("img5") busca_img6 = lista_busca("img6") busca_img7 = lista_busca("img7") busca_img8 = lista_busca("img8") busca_img9 = lista_busca("img9") busca_img10 = lista_busca("img10") busca_img11 = lista_busca("img11") busca_img12 = lista_busca("img12") set marca = thfDB.Execute("select * from marca where id="&lista_busca("mc_id")&"") while not marca.EOF set busca_foto = thfDB.Execute("select * from revenda where id="&busca_rev_id&"") while not busca_foto.EOF dir = busca_foto("dir") empresa = busca_foto("empresa") telefone = busca_foto("telefone") %> <!--- /// fim marca /// ---> <table width="100%" border="0" cellspacing="1"> <tr> <td width="675" valign="top"> <table width="100%" border="0" cellspacing="0"> <tr> <td> <div align="left"> <table width="100%" height="30" border="0" align="center" cellpadding="0" cellspacing="0"> <tr bgcolor="#FFFFCC"> <td width="40%" bgcolor="#FFFFCC"><div align="right"><font color="#000000"><strong><em><font size="4" face="Times New Roman, Times, serif">- </font></em></strong><em><font size="4" face="Times New Roman, Times, serif">Cidade:</font></em></font></div></td> <td width="2%"><font color="#000000"><strong><em><font size="4" face="Times New Roman, Times, serif">&nbsp;</font></em></strong></font></td> <td width="58%" bgcolor="#FFFFCC"><font color="#000000"><font size="4" face="Times New Roman, Times, serif">- <%=marca("nome")%></font></font></td> </tr> </table> </div></td> </tr> <tr bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF"> <table width="100%" height="30" border="0" align="center" cellpadding="0" cellspacing="0"> <tr bgcolor="#FFFFEC"> <td width="40%" bgcolor="#FFFFEC"><div align="right"><font color="#000000"><strong><em><font size="4" face="Times New Roman, Times, serif">- </font></em></strong><em><font size="4" face="Times New Roman, Times, serif">Bairro:</font></em></font></div></td> <td width="2%">&nbsp;</td> <td width="58%"><font color="#000000"><font size="4" face="Times New Roman, Times, serif">- <%if busca_md_nome="0" then%> <%else%> <%=busca_md_nome%> <%end if%> </font></font></td> </tr> </table></td> <center> </center> </tr> <tr bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF"> <div align="left"> <table width="100%" height="30" border="0" align="center" cellpadding="0" cellspacing="0"> <tr bgcolor="#FFFFCC"> <td width="40%" bgcolor="#FFFFCC"><div align="right"><font color="#000000"><strong><em><font size="4" face="Times New Roman, Times, serif">- </font></em></strong><em><font size="4" face="Times New Roman, Times, serif">Tipo:</font></em></font></div></td> <td width="2%"><font color="#000000"><strong><em><font size="4" face="Times New Roman, Times, serif">&nbsp;</font></em></strong></font></td> <td width="58%"><font color="#000000"><font size="4" face="Times New Roman, Times, serif">- <%if busca_ano="0" then%> <%else%> <%=busca_ano%> <%end if%> </font></font></td> </tr> </table> </div></td> </tr> <tr> <td> <table width="100%" height="30" border="0" align="center" cellpadding="0" cellspacing="0"> <tr bgcolor="#FFFFEC"> <td width="40%" bgcolor="#FFFFEC"><div align="right"><font color="#000000"><strong><em><font size="4" face="Times New Roman, Times, serif">- </font></em></strong><em><font size="4" face="Times New Roman, Times, serif">Dormit&oacute;rios:</font></em></font></div></td> <td width="2%">&nbsp;</td> <td width="58%"><font color="#000000"><font size="4" face="Times New Roman, Times, serif">- <%if busca_comb="0" then%> <%else%> <%=busca_comb%> <%end if%> </font></font></td> </tr> </table></td> <center> </center> </tr> <tr> <td> <div align="left"> <table width="100%" height="30" border="0" align="center" cellpadding="0" cellspacing="0"> <tr bgcolor="#FFFFCC"> <td width="40%" bgcolor="#FFFFCC"><div align="right"><font color="#000000"><strong><em><font size="4" face="Times New Roman, Times, serif">- </font></em></strong><em><font size="4" face="Times New Roman, Times, serif">C&oacute;digo:</font></em></font></div></td> <td width="2%"><font color="#000000"><strong><em><font size="4" face="Times New Roman, Times, serif">&nbsp;</font></em></strong></font></td> <td width="58%"><font color="#000000"><font size="4" face="Times New Roman, Times, serif">- <%if busca_cor="0" then%> <%else%> <%=busca_cor%> <%end if%> </font></font></td> </tr> </table> </div></td> </tr> <tr bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF"> <table width="100%" height="30" border="0" align="center" cellpadding="0" cellspacing="0"> <tr bgcolor="#FFFFEC"> <td width="40%" bgcolor="#FFFFEC"><div align="right"><font color="#000000"><strong><em><font size="4" face="Times New Roman, Times, serif">- </font></em></strong><em><em><font size="4" face="Times New Roman, Times, serif">Endere&ccedil;o:</font></em></em></font></div></td> <td width="2%">&nbsp;</td> <td width="58%"><font color="#000000"><font size="4" face="Times New Roman, Times, serif">- <%if busca_prop="0" then%> <%else%> <%=busca_prop%> <%end if%> </font></font></td> </tr> </table></td> <center> </center> </tr> <tr bgcolor="#FFFFFF"> <td bgcolor="#FFFFFF"> <div align="left"> <table width="100%" height="30" border="0" align="center" cellpadding="0" cellspacing="0"> <tr bgcolor="#FFFFCC"> <td width="40%" bgcolor="#FFFFCC"><div align="right"><font color="#000000"><strong><em><font size="4" face="Times New Roman, Times, serif">-</font></em></strong><em><font size="4" face="Times New Roman, Times, serif"> &Aacute;rea privativa:</font></em></font></div></td> <td width="2%"><font color="#000000"><strong><em><font size="4" face="Times New Roman, Times, serif">&nbsp;</font></em></strong></font></td> <td width="58%"><font color="#000000"><font size="4" face="Times New Roman, Times, serif">- <%if busca_km="0" then%> <%else%> <%=busca_km%> <%end if%> M&sup2; </font></font></td> </tr> </table> </div></td> </tr> <tr> <td> <table width="100%" height="30" border="0" align="center" cellpadding="0" cellspacing="0"> <tr bgcolor="#FFFFEC"> <td width="40%" bgcolor="#FFFFEC"><div align="right"><font color="#000000"><strong><em><font size="4" face="Times New Roman, Times, serif">- </font></em></strong><em><font size="4" face="Times New Roman, Times, serif">Vagas:</font></em></font></div></td> <td width="2%">&nbsp;</td> <td width="58%"><font color="#000000"><font size="4" face="Times New Roman, Times, serif">- <%if busca_motor="0" then%> <%else%> <%=busca_motor%> <%end if%> </font></font></td> </tr> </table></td> </tr> <tr> <td> <table width="100%" height="30" border="0" align="center" cellpadding="0" cellspacing="0"> <tr bgcolor="#FFFFCC"> <td width="40%" bgcolor="#FFFFCC"><div align="right"><font color="#FFFFFF"><strong><em><font color="#000000" size="4" face="Times New Roman, Times, serif">- </font></em></strong><em><font color="#FFFFFF"><em><font color="#000000" size="4" face="Times New Roman, Times, serif">Pre&ccedil;o:</font></em></font></em></font></div></td> <td width="2%"><font color="#FFFFFF"><strong><em><font size="4" face="Times New Roman, Times, serif">&nbsp;</font></em></strong></font></td> <td width="58%"><font color="#FFFFFF"><font color="#000000" size="4" face="Times New Roman, Times, serif">-</font><font color="#FF3300" size="4" face="Times New Roman, Times, serif"> <%if busca_preco="0" then%> CONSULTAR <%else%> <%if busca_v="0" then%> R$ <%else%> A partir de R$ <%end if%> <%Session.LCID = 1046%> <%=FormatNumber(busca_preco,2,-1,0,-1)%> <%end if%> </font></font></td> </tr> </table></td> </tr> </table> <div align="justify"> <font size="1" face="Verdana, Arial, Helvetica, sans-serif"> </font> <br> <table width="100%" border="0" cellspacing="0" bordercolor="#eeeeee"> <tr> <td><font color="#333333" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><font color="#FFFFFF" size="4" face="Times New Roman, Times, serif"><em><font color="#FF3300">D</font><font color="#000000">etalhes do</font><font color="#FF3300"> I</font><font color="#000000">m&oacute;vel</font></em></font></strong><font color="#000000"><em><font size="4" face="Times New Roman, Times, serif">:</font></em></font></font><font color="#000000" size="2" face="Trebuchet MS">&nbsp; <br> <br> <font size="3"> <%if busca_descricao="0" then%> <%else%> <%=replace(busca_descricao, vbcrlf,"<BR>")%> <%end if%> &nbsp;</font></font><font color="#000000" size="3" face="Verdana, Arial, Helvetica, sans-serif">&nbsp; </font><font size="3" face="Verdana, Arial, Helvetica, sans-serif">&nbsp; </font></td> </tr> </table> <font size="1" face="Verdana, Arial, Helvetica, sans-serif"> <!---------------------////// DADOS AGENCIA /////////--------------------> </font><span style="text-transform: uppercase"><br> </span></div> <br> <div align="center"><br> </div> <div align="center"><br> <br> </div> <div align="center"></div> <br> </td> <td width="5"><img src="imagens/separar.gif"></td> <!---------------------////// DADOS VEÍCULO /////////--------------------> <td width="122" valign="top"><table border="0" cellspacing="1"> <tr> <td> <%if busca_img1="0" then%> <img src="https://www.clarelimoveis.com.br/site/fotos/indisp.jpg" border="0"> <%else%> <table width="100%" border="3" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC"> <tr> <td><div align="center"><img src="<%=dir%>/<%=busca_img1%>" width="595" border="0" id='img_ampliada' ></div></td> </tr> </table> <%end if%> </td> </tr> <tr> <td> <table border="0" cellspacing="0" cellpadding="0"> <tr> <%if busca_img1<>"0" and busca_img1<>"" then%> <td>&nbsp; </td> <%end if%> <%if busca_img2<>"0" and busca_img2<>"" then%> <td><img border="0" src="imagens/separar.gif"></td> <td>&nbsp; </td> <%end if%> <%if busca_img3<>"0" and busca_img3<>"" then%> <td><img border="0" src="imagens/separar.gif"></td> <td>&nbsp; </td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <%end if%> </tr> <tr> <%if busca_img4<>"0" and busca_img4<>"" then%> <td>&nbsp; </td> <%end if%> <%if busca_img5<>"0" and busca_img5<>"" then%> <td><img border="0" src="imagens/separar.gif"></td> <td>&nbsp; </td> <%end if%> <%if busca_img6<>"0" and busca_img6<>"" then%> <td><img border="0" src="imagens/separar.gif"></td> <td>&nbsp; </td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <%end if%> <tr> <%if busca_img7<>"0" and busca_img7<>"" then%> <td>&nbsp; </td> <%end if%> <%if busca_img8<>"0" and busca_img8<>"" then%> <td><img border="0" src="imagens/separar.gif"></td> <td>&nbsp; </td> <%end if%> <%if busca_img9<>"0" and busca_img9<>"" then%> <td><img border="0" src="imagens/separar.gif"></td> <td>&nbsp; </td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <%end if%> </tr> <tr> <%if busca_img10<>"0" and busca_img10<>"" then%> <td>&nbsp; </td> <%end if%> <%if busca_img11<>"0" and busca_img11<>"" then%> <td><img border="0" src="imagens/separar.gif"></td> <td>&nbsp; </td> <%end if%> <%if busca_img12<>"0" and busca_img12<>"" then%> <td><img border="0" src="imagens/separar.gif"></td> <td>&nbsp; </td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <td>&nbsp;</td> <%end if%> </tr> </table> <table width="80%" border="0" align="center" cellpadding="2" cellspacing="2"> <tr> <td><div align="center"><a href="<%=dir%>/<%=busca_img1%>"rel="lightbox[plants]"><img src="<%=dir%>/<%=busca_img1%>" border="0" width="88" height="64" ></a></div></td> <td><div align="center"></div></td> <td><div align="center"><a href="<%=dir%>/<%=busca_img2%>"rel="lightbox[plants]"><img src="<%=dir%>/<%=busca_img2%>" border="0" width="88" height="64" ></a></div></td> <td><div align="center"></div></td> <td><div align="center"><a href="<%=dir%>/<%=busca_img3%>"rel="lightbox[plants]"><img src="<%=dir%>/<%=busca_img3%>" border="0" width="88" height="64" ></a></div></td> <td><div align="center"></div></td> <td><div align="center"><a href="<%=dir%>/<%=busca_img4%>"rel="lightbox[plants]"><img src="<%=dir%>/<%=busca_img4%>" border="0" width="88" height="64" ></a></div></td> <td><div align="center"></div></td> <td><div align="center"><a href="<%=dir%>/<%=busca_img5%>"rel="lightbox[plants]"><img src="<%=dir%>/<%=busca_img5%>" border="0" width="88" height="64" ></a></div></td> <td><div align="center"></div></td> <td><div align="center"><a href="<%=dir%>/<%=busca_img6%>"rel="lightbox[plants]"><img src="<%=dir%>/<%=busca_img6%>" border="0" width="88" height="64" ></a></div></td> <td><div align="center"></div></td> </tr> </table> <br> <table width="80%" border="0" align="center" cellpadding="2" cellspacing="2"> <tr> <td><div align="center"><a href="<%=dir%>/<%=busca_img7%>"rel="lightbox[plants]"><img src="<%=dir%>/<%=busca_img7%>" width="88" height="64" border="0" ></a></div></td> <td><div align="center"></div></td> <td><div align="center"><a href="<%=dir%>/<%=busca_img8%>"rel="lightbox[plants]"><img src="<%=dir%>/<%=busca_img8%>" width="88" height="64" border="0" ></a></div></td> <td><div align="center"></div></td> <td><div align="center"><a href="<%=dir%>/<%=busca_img9%>"rel="lightbox[plants]"><img src="<%=dir%>/<%=busca_img9%>" width="88" height="64" border="0" ></a></div></td> <td><div align="center"></div></td> <td><div align="center"><a href="<%=dir%>/<%=busca_img10%>"rel="lightbox[plants]"><img src="<%=dir%>/<%=busca_img10%>" width="88" height="64" border="0" ></a></div></td> <td><div align="center"></div></td> <td><div align="center"><a href="<%=dir%>/<%=busca_img11%>"rel="lightbox[plants]"><img src="<%=dir%>/<%=busca_img11%>" width="88" height="64" border="0" ></a></div></td> <td><div align="center"></div></td> <td><div align="center"><a href="<%=dir%>/<%=busca_img12%>"rel="lightbox[plants]"> <img src="<%=dir%>/<%=busca_img12%>" width="88" height="64" border="0" ></a></div></td> <td><div align="center"></div></td> </tr> </table> <div align="center"><br> <br> <a href="javascript:history.go(-1)"><br> <br> <img src="voltar.png" border="0"></a> </div></td> </tr> <tr> <td>&nbsp;</td> </tr> </table></td> </tr> </table> <% busca_foto.MoveNext Wend busca_foto.Close set busca_foto = Nothing marca.MoveNext Wend marca.Close set marca = Nothing lista_busca.movenext If malha1 = "sim" Then malha1 = "não" Else malha1 = "sim" End If wend End If lista_busca.Close set lista_busca = Nothing %> <!--- /// FIM RESULTADO /// -------> </td> </tr> <tr> <td></td> </tr> <tr> <td height="19">&nbsp; </td> </tr> <tr> <td></td> </tr> <tr> <td></td> </tr> </table> </center> </div> </div></td> </tr> </table> </td> </tr> </table> </div></td> <td width="1%"><div align="center"></div></td> </tr> </table> </div></td> </tr> </tbody> </table></td> </tr> </table> </td> </tr> <tr> <td align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td> </tr> <tr> <td height="66"><div align="center"> <div align="center"> <table width="100%" height="150" border="0" align="center" cellpadding="0" cellspacing="0" background="bg_footer.png"> <tr> <td> <div align="center"> <table width="990" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="173"><div align="left"><font color="#FFFFFF" size="2" face="Trebuchet MS"><a href="vendas.asp">+ VENDAS</a><br> <a href="aluguel.asp">+ ALUGU&Eacute;IS</a><br> <a href="empresa.asp">+ EMPRESA</a><br> <a href="empreendimentos.asp">+ EMPREENDIMENTOS</a><br> <a href="contato.asp">+ CONTATO</a></font><br> </div></td> <td width="514"><div align="center"><strong><font color="#CC3333" size="2" face="Trebuchet MS">Redes Sociais</font></strong><br> <br> <table width="101" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="81"><a href="https://www.facebook.com/clarelimoveis/?fref=ts" target="_blank"><img src="facebook.png" width="46" height="47" border="0"></a></td> <td width="69"><img src="twitter.png" width="46" height="47"></td> </tr> </table> <br> </div></td> <td width="303"><div align="left"><font color="#FFFFFF" size="2" face="Trebuchet MS"><strong><font color="#CC3333">&copy; Clarel Im&oacute;veis</font><br> Rua Jo&atilde;o Neves da Fontoura, 746<br> S&atilde;o Leopoldo/RS, Brasil<br> Centro / Cep: <font face="Trebuchet MS"><strong>93010-050</strong></font><br> F: (51) 3037-1500<br> clarel@clarelimoveis.com.br</strong></font></div> </td> </tr> </table> </div></td> </tr> </table> </div> </div></td> </tr> </table> </body> </html>
×
×
  • Criar Novo...