mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
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 ('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');
|
||||||
|
@ -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);
|
||||||
|
}
|
||||||
?>
|
?>
|
@ -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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user