[ Index ]
 

Code source de eGroupWare 1.2.106-2

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

title

Body

[fermer]

/bookmarks/inc/ -> hook_sidebox_menu.inc.php (source)

   1  <?php
   2    /**************************************************************************\
   3    * eGroupWare - Bookmarks                                                   *
   4    * http://www.egroupware.org                                                *
   5    * --------------------------------------------                             *
   6    *  This program is free software; you can redistribute it and/or modify it *
   7    *  under the terms of the GNU General Public License as published by the   *
   8    *  Free Software Foundation; either version 2 of the License, or (at your  *
   9    *  option) any later version.                                              *
  10    \**************************************************************************/
  11  
  12    /* $Id: hook_sidebox_menu.inc.php 20014 2005-11-27 01:17:28Z milosch $ */
  13  
  14      /*
  15      This hookfile is for generating an app-specific side menu used in the idots
  16      template set.
  17  
  18      $menu_title speaks for itself
  19      $file is the array with link to app functions
  20  
  21      display_sidebox can be called as much as you like
  22      */
  23  
  24      $file = Array(
  25          'tree view'        => $GLOBALS['egw']->link('/index.php','menuaction=bookmarks.ui.tree'),
  26          'list view'        => $GLOBALS['egw']->link('/index.php','menuaction=bookmarks.ui._list'),
  27          'new bookmark'     => $GLOBALS['egw']->link('/index.php','menuaction=bookmarks.ui.create'),
  28          'Search'           => $GLOBALS['egw']->link('/index.php','menuaction=bookmarks.ui.search'),
  29          'Import Bookmarks' => $GLOBALS['egw']->link('/index.php','menuaction=bookmarks.ui.import'),
  30          'Export Bookmarks' => $GLOBALS['egw']->link('/index.php','menuaction=bookmarks.ui.export')
  31      );
  32      display_sidebox($appname,$GLOBALS['egw_info']['apps'][$appname]['title'],$file);
  33  
  34      if($GLOBALS['egw_info']['user']['apps']['preferences'])
  35      {
  36          $menu_title = lang('Preferences');
  37          $file = array(
  38              'Grant Access'  => $GLOBALS['egw']->link('/index.php','menuaction=preferences.uiaclprefs.index&acl_app='.$appname),
  39              'Edit Categories' => $GLOBALS['egw']->link('/index.php','menuaction=preferences.uicategories.index&cats_app=' . $appname . '&cats_level=True&global_cats=True')
  40          );
  41          display_sidebox('bookmarks',$menu_title,$file);
  42      }    
  43  
  44      if ($GLOBALS['egw_info']['user']['apps']['admin'])
  45      {
  46          $menu_title = lang('Administration');
  47          $file = Array(
  48              'Site Configuration' => $GLOBALS['egw']->link('/index.php','menuaction=admin.uiconfig.index&appname=' .
  49              $appname),
  50              'Global Categories' => $GLOBALS['egw']->link('/index.php','menuaction=admin.uicategories.index&appname=bookmarks')
  51          );
  52  
  53          display_sidebox('bookmarks',$menu_title,$file);
  54      }      


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