Changement dans gosa

Dans /usr/share/gosa/plugins/personal/generic

J'ai modifié class_user.inc Ligne 206

/* modif jf type array pour attribut ou 
     * la variable $ou dans le template va devenir un array
     */
 
    if (isset ($this->attrs['ou'])) {
        $this->ou = $this->attrs['ou']; 
    }

Ligne 695

/*  modif jf 
 *
 */    
if ($this->ou) {
    foreach($this->ou as $key => $valeur)
    {
    	    $valeur = trim ($valeur);
            if(!$valeur) unset($this->ou[$key]);
    }
}

Dans generic.tpl :

Ligne 216

<tr>
     <td><label for="ou">{t}Department{/t}</label></td>
     <td><input id="ou" name="ou[]" size=22 maxlength=60 {$ouACL} value="{if isset($ou[0])}{$ou[0]}{/if}"></td>
    </tr>
    <tr>
     <td><label for="ou">{t}Department{/t}</label></td>
     <td><input id="ou2" name="ou[]" size=22 maxlength=60 {$ouACL} value="{if isset($ou[1])}{$ou[1]}{/if}"></td>
    </tr> 
    <tr>
     <td><label for="ou">{t}Department{/t}</label></td>
     <td><input id="ou3" name="ou[]" size=22 maxlength=60 {$ouACL} value="{if isset($ou[2])}{$ou[2]}{/if}"></td>
    </tr>
    <tr>
     <td><label for="ou">{t}Department{/t}</label></td>
     <td><input id="ou4" name="ou[]" size=22 maxlength=60 {$ouACL} value="{if isset($ou[3])}{$ou[3]}{/if}"></td>
    </tr>

J'ai aussi ajouté : ligne 298

<tr>
     <td><label for="postalCode">{t}postalCode{/t}</label></td>
     <td><input id="postalCode" name="postalCode" size=12 maxlength=60 {$postalCodeACL} value="{$postalCode}"></td>
   </tr>

Discussion

Entrer votre commentaire
Si vous ne pouvez déchiffrer le code, téléchargez ce fichier .wav pour l'entendre.
 
 
php/gosa.txt · Dernière modification: 2009/03/03 15:02 (édition externe)
 
Sauf mention contraire, le contenu de ce wiki est placé sous la licence suivante:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki