Location: PHPKode > projects > Modular Railroad Asset/Meeting Mgmt > fredl-2-1-9-Release/module/modulmenu.php
<?php
    require_once('../php/fredlSession.php');
    /****************************************************************
     * FREMO Asset Management
     * Module: modulmenu.php
     * Description: Let users change their settings, name, password.
     *
     * Created: 12/2003
     * $Log: modulmenu.php,v $
     * Revision 1.11  2005/05/10 23:30:34  dirkj
     * Introduced logDebug.
     *
     * Revision 1.10  2005/05/10 21:39:28  dirkj
     * Added the log of menu display.
     *
     * Revision 1.9  2005/04/23 19:16:08  dirkj
     * Lola Work in progress: step 5
     *
     * Revision 1.8  2004/11/13 23:20:11  dirkj
     * Added submenu class definition to table cells (td)
     * of submenu items.
     *
     * Revision 1.7  2004/11/01 12:35:47  dirkj
     * Modified session handling.
     *
     * Revision 1.6  2004/10/05 06:56:14  dirkj
     * Module handling reimplemented, based on new class Module.
     * Added new fields to module table.
     *
     * Revision 1.5  2004/07/20 20:42:25  klk32002
     * New menu "Hilfe" added.
     *
     * Revision 1.4  2004/06/22 21:27:46  dirkj
     * Added log.
     *
     ****************************************************************/
    require_once '../php/sessionhelpers.inc.php';
    require_once '../php/uihelpers.inc.php';
    require_once '../lib/lang.php';

    $usrObj=getUserObject();
    $l = new Lang($usrObj->langid, "module-menu", "general");

    logDebug('module-menu');
    print "<html>";
    print "<head>";
    print '<link rel="stylesheet" type="text/css" href="../'.$myStyleSheet.'">';
    print "</head>";

   print '<body class=left>';
   print '<table width="100%">';
   print '<tr><td><hr></td></tr>';
   print '<tr><td><h3>';
   print $l->get('general-modules','Module');
   print '</h3></td></tr>';
   print '<tr><td><hr></td></tr>';
   if (userHasAccess($usrObj->id, 'mymodules'))
   {
      print '<tr><td class="submenu">'; createSubMenu($l->get('module-mymodules',"Meine Module"), "modulelist.php?mylist");
      print '</td></tr>';
   }
   if (userHasAccess($usrObj->id, 'allmodules'))
   {
      // print '<tr><td><hr></td></tr>';
      print '<tr><td class="submenu">'; createSubMenu($l->get('module-allmodules',"Alle Module"), "modulelist.php");
      print '</td></tr>';
   }
   print '<tr><td><hr></td></tr>';
   if (userHasAccess($usrObj->id, 'newmodule'))
   {
      print '<tr><td class="submenu">'; createSubMenu($l->get('module-newmodule',"Neues Modul"), "editmodule.php?mode=new");
      print '</td></tr>';
   }
   print '<tr><td><hr></td></tr>';
   
      
   print '<tr><td>&nbsp;</td></tr><tr><td>&nbsp;</td></tr><tr>';
   print '<tr><td><hr></td></tr>';
   print '<tr><td class="submenu">'; createSubMenu($l->get('general-help',"Hilfe"), "../help.php?topic=Module");
   print '</td></tr>';
   print '<tr><td><hr></td></tr>';
   print '</table>';
   print $l->getTranslationHelperUI();
   print '</body>';
   print '</html>';

?>
Return current item: Modular Railroad Asset/Meeting Mgmt