strsepara=split(strconta(3),"-") set encontraid=conn.execute("SELECT idcidade FROM cidade INNER JOIN estados ON cidade.idestado=estados.idestado WHERE cidade='"&strsepara(2)&"' AND uf='"&strsepara(2)&"';") set vestido=conn.execute("SELECT * FROM vestido WHERE idcidade="&stridcidade&" AND status=1;") If NOT vestido.eof then do while not vestido.eof set foto=conn.execute("SELECT * FROM fotos WHERE idvestido="&vestido("idvestido")&" ;") If foto.EOF then strfoto="imagens/semfoto2.jpg" strbordertr="ffffff" else strfoto="upload/"&foto("nome") strbordertr="000000" end if i=i+1 set estado=conn.execute("SELECT UF FROM estados WHERE idestado="&vestido("idestado")&";") strlocal=vestido("cidade")&"/"&estado("UF") If vestido("novo")=1 then strnovo="Novo" else strnovo="Usado" end if select case vestido("vendoalugo") case 1 If vestido("observacoespreco")<>"" or isnull(vestido("observacoespreco"))=false or len(vestido("observacoespreco"))=0 then strobservacao=" ("&vestido("observacoespreco")&")" else strobservacao="" end if If vestido("precovenda")=0 then strvendoalugo="VENDO (consultar preço com o anunciante)" else strvendoalugo="VENDO: R$"&formatnumber(vestido("precovenda"),2)&strobservacao end if case 2 If vestido("observacoes")<>"" or isnull(vestido("observacoes"))=false or len(vestido("observacoes"))=0 then strobservacao=" ("&vestido("observacoes")&")" else strobservacao="" end if If vestido("precoaluguel")=0 then strvendoalugo="ALUGO (consultar preço de aluguel com o anunciante)" else strvendoalugo="ALUGO: R$"&formatnumber(vestido("precoaluguel"),2)&strobservacao end if case 3 If len(vestido("observacoes"))>2 then strobservacaoaluguel=" ("&vestido("observacoes")&")" else strobservacaoaluguel="" end if If len(vestido("observacoespreco"))>2 then strobservacaovenda=" ("&vestido("observacoespreco")&")" else strobservacaovenda="" end if If vestido("precoaluguel")=0 then strvendoalugo="ALUGO (consultar preço de aluguel com o anunciante)" else strvendoalugo="ALUGO: R$"&formatnumber(vestido("precoaluguel"),2)&strobservacao end if strvendoalugo="VENDO OU ALUGO" If vestido("precovenda")=0 AND vestido("precoaluguel")=0 then strvendoalugo=strvendoalugo&" (consultar preços com o anunciante)" else If vestido("precoaluguel")=0 AND NOT vestido("precovenda")=0 then strvendoalugo=strvendoalugo&"
Preço Venda: "&formatnumber(vestido("precovenda"),2) strvendoalugo=strvendoalugo&strobservacaovenda&" (Preço de aluguel, consultar anunciante))
" else If vestido("precovenda")=0 AND NOT vestido("precoaluguel")=0 then strvendoalugo=strvendoalugo&"
Preço Aluguel: "&formatnumber(vestido("precoaluguel"),2) strvendoalugo=strvendoalugo&strobservacaovenda&" (Preço de venda, consultar anunciante))
" else If NOT vestido("precoaluguel")=0 AND NOT vestido("precovenda")=0 then strvendoalugo=strvendoalugo&"
Preço Venda: "&formatnumber(vestido("precovenda"),2) strvendoalugo=strvendoalugo&strobservacaovenda strvendoalugo=strvendoalugo&"
Preço Aluguel: "&formatnumber(vestido("precoaluguel"),2) strvendoalugo=strvendoalugo&strobservacaoaluguel end if end if end if end if end select strhtml=strhtml&"

VOCÊ ESTÁ EM "&ucase(nomeestado("estado"))&" » "&ucase(nomecidade("cidade"))&"
" strhtml=strhtml&"" strhtml=strhtml&"" strhtml=strhtml&"" strhtml=strhtml&"
"&i&") "&vestido("titulo")&"
" strhtml=strhtml&""&strvendoalugo&"

" strhtml=strhtml&"Novo ou Usado?: "&strnovo&"
" strhtml=strhtml&"Cor: "&vestido("cor")&"
" strhtml=strhtml&"Busto: "&vestido("busto")&" cm  Cintura: "&vestido("cintura")&" cm  Quadris: "&vestido("quadril")&" cm
" strhtml=strhtml&"Local onde está o vestido: "&strlocal&"" strhtml=strhtml&"

"&vestido("descricaogeral")&"" strhtml=strhtml&"

» Clique aqui para ver mais detalhes

" vestido.movenext loop end if response.write strhtml