[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare - Webpage News Admin * 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 * This program was sponsered by Golden Glair productions * 12 * http://www.goldenglair.com * 13 \**************************************************************************/ 14 15 /* $Id: hook_sidebox_menu.inc.php 22373 2006-08-30 06:37:38Z ralfbecker $ */ 16 { 17 18 /* 19 This hookfile is for generating an app-specific side menu used in the idots 20 template set. 21 22 $menu_title speaks for itself 23 $file is the array with link to app functions 24 25 display_sidebox can be called as much as you like 26 */ 27 28 $menu_title = $GLOBALS['egw_info']['apps'][$appname]['title'] . ' '. lang('Menu'); 29 $file = Array( 30 'read news' => $GLOBALS['egw']->link('/news_admin/index.php'), 31 'Add New Article' => $GLOBALS['egw']->link('/index.php','menuaction=news_admin.uinews.add') 32 ); 33 display_sidebox($appname,$menu_title,$file); 34 35 $title = lang('Preferences'); 36 $file = array( 37 'Preferences' => $GLOBALS['egw']->link('/index.php','menuaction=preferences.uisettings.index&appname=' . $appname) 38 ); 39 display_sidebox($appname,$title,$file); 40 41 if($GLOBALS['egw_info']['user']['apps']['admin']) 42 { 43 $title = lang('Administration'); 44 $file = Array( 45 'News Administration' => $GLOBALS['egw']->link('/index.php','menuaction=news_admin.uinews.write_news'), 46 'Site Configuration' => $GLOBALS['egw']->link('/index.php','menuaction=admin.uiconfig.index&appname=' . $appname), 47 'global categories' => $GLOBALS['egw']->link('/index.php','menuaction=admin.uicategories.index&appname=' . $appname), 48 'configure access permissions' => $GLOBALS['egw']->link('/index.php','menuaction=news_admin.uiacl.acllist'), 49 'configure rss exports' => $GLOBALS['egw']->link('/index.php','menuaction=news_admin.uiexport.exportlist') 50 ); 51 52 display_sidebox($appname,$title,$file); 53 } 54 unset($title); 55 unset($file); 56 } 57 ?>
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 |