From 936d6dd022950f9eec1b4b91bf725293ce7174af Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 24 May 2001 15:06:42 +0000 Subject: [PATCH] using display_section for hook_admin+hook_preferences --- infolog/doc/lang_de.sql | 1 + infolog/inc/hook_admin.inc.php | 16 +++++++------ infolog/inc/hook_preferences.inc.php | 35 +++++++++------------------- 3 files changed, 21 insertions(+), 31 deletions(-) diff --git a/infolog/doc/lang_de.sql b/infolog/doc/lang_de.sql index a97d5329cd..c8b133d2a9 100644 --- a/infolog/doc/lang_de.sql +++ b/infolog/doc/lang_de.sql @@ -1,4 +1,5 @@ INSERT INTO lang VALUES ('infolog','common','de','InfoLog'); +INSERT INTO lang VALUES ('csv-import','admin','de','CSV-Import'); INSERT INTO lang VALUES ('urgency','infolog','de','Priorität'); INSERT INTO lang VALUES ('sub','infolog','de','Teil-
projekte'); INSERT INTO lang VALUES ('add sub','infolog','de','neues Teilprojekt anlegen'); diff --git a/infolog/inc/hook_admin.inc.php b/infolog/inc/hook_admin.inc.php index b06d9b93e8..6291e22102 100644 --- a/infolog/inc/hook_admin.inc.php +++ b/infolog/inc/hook_admin.inc.php @@ -10,11 +10,13 @@ \**************************************************************************/ /* $Id$ */ - - $imgpath = $phpgw->common->image($appname,'navbar.gif'); - section_start($appname,$imgpath); - - section_item($phpgw->link('/infolog/csv_import.php'),lang('CSV-Import')); - - section_end(); +{ +// Only Modify the $file and $title variables..... + $title = $appname; + $file = Array( + 'CSV-Import' => $phpgw->link('/infolog/csv_import.php') + ); +//Do not modify below this line + display_section($appname,$title,$file); +} ?> \ No newline at end of file diff --git a/infolog/inc/hook_preferences.inc.php b/infolog/inc/hook_preferences.inc.php index 4e9e7d2bcc..3a0ec428b5 100644 --- a/infolog/inc/hook_preferences.inc.php +++ b/infolog/inc/hook_preferences.inc.php @@ -11,30 +11,17 @@ \**************************************************************************/ /* $Id$ */ + { - - echo "

\n"; - $imgfile = $phpgw->common->get_image_dir($appname) . '/' . $appname . '.gif'; - if (file_exists($imgfile)) { - $imgpath = $phpgw->common->get_image_path($appname) . '/' . $appname . '.gif'; - } else { - $imgfile = $phpgw->common->get_image_dir($appname) . '/navbar.gif'; - - if (file_exists($imgfile)) { - $imgpath = $phpgw->common->get_image_path($appname) . '/navbar.gif'; - } else { - $imgpath = ''; - } - } - - section_start(ucfirst($appname),$imgpath); - - section_item($phpgw->link('/preferences/acl_preferences.php','acl_app=infolog'), - lang('Grant InfoLog Access')); - - section_item($phpgw->link('/preferences/categories.php','cats_app=infolog'), - lang('InfoLog categories')); - - section_end(); +// Only Modify the $file and $title variables..... + $title = $appname; + $file = Array( + // 'Preferences' => $phpgw->link('/infolog/preferences.php'), + 'Grant Access' => $phpgw->link('/preferences/acl_preferences.php','acl_app='.$appname), + 'Edit Categories' => $phpgw->link('/preferences/categories.php','cats_app='.$appname), + ); +//Do not modify below this line + display_section($appname,$title,$file); } + ?>