Subversion Repositories Sites.obs-saisons.fr

Rev

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

Rev 112 Rev 167
Line 44... Line 44...
44
		    $donnees['station_milieu'] = '';
44
		    $donnees['station_milieu'] = '';
45
		    $donnees['station_nom'] = '';
45
		    $donnees['station_nom'] = '';
46
		    $donnees['station_lat'] = '';
46
		    $donnees['station_lat'] = '';
47
		    $donnees['station_lon'] = '';
47
		    $donnees['station_lon'] = '';
48
		   	$donnees['station_alt'] = '';
48
		   	$donnees['station_alt'] = '';
-
 
49
		   	$donnees['station_code_insee'] = '';
49
    	}
50
    	}
Line 50... Line 51...
50
    	
51
    	
51
    	$donnees['milieux'] = $this->getListeMilieux();
52
    	$donnees['milieux'] = $this->getListeMilieux();
52
    	$formulaire = $this->getVue('formulaires/station_saisie',$donnees);
53
    	$formulaire = $this->getVue('formulaires/station_saisie',$donnees);
Line 107... Line 108...
107
	    $valeurs_collectees['station_milieu'] =  $_POST['station_milieu'];
108
	    $valeurs_collectees['station_milieu'] =  $_POST['station_milieu'];
108
	    $valeurs_collectees['station_nom'] = $_POST['station_nom'];
109
	    $valeurs_collectees['station_nom'] = $_POST['station_nom'];
109
	    $valeurs_collectees['station_lat'] =  $_POST['station_lat']; 
110
	    $valeurs_collectees['station_lat'] =  $_POST['station_lat']; 
110
	    $valeurs_collectees['station_lon'] = $_POST['station_lon'];
111
	    $valeurs_collectees['station_lon'] = $_POST['station_lon'];
111
	   	$valeurs_collectees['station_alt'] = $_POST['station_alt'];
112
	   	$valeurs_collectees['station_alt'] = $_POST['station_alt'];
-
 
113
	   	$valeurs_collectees['station_code_insee'] = $_POST['station_code_insee'];
Line 112... Line 114...
112
	    
114
	    
Line 113... Line 115...
113
	    return $valeurs_collectees;
115
	    return $valeurs_collectees;
Line 121... Line 123...
121
	    $valeurs_collectees['station_nom'] = $_POST['station_nom'];
123
	    $valeurs_collectees['station_nom'] = $_POST['station_nom'];
122
	    $valeurs_collectees['station_lat'] =  $_POST['station_lat']; 
124
	    $valeurs_collectees['station_lat'] =  $_POST['station_lat']; 
123
	    $valeurs_collectees['station_lon'] = $_POST['station_lon'];
125
	    $valeurs_collectees['station_lon'] = $_POST['station_lon'];
124
	    $valeurs_collectees['station_alt'] = $_POST['station_alt'];
126
	    $valeurs_collectees['station_alt'] = $_POST['station_alt'];
125
	    $valeurs_collectees['station_id'] = $_POST['station_id'];
127
	    $valeurs_collectees['station_id'] = $_POST['station_id'];
-
 
128
	    $valeurs_collectees['station_code_insee'] = $_POST['station_code_insee'];
Line 126... Line 129...
126
	    
129
	    
Line 127... Line 130...
127
	    return $valeurs_collectees;
130
	    return $valeurs_collectees;
Line 128... Line 131...
128
    	
131
    	
Line 129... Line 132...
129
    }
132
    }
Line 130... Line 133...
130
    
133
    
131
    private function verifierValeursStation($valeurs_a_verifier) {
134
    private function verifierValeursStation($valeurs_a_verifier) {
132
    	
135
    	
133
    	$erreurs = array();
136
    	$erreurs = array();
134
    	
137
    	
Line 135... Line 138...
135
    	foreach($valeurs_a_verifier as $champ => $valeur) {
138
    	foreach($valeurs_a_verifier as $champ => $valeur) {