[ Index ]
 

Code source de eGroupWare 1.2.106-2

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

title

Body

[fermer]

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

   1  <?php
   2      /**************************************************************************\
   3      * eGroupWare - Polls                                                       *
   4      * http://www.egroupware.org                                                *
   5      * Copyright (c) 1999 Till Gerken (tig@skv.org)                             *
   6      * Modified by Greg Haygood (shrykedude@bellsouth.net)                      *
   7      * -----------------------------------------------                          *
   8      *  This program is free software; you can redistribute it and/or modify it *
   9      *  under the terms of the GNU General Public License as published by the   *
  10      *  Free Software Foundation; either version 2 of the License, or (at your  *
  11      *  option) any later version.                                              *
  12      \**************************************************************************/
  13  
  14      /* $Id: hook_sidebox_menu.inc.php 19418 2005-10-14 16:10:00Z ralfbecker $ */
  15  {
  16  
  17   /*
  18      This hookfile is for generating an app-specific side menu used in the idots
  19      template set.
  20  
  21      $menu_title speaks for itself
  22      $file is the array with link to app functions
  23  
  24      display_sidebox can be called as much as you like
  25   */
  26  
  27      $menu_title = 'Polls Menu';
  28      $file = Array(
  29          'Current Poll'
  30              => $GLOBALS['egw']->link('/index.php', array('menuaction'=>'polls.ui.index')),
  31          'View Results' 
  32              => $GLOBALS['egw']->link('/index.php', array('menuaction'=>'polls.ui.vote','show_results'=>$GLOBALS['poll_settings']['currentpoll']))
  33      );
  34      display_sidebox($appname,$menu_title,$file);
  35  
  36  /*
  37      $menu_title = 'Preferences';
  38      $file = Array(
  39  
  40      );
  41      display_sidebox($appname,$menu_title,$file);
  42  */
  43  
  44      if($GLOBALS['egw_info']['user']['apps']['admin'])
  45      {
  46          $menu_title = 'Administration';
  47          $file = Array(
  48              'Poll Settings'
  49                  => $GLOBALS['egw']->link('/index.php', array('menuaction'=>'polls.ui.admin','action'=>'settings')),
  50              'Show Questions'
  51                  => $GLOBALS['egw']->link('/index.php', array('menuaction'=>'polls.ui.admin','action'=>'show','type'=>'question')),
  52              'Add Questions'
  53                  => $GLOBALS['egw']->link('/index.php', array('menuaction'=>'polls.ui.admin','action'=>'add','type'=>'question')),
  54              'Add Answers'
  55                  => $GLOBALS['egw']->link('/index.php', array('menuaction'=>'polls.ui.admin','action'=>'add','type'=>'answer')),
  56          );
  57  
  58          display_sidebox($appname,$menu_title,$file);
  59      }
  60  }
  61  ?>


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