Esempio n. 1
0
// Nombre de boucles par élève (une 2e pour la copie archivée)
$nombre_tirages = ($ACTION!='imprimer') ? 1 : 2 ;
$page_numero = 0 ;

// Préparatifs
if( ($make_html) || ($make_graph) )
{
  $bouton_print_appr = (!$make_graph)                       ? ' <button id="archiver_imprimer" type="button" class="imprimer">Archiver / Imprimer des données</button>'           : '' ;
  $bouton_print_test = (!empty($is_bouton_test_impression)) ? ' <button id="simuler_impression" type="button" class="imprimer">Simuler l\'impression finale de ce bilan</button>' : '' ;
  $fiche_brevet_HTML = (!$make_graph) ? '<div>'.$bouton_print_appr.$bouton_print_test.'</div>'.NL : '<div id="div_graphique_brevet"></div>'.NL ;
  $width_col1 = 100 ;
  $width_col2 = 900 - $width_col1;
}
if($make_pdf)
{
  $fiche_brevet_PDF = new PDF_fiche_brevet( TRUE /*make_officiel*/ , 'portrait' /*orientation*/ , 16 /*marge_gauche*/ , 16 /*marge_droite*/ , 16 /*marge_haut*/ , 12 /*marge_bas*/ , 'oui' /*couleur*/ , 'oui' /*legende*/ , !empty($is_test_impression) /*filigrane*/ );
  // Tag date heure initiales
  $tag_date_heure_initiales = date('d/m/Y H:i').' '.afficher_identite_initiale($_SESSION['USER_PRENOM'],TRUE,$_SESSION['USER_NOM'],TRUE);
  // Quelques valeurs de positionnement ...
  $pdf_coords_session       = array( 'G'=>array(111,18,15,4) , 'P'=>array(103,18,15,4) );
  $pdf_coords_academie      = array( 30  ,29.5,38,3);
  $pdf_coords_departement   = array( 34  ,33  ,35,3);
  $pdf_coords_etablissement = array( 15  ,42  ,55,3);
  $pdf_coords_eleve_nom     = array(127  ,28  ,63,3);
  $pdf_coords_eleve_prenom  = array(131.8,35.2,58,3);
  $pdf_coords_eleve_date    = array(147.6,42.5,42,3);
  $pdf_coords_classe_nom    = array(132.5,50  ,57,3);
  // Français
  $pdf_coords_epreuve_classe[101] = array( 'G'=>array(56,97.5, 15,13) , 'P'=>array(52,104, 14,13) );
  $pdf_coords_epreuve_eleve[101]  = array( 'G'=>array(71,97.5, 14,13) , 'P'=>array(66,104, 14,13) );
  $pdf_coords_epreuve_appr[101]   = array( 'G'=>array(85,97.5,108,13) , 'P'=>array(80,104,113,13) );