[ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare - InfoLog Admin-, Preferences- and SideboxMenu-Hooks * 4 * http://www.eGroupWare.org * 5 * Written and (c) by Ralf Becker <RalfBecker@outdoor-training.de> * 6 * ------------------------------------------------------- * 7 * This program is free software; you can redistribute it and/or modify it * 8 * under the terms of the GNU General Public License as published by the * 9 * Free Software Foundation; either version 2 of the License, or (at your * 10 * option) any later version. * 11 \**************************************************************************/ 12 13 /* $Id: class.admin_prefs_sidebox_hooks.inc.php 19865 2005-11-18 16:12:29Z ralfbecker $ */ 14 15 /** 16 * Class containing admin, preferences and sidebox-menus (used as hooks) 17 * 18 * @package infolog 19 * @author Ralf Becker <RalfBecker@outdoor-training.de> 20 * @copyright (c) by Ralf Becker <RalfBecker@outdoor-training.de> 21 * @license http://opensource.org/licenses/gpl-license.php GPL - GNU General Public License 22 */ 23 class admin_prefs_sidebox_hooks 24 { 25 function all_hooks($args) 26 { 27 $appname = 'infolog'; 28 $location = is_array($args) ? $args['location'] : $args; 29 //echo "<p>admin_prefs_sidebox_hooks::all_hooks(".print_r($args,True).") appname='$appname', location='$location'</p>\n"; 30 31 if ($location == 'sidebox_menu') 32 { 33 $file = array( 34 'infolog list' => $GLOBALS['egw']->link('/index.php',array( 35 'menuaction' => 'infolog.uiinfolog.index' )), 36 array( 37 'text' => '<a class="textSidebox" href="'.htmlspecialchars($GLOBALS['egw']->link('/index.php',array( 38 'menuaction' => 'infolog.uiinfolog.edit', 39 ))).'" target="_blank" onclick="window.open(this.href,this.target,\'dependent=yes,width=750,height=550,scrollbars=yes,status=yes\'); return false;">'.lang('Add').'</a>', 40 'no_lang' => true, 41 ) 42 ); 43 display_sidebox($appname,$GLOBALS['egw_info']['apps']['infolog']['title'].' '.lang('Menu'),$file); 44 } 45 46 if ($GLOBALS['egw_info']['user']['apps']['preferences'] && $location != 'admin') 47 { 48 $file = array( 49 'Preferences' => $GLOBALS['egw']->link('/index.php','menuaction=preferences.uisettings.index&appname='.$appname), 50 'Grant Access' => $GLOBALS['egw']->link('/index.php','menuaction=preferences.uiaclprefs.index&acl_app='.$appname), 51 'Edit Categories' => $GLOBALS['egw']->link('/index.php','menuaction=preferences.uicategories.index&cats_app=' . $appname . '&cats_level=True&global_cats=True') 52 ); 53 if ($location == 'preferences') 54 { 55 display_section($appname,$file); 56 } 57 else 58 { 59 display_sidebox($appname,lang('Preferences'),$file); 60 } 61 } 62 63 if ($GLOBALS['egw_info']['user']['apps']['admin'] && $location != 'preferences') 64 { 65 $file = Array( 66 'Site configuration' => $GLOBALS['egw']->link('/index.php',array( 67 'menuaction' => 'infolog.uiinfolog.admin' )), 68 'Global Categories' => $GLOBALS['egw']->link('/index.php',array( 69 'menuaction' => 'admin.uicategories.index', 70 'appname' => $appname, 71 'global_cats'=> True)), 72 'Custom fields, typ and status' => $GLOBALS['egw']->link('/index.php',array( 73 'menuaction' => 'infolog.uicustomfields.edit')), 74 'CSV-Import' => $GLOBALS['egw']->link('/infolog/csv_import.php') 75 ); 76 if ($location == 'admin') 77 { 78 display_section($appname,$file); 79 } 80 else 81 { 82 display_sidebox($appname,lang('Admin'),$file); 83 } 84 } 85 } 86 } 87 88 ?>
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 |