Location: PHPKode > projects > Modular Railroad Asset/Meeting Mgmt > fredl-2-1-9-Release/loco/locomenu.php
<?php
    require_once('../php/fredlSession.php');
    /****************************************************************
     * FREMO Asset Management
     * Module: locomenu.php
     * Description: Left menu for loco management
     *
     * Created: 12/2003
     * $Log: locomenu.php,v $
     * Revision 1.10  2005/05/10 23:30:33  dirkj
     * Introduced logDebug.
     *
     * Revision 1.9  2005/05/10 21:39:28  dirkj
     * Added the log of menu display.
     *
     * Revision 1.8  2005/04/23 19:16:08  dirkj
     * Lola Work in progress: step 5
     *
     * Revision 1.7  2004/11/13 23:20:11  dirkj
     * Added submenu class definition to table cells (td)
     * of submenu items.
     *
     * Revision 1.6  2004/11/02 21:41:35  dirkj
     * New timetable reports for cargo and loco.
     *
     * Revision 1.5  2004/11/01 12:35:47  dirkj
     * Modified session handling.
     *
     * Revision 1.4  2004/07/16 07:54:43  klk32002
     * New menu "Hilfe" added.
     *
     * Revision 1.3  2004/06/21 18:40:25  dirkj
     * New loco functions and dialogues.
     * Reduce the number of files to manage locos.
     * Changed loco db-table and introduced lookup table.
     *
     ****************************************************************/
    require_once '../php/sessionhelpers.inc.php';
    require_once '../php/uihelpers.inc.php';
    require_once '../lib/lang.php';

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

    logDebug('loco-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-locos','Triebfahrzeuge');
   print '</h3></td></tr>';
   print '<tr><td><hr></td></tr>';
   print '<tr><td class="submenu">'; createSubMenu($l->get('loco-myloco',"Meine Tfz"), "locolist.php?mylist");
   print '</td></tr>';
   if (userHasAccess($usrObj->id, 'allloco'))
   {
      print '<tr><td class="submenu">'; createSubMenu($l->get('loco-allloco',"Alle Tfz"), "locolist.php");
      print '</td></tr>';
   }
   if (userHasAccess($usrObj->id, 'newloco'))
   {
      print '<tr><td><hr></td></tr>';
      print '<tr><td class="submenu">'; createSubMenu($l->get('loco-newloco',"Neues Tfz"), "editloco.php?mode=new");
      print '</td></tr>';
   }
   print '<tr><td><hr></td></tr>';
   print '<tr><td class="submenu">'; createSubMenu($l->get('general-timetable',"Zeittafel"), "../php/timetable.php?mode=mylist&type=loco");
   print '</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=Tfz");
   print '</td></tr>';
   print '<tr><td><hr></td></tr>';
   print '</table>';
   print $l->getTranslationHelperUI();
   print '</body></html>';
?>
Return current item: Modular Railroad Asset/Meeting Mgmt