Example #1
0
               $cartouche_CSV .= ($coche) ? '"'.$coche.'"'.$separateur                     : $separateur;
               $cartouche_TEX .= ($coche) ? ' & \begin{tabular}{c}'.$coche.'\end{tabular}' : ' &';
             }
             $cartouche_HTM .= '</tr>';
             $cartouche_CSV .= "\r\n";
             $cartouche_TEX .= ' \\\\'."\r\n".'\hline'."\r\n";
           }
           $cartouche_PDF->complet_competence( $tab_val_comp[0] , $tab_val_comp[1] , $note , $cart_cases_nb );
         }
       }
       // Commentaire écrit
       if($lignes_comm)
       {
         $cartouche_HTM .= '<tr><td colspan="'.$colonnes_nb.'"><div class="appreciation">'.html($tab_user_comm[$user_id]).'</div></td></tr>';
         $cartouche_CSV .= $tab_user_comm[$user_id]."\r\n";
         $cartouche_TEX .= '\multicolumn{'.$colonnes_nb.'}{|l|}{'.To::latex($tab_user_comm[$user_id]).'} \\\\'."\r\n".'\hline'."\r\n";
       }
       $cartouche_HTM .= '</tbody></table>';
       $cartouche_CSV .= "\r\n";
       $cartouche_TEX .= '\end{tabular}'."\r\n".'\end{center}'."\r\n\r\n";
       $cartouche_PDF->commentaire_interligne( 0 /*decalage_nb_lignes*/ , $tab_user_comm[$user_id] /*commentaire éventuel*/ , $lignes_comm );
     }
   }
 }
 // On archive le cartouche dans un fichier csv
 FileSystem::ecrire_fichier(    CHEMIN_DOSSIER_EXPORT.'cartouche_'.$fnom_export.'.csv' , To::csv($cartouche_CSV) );
 // On archive le cartouche dans un fichier tex
 FileSystem::ecrire_fichier(    CHEMIN_DOSSIER_EXPORT.'cartouche_'.$fnom_export.'.tex' , $cartouche_TEX );
 // On archive le cartouche dans un fichier pdf
 FileSystem::ecrire_sortie_PDF( CHEMIN_DOSSIER_EXPORT.'cartouche_'.$fnom_export.'.pdf' , $cartouche_PDF );
 // Affichage