Changeset 422


Ignore:
Timestamp:
09/12/08 16:53:08 (16 years ago)
Author:
niltonneto
Message:

Alterações feitas por João Alfredo.
Email: jakjr@…

Location:
trunk/expressoAdmin1_2
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoAdmin1_2/inc/class.ldap_functions.inc.php

    r414 r422  
    11371137        function get_maillist_info($uidnumber) 
    11381138        { 
    1139                  
    11401139                /* folling referral connection */ 
    11411140                $ldap_conn_following_ref = ldap_connect($_SESSION['phpgw_info']['expresso']['cc_ldap_server']['host']); 
     
    11701169                                $result['cn']                                   = $entry[0]['cn'][0]; 
    11711170                                $result['mail']                                 = $entry[0]['mail'][0]; 
     1171                                $result['description']                  = utf8_decode($entry[0]['description'][0]); 
    11721172                                $result['accountStatus']                = $entry[0]['accountstatus'][0]; 
    11731173                                $result['phpgwAccountVisible']  = $entry[0]['phpgwaccountvisible'][0]; 
     
    19871987                $info['uid']                            = $uid; 
    19881988                $info['mail']                           = $params['mail']; 
     1989                $info['description']            = utf8_encode($params['description']); 
    19891990                 
    19901991                if ($params['accountStatus'] == 'on') 
     
    20702071                 
    20712072                $uid = $params['uid']; 
    2072                 $justthese = array("accountStatus", "phpgwAccountVisible", "cn", "mail", "mailForwardingAddress"); 
    2073                                  
    2074         $institutional_accounts = ldap_search($this->ldap, $GLOBALS['phpgw_info']['server']['ldap_context'], ("(&(phpgwAccountType=i)(uid=$uid))"), $justthese); 
     2073                //$justthese = array("accountStatus", "phpgwAccountVisible", "cn", "mail", "mailForwardingAddress", "description"); 
     2074                                 
     2075        $institutional_accounts = ldap_search($this->ldap, $GLOBALS['phpgw_info']['server']['ldap_context'], ("(&(phpgwAccountType=i)(uid=$uid))")); 
    20752076        $entrie = ldap_get_entries($this->ldap, $institutional_accounts); 
    20762077                 
     
    20922093                        $return['cn']                                   = $entrie[0]['cn'][0]; 
    20932094                        $return['mail']                                 = $entrie[0]['mail'][0]; 
     2095                        $return['description']                  = utf8_decode($entrie[0]['description'][0]); 
    20942096 
    20952097                        if ($entrie[0]['mailforwardingaddress']['count'] > 0) 
  • trunk/expressoAdmin1_2/inc/class.maillist.inc.php

    r414 r422  
    8080                        $maillist_info['loginShell']                            = '/bin/false'; 
    8181                        $maillist_info['mail']                                          = $params['mail']; 
     82                        $maillist_info['description']                           = $params['description']; 
    8283                        $maillist_info['objectClass'][0]                        = 'posixAccount'; 
    8384                        $maillist_info['objectClass'][1]                        = 'inetOrgPerson'; 
     
    180181                        } 
    181182                         
     183                        /* Always replace description */ 
     184                        $ldap_mod_replace['description'] = utf8_encode($new_values['description']); 
     185                         
    182186                        if (count($ldap_mod_replace)) 
    183187                        { 
  • trunk/expressoAdmin1_2/inc/class.uimaillists.inc.php

    r414 r422  
    298298                                'uid'                                                   => $maillist_info['uid'], 
    299299                                'mail'                                                  => $maillist_info['mail'], 
     300                                'description'                                   => $maillist_info['description'], 
    300301                                'cn'                                                    => $maillist_info['cn'], 
    301302                                'user_count'                                    => $user_count, 
  • trunk/expressoAdmin1_2/js/jscode/groups.js

    r414 r422  
    9090                alert(data.msg); 
    9191        else{ 
    92                 alert(get_lang('Group sucess created') + '.'); 
     92                alert(get_lang('Group sucessful created') + '.'); 
    9393                location.href="./index.php?menuaction=expressoAdmin1_2.uigroups.list_groups"; 
    9494        } 
     
    107107                alert(data.msg); 
    108108        else{ 
    109                 alert(get_lang('Group sucess saved') + '.'); 
     109                alert(get_lang('Group sucessful saved') + '.'); 
    110110                location.href="./index.php?menuaction=expressoAdmin1_2.uigroups.list_groups"; 
    111111        } 
  • trunk/expressoAdmin1_2/js/jscode/institutional_accounts.js

    r317 r422  
    240240                         
    241241                        Element('cn').value = data.cn; 
    242                          
    243242                        Element('mail').value = data.mail; 
    244                          
     243                        Element('description').value = data.description; 
    245244                        Element('ea_select_owners').innerHTML = data.owners; 
    246245 
  • trunk/expressoAdmin1_2/js/jscode/maillists.js

    r414 r422  
    66 
    77        if (document.forms[0].uid.value == ''){ 
    8                 alert(get_lang('LOGIN field is empty') + '.'); 
     8                alert(get_lang('login field is empty') + '.'); 
    99                return; 
    1010        } 
    1111 
    1212        if (document.forms[0].cn.value == ''){ 
    13                 alert(get_lang('NAME field is empty') + '.'); 
     13                alert(get_lang('name field is empty') + '.'); 
    1414                return; 
    1515        } 
     
    2020                if ((uid_tmp.length < 3) || (uid_tmp[0] != 'lista')){ 
    2121                        alert( 
    22                                 get_lang('LOGIN field is incomplete') + '.\n' + 
     22                                get_lang('login field is incomplete') + '.\n' + 
    2323                                get_lang('the login field must be formed like') + ':\n' + 
    2424                                get_lang('list') + '-' + get_lang('organization') + '-' + get_lang('listname') + '.\n' + 
     
    9595                alert(data.msg); 
    9696        else{ 
    97                 alert(get_lang('Email list sucess created') + '.'); 
     97                alert(get_lang('Email list sucessful created') + '.'); 
    9898                location.href="./index.php?menuaction=expressoAdmin1_2.uimaillists.list_maillists"; 
    9999        } 
     
    112112                alert(data.msg); 
    113113        else{ 
    114                 alert(get_lang('Email list sucess saved') + '.'); 
     114                alert(get_lang('Email list sucessful saved') + '.'); 
    115115                location.href="./index.php?menuaction=expressoAdmin1_2.uimaillists.list_maillists"; 
    116116        } 
     
    137137                alert(data.msg); 
    138138        else 
    139                 alert(get_lang('SCL sucess saved') + '.'); 
     139                alert(get_lang('SCL sucessful saved') + '.'); 
    140140        location.href="./index.php?menuaction=expressoAdmin1_2.uimaillists.list_maillists"; 
    141141        return; 
  • trunk/expressoAdmin1_2/js/jscode/users.js

    r414 r422  
    204204                alert(data.msg); 
    205205        else 
    206                 alert(get_lang('User sucess created') + '.'); 
     206                alert(get_lang('User sucessful created') + '.'); 
    207207 
    208208        location.href="./index.php?menuaction=expressoAdmin1_2.uiaccounts.list_users"; 
     
    223223        } 
    224224        else{ 
    225                 alert(get_lang('User sucess saved') + '.'); 
     225                alert(get_lang('User sucessful saved') + '.'); 
    226226        } 
    227227        location.href="./index.php?menuaction=expressoAdmin1_2.uiaccounts.list_users"; 
     
    446446                        alert(data.msg); 
    447447                else 
    448                         alert(get_lang('Default password sucess saved') + '.'); 
     448                        alert(get_lang('Default password sucessful saved') + '.'); 
    449449                return; 
    450450        } 
     
    459459                        alert(data.msg); 
    460460                else 
    461                         alert(get_lang('Users password sucess returned') + '.'); 
     461                        alert(get_lang('Users password sucessful returned') + '.'); 
    462462                return; 
    463463        } 
     
    474474                                alert(data.msg); 
    475475                        else 
    476                                 alert(get_lang('User sucess deleted') + '.'); 
     476                                alert(get_lang('User sucessful deleted') + '.'); 
    477477                         
    478478                        location.href="./index.php?menuaction=expressoAdmin1_2.uiaccounts.list_users"; 
     
    526526                alert(data.msg); 
    527527        else{ 
    528                 alert(get_lang('User login sucess renamed') + "\n" + data.exec_return); 
     528                alert(get_lang('User login sucessful renamed') + "\n" + data.exec_return); 
    529529                location.href="./index.php?menuaction=expressoAdmin1_2.uiaccounts.list_users"; 
    530530        } 
  • trunk/expressoAdmin1_2/templates/default/institutional_accounts_modal.tpl

    r317 r422  
    11<input type="hidden" id="{modal_id}_title" value="{lang_criation_of_institutional_accounts}"> 
    2 <input type="hidden" id="{modal_id}_height" value="483"> 
     2<input type="hidden" id="{modal_id}_height" value="503"> 
    33<input type="hidden" id="{modal_id}_width" value="930"> 
    44<input type="hidden" id="{modal_id}_close_action" value="close_lightbox()"> 
     
    2424                        {lang_mail}: <font color="blue">{lang_eg}: diser@celepar.pr.gov.br</font><br> 
    2525                        <input id="mail" name="mail" size="35" autocomplete="off"><br> 
     26 
     27                        {lang_description}:<br> 
     28                        <input id="description" name="description" size="60" autocomplete="off"><br> 
    2629                                                         
    2730                        {lang_is_account_active}: <input type="checkbox" id="accountStatus" name="accountStatus" checked><br> 
  • trunk/expressoAdmin1_2/templates/default/maillists_form.tpl

    r414 r422  
    3939                                                        <input name="cn" size="60" value="{cn}" autocomplete="off"><br> 
    4040 
    41                                                         {lang_e-mail_list_is_active}: <input type="checkbox" {accountStatus_checked} name="accountStatus"><br> 
     41                                                        {lang_description}:<br> 
     42                                                        <input name="description" size="60" value="{description}" autocomplete="off"><br> 
     43 
     44                                                        {lang_email_list_is_active}: <input type="checkbox" {accountStatus_checked} name="accountStatus"><br> 
    4245                                                        {lang_do_not_show_this_e-mail_list}??: <input type="checkbox" {phpgwAccountVisible_checked} name="phpgwAccountVisible"><br> 
    4346                                                         
Note: See TracChangeset for help on using the changeset viewer.