Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 1180 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1180 Rev 1196
Line 616... Line 616...
616
	 		if ($nn != 0) {
616
	 		if ($nn != 0) {
617
	 			$url = sprintf($squeletteUrlSptb, $nn);
617
	 			$url = sprintf($squeletteUrlSptb, $nn);
618
	 			//echo "URL: $url\n";
618
	 			//echo "URL: $url\n";
619
	 			$statuts = $this->chargerDonnees($url);
619
	 			$statuts = $this->chargerDonnees($url);
620
	 			//echo "STATUTS: " . print_r($statuts, true) . "\n";
620
	 			//echo "STATUTS: " . print_r($statuts, true) . "\n";
621
	 			if (count($statuts) > 0) {
621
	 			if ($statuts != array() && array_count_values($statuts) > 0) {
622
	 				$json = array();
622
	 				$json = array();
623
	 				foreach ($statuts as $statut) {
623
	 				foreach ($statuts as $statut) {
624
 						$nouveauStatut = array();
624
 						$nouveauStatut = array();
625
 						$nouveauStatut['zone'] = $statut['code_zone_application'];
625
 						$nouveauStatut['zone'] = $statut['code_zone_application'];
626
 						$nouveauStatut['lien'] = $statut['hyperlien_legifrance'];
-
 
627
 						$json[] =  $nouveauStatut;
626
 						$json[] =  $nouveauStatut;
628
	 				}
627
	 				}
629
	 				// Si au moins un statut
628
	 				// Si au moins un statut
630
	 				if (count($json) > 0) {
629
	 				if (count($json) > 0) {
631
	 					$json = json_encode($json);
630
	 					$json = json_encode($json);