0 && strlen($siret)<>9 && strlen($siret)<>14) die('Paramètres incorrects !'); $idan=trim(preg_replace('/[^0-9]/', '', $_REQUEST['idan']))*1; // Si id=0 alors non communiqué if (($siret*1)==0 && $idan==0) die('Paramètres incorrects !'); $siren=substr($siret,0,9); if (isset($_REQUEST['idan']) && $_REQUEST['idan']*1<>0) $idCom=$_REQUEST['idan']; else $idCom=false; include_once(INCLUDE_PATH.'/partenaires/classMTva.php'); include_once(INCLUDE_PATH.'/partenaires/classMMap.php'); include_once(INCLUDE_PATH.'/partenaires/classMCoface.php'); include_once(FWK_PATH.'/common/dates.php'); /** Utilisation du WS **/ $client = new SoapClient(null, array( 'trace' => 1, 'soap_version' => SOAP_1_1, 'location' => WEBSERVICE_URL, 'uri' => WEBSERVICE_URI, 'login' => $_SESSION['tabInfo']['login'], 'password' => $_SESSION['tabInfo']['password'])); try { $O = $client->getInfosReg($siren, $idCom); $annonces=$O['result']; } catch (SoapFault $fault) { include_once(realpath(dirname(__FILE__).'/../../').'/includes/soaperror.php'); processSoapFault($client,$fault,$tabInfo); die(); } $raisonSociale=$tabInfo['entrep']['raisonSociale']; ?>
Numéro identifiant Siren | =substr($siren,0,3).' '.substr($siren,3,3).' '.substr($siren,6,3)?> | ||
Raison Sociale | =$raisonSociale?> | ||
Information =$ann['source']?> du =WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution'])?>. Entrée en base S&D : =WDate::dateT('Y-m-d','d/m/Y',$ann['dateInsertionSD'])?> | |||
=utf8_decode($ann['titre'])?> | |||
//$texte=preg_replace("/((?:[0-9]{9,9})|(?:[0-9]{3,3} [0-9]{3,3} [0-9]{3,3})|(?:[0-9]{3,3}\.[0-9]{3,3}\.[0-9]{3,3})|(?:[0-9]{3,3}-[0-9]{3,3}-[0-9]{3,3}))/", '$1', $ann['texteAnnonce']); //$texte=preg_replace("/((?:[0-9]{9,9})|(?:[0-9]{3,3} [0-9]{3,3} [0-9]{3,3})|(?:[0-9]{3,3}\.[0-9]{3,3}\.[0-9]{3,3})|(?:[0-9]{3,3}-[0-9]{3,3}-[0-9]{3,3}))/", '$1', $ann['texteAnnonce']); $texte=preg_replace_callback("/((?:[0-9]{9,9})|(?:[0-9]{3,3} [0-9]{3,3} [0-9]{3,3})|(?:[0-9]{3,3}\.[0-9]{3,3}\.[0-9]{3,3})|(?:[0-9]{3,3}-[0-9]{3,3}-[0-9]{3,3}))/", replace_siren, utf8_decode($ann['communique']));//communiqueHtml /*if (preg_match('/(.*)<\/body>/UiS', $texte, $matches)) $texte=$matches[1];*/ ?> | =$texte?> | ||
Revenir à la liste des annonces | |||
Le =WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution'])?> | =utf8_decode($ann['titre'])?> | ||
Néant | |||