[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: infolog/inc class.uiinfolog.inc.php,1.30.2.12.2
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: infolog/inc class.uiinfolog.inc.php,1.30.2.12.2.1,1.30.2.12.2.2 |
Date: |
Thu, 27 Mar 2003 21:14:47 -0500 |
Update of /cvsroot/phpgroupware/infolog/inc
In directory subversions:/tmp/cvs-serv16070
Modified Files:
Tag: Version-0_9_16-branch
class.uiinfolog.inc.php
Log Message:
new preferences to use the user/default/forced tabs
Index: class.uiinfolog.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/infolog/inc/class.uiinfolog.inc.php,v
retrieving revision 1.30.2.12.2.1
retrieving revision 1.30.2.12.2.2
diff -C2 -r1.30.2.12.2.1 -r1.30.2.12.2.2
*** class.uiinfolog.inc.php 26 Mar 2003 23:00:03 -0000 1.30.2.12.2.1
--- class.uiinfolog.inc.php 28 Mar 2003 02:14:45 -0000 1.30.2.12.2.2
***************
*** 29,33 ****
'add_file' => True,
'admin' => True,
- 'preferences' => True
);
var $icons;
--- 29,32 ----
***************
*** 1207,1278 ****
$this->template->pfp('out','info_admin');
- }
-
- function preferences( )
- {
- global $save;
-
- $prefs = array(
- 'homeShowEvents' => 'Show open Events:
Tasks/Calls/Notes on main screen',
- 'defaultFilter' => 'Default Filter for
InfoLog',
- 'listNoSubs' => 'List no
Subs/Childs',
- 'longNames' => 'Show full
usernames'
- );
- $allowed_values = array (
- 'defaultFilter' => $this->filters
- );
-
- $GLOBALS['phpgw']->preferences->read_repository();
-
- if ($save)
- {
- while (list($pref,$lang) = each($prefs))
- {
-
$GLOBALS['phpgw']->preferences->add('infolog',$pref);
- }
-
$GLOBALS['phpgw']->preferences->save_repository(True);
-
- Header('Location:
'.$GLOBALS['phpgw']->link('/preferences/index.php'));
- $GLOBALS['phpgw']->common->phpgw_exit();
- }
- $GLOBALS['phpgw']->common->phpgw_header();
- echo parse_navbar();
-
- $t = $this->template; $html = $this->html;
-
- $t->set_file(array('info_prefs' => 'preferences.tpl'));
-
- $vars = Array(
- 'title' => lang('InfoLog preferences'),
- 'text' => ' ',
- 'action_url' =>
$html->link('/index.php',$this->menuaction('preferences')),
- 'bg_h_color' =>
$GLOBALS['phpgw_info']['theme']['th_bg'],
- 'save_button' =>
$html->submit_button('save','Save')
- );
- $t->set_var($vars);
-
- $t->set_block('info_prefs', 'pref_line',
'pref_linehandle');
-
- while (list($pref,$lang) = each($prefs))
- {
-
$t->set_var('bg_nm_color',$this->nextmatchs->alternate_row_color());
- $t->set_var('field',lang($lang));
-
- if (is_array($allowed_values[$pref]))
- {
- if (!is_object($sbox)) $sbox =
CreateObject('infolog.sbox2');
-
-
$t->set_var('data',$sbox->getArrayItem($pref,
-
$GLOBALS['phpgw_info']['user']['preferences']['infolog'][$pref],
-
$allowed_values[$pref],1));
- }
- else
- {
-
$t->set_var('data',$html->checkbox($pref,
-
$GLOBALS['phpgw_info']['user']['preferences']['infolog'][$pref]));
- }
- $t->parse('pref_linehandle','pref_line',True);
- }
- $t->pfp('out','info_prefs');
}
}
--- 1206,1209 ----
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: infolog/inc class.uiinfolog.inc.php,1.30.2.12.2.1,1.30.2.12.2.2,
Ralf Becker <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: infolog/inc hook_settings.inc.php,NONE,1.1.2.1 hook_admin.inc.php,1.4,1.4.4.1 hook_preferences.inc.php,1.8,1.8.6.1
- Next by Date:
[Phpgroupware-cvs] CVS: infolog/setup setup.inc.php,1.7.2.4,1.7.2.4.2.1
- Previous by thread:
[Phpgroupware-cvs] CVS: infolog/inc hook_settings.inc.php,NONE,1.1.2.1 hook_admin.inc.php,1.4,1.4.4.1 hook_preferences.inc.php,1.8,1.8.6.1
- Next by thread:
[Phpgroupware-cvs] CVS: infolog/setup setup.inc.php,1.7.2.4,1.7.2.4.2.1
- Index(es):