Ignore:
Timestamp:
11/06/09 10:11:14 (14 years ago)
Author:
rafaelraymundo
Message:

Ticket #619 - Incluidos campos configuraveis (matricula/celular/setor) para o contactcenter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/contactcenter/inc/class.ui_preferences.inc.php

    r285 r1600  
    7979                        } 
    8080                         
     81                        if ($actual['empNum']) 
     82                        { 
     83                                $GLOBALS['phpgw']->template->set_var('empNum', 'checked'); 
     84                        } 
     85                        else 
     86                        { 
     87                                $GLOBALS['phpgw']->template->set_var('empNum', ''); 
     88                        } 
     89 
     90                        if ($actual['cell']) 
     91                        { 
     92                                $GLOBALS['phpgw']->template->set_var('cell', 'checked'); 
     93                        } 
     94                        else 
     95                        { 
     96                                $GLOBALS['phpgw']->template->set_var('cell', ''); 
     97                        } 
     98 
     99                        if ($actual['department']) 
     100                        { 
     101                                $GLOBALS['phpgw']->template->set_var('department', 'checked'); 
     102                        } 
     103                        else 
     104                        { 
     105                                $GLOBALS['phpgw']->template->set_var('department', ''); 
     106                        } 
     107 
    81108                        $GLOBALS['phpgw']->template->set_var('personCardEmail', $options_email); 
    82109                        $GLOBALS['phpgw']->template->set_var('personCardPhone', $options_phone); 
     
    130157                                } 
    131158                                 
     159                                if($_POST['empNum']) 
     160                                { 
     161                                        $GLOBALS['phpgw']->preferences->add('contactcenter', 'empNum', '1'); 
     162                                } 
     163                                else 
     164                                { 
     165                                        $GLOBALS['phpgw']->preferences->add('contactcenter', 'empNum', '0'); 
     166                                } 
     167                                 
     168                                if($_POST['cell']) 
     169                                { 
     170                                        $GLOBALS['phpgw']->preferences->add('contactcenter', 'cell', '1'); 
     171                                } 
     172                                else 
     173                                { 
     174                                        $GLOBALS['phpgw']->preferences->add('contactcenter', 'cell', '0'); 
     175                                } 
     176                                 
     177                                if($_POST['department']) 
     178                                { 
     179                                        $GLOBALS['phpgw']->preferences->add('contactcenter', 'department', '1'); 
     180                                } 
     181                                else 
     182                                { 
     183                                        $GLOBALS['phpgw']->preferences->add('contactcenter', 'department', '0'); 
     184                                } 
     185                                 
    132186                                $GLOBALS['phpgw']->preferences->save_repository(); 
    133187                        } 
Note: See TracChangeset for help on using the changeset viewer.