* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
}
function get_user_ax($matricule_ax, $raw=false)
{
require_once('webservices/ax/client.inc');
}
function get_user_ax($matricule_ax, $raw=false)
{
require_once('webservices/ax/client.inc');
$userax['sexe'] = ($ancien->Civilite() != 'M')?1:0;
$userax['promo'] = $ancien->Promo();
/* $userax['nationalite'] = $ancien->Nationalite();
$userax['sexe'] = ($ancien->Civilite() != 'M')?1:0;
$userax['promo'] = $ancien->Promo();
/* $userax['nationalite'] = $ancien->Nationalite();
//$userax['date'] = substr($ancien[12], 0, 10);
$userax['mobile'] = trim($ancien->Mobile(0));
/* if ($ancien->Corps() == 'D' || $ancien->Corps() == 'Z') {
//$userax['date'] = substr($ancien[12], 0, 10);
$userax['mobile'] = trim($ancien->Mobile(0));
/* if ($ancien->Corps() == 'D' || $ancien->Corps() == 'Z') {
if ($ancien->Tel($i) || $ancien->Fax($i)) {
$adrax['tels'] = array();
if ($tel = $ancien->Tel($i))
if ($ancien->Tel($i) || $ancien->Fax($i)) {
$adrax['tels'] = array();
if ($tel = $ancien->Tel($i))
if ($tel = $ancien->Fax($i))
$adrax['tels'][] = array('tel' => $tel, 'tel_type' => 'Fax', 'tel_pub' => 'ax');
}
if ($tel = $ancien->Fax($i))
$adrax['tels'][] = array('tel' => $tel, 'tel_type' => 'Fax', 'tel_pub' => 'ax');
}
$diff = diff_user_details($userax, $user, 'ax');
set_user_details($user['user_id'], $diff);
}
$diff = diff_user_details($userax, $user, 'ax');
set_user_details($user['user_id'], $diff);
}