GetAll(); // var_dump($fiche); $i=0; foreach ($fiche_def->all as $l_fiche) { $a[$i]=array("user_impress.php?type=fiche&fd_id=".$l_fiche->id,$l_fiche->label); $i++; } echo ShowItem($a,'V'); //////////////////////////////////////////////////////////////////////////////// if ( isset ($_GET['fd_id'])) { echo '
'; $submit=new widget(); $hid=new widget("hidden"); $fiche_id=new widget("hidden"); echo '
'. $submit->Submit('bt_csv',"Export CSV"). $hid->IOValue("type","fiche"). $fiche_id->IOValue("fd_id",$_GET['fd_id']); echo "
"; $fiche_def->id=$_GET['fd_id']; $fiche=new fiche($cn); $e=$fiche->GetByType($fiche_def->id); // var_dump($e); $old=-1; echo ""; foreach ($e as $detail) { if ($old == -1 ) { $old=$detail->id; echo ""; $fiche_def->GetAttribut(); foreach ($fiche_def->attribut as $attribut) echo ""; echo ""; } if ( $old != $detail->id) { $old=$detail->id; echo ""; } echo ""; } echo "
".$attribut."
".$detail->attribut_value."
"; echo "
"; } ?>