phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: infolog/inc class.uiinfolog.inc.php,1.60,1.61


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: infolog/inc class.uiinfolog.inc.php,1.60,1.61
Date: Thu, 27 Mar 2003 21:30:21 -0500

Update of /cvsroot/phpgroupware/infolog/inc
In directory subversions:/tmp/cvs-serv27042

Modified Files:
        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.60
retrieving revision 1.61
diff -C2 -r1.60 -r1.61
*** class.uiinfolog.inc.php     20 Mar 2003 17:31:01 -0000      1.60
--- class.uiinfolog.inc.php     28 Mar 2003 02:30:19 -0000      1.61
***************
*** 24,28 ****
                        'add_file'    => True,
                        'admin'       => True,
-                       'preferences' => True,
                        'writeLangFile' => True
                );
--- 24,27 ----
***************
*** 1501,1575 ****
                        {
                                
$GLOBALS['phpgw']->template->fp('phpgw_body','info_admin');
-                       }
-               }
- 
-               function preferences( )
-               {
-                       $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 ($GLOBALS['HTTP_POST_VARS']['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();
- 
-                       
$GLOBALS['phpgw']->template->set_file(array('info_prefs_t' => 
'preferences.tpl'));
-                       
$GLOBALS['phpgw']->template->set_block('info_prefs_t','pref_line');
-                       
$GLOBALS['phpgw']->template->set_block('info_prefs_t','info_prefs');
- 
-                       $vars = Array(
-                               'title' => lang('InfoLog preferences'),
-                               'text' => '&nbsp;',
-                               'action_url' => 
$this->html->link('/index.php',$this->menuaction('preferences')),
-                               'bg_h_color' => 'th',
-                               'save_button' => 
$this->html->submit_button('save','Save')
-                       );
-                       $GLOBALS['phpgw']->template->set_var($vars);
- 
-                       for ($n=0; list($pref,$lang) = each($prefs); ++$n)
-                       {
-                               
$GLOBALS['phpgw']->template->set_var('bg_nm_color',$n & 1 ? 'row_off':'row_on');
-                               
$GLOBALS['phpgw']->template->set_var('field',lang($lang));
- 
-                               if (is_array($allowed_values[$pref]))
-                               {
-                                       if (!is_object($sbox)) $sbox = 
CreateObject('phpgwapi.sbox2');
- 
-                                       
$GLOBALS['phpgw']->template->set_var('data',$sbox->getArrayItem($pref,
-                                                                       
$GLOBALS['phpgw_info']['user']['preferences']['infolog'][$pref],
-                                                                       
$allowed_values[$pref],1));
-                               }
-                               else
-                               {
-                                       
$GLOBALS['phpgw']->template->set_var('data',$this->html->checkbox($pref,
-                                                               
$GLOBALS['phpgw_info']['user']['preferences']['infolog'][$pref]));
-                               }
-                               
$GLOBALS['phpgw']->template->parse('pref_lines','pref_line',True);
-                       }
-                       if ($this->tmpl->stable)
-                       {
-                               echo parse_navbar();
-                               
$GLOBALS['phpgw']->template->pfp('phpgw_body','info_prefs');
-                       }
-                       else
-                       {
-                               
$GLOBALS['phpgw']->template->fp('phpgw_body','info_prefs');
                        }
                }
--- 1500,1503 ----





reply via email to

[Prev in Thread] Current Thread [Next in Thread]