Changeset 6917


Ignore:
Timestamp:
07/31/12 14:48:40 (12 years ago)
Author:
cristiano
Message:

Ticket #2895 - Backport de funcionalidade de domínios associados

Location:
trunk/expressoAdmin1_2
Files:
6 edited

Legend:

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

    r6697 r6917  
    5353                $sector_info['diskQuota'] = isset($_POST['disk_quota']) ? (int)$_POST['disk_quota'] : 0;  
    5454                $sector_info['usersQuota'] = isset($_POST['users_quota']) ? (int)$_POST['users_quota'] : 0;  
     55 
     56                if( isset($_POST['associated_domain']) )  
     57                {  
     58                    if ( $_POST['associated_domain'] != "") {  
     59                        $sector_info['objectClass'][]  = 'domainRelatedObject';  
     60                        $sector_info['associatedDomain'] = trim($_POST['associated_domain']);  
     61                    }  
     62                }  
    5563 
    5664                        $systemName = $GLOBALS['phpgw_info']['server']['system_name']; 
  • trunk/expressoAdmin1_2/inc/class.ldap_functions.inc.php

    r6865 r6917  
    29132913 
    29142914                return $return; 
    2915         } 
    2916  
    2917                  
     2915        }                
    29182916 
    29192917} 
  • trunk/expressoAdmin1_2/inc/class.uisectors.inc.php

    r6697 r6917  
    192192                                'context'                       => $context == '' ? $GLOBALS['phpgw_info']['server']['ldap_context'] : $context, 
    193193                                'sector'                        => $_POST['sector'], 
     194                                'associated_domain' => $_POST['associated_domain'], 
    194195                                'disk_quota'        => $_POST['disk_quota'],  
    195                                 'users_quota'       => $_POST['users_quota'],  
     196                    'users_quota'       => $_POST['users_quota'],  
    196197                                'manager_org'           => $combo_manager_org, 
    197198                                'sector_visible_checked'=> $_POST['sector_visible'] ? 'checked' : '', 
     
    256257                        { 
    257258                                $sector_info = $this->so->get_info($_GET['context']); 
    258                                 $sector_disk_quota = $sector_info[0]['diskquota'][0];  
    259                                 $sector_users_quota = $sector_info[0]['usersquota'][0];  
     259                $sector_disk_quota = $sector_info[0]['diskquota'][0];  
     260                    $sector_users_quota = $sector_info[0]['usersquota'][0];  
     261                    $sector_associated_domain = $sector_info[0]['associateddomain'][0];  
    260262                                $_POST['sector_visible'] = $sector_info[0]['phpgwaccountvisible'][0]; 
    261263                        }  
     
    270272                                'manager_org'           => $combo_manager_org, 
    271273                                'sector_visible_checked'=> $_POST['sector_visible'] ? 'checked' : '', 
    272                                 'disk_quota'        => $_POST['disk_quota'] == '' ? $sector_disk_quota : $_POST['disk_quota'],  
    273                                 'users_quota'       => $_POST['users_quota'] == '' ? $sector_users_quota : $_POST['users_quota'],  
    274                                  
     274                'disk_quota'        => $_POST['disk_quota'] == '' ? $sector_disk_quota : $_POST['disk_quota'],  
     275                    'users_quota'       => $_POST['users_quota'] == '' ? $sector_users_quota : $_POST['users_quota'],  
     276                    'associated_domain'        => $_POST['associated_domain'] == '' ? $sector_associated_domain : $_POST['associated_domain'],  
    275277                                'lang_add'                      => lang('Add'), 
    276278                                'disable'                       => 'disabled', 
  • trunk/expressoAdmin1_2/templates/default/accounts_form.tpl

    r5133 r6917  
    1515<input type="hidden" name="photo_exist"                 value="{photo_exist}"> 
    1616<input type="hidden" name="user_context"                value="{user_context}"> 
    17 <input type="hidden" name="departmentnumber"            value="{departmentnumber}"> 
     17<input type="hidden" name="departmentnumber"    value="{departmentnumber}"> 
    1818<input type="hidden" name="userSamba"                   value="{userSamba}"> 
    19 <input type="hidden" name="defaultLogonScript"          value="{defaultLogonScript}"> 
     19<input type="hidden" name="defaultLogonScript"  value="{defaultLogonScript}"> 
    2020<input type="hidden" name="imapDelimiter"               value="{imapDelimiter}"> 
    21 <input type="hidden" name="minimumSizeLogin"            value="{minimumSizeLogin}"> 
     21<input type="hidden" name="minimumSizeLogin"    value="{minimumSizeLogin}"> 
    2222<input type="hidden" name="defaultDomain"               value="{defaultDomain}"> 
    2323<input type="hidden" name="ldap_context"                value="{ldap_context}"> 
     24<input type="hidden" name="associated_domain"   value="{associated_domain}">  
    2425 
    2526<br> 
     
    4243                <tr bgcolor={row_on}> 
    4344                        <td>{lang_search_organization}:</td> 
    44                         <td><input type="text" id="organization_search" {disabled} autocomplete="off" size=20 onKeyUp="javascript:search_organization(this.value, 'ea_combo_org_info');" onBlur="javascript:sinc_combos_org(context.value); get_available_sambadomains(context.value, '{type}')"></td> 
     45                        <td><input type="text" id="organization_search" {disabled} autocomplete="off" size=20 onKeyUp="javascript:search_organization(this.value, 'ea_combo_org_info');" onBlur="javascript:sinc_combos_org(context.value); get_associated_domain(context.value); get_available_groups(context.value); get_available_maillists(context.value); get_available_sambadomains(context.value, '{type}')"></td> 
    4546                </tr> 
    4647 
    4748                <tr bgcolor={row_off}> 
    4849                        <td>{lang_organizations}:</td> 
    49                         <td><select {disabled} id="ea_combo_org_info" name="context" onchange="javascript:sinc_combos_org(this.value); get_available_groups(this.value); get_available_maillists(this.value); get_available_sambadomains(this.value, '{type}')">{sectors}</select></td> 
     50                        <td><select {disabled} id="ea_combo_org_info" name="context" onchange="javascript:sinc_combos_org(this.value); get_associated_domain(this.value); get_available_groups(this.value); get_available_maillists(this.value); get_available_sambadomains(this.value, '{type}')">{sectors}</select></td> 
    5051                </tr> 
    5152                                                         
  • trunk/expressoAdmin1_2/templates/default/institutional_accounts_modal.tpl

    r6157 r6917  
    1717                        <br /> 
    1818                        {lang_organization}:<br /> 
    19                         <select id="ea_combo_org" name="context" onchange="javascript:sinc_combos_org(this.value);">{manager_organizations}</select><br /> 
     19                        <select id="ea_combo_org" name="context" onchange="javascript:sinc_combos_org(this.value);javascript:get_associated_domain(this.value);">{manager_organizations}</select><br /> 
    2020                         
     21                        <input type="hidden" id="associated_domain" name="associated_domain" /> 
     22 
    2123                        {lang_full_name}: <font color="blue">{lang_eg}: Setor Diser</font><br /> 
    2224                        <input id="cn" name="cn" size="35" autocomplete="off" /><br /> 
  • trunk/expressoAdmin1_2/templates/default/sectors_form.tpl

    r6553 r6917  
    2020                        </td> 
    2121                        <td> 
    22                                 <input type="text" {disable} autocomplete="off" name="sector" value={sector}> 
     22                                  <input type="text" {disable} autocomplete="off" name="sector" value={sector}> 
     23        </td>  
     24          </tr>  
     25          <tr>    
     26            <td>  
     27               {lang_Associated_domain}:  
     28            </td>  
     29          <td>  
     30            <input type="text" {disable} autocomplete="off" name="associated_domain" value={associated_domain}>  
    2331                        </td> 
    2432                </tr> 
Note: See TracChangeset for help on using the changeset viewer.