Changeset 413 for trunk/expressoMail1_2/preferences.php
- Timestamp:
- 09/11/08 16:42:44 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/preferences.php
r389 r413 50 50 $GLOBALS['phpgw']->template->set_var('checked_mainscreen_showmail',''); 51 51 52 if (!is_numeric($_SESSION['phpgw_info']['server']['expressomail']['expressoMail_Number_of_dynamic_contacts'])) 53 { 54 $GLOBALS['phpgw']->template->set_var('checked_dynamic_contacts',''); 55 $GLOBALS['phpgw']->template->set_var('checked_dynamic_contacts','disabled'); 56 } 57 else 58 { 59 if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_dynamic_contacts']) 60 $GLOBALS['phpgw']->template->set_var('checked_dynamic_contacts','checked'); 61 else 62 $GLOBALS['phpgw']->template->set_var('checked_dynamic_contacts',''); 63 } 64 52 65 if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_shortcuts']) 53 66 $GLOBALS['phpgw']->template->set_var('checked_shortcuts','checked'); … … 147 160 else 148 161 $GLOBALS['phpgw']->preferences->add('expressoMail','mainscreen_showmail',$_POST['mainscreen_showmail']); 162 163 if (!is_numeric($_SESSION['phpgw_info']['server']['expressomail']['expressoMail_Number_of_dynamic_contacts'])) 164 { 165 $GLOBALS['phpgw']->template->set_var('checked_dynamic_contacts',''); 166 $GLOBALS['phpgw']->template->set_var('checked_dynamic_contacts','disabled'); 167 } 168 else 169 { 170 if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_dynamic_contacts']) 171 { 172 $GLOBALS['phpgw']->preferences->change('expressoMail','use_dynamic_contacts',$_POST['use_dynamic_contacts']); 173 if($_POST['use_dynamic_contacts'] == '') 174 { 175 $contacts = CreateObject('expressoMail1_2.dynamic_contacts'); 176 $contacts->delete_dynamic_contacts(); 177 } 178 } 179 else 180 $GLOBALS['phpgw']->preferences->add('expressoMail','use_dynamic_contacts',$_POST['use_dynamic_contacts']); 181 } 149 182 150 183 if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_shortcuts']) … … 220 253 $GLOBALS['phpgw']->template->set_var('lang_line_height',lang('What is the height of the lines in the list of messages?')); 221 254 $GLOBALS['phpgw']->template->set_var('lang_font_size',lang('What the font size in the list of messages?')); 255 $GLOBALS['phpgw']->template->set_var('lang_use_dynamic_contacts',lang('Use dynamic contacts?')); 222 256 $GLOBALS['phpgw']->template->set_var('lang_use_shortcuts',lang('Use shortcuts?')); 223 257 $GLOBALS['phpgw']->template->set_var('lang_auto_save_draft',lang('Auto save draft'));
Note: See TracChangeset
for help on using the changeset viewer.