Jump to content


korzus2007

Member Since 05/09/2007
Offline Last Active 13/12/2008, 19:39
-----

Topics I've Started

Duvida Cruel

28/03/2008, 13:09

OLÁ PESSOAL... É O SEGUINTE: ESTOU COM ESTA DUVIDA CRUEL QUE ESTÁ ACABANDO COM OS RESTOS DE MEUS CABELOS....

OLHA SÓ: TENHO UM SITE DE ANUNCIOS DE VEICULOS QUE ME RETORNA A SEGUINTE CONSULTA:

OLHA A IMAGEM ORIGINAL AÍ:

http://img99.imagesh...originalbl4.jpg

O QUE EU QUERO É QUE A LOGOMARCA DA REVENDA FIQUE ASSIM:

http://img143.images...eroassimpw9.jpg

OU SEJA, QUE ELA VÁ PRO FINAL DO ANUNCIO. MAS ELA INSISTE EM FICAR SEMPRE EM CIMA DA FOTO NO INICIO DO ANUNCIO.

SEGUE O CODIGO ABAIXO PARA ANALISE DE VOCES:



// |CÓDIGO PARA LISTAR OS CARROS COM SUAS RESPECTIVAS LOGOMARCAS DAS REVENDAS------------------------|
<?

require_once("conn.php");

require_once("includes.php");

//----------------AQUI LISTA OS CINCO VEICULOS MAIS VISTOS---------------------------------------

if($aset[Sitefee]=="0")

{

$q1 = "select * from cars_listings, cars_agents, cars_vehicle where cars_listings.AgentID = cars_agents.AgentID and cars_agents.AccountStatus = 'active' and cars_listings.VehicleMake = cars_vehicle.VehicleID order by visits desc limit 0,5 ";

}

else

{

$q1 = "select * from cars_listings, cars_agents, cars_priority, cars_vehicle where cars_listings.AgentID = cars_agents.AgentID and cars_agents.PriorityLevel = cars_priority.PriorityLevel and cars_agents.AccountStatus = 'active' and cars_listings.VehicleMake = cars_vehicle.VehicleID order by visits desc limit 0,5 ";
//---------------------------------------------------------------------------------------------

}

$r1 = mysql_query($q1) or die(mysql_error());

$lrows = mysql_num_rows($r1);

if($lrows > '0')

{

$ListingTable .= "<table align=center width=95% border=1 bordercolor=#999999 rules=rows cellspacing=0>\n";

while($a1 = mysql_fetch_array($r1))

{

$ListingTable .= "<tr style=\"border-width:0; border-color:black\" onClick=\"window.open('info.php?id=$a1[ListingID]', '_top')\">\n\t";

$ListingTable .= "<td height=80>";

$ListingTable .= "<table align=center width=\"100%\">\n";

$ListingTable .= "<tr>\n\t<td width=75>";

if(!empty($a1[image]))

{

$images = explode("|", $a1[image]);

$MyImage = $images[0];

//----------------AQUI MOSTRA A FOTO DO VEICULO------------------------------
$ListingTable .= "<img src=\"images/$MyImage\" width=75 height=60 border=0>";
//---------------------------------------------------------------------------
}

else

{

$ListingTable .= "<img src=\"no_image.gif\" border=1>";

}

$ListingTable .= "</td>\n\t";

$MyMiles = number_format($a1[mileage], 0, "", ",");

//----------------AQUI MOSTRA O MODELO E NOME DO MODELO-----------------------------------
$ListingTable .= "<td width=300 valign=top><b>$a1[VehicleName] $a1[VehicleModel]</b><br>N° da Oferta: $a1[ListingID]</td>\n\t";
//----------------------------------------------------------------------------------------

//----------------AQUI MOSTRA A KILOMETRAGEM E O ANO--------------------------------
$ListingTable .= "<td width=100 valign=top align=center>$MyMiles Km<br>$a1[VehicleYear] Ano</td>\n\t";
//----------------------------------------------------------------------------------
$MyPrice = number_format($a1[Price], 2, ".", ",");


//----------------AQUI MOSTRA O PREÇO---------------------------------------------------
$ListingTable .= "<td align=center width=100 valign=top><b>$aset[Currencya]$MyPrice</td>\n";
//-------------------------------------------------------------------------------------


//----------------AQUI MOSTRA A LOGOMARCA DA REVENDA-------------------------------------
$ListingTable .= "<a href=\"search.php?AgentID=$a1[AgentID]\"><img src=\"images/$a1[logo]\" left=50 right=40 border=0>";
//---------------------------------------------------------------------------------------
$ListingTable .= "</tr>\n";

$ShortDesc = substr($a1[DetailedDesc], 0, 200);

$ListingTable .= "<tr>\n\t<td colspan=4>$ShortDesc</td>\n</tr>\n";

$ListingTable .= "</table>\n\n</td>\n</tr>\n\n";

}

$ListingTable .= "</table>";
}

require_once("templates/HeaderTemplate.php");

require_once("templates/IndexTemplate.php");

require_once("templates/SearchTemplate.php");

require_once("templates/FooterTemplate.php");

?>

IPB Skin By Virteq