'."\t"; if ($valeur != '') { if (is_array($valeur)){ $out .= "\t".xhtml::div($valeur); }else $out .= "\n"."\t".$valeur."\n";} $out .= ''."\n"; if (isset($erreur)) return $erreur; else return $out; } function recup_div($div_array) { if (is_array($div_array)) { foreach ($div_array as $div){ echo xhtml::div($div);} }else echo xhtml::div($div_array); } function page ($titre, $charset,$css,$div_array) { $doctype = ''."\n"; $html = ''."\n"; $head = ''."\n"; $head .=''."\n"; $head .=''.$titre.''."\n"; $head .=''."\n"; $head .= ''."\n".''."\n"; $foot = ''."\n".''; echo $doctype; echo $html; echo $head; foreach ($div_array as $div_array2) { echo xhtml::recup_div($div_array2); } echo $foot; } } ?>