Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 673 Rev 713
Line 103... Line 103...
103
					$this->requete_condition []= " annee >= ".$this->getBdd()->proteger($val);
103
					$this->requete_condition []= " annee >= ".$this->getBdd()->proteger($val);
104
					break;
104
					break;
105
				case 'masque.anf' :
105
				case 'masque.anf' :
106
					$this->requete_condition []= " annee <= ".$this->getBdd()->proteger($val);
106
					$this->requete_condition []= " annee <= ".$this->getBdd()->proteger($val);
107
					break;
107
					break;
-
 
108
				case 'masque.prgua' :
-
 
109
					$this->ajouterFiltreMasque('presence_Guadeloupe', $val);
-
 
110
					break;
-
 
111
				case 'masque.prmar' :
-
 
112
					$this->ajouterFiltreMasque('presence_Martinique', $val);
-
 
113
					break;
-
 
114
				case 'masque.prstm' :
-
 
115
					$this->ajouterFiltreMasque('presence_Saint_Martin', $val);
-
 
116
					break;
-
 
117
				case 'masque.prdes' :
-
 
118
					$this->ajouterFiltreMasque('presence_La_Desirade', $val);
-
 
119
					break;
-
 
120
						
-
 
121
				case 'masque.prstb' :
-
 
122
					$this->ajouterFiltreMasque('presence_Saint_Barthelemy', $val);
-
 
123
					break;
-
 
124
							
-
 
125
				case 'masque.prmga' :
-
 
126
					$this->ajouterFiltreMasque('presence_Marie_Galante', $val);
-
 
127
					break;
-
 
128
					
-
 
129
				case 'masque.prsai' :
-
 
130
					$this->ajouterFiltreMasque('`presence_Les-Saintes`', $val);
-
 
131
					break;
108
			}
132
			}
109
		}
133
		}
110
	}
134
	}
Line 111... Line 135...
111
 
135
 
Line 607... Line 631...
607
	}
631
	}
Line 608... Line 632...
608
 
632
 
609
	public function formaterEnJsonMax($resultat) {
633
	public function formaterEnJsonMax($resultat) {
Line 610... Line 634...
610
		$this->recupererTableSignification('correspondance_champs,champs_api,champs_comp');
634
		$this->recupererTableSignification('correspondance_champs,champs_api,champs_comp');
611
 
635
 
612
		// TODO : améliorer le trie des résultats
636
		// TODO : améliorer le tri des résultats
613
		// ATTENTION : ce comportement est étrange
637
		// ATTENTION : ce comportement est étrange
-
 
638
		$masque = $this->recupererMasquePrincipal();
-
 
639
		if (isset($masque) && !isset($this->parametres['retour.tri'])) {
614
		$masque = $this->recupererMasquePrincipal();
640
			// fonction du pauvre pour palier aux "." remplacés accidentellement par des "_"
615
		if (isset($masque) && !isset($this->parametres['retour.tri'])) {
641
			$index = str_replace('masque_','masque.',$masque[0]);
Line 616... Line 642...
616
			$resultat = $this->trierRechercheFloue($this->parametres[$masque[0]], $resultat, $masque[1]);
642
			//$resultat = $this->trierRechercheFloue($this->parametres[$index], $resultat, $masque[1]);
617
		}
643
		}
618
 
644