source: trunk/calendar/inc/hook_sidebox_menu.inc.php @ 2

Revision 2, 3.3 KB checked in by niltonneto, 17 years ago (diff)

Removida todas as tags usadas pelo CVS ($Id, $Source).
Primeira versão no CVS externo.

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<?php
2  /**************************************************************************\
3  * eGroupWare - Calendar's Sidebox-Menu for idots-template                  *
4  * http://www.egroupware.org                                                *
5  * Written by Pim Snel <pim@lingewoud.nl>                                   *
6  * --------------------------------------------                             *
7  *  This program is free software; you can redistribute it and/or modify it *
8  *  under the terms of the GNU General Public License as published by the   *
9  *  Free Software Foundation; either version 2 of the License, or (at your  *
10  *  option) any later version.                                              *
11  \**************************************************************************/
12
13{
14
15 /*
16        This hookfile is for generating an app-specific side menu used in the idots
17        template set.
18
19        $menu_title speaks for itself
20        $file is the array with link to app functions
21
22        display_sidebox can be called as much as you like
23 */
24
25        $menu_title = $GLOBALS['phpgw_info']['apps'][$appname]['title'] . ' '. lang('Menu');
26        $file = Array(
27                'New Entry'   => $GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.add'),
28                '_NewLine_', // give a newline
29                'Today'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.day'),
30                'This week'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.week'),
31                'This month'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.month'),
32                'This year'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.year'),
33                'Group Planner'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.planner'),
34                'Daily Matrix View'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.matrixselect'),
35                '_NewLine_', // give a newline
36                'Import'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uiicalendar.import'),
37                'Public Calendars'=> "javascript:openwindow('calendar/templates/celepar/publicView.php')"
38        );
39        display_sidebox($appname,$menu_title,$file);
40
41        if ($GLOBALS['phpgw_info']['user']['apps']['preferences'])
42        {
43                $menu_title = lang('Preferences');
44                $file = Array(
45                        'Calendar preferences'=>$GLOBALS['phpgw']->link('/preferences/preferences.php','appname=calendar'),
46                        'Grant Access'=>$GLOBALS['phpgw']->link('/index.php','menuaction=preferences.uiaclprefs.index&acl_app=calendar'),
47                        'Edit Categories' =>$GLOBALS['phpgw']->link('/index.php','menuaction=preferences.uicategories.index&cats_app=calendar&cats_level=True&global_cats=True'),
48                );
49                display_sidebox($appname,$menu_title,$file);
50        }
51
52        if ($GLOBALS['phpgw_info']['user']['apps']['admin'])
53        {
54                $menu_title = lang('Administration');
55                $file = Array(
56                        'Configuration'=>$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiconfig.index&appname=calendar'),
57                        'Custom Fields'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicustom_fields.index'),
58                        'Holiday Management'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uiholiday.admin'),
59                        'Import CSV-File' => $GLOBALS['phpgw']->link('/calendar/csv_import.php'),
60                        'Global Categories' =>$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicategories.index&appname=calendar'),
61                );
62                display_sidebox($appname,$menu_title,$file);
63        }
64}
65?>
Note: See TracBrowser for help on using the repository browser.