X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fsynchro_ax.inc.php;h=798b4dd46fb457d8f869f389f552de551ccf3d86;hb=e0ee31204dbb8e43870716190e4549257416fcb8;hp=d0be5484b42e758a79a3a2e56b5e0097d9b8b455;hpb=1a013db76335dc18f2b756bd5aca57401d384026;p=platal.git diff --git a/include/synchro_ax.inc.php b/include/synchro_ax.inc.php index d0be548..798b4dd 100644 --- a/include/synchro_ax.inc.php +++ b/include/synchro_ax.inc.php @@ -1,6 +1,6 @@ Nom_patr()); $userax['nom_usage'] = strtoupper($ancien->Nom_usuel()); if ($userax['nom_usage'] == $userax['nom']) $userax['nom_usage'] = ''; @@ -45,7 +42,7 @@ function get_user_ax($matricule_ax, $raw=false) $userax['sexe'] = ($ancien->Civilite() != 'M')?1:0; $userax['promo'] = $ancien->Promo(); /* $userax['nationalite'] = $ancien->Nationalite(); - if ($userax['nationalite'] == 'F') $userax['nationalite'] = 'Français'; */ + if ($userax['nationalite'] == 'F') $userax['nationalite'] = 'Français'; */ //$userax['date'] = substr($ancien[12], 0, 10); $userax['mobile'] = trim($ancien->Mobile(0)); /* if ($ancien->Corps() == 'D' || $ancien->Corps() == 'Z') { @@ -54,8 +51,8 @@ function get_user_ax($matricule_ax, $raw=false) $userax['corps'] = $ancien->Corps(); $userax['corps_grade'] = $ancien->Grade(); } */ - $userax['adr_pro'] = array(); - + $userax['adr_pro'] = array(); + for ($i = 0; $i < $ancien->Num_Activite(); $i++) { $jobax = array(); $jobax['entreprise'] = $ancien->Entreprise($i); @@ -93,14 +90,14 @@ function get_user_ax($matricule_ax, $raw=false) if ($ancien->Tel($i) || $ancien->Fax($i)) { $adrax['tels'] = array(); if ($tel = $ancien->Tel($i)) - $adrax['tels'][] = array('tel' => $tel, 'tel_type' => 'Tél.', 'tel_pub' => 'ax'); + $adrax['tels'][] = array('tel' => $tel, 'tel_type' => 'Tél.', 'tel_pub' => 'ax'); if ($tel = $ancien->Fax($i)) $adrax['tels'][] = array('tel' => $tel, 'tel_type' => 'Fax', 'tel_pub' => 'ax'); } if ($ancien->Mobile($i)) $userax['mobile'] = $ancien->Mobile($i); $userax['adr'][$i] = $adrax; } - + /* $userax['formation'] = array(); for($i=$ancien->Num_formation() - 1; $i >= 0; $i--) $userax['formation'][$i] = $ancien->Formation($i);*/ @@ -117,5 +114,5 @@ function ax_synchronize($login, $uid) { $diff = diff_user_details($userax, $user, 'ax'); set_user_details($user['user_id'], $diff); } -// vim:set et sw=4 sts=4 sws=4: +// vim:set et sw=4 sts=4 sws=4 enc=utf-8: ?>