'; $menuSelect = ''; /*################################ ## generate the car category selection menu ################################ */ foreach ($carCategoriesList as $cat) { $class = ''; $selected = ''; //if the category contain no cars we do no consider it //todo: should we display only officially released ones? if ($cat->totalCars > 0) { //if no category has been chosen by the user, used the first valid (non empty) one if ($carCatId == '') $carCatId = $cat->id; //set a splecial class for the menu item that represent the currently selected class if ($carCatId == $cat->id ) { $class = 'class="selected"'; $selected = 'selected'; } //echo "\n".$category->name.""; $url = rewriteUrl('cat', $cat->id); $menu .= "{$cat->name}"; $menuSelect .= "{$cat->name}"; } } $menu .= ''; $menuSelect .= ''; ?>