$cartouche_CSV .= $texte_entete.$separateur.$separateur.$cols_csv."\r\n"; $cartouche_TEX .= To::latex($texte_entete)."\r\n".'\begin{center}'."\r\n".'\begin{tabular}{|c|l|'.str_repeat('p{2em}|',5).'}'."\r\n".'\hline'."\r\n"; $cartouche_TEX .= ' & & '.$cols_tex.' \\\\'."\r\n".'\hline'."\r\n"; } $cartouche_PDF->entete( $texte_entete , $lignes_nb , $cart_detail , $cart_cases_nb ); foreach($tab_comp_id as $comp_id=>$tab_val_comp) { if( ($only_req==FALSE) || ($tab_result[$comp_id][$user_id]) ) { $note = ($tab_result[$comp_id][$user_id]!='REQ') ? $tab_result[$comp_id][$user_id] : '' ; // Si on voulait récupérer les items ayant fait l'objet d'une demande d'évaluation, il n'y a pour autant pas lieu d'afficher les paniers sur les cartouches. if($cart_cases_nb==1) { // ... avec une case à remplir $cartouche_HTM .= '<tr><td>'.html($tab_val_comp[0]).'</td><td>'.html($tab_val_comp[1]).'</td><td>'.Html::note_image($note,$date_fr,$description,FALSE).'</td></tr>'; $cartouche_CSV .= '"'.$tab_val_comp[0].'"'.$separateur.'"'.$tab_val_comp[1].'"'.$separateur.'"'.To::note_texte($note).'"'."\r\n"; $cartouche_TEX .= To::latex($tab_val_comp[0]).' & '.To::latex($tab_val_comp[1]).' & '.To::note_texte($note).' \\\\'."\r\n".'\hline'."\r\n"; } else { // ... avec 5 cases dont une à cocher $cartouche_HTM .= '<tr><td>'.html($tab_val_comp[0]).'</td><td>'.html($tab_val_comp[1]).'</td>'; $cartouche_CSV .= '"'.$tab_val_comp[0].'"'.$separateur.'"'.$tab_val_comp[1].'"'.$separateur; $cartouche_TEX .= To::latex($tab_val_comp[0]).' & '.To::latex($tab_val_comp[1]); foreach($tab_codes as $note_code => $is_note ) { $colonnes_nb++; if($is_note) { $coche = ($note_code==$note) ? 'XXX' : NULL ; } else