Subversion Repositories Sites.obs-saisons.fr

Rev

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

Rev 254 Rev 262
Line 206... Line 206...
206
    	return false;
206
    	return false;
207
    }
207
    }
Line 208... Line 208...
208
    
208
    
Line 209... Line 209...
209
	private function renvoyerIdEvenementSiChampDeFormulaireObservation($champ) {
209
	private function renvoyerIdEvenementSiChampDeFormulaireObservation($champ) {
Line 210... Line 210...
210
    	    	
210
    	    	
211
    	$tab_champ = split('observation_',$champ);
211
    	$tab_champ = explode('observation_',$champ);
212
    	
212
    	
Line 228... Line 228...
228
		$recherche = array('d','m','Y');
228
		$recherche = array('d','m','Y');
229
		$remplacement = array('([0-9]{1,2})','([0-9]{1,2})','([0-9]{4})');
229
		$remplacement = array('([0-9]{1,2})','([0-9]{1,2})','([0-9]{4})');
Line 230... Line 230...
230
		
230
		
Line 231... Line 231...
231
		$pattern_date_simple = str_replace($recherche, $remplacement, $format);
231
		$pattern_date_simple = str_replace($recherche, $remplacement, $format);
232
		
232
		
Line 233... Line 233...
233
		$date_tab = split('/', $date);
233
		$date_tab = explode('/', $date);
234
		$time = mktime(0,0,0,$date_tab[1],$date_tab[0],$date_tab[2]);
234
		$time = mktime(0,0,0,$date_tab[1],$date_tab[0],$date_tab[2]);
235
		
235