[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/calendar/inc/ -> class.calendarmenu.inc.php (source)

   1  <?php
   2    /**************************************************************************\
   3    * eGroupWare - Calendar                                                    *
   4    * http://www.egroupware.org                                                *
   5    * Based on Webcalendar by Craig Knudsen <cknudsen@radix.net>               *
   6    *          http://www.radix.net/~cknudsen                                  *
   7    * Modified by Mark Peters <skeeter@phpgroupware.org>                       *
   8    * --------------------------------------------                             *
   9    *  This program is free software; you can redistribute it and/or modify it *
  10    *  under the terms of the GNU General Public License as published by the   *
  11    *  Free Software Foundation; either version 2 of the License, or (at your  *
  12    *  option) any later version.                                              *
  13    \**************************************************************************/
  14  
  15      /* $Id: class.calendarmenu.inc.php 20295 2006-02-15 12:31:25Z  $ */
  16  
  17      class calendarmenu
  18      {
  19  
  20  
  21  		function calendarmenu()
  22          {
  23              $menu = Array();
  24              $menu['File'] = Array(
  25                  'New Entry'   => $GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.add'),
  26                  'Export'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.export'),
  27                  'Import'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uiicalendar.import')
  28                  );
  29                  
  30              $menu['View'] = Array(
  31                  'Today'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.day'),
  32                  'This week'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.week'),
  33                  'This month'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.month'),
  34                  'This year'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.year'),
  35                  'Group Planner'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.planner'),
  36                  'Daily Matrix'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicalendar.matrixselect')
  37                  );
  38                  
  39              $menu['Preferences'] = Array(
  40                  'Calendar preferences'=>$GLOBALS['phpgw']->link('/preferences/preferences.php','appname=calendar'),
  41                  'Grant Access'=>$GLOBALS['phpgw']->link('/index.php','menuaction=preferences.uiaclprefs.index&acl_app=calendar'),
  42                  'Edit Categories' => $GLOBALS['phpgw']->link('/index.php','menuaction=preferences.uicategories.index&cats_app=calendar&cats_level=True&global_cats=True')
  43                  );
  44              
  45              if ($GLOBALS['phpgw_info']['user']['apps']['admin']) {
  46                  $menu['Administration'] = Array(
  47                      'Configuration'=>$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uiconfig.index&appname=calendar'),
  48                      'Custom Fields'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uicustom_fields.index'),
  49                      'Holiday Management'=>$GLOBALS['phpgw']->link('/index.php','menuaction=calendar.uiholiday.admin'),
  50                      'Import CSV-File' => $GLOBALS['phpgw']->link('/calendar/csv_import.php'),
  51                      'Global Categories' =>$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uicategories.index&appname=calendar')
  52                      );
  53              }
  54          
  55          
  56              return $menu;
  57          }
  58          
  59      }    
  60  ?>


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7