|
|
|

|
$param1 = "";
$param2 = "order by marca";
$showroom->seleciona($param1,$param2);
for($i=0;$i<$showroom->qry->nrw;$i++){
//echo $showroom->desmarca.' ';
?>
if($marca <> $showroom->marca){
$marca = $showroom->marca;
?>
 |
|
 |
}
?>
$nome = array_fill(0,3,'');
$codigo = array_fill(0,3,'');
$imgpeq = array_fill(0,3,'');
$site = array_fill(0,3,'');
$i--;
for($j=0;$j<4;$j++){
if(($marca == $showroom->marca) && ($showroom->qry->nrw > ($i+1))){
$nome[$j] = $showroom->nome;
$codigo[$j] = $showroom->codigo;
$imgpeq[$j] = $showroom->imgp1;//$DOCUMENT_ROOT.'images/'.$showroom->imgp1;
$imgsp[$j][0] = is_file("images/$showroom->imgp1") ? " imgp1}\" width=120 height=80 border=0>" : "";
$imgsp[$j][1] = is_file("images/$showroom->imgp2") ? " imgp2}\" width=120 height=80 border=0>" : "";
$imgsp[$j][2] = is_file("images/$showroom->imgp3") ? " imgp3}\" width=120 height=80 border=0>" : "";
$imgsp[$j][3] = is_file("images/$showroom->imgp4") ? " imgp4}\" width=120 height=80 border=0>" : "";
$imgsp[$j][0] = is_file("images/$showroom->imgg1") ? "imgg1','','width=640,height=480,top=0,left=0');\">{$imgsp[$j][0]}" : $imgsp[$j][0];
$imgsp[$j][1] = is_file("images/$showroom->imgg2") ? "imgg2','foto','width=640,height=480,top=0,left=0');\">{$imgsp[$j][1]}" : $imgsp[$j][1];
$imgsp[$j][2] = is_file("images/$showroom->imgg3") ? "imgg3','foto','width=640,height=480,top=0,left=0');\">{$imgsp[$j][2]}" : $imgsp[$j][2];
$imgsp[$j][3] = is_file("images/$showroom->imgg4") ? "imgg4','foto','width=640,height=480,top=0,left=0');\">{$imgsp[$j][3]}" : $imgsp[$j][3];
$site[$j] = $showroom->site;
$showroom->proximo();
$i++;
}
else break;
}
//print_r($imgpeq);
?>
while(list($chave,$valor) = each($imgpeq)){
echo "";
}
?>
background="images/=$imgpeq[0]?>"> } ?> |
background="images/=$imgpeq[1]?>"> } ?> |
background="images/=$imgpeq[2]?>"> } ?> |
background="images/=$imgpeq[3]?>"> } ?> |
| =$nome[0]?> |
=$nome[1]?> |
=$nome[2]?> |
=$nome[3]?> |
if(is_file('images/'.$imgpeq[0])){?>
} ?> |
if(is_file('images/'.$imgpeq[1])){ ?>
} ?> |
if(is_file('images/'.$imgpeq[2])){ ?>
} ?> |
if(is_file('images/'.$imgpeq[3])){ ?>
} ?> |
|
//$showroom->proximo();
}
?> |
| |
|
|
|
|
|