<?php
$makes = ModelCars::newInstance()->getCarMakes() ;
foreach($makes as $make) {
if(osc_version()<320) {
} else {
echo '' . $make['s_name'] . ' ';
}
}
?>
$makes = ModelCars::newInstance()->getCarMakes() ;
$i = 0;
if($makes):
echo '<table>';
echo '<tr>';
foreach($makes as $make) {
if(osc_version()<320) {
} else {
$i++;
if($i == 1) {
echo '<td>';
}
echo '' . $make['s_name'] . ' ';
if($i == 5) {
echo '</td>';
$i = 0;
}
}
}
echo '</tr>';
echo '</table>';
endif;