function drawMenu menu vertical true style vertical style float left e

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
function drawMenu($menu, $vertical = true){
$style = ($vertical) ? '' : 'style="float:left;"' ;
echo '<ul>';
foreach($menu as $menus){
echo '<li '.$style.'>';
echo '<a href="'.$menus['href'].'">'.$menus['link'].'</a>';
echo '</li>';
}
echo '</ul>';
}