array(), 'cols' => array() ); public function get_datas(){ global $tcd_cols; global $graph; if($tcd_cols){ $value = explode("_",$tcd_cols); for($i=1 ; $idatas) ; $i++){ if(!in_array($this->datas[$i][$value[1]],$this->datas_tcd['cols'])){ $this->datas['cols'][] = $this->datas[$i][$value[1]]; } $this->datas['values'][$this->datas[$i][$value[0]]][$this->datas[$i][$value[1]]]++; } if($graph){ $this->datas['graph'] = $graph; $this->valid_datas = true; } } return $this->datas_tcd; } public function get_form(){ global $charset,$msg; global $tcd_cols; // quel tablau on prend? $form = "

données à mettre en forme

"; return $form; } //un simple tableau pour la classe générique... public function show(){ global $charset,$msg; global $javascript_path; global $tcd; $html = $this->get_form(); $this->get_datas(); if($this->valid_datas){ $html.=" "; } return $html; } }