Subversion Repositories Sites.obs-saisons.fr

Rev

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

Rev 210 Rev 232
Line 41... Line 41...
41
    	
41
    	
42
    	$this->envoyerFichier($csv);  
42
    	$this->envoyerFichier($csv);  
Line 43... Line 43...
43
    }
43
    }
44
    
44
    
45
	public function convertirTableauAssocVersCSV($tableau) {
45
	public function convertirTableauAssocVersCSV($tableau) {
46
		
-
 
47
		$csv = '';
-
 
Line -... Line 46...
-
 
46
				
-
 
47
		$csv = '';
-
 
48
		
-
 
49
		if(count($tableau > 0)) {
-
 
50
			unset($tableau[0]['pseudo_participant']);
-
 
51
			unset($tableau[0]['mail_participant']);
-
 
52
			
-
 
53
			$colonnes = array_keys($tableau[0]);
48
		$colonnes = array_keys($tableau[0]);
54
					
-
 
55
			$csv .= implode(';',$colonnes).";\n";
-
 
56
			
49
		$csv .= implode(';',$colonnes).";\n";
57
			foreach($tableau as $elements) {
-
 
58
				unset($elements['pseudo_participant']);
50
		
59
				unset($elements['mail_participant']);
Line 51... Line 60...
51
		foreach($tableau as $elements) {
60
				$csv .= implode(';',$elements).";\n";
52
			$csv .= implode(';',$elements).";\n";
61
			}