Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 76 Rev 77
Line 49... Line 49...
49
		} elseif ($res['entete']['total'] == 1 || urldecode($_GET['submit']) == $form['fiche']) { // renvoie à la fiche
49
		} elseif ($res['entete']['total'] == 1 || urldecode($_GET['submit']) == $form['fiche']) { // renvoie à la fiche
50
			$ids = array_keys($res['resultat']);
50
			$ids = array_keys($res['resultat']);
51
			$url = $this->obtenirUrlFiche($ids[0]);
51
			$url = $this->obtenirUrlFiche($ids[0]);
52
			$this->redirigerVers($url);
52
			$this->redirigerVers($url);
53
		} else { // affiche les résultats
53
		} else { // affiche les résultats
-
 
54
			$res['type'] = $_GET['type_nom'];
54
			Registre::set('resultats', $res);
55
			Registre::set('resultats', $res);
55
			$approche = 'ok';
56
			$approche = 'ok';
56
		}
57
		}
57
		return $approche;
58
		return $approche;
58
	}
59
	}