l('Closed');} else {$p1=$o1.' - '.$f1;}; if ($o2=='00:00' && $f2=='00:00') {$p2=$mondialrelay->l('Closed');} else {$p2=$o2.' - '.$f2;}; if ($p1=='Fermé' && $p2=='Fermé' ) {$p=$mondialrelay->l('Closed');} else {$p=$p1.'  '.$p2;}; return utf8_encode($p); }; $k_security=strtoupper(md5(_Enseigne_webservice.$client_Num.$client_Pays._Key_webservice)); require_once('tools/nusoap/lib/nusoap.php'); $client_mr = new nusoap_client("http://www.mondialrelay.fr/webservice/Web_Services.asmx?WSDL",true); $client_mr->soap_defencoding = 'UTF-8'; $client_mr->decode_utf8 = false; $params = array( 'Enseigne' => _Enseigne_webservice, 'Num' => $client_Num, 'Pays' => $client_Pays, 'Security' => $k_security, ); $result_mr = $client_mr->call('WSI2_DetailPointRelais', $params, 'http://www.mondialrelay.fr/webservice/', 'http://www.mondialrelay.fr/webservice/WSI2_DetailPointRelais'); if ($client_mr->fault) { echo 'a|

Fault (Expect - The request contains an invalid SOAP body)

';
print_r($result);
echo '
|'.$num; } else { $err = $client_mr->getError(); if ($err) { echo 'a|

Error

' . $err . '
|'.$num; } else { $sortie_titre=""; $sortie_loc=""; $sortie_info=""; $sortie_photo=""; $sortie_plan=""; $sortie_horaires=""; echo $result_mr['WSI2_DetailPointRelaisResult']['STAT'].'|'; $sortie_horaires.=""; $sortie_horaires.="".$mondialrelay->l('Monday').""; $sortie_horaires.="".mr_horaire_fr($result_mr['WSI2_DetailPointRelaisResult']['Horaires_Lundi']['string'][0],$result_mr['WSI2_DetailPointRelaisResult']['Horaires_Lundi']['string'][1],$result_mr['WSI2_DetailPointRelaisResult']['Horaires_Lundi']['string'][2],$result_mr['WSI2_DetailPointRelaisResult']['Horaires_Lundi']['string'][3]).""; $sortie_horaires.=""; $sortie_horaires.=""; $sortie_horaires.="".$mondialrelay->l('Tuesday').""; $sortie_horaires.="".mr_horaire_fr($result_mr['WSI2_DetailPointRelaisResult']['Horaires_Mardi']['string'][0],$result_mr['WSI2_DetailPointRelaisResult']['Horaires_Mardi']['string'][1],$result_mr['WSI2_DetailPointRelaisResult']['Horaires_Mardi']['string'][2],$result_mr['WSI2_DetailPointRelaisResult']['Horaires_Mardi']['string'][3]).""; $sortie_horaires.=""; $sortie_horaires.=""; $sortie_horaires.="".$mondialrelay->l('Wednesday').""; $sortie_horaires.="".mr_horaire_fr($result_mr['WSI2_DetailPointRelaisResult']['Horaires_Mercredi']['string'][0],$result_mr['WSI2_DetailPointRelaisResult']['Horaires_Mercredi']['string'][1],$result_mr['WSI2_DetailPointRelaisResult']['Horaires_Mercredi']['string'][2],$result_mr['WSI2_DetailPointRelaisResult']['Horaires_Mercredi']['string'][3]).""; $sortie_horaires.=""; $sortie_horaires.="".$mondialrelay->l('Thursday').""; $sortie_horaires.="".mr_horaire_fr($result_mr['WSI2_DetailPointRelaisResult']['Horaires_Jeudi']['string'][0],$result_mr['WSI2_DetailPointRelaisResult']['Horaires_Jeudi']['string'][1],$result_mr['WSI2_DetailPointRelaisResult']['Horaires_Jeudi']['string'][2],$result_mr['WSI2_DetailPointRelaisResult']['Horaires_Jeudi']['string'][3]).""; $sortie_horaires.=""; $sortie_horaires.="".$mondialrelay->l('Friday').""; $sortie_horaires.="".mr_horaire_fr($result_mr['WSI2_DetailPointRelaisResult']['Horaires_Vendredi']['string'][0],$result_mr['WSI2_DetailPointRelaisResult']['Horaires_Vendredi']['string'][1],$result_mr['WSI2_DetailPointRelaisResult']['Horaires_Vendredi']['string'][2],$result_mr['WSI2_DetailPointRelaisResult']['Horaires_Vendredi']['string'][3]).""; $sortie_horaires.=""; $sortie_horaires.="".$mondialrelay->l('Saturday').""; $sortie_horaires.="".mr_horaire_fr($result_mr['WSI2_DetailPointRelaisResult']['Horaires_Samedi']['string'][0],$result_mr['WSI2_DetailPointRelaisResult']['Horaires_Samedi']['string'][1],$result_mr['WSI2_DetailPointRelaisResult']['Horaires_Samedi']['string'][2],$result_mr['WSI2_DetailPointRelaisResult']['Horaires_Samedi']['string'][3]).""; $sortie_horaires.=""; $sortie_horaires.="".$mondialrelay->l('Sunday').""; $sortie_horaires.="".mr_horaire_fr($result_mr['WSI2_DetailPointRelaisResult']['Horaires_Dimanche']['string'][0],$result_mr['WSI2_DetailPointRelaisResult']['Horaires_Dimanche']['string'][1],$result_mr['WSI2_DetailPointRelaisResult']['Horaires_Dimanche']['string'][2],$result_mr['WSI2_DetailPointRelaisResult']['Horaires_Dimanche']['string'][3]).""; $sortie_horaires.=""; $sortie_horaires="".$sortie_horaires."
"; $sortie_titre.="".$result_mr['WSI2_DetailPointRelaisResult']['LgAdr1'].""; if ($result_mr['WSI2_DetailPointRelaisResult']['LgAdr2']!='') {$sortie_titre.="
".$result_mr['WSI2_DetailPointRelaisResult']['LgAdr2'];}; if ($result_mr['WSI2_DetailPointRelaisResult']['LgAdr3']!='') {$sortie_titre.="
".$result_mr['WSI2_DetailPointRelaisResult']['LgAdr3'];}; if ($result_mr['WSI2_DetailPointRelaisResult']['LgAdr4']!='') {$sortie_titre.="
".$result_mr['WSI2_DetailPointRelaisResult']['LgAdr4'];}; if ($result_mr['WSI2_DetailPointRelaisResult']['CP']!='') {$sortie_titre.="
".$result_mr['WSI2_DetailPointRelaisResult']['CP'];}; if ($result_mr['WSI2_DetailPointRelaisResult']['Ville']!='') {$sortie_titre.=" ".$result_mr['WSI2_DetailPointRelaisResult']['Ville'];}; //if ($result_mr['WSI2_DetailPointRelaisResult']['Pays']!='') {$sortie_titre.=" - ".$result_mr['WSI2_DetailPointRelaisResult']['Pays'];}; $sortie_titre="

".$sortie_titre."

"; if ($result_mr['WSI2_DetailPointRelaisResult']['Localisation1']!='') {$sortie_loc.=$result_mr['WSI2_DetailPointRelaisResult']['Localisation1'];}; if ($result_mr['WSI2_DetailPointRelaisResult']['Localisation2']!='') {$sortie_loc.="
".$result_mr['WSI2_DetailPointRelaisResult']['Localisation2'];}; if ($sortie_loc!="") {$sortie_loc="

".$sortie_loc."

";} if ($result_mr['WSI2_DetailPointRelaisResult']['Information']!='') {$sortie_info="

".$result_mr['WSI2_DetailPointRelaisResult']['Information']."

";}; if ($result_mr['WSI2_DetailPointRelaisResult']['URL_Photo']!='') {$sortie_photo="";}; if ($result_mr['WSI2_DetailPointRelaisResult']['URL_Plan']!='') {$sortie_plan.="";}; $fermer=""; echo "
".$fermer."

Votre Point Relais

".utf8_encode($sortie_titre.$sortie_loc.$sortie_info)."

".$sortie_plan."
".$sortie_horaires."
".$sortie_photo."
l('Select this Relay Point'))."\" type=\"button\" onclick=\" document.getElementById('MRchoixRelais".$num.'_'.$result_mr['WSI2_DetailPointRelaisResult']['Num']."').checked=true;select_PR_MR('".$result_mr['WSI2_DetailPointRelaisResult']['Num']."','".$num."');masque_recherche_MR_detail('".$num."');\">
|".$num; } } ?>