new preferences to use the user/default/forced tabs

This commit is contained in:
Ralf Becker 2003-03-28 02:26:04 +00:00
parent e216114aa4
commit 13c0080781
5 changed files with 27 additions and 31 deletions

View File

@ -19,10 +19,6 @@
);
//Do not modify below this line
list($ver,$mayor,$minor,$ref) = explode('.',$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']);
if ($minor > 14)
display_section($appname,$file);
else
display_section($appname,$appname,$file);
display_section($appname,lang($appname),$file); // please not 2. appname is for .14 compatibilty
}
?>

View File

@ -1,6 +1,6 @@
<?php
/**************************************************************************\
* phpGroupWare *
* phpGroupWare - InfoLog Preferences *
* http://www.phpgroupware.org *
* Written by Ralf Becker <RalfBecker@outdoor-training.de> *
* ------------------------------------------------------- *
@ -15,16 +15,12 @@
{
// Only Modify the $file and $title variables.....
$file = array(
'Preferences' => $GLOBALS['phpgw']->link('/index.php','menuaction=infolog.uiinfolog.preferences'),
'Preferences' => $GLOBALS['phpgw']->link('/preferences/preferences.php','appname='.$appname),
'Grant Access' => $GLOBALS['phpgw']->link('/index.php','menuaction=preferences.uiaclprefs.index&acl_app='.$appname),
'Edit Categories' => $GLOBALS['phpgw']->link('/index.php','menuaction=preferences.uicategories.index&cats_app=' . $appname . '&cats_level=True&global_cats=True')
);
//Do not modify below this line
list($ver,$mayor,$minor,$ref) = explode('.',$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']);
if ($minor > 14)
display_section($appname,$file);
else
display_section($appname,$appname,$file);
display_section($appname,lang($appname),$file); // leave 2. $appname for compatibilty with .14
}
?>

View File

@ -0,0 +1,22 @@
<?php
/**************************************************************************\
* phpGroupWare - InfoLog Preferences *
* http://www.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$ */
create_check_box('Show open Events: Tasks/Calls/Notes on main screen','homeShowEvents');
$ui = CreateObject('infolog.uiinfolog'); // need some labels from
create_select_box('Default Filter for InfoLog','defaultFilter',$ui->filters);
unset($ui);
create_check_box('List no Subs/Childs','listNoSubs');
create_check_box('Show full usernames','longNames');

View File

@ -47,6 +47,7 @@
/* The hooks this app includes, needed for hooks registration */
$setup_info['infolog']['hooks'][] = 'preferences';
$setup_info['infolog']['hooks'][] = 'settings';
$setup_info['infolog']['hooks'][] = 'admin';
$setup_info['infolog']['hooks'][] = 'deleteaccount';
$setup_info['infolog']['hooks'][] = 'about';

View File

@ -1,19 +0,0 @@
<!-- BEGIN pref_line -->
<tr class="{bg_nm_color}">
<td align="right">{field}</td>
<td align="center">{data}</td>
</tr>
<!-- END pref_line -->
<!-- BEGIN info_prefs -->
<p><b>{title}:</b><hr><p>
<form action="{action_url}" method="POST">
<table border="0" align="center" width="90%">
<tr class="{bg_h_color}">
<td colspan="2">{text}</td>
</tr>
{pref_lines}
</table>
<center>{save_button}</center>
</form>
<!-- END info_prefs -->