2001-05-06 18:37:40 +02:00
|
|
|
<?php
|
|
|
|
/**************************************************************************\
|
|
|
|
* phpGroupWare - Calendar Holidays *
|
|
|
|
* http://www.phpgroupware.org *
|
|
|
|
* Written by Mark Peters <skeeter@phpgroupware.org> *
|
|
|
|
* -------------------------------------------- *
|
|
|
|
* This program is free software; you can redistribute it and/or modify it *
|
|
|
|
* under the terms of the GNU General Public License as published by the *
|
|
|
|
* Free Software Foundation; either version 2 of the License, or (at your *
|
|
|
|
* option) any later version. *
|
|
|
|
\**************************************************************************/
|
|
|
|
|
|
|
|
/* $Id$ */
|
|
|
|
|
|
|
|
if (floor(phpversion()) == 4) {
|
|
|
|
global $phpgw, $phpgw_info, $treemenu;
|
|
|
|
}
|
|
|
|
|
2001-05-11 04:50:44 +02:00
|
|
|
// Only Modify the $file variable.....
|
|
|
|
$file = Array(
|
|
|
|
'Viewing' => 'view.php',
|
|
|
|
'Adding' => 'add.php',
|
|
|
|
'Edit/Deleting' => 'edit_delete.php'
|
|
|
|
);
|
|
|
|
//Do not modify below this line
|
2001-05-08 03:17:31 +02:00
|
|
|
$font = $phpgw_info['theme']['font'];
|
|
|
|
$navbar = $phpgw_info['user']['preferences']['common']['navbar_format'];
|
2001-05-11 04:50:44 +02:00
|
|
|
$lang = strtoupper($phpgw_info['user']['preferences']['common']['lang']);
|
2001-05-08 03:17:31 +02:00
|
|
|
$treemenu[] = '..'.($navbar != 'text'?'<img src="'.$phpgw->common->image($appname,'navbar.gif').'" border="0" alt="'.ucwords($appname).'">':'').($navbar != 'icons'?'<font face="'.$font.'">'.ucwords($appname).'</font>':'').'|'.$phpgw->link('/'.$appname.'/help/index.php');
|
2001-05-11 04:50:44 +02:00
|
|
|
|
|
|
|
$help_file = check_help_file($appname,$lang,$appname.'.php');
|
|
|
|
if($help_file != '')
|
|
|
|
{
|
|
|
|
$treemenu[] = '...<font face="'.$font.'">Overview</font>|'.$phpgw->link($help_file);
|
|
|
|
}
|
|
|
|
while(list($title,$filename) = each($file))
|
|
|
|
{
|
|
|
|
$help_file = check_help_file($appname,$lang,$filename);
|
|
|
|
if($help_file != '')
|
|
|
|
{
|
|
|
|
$treemenu[] = '...<font face="'.$font.'">'.$title.'</font>|'.$phpgw->link($help_file);
|
|
|
|
}
|
|
|
|
}
|
2001-05-06 18:37:40 +02:00
|
|
|
?>
|