source: trunk/expressoMail1_2/preferences.php @ 689

Revision 689, 20.7 KB checked in by eduardoalex, 12 years ago (diff)

Ticket #413

  • Property svn:eol-style set to native
  • Property svn:executable set to *
Line 
1<?php
2        /**************************************************************************/
3       
4        $GLOBALS['phpgw_info']['flags'] = array(
5                'currentapp' => 'expressoMail1_2',
6                'noheader'   => True,
7                'nonavbar'   => True,
8                'enable_nextmatchs_class' => True
9        );
10
11       
12        include('../header.inc.php');
13        include('inc/class.imap_functions.inc.php');   
14        include_once("inc/fckeditor.php");
15       
16        if (!$_POST['try_saved'])
17        {
18                // Read Config and get default values;
19               
20                $GLOBALS['phpgw']->preferences->read_repository();
21                // Loading Admin Config Module
22        $c = CreateObject('phpgwapi.config','expressoMail1_2');
23        $c->read_repository();
24        $current_config = $c->config_data;   
25               
26               
27                if($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['max_email_per_page'])
28                        $GLOBALS['phpgw']->template->set_var('option_'.$GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['max_email_per_page'].'_selected','selected');
29                else
30                $GLOBALS['phpgw']->template->set_var('option_50_selected','selected');         
31
32                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['save_deleted_msg'])         
33                        $GLOBALS['phpgw']->template->set_var('checked_save_deleted_msg','checked');
34                else
35                        $GLOBALS['phpgw']->template->set_var('checked_save_deleted_msg','');
36
37                if($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['delete_trash_messages_after_n_days'])
38                        $GLOBALS['phpgw']->template->set_var('delete_trash_messages_option_'.$GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['delete_trash_messages_after_n_days'].'_selected','selected');
39                else
40                        $GLOBALS['phpgw']->template->set_var('delete_trash_messages_option_0_selected','selected');             
41               
42                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['delete_and_show_previous_message'])         
43                        $GLOBALS['phpgw']->template->set_var('checked_delete_and_show_previous_message','checked');
44                else
45                        $GLOBALS['phpgw']->template->set_var('checked_delete_and_show_previous_message','');
46
47                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['alert_new_msg'])             
48                        $GLOBALS['phpgw']->template->set_var('checked_alert_new_msg','checked');
49                else
50                        $GLOBALS['phpgw']->template->set_var('checked_alert_new_msg','');
51
52                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['mainscreen_showmail'])
53                        $GLOBALS['phpgw']->template->set_var('checked_mainscreen_showmail','checked');
54                else
55                        $GLOBALS['phpgw']->template->set_var('checked_mainscreen_showmail','');
56
57                if (!is_numeric($current_config['expressoMail_Number_of_dynamic_contacts']))
58                {                                                                               
59                        $GLOBALS['phpgw']->template->set_var('checked_dynamic_contacts','');
60                        $GLOBALS['phpgw']->template->set_var('checked_dynamic_contacts','disabled');
61                }
62                else
63                {
64                        if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_dynamic_contacts'])
65                                $GLOBALS['phpgw']->template->set_var('checked_dynamic_contacts','checked');
66                        else
67                                $GLOBALS['phpgw']->template->set_var('checked_dynamic_contacts','');
68                }
69
70                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_shortcuts'])
71                        $GLOBALS['phpgw']->template->set_var('checked_shortcuts','checked');
72                else
73                        $GLOBALS['phpgw']->template->set_var('checked_shortcuts','');
74
75                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['auto_save_draft'])
76                        $GLOBALS['phpgw']->template->set_var('checked_auto_save_draft','checked');
77                else
78                        $GLOBALS['phpgw']->template->set_var('checked_auto_save_draft','');
79
80                // Insert new expressoMail preference use_signature: defines if the signature will be automatically inserted
81                // at the e-mail body
82                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_signature'])
83                        $GLOBALS['phpgw']->template->set_var('checked_use_signature','checked');
84                else
85                        $GLOBALS['phpgw']->template->set_var('checked_use_signature','');
86
87                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['signature'])
88                        $GLOBALS['phpgw']->template->set_var('text_signature',$GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['signature']);
89                else
90                        $GLOBALS['phpgw']->template->set_var('text_signature','');
91               
92                if($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['type_signature']){
93                        $GLOBALS['phpgw']->template->set_var('type_signature_option_'.$GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['type_signature'].'_selected','selected');
94                        $GLOBALS['phpgw']->template->set_var('type_signature_td_'.($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['type_signature'] == 'html' ? 'text' : 'html'),'display:none');
95                }
96                else{
97                        $GLOBALS['phpgw']->template->set_var('type_signature_option_text_selected','selected');
98                        $GLOBALS['phpgw']->template->set_var('type_signature_td_html','display:none');
99                }
100
101                // BEGIN FCKEDITOR
102                $oFCKeditor = new FCKeditor('html_signature') ;
103                $oFCKeditor->BasePath   = 'js/fckeditor/';
104                $oFCKeditor->ToolbarSet = 'ExpressoLivre';
105                if(is_array($GLOBALS['phpgw_info']['user']['preferences']['expressoMail'])) {
106                        $oFCKeditor->Value      = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['signature'];
107                }
108                // First Time: The user has no preferences. If the template file exists, then it loads a default signature.
109                // See signature_example.tpl
110                elseif(file_exists($GLOBALS['phpgw']->template->root.'/signature.tpl')){
111                        $filein = fopen($GLOBALS['phpgw']->template->root.'/signature.tpl',"r");
112                        while (!feof ($filein))
113                                $oFCKeditor->Value .= fgets($filein, 1024);
114                }
115                $oFCKeditor->Value = str_replace("{full_name}",$phpgw_info['user']['fullname'],$oFCKeditor->Value);
116                $oFCKeditor->Value = str_replace("{first_name}",$phpgw_info['user']['firstname'],$oFCKeditor->Value);
117               
118                $GLOBALS['phpgw']->template->set_var('rtf_signature',$oFCKeditor->Create());
119                $GLOBALS['phpgw']->template->set_var('text_signature',strip_tags($oFCKeditor->Value));
120                // END FCKEDITOR
121                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['hide_folders'])
122                        $GLOBALS['phpgw']->template->set_var('checked_menu','checked');
123                else
124                        $GLOBALS['phpgw']->template->set_var('checked_menu','');
125
126                if($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['line_height'])
127                        $GLOBALS['phpgw']->template->set_var('line_height_option_'.$GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['line_height'].'_selected','selected');
128                else
129                        $GLOBALS['phpgw']->template->set_var('line_height_option_20_selected','selected');
130               
131                if($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['font_size'])
132                        $GLOBALS['phpgw']->template->set_var('font_size_option_'.$GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['font_size'].'_selected','selected');
133                else
134                        $GLOBALS['phpgw']->template->set_var('font_size_option_11_selected','selected');
135            $c = CreateObject('phpgwapi.config','expressoMail1_2');
136            $c->read_repository();
137            $current_config = $c->config_data;
138               
139                if($current_config['enable_local_messages']!='True') {
140                        $GLOBALS['phpgw']->template->set_var('open_comment_local_messages_config',"<!--");
141                        $GLOBALS['phpgw']->template->set_var('close_comment_local_messages_config',"-->");
142                }
143                else {
144                        $GLOBALS['phpgw']->template->set_var('open_comment_local_messages_config'," ");
145                        $GLOBALS['phpgw']->template->set_var('close_comment_local_messages_config'," ");
146                }
147               
148                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_local_messages'])
149                        $GLOBALS['phpgw']->template->set_var('use_local_messages_option_Yes_selected','selected');
150                else {
151                        $GLOBALS['phpgw']->template->set_var('use_local_messages_option_No_selected','');
152                        $GLOBALS['phpgw']->template->set_var('use_local_messages_option_Yes_selected','');
153                }
154               
155                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['keep_archived_messages'])
156                        $GLOBALS['phpgw']->template->set_var('keep_archived_messages_option_Yes_selected','selected');
157                else {
158                        $GLOBALS['phpgw']->template->set_var('keep_archived_messages_option_No_selected','');
159                        $GLOBALS['phpgw']->template->set_var('keep_archived_messages_option_Yes_selected','');
160                }               
161               
162        }
163        else //Save Config
164        {
165                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['max_email_per_page'])
166                        $GLOBALS['phpgw']->preferences->change('expressoMail','max_email_per_page',$_POST['max_emails_per_page']);
167                else
168                        $GLOBALS['phpgw']->preferences->add('expressoMail','max_email_per_page',$_POST['max_emails_per_page']);
169               
170                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['save_deleted_msg'])
171                        $GLOBALS['phpgw']->preferences->change('expressoMail','save_deleted_msg',$_POST['save_deleted_msg']);
172                else
173                        $GLOBALS['phpgw']->preferences->add('expressoMail','save_deleted_msg',$_POST['save_deleted_msg']);
174
175                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['delete_trash_messages_after_n_days'])
176                        $GLOBALS['phpgw']->preferences->change('expressoMail','delete_trash_messages_after_n_days',$_POST['delete_trash_messages_after_n_days']);
177                else
178                        $GLOBALS['phpgw']->preferences->add('expressoMail','delete_trash_messages_after_n_days',$_POST['delete_trash_messages_after_n_days']);
179
180                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['delete_and_show_previous_message'])
181                        $GLOBALS['phpgw']->preferences->change('expressoMail','delete_and_show_previous_message',$_POST['delete_and_show_previous_message']);
182                else
183                        $GLOBALS['phpgw']->preferences->add('expressoMail','delete_and_show_previous_message',$_POST['delete_and_show_previous_message']);
184               
185                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['alert_new_msg'])
186                        $GLOBALS['phpgw']->preferences->change('expressoMail','alert_new_msg',$_POST['alert_new_msg']);
187                else
188                        $GLOBALS['phpgw']->preferences->add('expressoMail','alert_new_msg',$_POST['alert_new_msg']);
189
190                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['mainscreen_showmail'])
191                        $GLOBALS['phpgw']->preferences->change('expressoMail','mainscreen_showmail',$_POST['mainscreen_showmail']);
192                else
193                        $GLOBALS['phpgw']->preferences->add('expressoMail','mainscreen_showmail',$_POST['mainscreen_showmail']);
194
195                if (!is_numeric($_SESSION['phpgw_info']['server']['expressomail']['expressoMail_Number_of_dynamic_contacts']))
196                {                                                                               
197                        $GLOBALS['phpgw']->template->set_var('checked_dynamic_contacts','');
198                        $GLOBALS['phpgw']->template->set_var('checked_dynamic_contacts','disabled');
199                }
200                else
201                {
202                        if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_dynamic_contacts'])
203                        {
204                                $GLOBALS['phpgw']->preferences->change('expressoMail','use_dynamic_contacts',$_POST['use_dynamic_contacts']);
205                                if($_POST['use_dynamic_contacts'] == '')
206                                {
207                                        $contacts = CreateObject('expressoMail1_2.dynamic_contacts');
208                                        $contacts->delete_dynamic_contacts();
209                                }
210                        }
211                        else
212                        $GLOBALS['phpgw']->preferences->add('expressoMail','use_dynamic_contacts',$_POST['use_dynamic_contacts']);
213                }
214
215                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_shortcuts'])
216                        $GLOBALS['phpgw']->preferences->change('expressoMail','use_shortcuts',$_POST['use_shortcuts']);
217                else
218                        $GLOBALS['phpgw']->preferences->add('expressoMail','use_shortcuts',$_POST['use_shortcuts']);
219                       
220                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['auto_save_draft'])
221                        $GLOBALS['phpgw']->preferences->change('expressoMail','auto_save_draft',$_POST['auto_save_draft']);
222                else
223                        $GLOBALS['phpgw']->preferences->add('expressoMail','auto_save_draft',$_POST['auto_save_draft']);       
224
225                // Insert new expressoMail preference use_signature: defines if the signature will be automatically inserted
226                // at the e-mail body
227                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_signature'])
228                        $GLOBALS['phpgw']->preferences->change('expressoMail','use_signature',$_POST['use_signature']);
229                else
230                        $GLOBALS['phpgw']->preferences->add('expressoMail','use_signature',$_POST['use_signature']);
231
232                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['signature'])
233                        $GLOBALS['phpgw']->preferences->change('expressoMail','signature',$_POST['signature']);
234                else
235                        $GLOBALS['phpgw']->preferences->add('expressoMail','signature',$_POST['signature']);
236
237                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['type_signature'])
238                        $GLOBALS['phpgw']->preferences->change('expressoMail','type_signature',$_POST['type_signature']);
239                else
240                        $GLOBALS['phpgw']->preferences->add('expressoMail','type_signature',$_POST['type_signature']);
241
242                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['hide_folders'])
243                        $GLOBALS['phpgw']->preferences->change('expressoMail','hide_folders',$_POST['check_menu']);
244                else
245                        $GLOBALS['phpgw']->preferences->add('expressoMail','hide_folders',$_POST['check_menu']);
246                       
247                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['save_in_folder'])
248                        $GLOBALS['phpgw']->preferences->change('expressoMail','save_in_folder',$_POST['save_in_folder']);
249                else
250                        $GLOBALS['phpgw']->preferences->add('expressoMail','save_in_folder',$_POST['save_in_folder']);
251
252                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['line_height'])
253                        $GLOBALS['phpgw']->preferences->change('expressoMail','line_height',$_POST['line_height']);
254                else
255                        $GLOBALS['phpgw']->preferences->add('expressoMail','line_height',$_POST['line_height']);
256               
257                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['font_size'])
258                        $GLOBALS['phpgw']->preferences->change('expressoMail','font_size',$_POST['font_size']);
259                else
260                        $GLOBALS['phpgw']->preferences->add('expressoMail','font_size',$_POST['font_size']);           
261                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['use_local_messages'])
262                        $GLOBALS['phpgw']->preferences->change('expressoMail','use_local_messages',$_POST['use_local_messages']);
263                else
264                        $GLOBALS['phpgw']->preferences->add('expressoMail','use_local_messages',$_POST['use_local_messages']);
265                       
266                if ($GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['keep_archived_messages'])
267                        $GLOBALS['phpgw']->preferences->change('expressoMail','keep_archived_messages',$_POST['keep_archived_messages']);
268                else
269                        $GLOBALS['phpgw']->preferences->add('expressoMail','keep_archived_messages',$_POST['keep_archived_messages']);                 
270
271                $GLOBALS['phpgw']->preferences->save_repository();
272               
273                // Back to preferences.
274                $url = ($GLOBALS['phpgw']->link('/'.'expressoMail1_2'.'/index.php'));
275                $GLOBALS['phpgw']->redirect($url);
276        }
277       
278        $GLOBALS['phpgw']->common->phpgw_header();
279        print parse_navbar();
280
281        $GLOBALS['phpgw']->template->set_file(array(
282                'expressoMail_prefs' => 'preferences.tpl'
283        ));
284
285        $GLOBALS['phpgw']->template->set_var('lang_config_expressoMail',lang('Config for ExpressoMail'));
286        $GLOBALS['phpgw']->template->set_var('lang_max_emails_per_page',lang('What is the maximum number of messages per page?'));
287        $GLOBALS['phpgw']->template->set_var('lang_save_deleted_msg',lang('Save deleted messages in trash folder?'));
288        $GLOBALS['phpgw']->template->set_var('lang_delete_trash_messages_after_n_days',lang('Delete trash messages after how many days?'));
289        $GLOBALS['phpgw']->template->set_var('lang_delete_and_show_previous_message',lang('Show previous message, after delete actual message?'));
290        $GLOBALS['phpgw']->template->set_var('lang_alert_new_msg',lang('Do you wanna receive an alert for new messages?'));
291        $GLOBALS['phpgw']->template->set_var('lang_hook_home',lang('Show default view on main screen?'));
292        $GLOBALS['phpgw']->template->set_var('lang_save_in_folder',lang('Save sent messages in folder'));
293        $GLOBALS['phpgw']->template->set_var('lang_hide_menu',lang('Hide menu folders?'));
294        $GLOBALS['phpgw']->template->set_var('lang_line_height',lang('What is the height of the lines in the list of messages?'));
295        $GLOBALS['phpgw']->template->set_var('lang_font_size',lang('What the font size in the list of messages?'));
296        $GLOBALS['phpgw']->template->set_var('lang_use_dynamic_contacts',lang('Use dynamic contacts?'));
297        $GLOBALS['phpgw']->template->set_var('lang_use_shortcuts',lang('Use shortcuts?'));
298        $GLOBALS['phpgw']->template->set_var('lang_auto_save_draft',lang('Auto save draft'));
299        $GLOBALS['phpgw']->template->set_var('lang_signature',lang('Signature'));
300        $GLOBALS['phpgw']->template->set_var('lang_none',lang('None'));
301        $GLOBALS['phpgw']->template->set_var('one_day',lang('1 Day'));
302        $GLOBALS['phpgw']->template->set_var('two_days',lang('2 Days'));
303        $GLOBALS['phpgw']->template->set_var('three_days',lang('3 Days'));
304        $GLOBALS['phpgw']->template->set_var('four_days',lang('4 Days'));
305        $GLOBALS['phpgw']->template->set_var('five_days',lang('5 Day'));
306        $GLOBALS['phpgw']->template->set_var('small',lang('Small'));
307        $GLOBALS['phpgw']->template->set_var('medium',lang('Medium'));
308        $GLOBALS['phpgw']->template->set_var('normal',lang('Normal'));
309        $GLOBALS['phpgw']->template->set_var('simple_text',lang('Simple Text'));
310        $GLOBALS['phpgw']->template->set_var('html_text',lang('Rich Text'));
311        $GLOBALS['phpgw']->template->set_var('lang_config_signature',lang('Signature Configuration'));
312        $GLOBALS['phpgw']->template->set_var('lang_type_signature',lang('Signature type'));
313        $GLOBALS['phpgw']->template->set_var('big',lang('Big'));
314        $GLOBALS['phpgw']->template->set_var('lang_Would_you_like_to_keep_archived_messages_?',lang('Would you like to keep archived messages?'));
315        $GLOBALS['phpgw']->template->set_var('lang_Yes',lang('Yes'));
316        $GLOBALS['phpgw']->template->set_var('lang_No',lang('No'));
317        $GLOBALS['phpgw']->template->set_var('lang_Would_you_like_to_use_local_messages_?',lang('Would you like to use local messages?'));
318        $GLOBALS['phpgw']->template->set_var('lang_use_signature',lang('Insert signature automatically in new messages?'));
319
320        $boemailadmin   = CreateObject('emailadmin.bo');
321        $emailadmin_profile = $boemailadmin->getProfileList();
322        $_SESSION['phpgw_info']['expressomail']['email_server'] = $boemailadmin->getProfile($emailadmin_profile[0]['profileID']);
323        $_SESSION['phpgw_info']['expressomail']['user'] = $GLOBALS['phpgw_info']['user'];
324        $e_server = $_SESSION['phpgw_info']['expressomail']['email_server'];
325        $imap = CreateObject('expressoMail1_2.imap_functions');
326        $save_in_folder_selected = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['save_in_folder'];     
327        // Load Special Folders (Sent, Trash, Draft, Spam) from EmailAdmin (if exists, else get_lang)
328        $specialFolders = array ("Trash" => lang("Trash"), "Drafts" => lang("Drafts"), "Spam" => lang("Spam"), "Sent" => lang("Sent"));
329        foreach ($specialFolders as $key => $value){
330                if($e_server['imapDefault'.$key.'Folder'])
331                        $specialFolders[$key] = $e_server['imapDefault'.$key.'Folder'];
332        }       
333        // First access on ExpressoMail, load default preferences...
334        if(!$GLOBALS['phpgw_info']['user']['preferences']['expressoMail']) {
335                $GLOBALS['phpgw']->template->set_var('checked_save_deleted_msg','checked');
336                $GLOBALS['phpgw']->template->set_var('checked_delete_and_show_previous_message','checked');
337                $GLOBALS['phpgw']->template->set_var('checked_alert_new_msg','checked');
338                $GLOBALS['phpgw']->template->set_var('checked_use_signature','checked');
339                $GLOBALS['phpgw']->template->set_var('checked_mainscreen_showmail','checked');
340                $save_in_folder_selected = "INBOX".$e_server['imapDelimiter'].$specialFolders["Sent"];
341        }
342        $o_folders = "<option value='-1' ".(!$save_in_folder_selected ? 'selected' : '' ).">".lang("Select on send")."</option>";       
343       
344        foreach($imap -> get_folders_list() as $id => $folder){
345                // Ignores numeric indexes and shared folders....
346                if(!is_numeric($id) || (strstr($folder['folder_id'],"user".$e_server['imapDelimiter'])))
347                        continue;
348                // Translate INBOX (root folder)
349                elseif (strtolower($folder['folder_name']) == "inbox")
350                        $folder['folder_name'] = lang("Inbox");
351                // Translate Special Folders
352                elseif (($keyFolder = array_search($folder['folder_name'], $specialFolders)) !== false)
353                        $folder['folder_name'] = lang($keyFolder);
354                // Identation for subfolders
355                $folder_id = explode($e_server['imapDelimiter'],$folder['folder_id']);         
356                $level = count($folder_id);
357                $ident = '';
358                for($i = 2; $level > 2 && $i < $level;$i++)
359                        $ident .= ' - ';
360                $o_folders.= "<option value='".$folder['folder_id']."' ".($save_in_folder_selected == $folder['folder_id'] ? 'selected' : '' ).">".$ident.$folder['folder_name']."</option>";                   
361        }
362
363        $GLOBALS['phpgw']->template->set_var('value_save_in_folder',$o_folders);
364        $GLOBALS['phpgw']->template->set_var('lang_save',lang('Save'));
365        $GLOBALS['phpgw']->template->set_var('lang_cancel',lang('Cancel'));
366       
367        $GLOBALS['phpgw']->template->set_var('save_action',$GLOBALS['phpgw']->link('/'.'expressoMail1_2'.'/preferences.php'));
368        $GLOBALS['phpgw']->template->set_var('th_bg',$GLOBALS['phpgw_info']["theme"][th_bg]);
369
370        $tr_color = $GLOBALS['phpgw']->nextmatchs->alternate_row_color($tr_color);
371        $GLOBALS['phpgw']->template->set_var('tr_color1',$GLOBALS['phpgw_info']['theme']['row_on']);
372        $GLOBALS['phpgw']->template->set_var('tr_color2',$GLOBALS['phpgw_info']['theme']['row_off']);
373
374        $GLOBALS['phpgw']->template->parse('out','expressoMail_prefs',True);
375        $GLOBALS['phpgw']->template->p('out');
376        // Com o Módulo do IM habilitado, ocorre um erro no IE
377        //$GLOBALS['phpgw']->common->phpgw_footer();
378?>
Note: See TracBrowser for help on using the repository browser.