send_header(); if ( isset ($_GET['fd_id'])) { $fiche_def=new Fiche_Def($cn,$http->get('fd_id',"number")); $fiche=new Fiche($cn); $e=$fiche_def->get_by_type(inactive: $http->request('inactive')); $o=0; // Heading $fiche_def->load_attribute(); $title=array(); foreach ($fiche_def->attribut as $attribut) { $title[]=$attribut->ad_text; } $export->write_header($title); // Details foreach ($e as $fiche) { $detail=new Fiche($cn,$fiche['f_id']); $detail->load_attribute(); foreach ( $detail->attribut as $dattribut ) { if ( $dattribut->ad_type=="numeric") $export->add($dattribut->av_text,"number"); else $export->add($dattribut->av_text); } $export->write(); } } exit; ?>