using display_section for hook_admin+hook_preferences

This commit is contained in:
Ralf Becker 2001-05-24 15:06:42 +00:00
parent 03a7ff211e
commit 936d6dd022
3 changed files with 21 additions and 31 deletions

View File

@ -1,4 +1,5 @@
INSERT INTO lang VALUES ('infolog','common','de','InfoLog'); 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 ('urgency','infolog','de','Priorität');
INSERT INTO lang VALUES ('sub','infolog','de','Teil-<br>projekte'); INSERT INTO lang VALUES ('sub','infolog','de','Teil-<br>projekte');
INSERT INTO lang VALUES ('add sub','infolog','de','neues Teilprojekt anlegen'); INSERT INTO lang VALUES ('add sub','infolog','de','neues Teilprojekt anlegen');

View File

@ -10,11 +10,13 @@
\**************************************************************************/ \**************************************************************************/
/* $Id$ */ /* $Id$ */
{
$imgpath = $phpgw->common->image($appname,'navbar.gif'); // Only Modify the $file and $title variables.....
section_start($appname,$imgpath); $title = $appname;
$file = Array(
section_item($phpgw->link('/infolog/csv_import.php'),lang('CSV-Import')); 'CSV-Import' => $phpgw->link('/infolog/csv_import.php')
);
section_end(); //Do not modify below this line
display_section($appname,$title,$file);
}
?> ?>

View File

@ -11,30 +11,17 @@
\**************************************************************************/ \**************************************************************************/
/* $Id$ */ /* $Id$ */
{ {
// Only Modify the $file and $title variables.....
echo "<p>\n"; $title = $appname;
$imgfile = $phpgw->common->get_image_dir($appname) . '/' . $appname . '.gif'; $file = Array(
if (file_exists($imgfile)) { // 'Preferences' => $phpgw->link('/infolog/preferences.php'),
$imgpath = $phpgw->common->get_image_path($appname) . '/' . $appname . '.gif'; 'Grant Access' => $phpgw->link('/preferences/acl_preferences.php','acl_app='.$appname),
} else { 'Edit Categories' => $phpgw->link('/preferences/categories.php','cats_app='.$appname),
$imgfile = $phpgw->common->get_image_dir($appname) . '/navbar.gif'; );
//Do not modify below this line
if (file_exists($imgfile)) { display_section($appname,$title,$file);
$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();
} }
?> ?>