forked from extern/egroupware
using display_section for hook_admin+hook_preferences
This commit is contained in:
parent
03a7ff211e
commit
936d6dd022
@ -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-<br>projekte');
|
||||
INSERT INTO lang VALUES ('add sub','infolog','de','neues Teilprojekt anlegen');
|
||||
|
@ -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);
|
||||
}
|
||||
?>
|
@ -11,30 +11,17 @@
|
||||
\**************************************************************************/
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
{
|
||||
|
||||
echo "<p>\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);
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
Reference in New Issue
Block a user