Subversion Repositories Sites.obs-saisons.fr

Rev

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

Rev 31 Rev 43
Line 22... Line 22...
22
    }
22
    }
Line 23... Line 23...
23
    
23
    
Line 24... Line 24...
24
    public function initialiser() {
24
    public function initialiser() {
-
 
25
    	
25
    	
26
    	$this->id_observation_en_cours = $_GET['id_observation'];
Line 26... Line 27...
26
    	$this->id_observation_en_cours = $_GET['id_observation'];
27
    	$this->setNavigation();
27
    }
28
    }
28
    
29
    
Line 49... Line 50...
49
    	$espece = new Espece();
50
    	$espece = new Espece();
50
    	$evenements = $espece->getListeEvenementPourEspece($id_espece);
51
    	$evenements = $espece->getListeEvenementPourEspece($id_espece);
Line 51... Line 52...
51
    	
52
    	
Line 52... Line 53...
52
    	$station = new Station();
53
    	$station = new Station();
53
    	
54
    	
Line 54... Line 55...
54
    	$individus = $station->getIndividusStation($id_station);
55
    	$individus = $station->getIndividusStationPourEspece($id_station,$id_espece);
55
    	foreach($individus as &$individu) {
56
    	foreach($individus as &$individu) {
56
    		
57
    		
57
    		$observation = new Observation();
58
    		$observation = new Observation();
58
    		$individu['observations'] = $observation->getListeObservationsPourIndividu($individu['id']);
-
 
59
    		$individu['url'] = aControleur::getUrlConsultationFicheIndividu($individu['id'],$individu['id']);
-
 
Line 60... Line 59...
60
    	}
59
    		$individu['observations'] = $observation->getListeObservationsPourIndividu($individu['id']);
61
    	
60
    		$individu['url'] = aControleur::getUrlConsultationFicheIndividu($individu['id'],$individu['id']);
62
    	echo $id_individu_a_modifier_observation;
61
    	}
63
 
62
 
Line 69... Line 68...
69
 
68
 
70
        $this->setSortie(self::RENDU_CORPS, $this->getVue('formulaires/evenement_modification', $donnees));
69
        $this->setSortie(self::RENDU_CORPS, $this->getVue('formulaires/evenement_modification', $donnees));
Line 71... Line 70...
71
    }
70
    }
-
 
71
    
-
 
72
    // +---------------------------------------------------------------------------------------------------------------+
-
 
73
    // METHODES POUR FABRIQUER LE MENU    
-
 
74
    public function setNavigation() {
-
 
75
    	
-
 
76
    	$station = new Station();
-
 
77
    	$this->setSortie(self::RENDU_NAVIGATION, $station->construireMenuNavigation());
-
 
78
    }
72
    
79
    
73
    // +---------------------------------------------------------------------------------------------------------------+
80
    // +---------------------------------------------------------------------------------------------------------------+
Line 74... Line 81...
74
    // METHODES APPELEES LORS DE LA VALIDATION D'UN FORMULAIRE
81
    // METHODES APPELEES LORS DE LA VALIDATION D'UN FORMULAIRE
Line 75... Line 82...
75
    public function validerFormulaireAjoutObservation() {
82
    public function validerFormulaireAjoutObservation() {
Line 76... Line 83...
76
    	
83
    	
77
    	$valeurs_formulaires = $_POST['form_saisie_observation'];
84
    	$valeurs_formulaires = $_POST;
78
    	
85
    	
Line 79... Line 86...
79
    	$valeurs_verifiees = array();
86
    	$valeurs_verifiees = array();
Line 80... Line 87...
80
    	
87
    	
-
 
88
    	$observation_dao = new ObservationDao();
-
 
89
    	$observation_dao->ajouterObservation($valeurs_verifiees);
-
 
90
    }
Line 81... Line 91...
81
    	$observation_dao = new ObservationDao();
91
    
Line 82... Line 92...
82
    	$observation_dao->ajouterObservation($valeurs_verifiees);
92
    public function validerFormulaireModificationObservation() {
83
    }
93