[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare - Knowledge Base * 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 19830 2005-11-14 19:37:58Z regis_glc $ */ 13 { 14 $apptitle = $GLOBALS['egw_info']['apps'][$appname]['title']; 15 // Configuration 16 $file = Array(); 17 $menu_title = lang('%1 Configuration', $apptitle); 18 // checking for workflow admin acl 19 if ( ($GLOBALS['egw']->acl->check('admin_workflow',1,'workflow')) || ($GLOBALS['egw']->acl->check('run',1,'admin')) ) 20 { 21 $file['Admin Processes'] = $GLOBALS['egw']->link('/index.php','menuaction=workflow.ui_adminprocesses.form'); 22 $file['Default config values'] = $GLOBALS['egw']->link('/index.php',array( 23 'menuaction' => 'admin.uiconfig.index', 24 'appname' => $appname, 25 )); 26 $file['Global Categories'] = $GLOBALS['egw']->link('/index.php', array( 27 'menuaction' => 'admin.uicategories.index', 28 'appname' => $appname, 29 )); 30 31 } 32 $file['Workflow Preferences'] = $GLOBALS['egw']->link('/index.php', array( 33 'menuaction' => 'preferences.uisettings.index', 34 'appname' => $appname 35 )); 36 display_sidebox($appname,$menu_title,$file); 37 38 //Monitoring 39 //checking for workflow monitoring acl 40 if ( ($GLOBALS['egw']->acl->check('monitor_workflow',1,'workflow')) || ($GLOBALS['egw']->acl->check('run',1,'admin')) ) 41 { 42 $file = Array(); 43 $menu_title = lang('%1 Monitoring', $apptitle); 44 $file['Monitors'] = $GLOBALS['egw']->link('/index.php','menuaction=workflow.ui_monitors.form'); 45 display_sidebox($appname,$menu_title,$file); 46 } 47 48 // no acl 49 $file = Array(); 50 $menu_title = lang('%1 Menu', $apptitle); 51 $file['New Instance'] = $GLOBALS['egw']->link('/index.php','menuaction=workflow.ui_useropeninstance.form'); 52 $file['Global activities'] = $GLOBALS['egw']->link('/index.php','menuaction=workflow.ui_useractivities.form&show_globals=1'); 53 $file['My Processes'] = $GLOBALS['egw']->link('/index.php','menuaction=workflow.ui_userprocesses.form'); 54 $file['My Activities'] = $GLOBALS['egw']->link('/index.php','menuaction=workflow.ui_useractivities.form'); 55 $file['My Instances'] = $GLOBALS['egw']->link('/index.php','menuaction=workflow.ui_userinstances.form'); 56 57 display_sidebox($appname,$menu_title,$file); 58 } 59 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |