Changeset 664 for branches/new/index.php


Ignore:
Timestamp:
Dec 21, 2009, 4:51:44 PM (15 years ago)
Author:
Bidi
Message:

Větev NEW: Implementována metoda Menu, zatím jen pro generování menu z databáze

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new/index.php

    r663 r664  
    1616require_once('inc/server.php');
    1717require_once('inc/realm.php');
     18require_once('inc/menu.php');
    1819
    1920// classes start
     
    2425$html = new Html(0, $db);
    2526$html->Start();
     27$menu = new Menu();
    2628
    2729echo('<div id="page">'.
     
    5355echo('<br /><br />');
    5456echo('<div class="mainmenu">');
    55 foreach($ServerMenuItems as $Item)
    56 {
    57   if(array_key_exists('OnClick', $Item)) $OnClick = ' onclick="'.$Item['OnClick'].'"';
    58     else $OnClick = '';
    59   if(array_key_exists('Target', $Item)) $Target = ' target="'.$Item['Target'].'"';
    60     else $Target = '';
    61 
    62   echo('<a href="'.$Item['link'].'"'.$OnClick.$Target.'>'.$Item['Text'].'</a><br />');
    63 }
     57echo $menu->GetMenu();
    6458echo('</div>');
    6559
Note: See TracChangeset for help on using the changeset viewer.