diff --git a/www/pages/annonces.php b/www/pages/annonces.php index 5a93f6e2d..8564ea24c 100644 --- a/www/pages/annonces.php +++ b/www/pages/annonces.php @@ -71,7 +71,7 @@ try { if (count($annonces)==0) { $id=0; $O = $client->getAnnonces($siren, $filtre,$id); - $annonces=$O['result']; + $annonces=$O['result']; } } catch (SoapFault $fault) { echo '
'.$client->__getLastResponse().'
'; @@ -79,11 +79,16 @@ try { print_r($fault); die(); } - +/* +print "
";
+print_r($annonces);
+print "
"; +exit; +*/ /** Récupération du site WEB et tel/fax entreprise **/ - $conid = mysql_pconnect('localhost', 'root', 'catsysyo92'); + $conid = mysql_pconnect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS); if (!($conid === false)) { - if (mysql_select_db('sdv1', $conid) === false) { + if (mysql_select_db(MYSQL_DB, $conid) === false) { die('Base de données indisponible'); } } @@ -140,7 +145,7 @@ try {  '; + echo ' '; $ann=$annonces[0]; /** ** AFFICHAGE D'UNE ANNONCE BODACC / BALO / ASSO @@ -175,7 +180,8 @@ try {   - +   Source BODACC '.substr($ann['BodaccCode'],-1).' du '.WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution']); else echo '   Source BODACC n°'.$ann['BodaccNum'].' '.substr($ann['BodaccCode'],-1).' du '.WDate::dateT('Y-m-d','d/m/Y',$ann['DateParution']);?>. Département n°. .'') echo 'Entrée en base : '. WDate::dateT('Y-m-d','d/m/Y',$ann['dateInsertionSD']); - ?> + + if ($ann['dateInsertionSD']<>'') echo 'Entrée en base : '. WDate::dateT('Y-m-d','d/m/Y',$ann['dateInsertionSD']); + ?> + */ diff --git a/www/pages/greffes.php b/www/pages/greffes.php index 803249f74..7140970fe 100644 --- a/www/pages/greffes.php +++ b/www/pages/greffes.php @@ -4,9 +4,9 @@ $idCommande=0; //include_once(realpath(dirname(__FILE__). '/../../framework/default/_includes/mysql.php')); -$con = mysql_pconnect('localhost', 'root', 'catsysyo92'); +$con = mysql_pconnect(MYSQL_HOST, MYSQL_USER, MYSQL_PASS); if (!($con === false)) { - if (mysql_select_db('sdv1', $con) === false) + if (mysql_select_db(MYSQL_DB, $con) === false) echo (''); }