|
|
@ -109,7 +109,7 @@ elseif ($annee <> "" && $composante == "" && $etape == "") // form 2 annee != 0; |
|
|
|
for($i = 0; $i < $info['count']; $i ++) |
|
|
|
for($i = 0; $i < $info['count']; $i ++) |
|
|
|
{ |
|
|
|
{ |
|
|
|
//presupose LDAP server is UTF-8 |
|
|
|
//presupose LDAP server is UTF-8 |
|
|
|
$composante[$info[$i]['ou'][0]] = api_utf8_decode($info[$i]['description'][0], api_get_setting('platform_charset')); |
|
|
|
$composante[$info[$i]['ou'][0]] = api_utf8_decode($info[$i]['description'][0], api_get_system_encoding()); |
|
|
|
} |
|
|
|
} |
|
|
|
$oucompotab3=$composante; |
|
|
|
$oucompotab3=$composante; |
|
|
|
|
|
|
|
|
|
|
@ -189,7 +189,7 @@ elseif ($annee <> "" && $composante <> "" && $etape == "") // form3 :annee!=0com |
|
|
|
if ($ouetapetab[$key] != $tempcomp) { |
|
|
|
if ($ouetapetab[$key] != $tempcomp) { |
|
|
|
$etape = $ouetapetab2[$key]; |
|
|
|
$etape = $ouetapetab2[$key]; |
|
|
|
$tempcomp = '"'.$ouetapetab[$key].'"'; |
|
|
|
$tempcomp = '"'.$ouetapetab[$key].'"'; |
|
|
|
$tempcomp = api_utf8_decode($tempcomp, api_get_setting('platform_charset')); |
|
|
|
$tempcomp = api_utf8_decode($tempcomp, api_get_system_encoding()); |
|
|
|
|
|
|
|
|
|
|
|
$annee = str_word_count($etape, 1); |
|
|
|
$annee = str_word_count($etape, 1); |
|
|
|
echo '<option value="'.$etape.'">'.$tempcomp.'</option>'; |
|
|
|
echo '<option value="'.$etape.'">'.$tempcomp.'</option>'; |
|
|
@ -255,8 +255,8 @@ elseif (!empty($annee) && !empty($course) && empty($_POST['confirmed'])) |
|
|
|
$info = ldap_get_entries($ds, $sr); |
|
|
|
$info = ldap_get_entries($ds, $sr); |
|
|
|
|
|
|
|
|
|
|
|
for ($key = 0; $key < $info["count"]; $key ++) { |
|
|
|
for ($key = 0; $key < $info["count"]; $key ++) { |
|
|
|
$nom_form[] = $info[$key]["sn"][0];//api_utf8_decode($info[$key]["sn"][0], api_get_setting('platform_charset')); |
|
|
|
$nom_form[] = $info[$key]["sn"][0];//api_utf8_decode($info[$key]["sn"][0], api_get_system_encoding()); |
|
|
|
$prenom_form[] = $info[$key]["givenname"][0];//api_utf8_decode($info[$key]["givenname"][0], api_get_setting('platform_charset')); |
|
|
|
$prenom_form[] = $info[$key]["givenname"][0];//api_utf8_decode($info[$key]["givenname"][0], api_get_system_encoding()); |
|
|
|
$email_form[] = $info[$key]["mail"][0]; |
|
|
|
$email_form[] = $info[$key]["mail"][0]; |
|
|
|
// Get uid from dn |
|
|
|
// Get uid from dn |
|
|
|
//$dn_array=ldap_explode_dn($info[$key]["dn"],1); |
|
|
|
//$dn_array=ldap_explode_dn($info[$key]["dn"],1); |
|
|
|