08-04-07, 09:27
|
# 4
|
מ.תיכנות
|
PHP קוד:
<?Php
$myMenu = array( '/index.php' => 'עמוד ראשי', '/pictures.php' => 'פורומים', '/forums.php' => 'תמונות' ); // Pages
foreach($myMenu as $page => $menu) { $currentPage = $_SERVER['PHP_SELF']; if($page == $currentPage) { print '<strong>'.$menu.'</strong> | '; } else { print $menu . ' | '; } }
?>
מקווה שעזר
|
|
|