"")
{
$and = " AND mt.prezzo >= ".$_POST['prezzomin'];
$n='0';
}
if ($_POST['prezzomax'] <> "")
{
$and = $and." AND mt.prezzo <= ".$_POST['prezzomax'];
$n='0';
}
if ($_POST['tipomotore'] <> "")
{
$and = $and." AND mt.tipomotore = '".$_POST['tipomotore']."'";
$n='0';
}
if ($_POST['cilindratamin'] <> "")
{
$and = $and." AND mt.cilindrata >= ".$_POST['cilindratamin'];
$n='0';
}
if ($_POST['cilindratamax'] <> "")
{
$and = $and." AND mt.cilindrata <= ".$_POST['cilindratamax'];
$n='0';
}
if ($_POST['cilindrimin'] <> "")
{
$and = $and." AND mt.cilindri >= ".$_POST['cilindrimin'];
$n='0';
}
if ($_POST['cilindrimax'] <> "")
{
$and = $and." AND mt.cilindri <= ".$_POST['cilindrimax'];
$n='0';
}
if ($_POST['potenzamin'] <> "")
{
$and = $and." AND mt.potenza >= ".$_POST['potenzamin'];
$n='0';
}
if ($_POST['potenzamax'] <> "")
{
$and = $and." AND mt.potenza <= ".$_POST['potenzamax'];
$n='0';
}
if ($_POST['coppiamin'] <> "")
{
$and = $and." AND mt.coppia >= ".$_POST['coppiamin'];
$n='0';
}
if ($_POST['coppiamax'] <> "")
{
$and = $and." AND mt.coppia <= ".$_POST['coppiamax'];
$n='0';
}
if ($_POST['pesomin'] <> "")
{
$and = $and." AND mt.massa >= ".$_POST['pesomin'];
$n='0';
}
if ($_POST['pesomax'] <> "")
{
$and = $and." AND mt.massa <= ".$_POST['pesomax'];
$n='0';
}
if ($_POST['pesopotmin'] <> "")
{
$and = $and." AND mt.peso_pot >= ".strtr($_POST['pesopotmin'],",",".");
$n='0';
}
if ($_POST['pesopotmax'] <> "")
{
$and = $and." AND mt.peso_pot <= ".strtr($_POST['pesopotmax'],",",".");
$n='0';
}
if ($_POST['potspecmin'] <> "")
{
$and = $and." AND mt.potenza_litro >= ".$_POST['potspecmin'];
$n='0';
}
if ($_POST['potspecmax'] <> "")
{
$and = $and." AND mt.potenza_litro <= ".$_POST['potspecmax'];
$n='0';
}
if ($_POST['zero_centomin'] <> "")
{
$and = $and." AND mt.zero_cento >= ".strtr($_POST['zero_centomin'],",",".");
$n='0';
}
if ($_POST['zero_centomax'] <> "")
{
$and = $and." AND mt.zero_cento <= ".strtr($_POST['zero_centomax'],",",".");
$n='0';
}
if ($_POST['velmaxmin'] <> "")
{
$and = $and." AND mt.velmax >= ".$_POST['velmaxmin'];
$n='0';
}
if ($_POST['velmaxmax'] <> "")
{
$and = $and." AND mt.velmax <= ".$_POST['velmaxmax'];
$n='0';
}
if ($_POST['combmin'] <> "")
{
$and = $and." AND mt.ccomplessivo >= ".$_POST['combmin'];
$n='0';
}
if ($_POST['combmax'] <> "")
{
$and = $and." AND mt.ccomplessivo <= ".$_POST['combmax'];
$n='0';
}
if ($_POST['trazione'] <> "")
{
$and = $and." AND mt.trazione = '".$_POST['trazione']."'";
$n='0';
}
if ($_POST['carburante'] <> "")
{
$and = $and." AND mt.carburante = '".$_POST['carburante']."'";
$n='0';
}
$sql_motorizzazione_numero= "select count(*) numero "
."from cms_motorizz mt, cms_modello md, cms_serie sr, cms_ristoranti rs "
."where mt.id_modello = md.id "
."and sr.id = md.id_marca "
."and rs.id = sr.id_marca ";
$sql_result_motorizzazione_numero=mysql_query($sql_motorizzazione_numero.$and, $connection) or die(mysql_error());
$ValoriRigaMotorizzazioneNumero = mysql_fetch_array($sql_result_motorizzazione_numero);
if($ValoriRigaMotorizzazioneNumero[numero]>0)
{
$sql_motorizzazione= "select mt.id id_motorizz, "
."rs.id id_marca, "
."rs.nome nome_marca, "
."sr.id id_serie, "
."sr.nome nome_serie, "
."md.id id_modello, "
."md.modello modello, "
."mt.prezzo prezzo, "
."mt.cilindrata cilindrata, "
."mt.tipomotore tipomotore, "
."mt.cilindri cilindri, "
."mt.carburante alimentazione, "
."mt.img img, "
."mt.potenza potenza, "
."mt.potenzaGiri potenzagiri, "
."mt.coppia coppia, "
."mt.coppiaGiri coppiagiri, "
."mt.compressione compressione, "
."mt.emissioni normativa, "
."mt.cambio cambio, "
."mt.differenziali differenziali, "
."mt.trazione trazione, "
."mt.massa peso, "
."mt.velmax velmax, "
."mt.zero_cento zero_cento, "
."mt.zeromille zeromille, "
."mt.cextrau xurb, "
."mt.curbano urb, "
."mt.ccomplessivo combinato, "
."mt.potenza_litro pesospec, "
."mt.peso_pot pesopot, "
."mt.lung lunghezza, "
."mt.larg larghezza, "
."mt.alt altezza, "
."mt.passo passo, "
."mt.pneuant pneumatici_ant, "
."mt.pneupost pneumatici_post, "
."mt.img img, "
."mt.tipologia tipologia "
."from cms_motorizz mt, cms_modello md, cms_serie sr, cms_ristoranti rs "
."where mt.id_modello = md.id "
."and sr.id = md.id_marca "
."and mt.fuorip <> '1' "
."and rs.id = sr.id_marca ";
$sql_result_motorizzazione=mysql_query($sql_motorizzazione.$and, $connection) or die(mysql_error());
}
else
{
$nessunaauto='Nessuna auto soddisfa i criteri di ricerca impostati';
}
}
$sql_messaggio_help= "select testo_messaggio "
."from messaggi "
."where tipo_messaggio = 'help' "
."and pagina_messaggio ='confronta' ";
$sql_result_messaggio_help=mysql_query($sql_messaggio_help, $connection) or die(mysql_error());
$ValoriRigaMessaggio = mysql_fetch_array($sql_result_messaggio_help);
?>
Ricerca Avanzata | GTevoluzione.it
|
|
|
0)
{
?>
Modello |
Foto |
Prezzo |
CC |
Tipo motore |
Cil. |
Alim. |
Potenza |
Coppia |
Comp. |
Norm. |
Cambio |
Diff. |
Traz. |
PESO |
V.MAX |
0-100 |
0-1000 |
C.Xurb |
C.Urb |
C.Comb |
P.Spec |
Kg/CV |
Lung. |
Larg. |
Alt. |
Passo |
Pneum. |
Tipologia |
Modello |
--///.html>
|
|
|
|
|
|
|
|
() |
() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- |
|
--///.html>
|
|
Righe per pagina
|
|
Pagina visualizzata di
|
|
|
|
|
|
|