* * -------------------------------------------- * * This program is free software; you can redistribute it and/or modify it * * under the terms of the GNU General Public License as published by the * * Free Software Foundation; either version 2 of the License, or (at your * * option) any later version. * \**************************************************************************/ { /* $menu_title speaks for itself $file is the array with link to app functions display_sidebox can be called as much as you like */ $menu_title = $GLOBALS['phpgw_info']['apps'][$appname]['title'] . ' '. lang('Menu'); $file = Array( 'New Entry' => "javascript:addDetails();", '_NewLine_', // give a newline 'Today'=>"javascript:calendar.getView('div_main','Day')", 'This week'=>"javascript:calendar.getView('div_main','Week')", 'This month'=>"javascript:calendar.getView('div_main','Month')", 'This year'=>"javascript:calendar.getView('div_main','Year')", '_NewLine_', // give a newline 'Import'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uiicalendar.import'), 'Report of hours'=>$GLOBALS['phpgw']->link('/calendar/inc/hourReport.php',''), 'Public Calendars'=> "javascript:openwindow('calendar/templates/celepar/publicView.php')" ); display_sidebox($appname,$menu_title,$file); if ($GLOBALS['phpgw_info']['user']['apps']['preferences']) { $menu_title = lang('Preferences'); $file = Array( 'Calendar preferences'=>$GLOBALS['phpgw']->link('/preferences/preferences.php','appname=calendar'), 'Grant Access'=>$GLOBALS['phpgw']->link('/index.php','menuaction=preferences.uiaclprefs.index&acl_app=calendar'), 'Edit Categories' =>$GLOBALS['phpgw']->link('/index.php','menuaction=preferences.uicategories.index&cats_app=calendar&cats_level=True&global_cats=True'), ); display_sidebox($appname,$menu_title,$file); } if ($GLOBALS['phpgw_info']['user']['apps']['admin']) { $menu_title = lang('Administration'); $file = Array( 'Configuration'=>$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiconfig.index&appname=calendar'), 'Custom Fields'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicustom_fields.index'), 'Holiday Management'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uiholiday.admin'), 'Import CSV-File' => $GLOBALS['phpgw']->link('/calendar/csv_import.php'), 'Global Categories' =>$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicategories.index&appname=calendar'), ); display_sidebox($appname,$menu_title,$file); } } ?>