more initial code
[glcas.git] / lib / plugins / www.php
index 7811bea..1738c23 100644 (file)
@@ -92,12 +92,22 @@ function www_header()
 
 function www_top()
 {
-       echo "i be a top, yar";
+       echo "<h1>Welcome to GLCAS</h1>";
+       echo "<table><tr>";
+       
+       global $MENU_ITEMS;
+       foreach($MENU_ITEMS as $mes) {
+               $mtext = $mes["title"];
+               $mlink = $mes["link"];
+               echo "<td><a href=\"$mlink\">$mtext</a></td>";
+       }
+       
+       echo "</tr></table>";
 }
 
 function www_leftmenu()
 {
-       echo "i be a menu, yar";
+       echo "i be a left menu, yar";
 }
 
 function www_contentpane()