More controlled manual app. Controller can be more easily modified bya single source.

This commit is contained in:
skeeter 2001-05-14 00:18:12 +00:00
parent cbffd8bd21
commit 7185c8fdb1
4 changed files with 5 additions and 80 deletions

View File

@ -12,21 +12,8 @@
/* $Id$ */
if (floor(phpversion()) == 4) {
global $phpgw, $phpgw_info, $treemenu;
}
// Only Modify the $file variable.....
$file = Array();
//Do not modify below this line
$font = $phpgw_info['theme']['font'];
$navbar = $phpgw_info['user']['preferences']['common']['navbar_format'];
$lang = strtoupper($phpgw_info['user']['preferences']['common']['lang']);
$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');
$help_file = check_help_file($appname,$lang,$appname.'.php');
if($help_file != '')
{
$treemenu[] = '...<font face="'.$font.'">Overview</font>|'.$phpgw->link($help_file);
}
display_manual_section($appname,$file);
?>

View File

@ -11,9 +11,6 @@
\**************************************************************************/
/* $Id$ */
if (floor(phpversion()) == 4) {
global $phpgw, $phpgw_info, $treemenu;
}
// Only Modify the $file variable.....
$file = Array(
@ -22,22 +19,5 @@
'Other' => 'other.php'
);
//Do not modify below this line
$font = $phpgw_info['theme']['font'];
$navbar = $phpgw_info['user']['preferences']['common']['navbar_format'];
$lang = strtoupper($phpgw_info['user']['preferences']['common']['lang']);
$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');
$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);
}
}
display_manual_section($appname,$file);
?>

View File

@ -12,10 +12,6 @@
/* $Id$ */
if (floor(phpversion()) == 4) {
global $phpgw, $phpgw_info, $treemenu;
}
// Only Modify the $file variable.....
$file = Array(
'Viewing' => 'view.php',
@ -23,22 +19,5 @@
'Edit/Deleting' => 'edit_delete.php'
);
//Do not modify below this line
$font = $phpgw_info['theme']['font'];
$navbar = $phpgw_info['user']['preferences']['common']['navbar_format'];
$lang = strtoupper($phpgw_info['user']['preferences']['common']['lang']);
$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');
$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);
}
}
display_manual_section($appname,$file);
?>

View File

@ -12,32 +12,11 @@
/* $Id$ */
if (floor(phpversion()) == 4) {
global $phpgw, $phpgw_info, $treemenu;
}
// Only Modify the $file variable.....
$file = Array(
'Settings' => 'settings.php',
'Other' => 'other.php'
);
//Do not modify below this line
$font = $phpgw_info['theme']['font'];
$navbar = $phpgw_info['user']['preferences']['common']['navbar_format'];
$lang = strtoupper($phpgw_info['user']['preferences']['common']['lang']);
$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');
$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);
}
}
display_manual_section($appname,$file);
?>