public function vignette($tab_vignette)
 {
     $espacement_x = 2;
     $espacement_y = 2;
     // On récupère les infos
     extract($tab_vignette);
     // $user_nom $user_prenom $img_width $img_height $img_src $img_title
     $img_width *= $this->coef_conv_pixel_to_mm;
     $img_height *= $this->coef_conv_pixel_to_mm;
     // retour à la ligne si manque de place
     if ($this->GetX() + $img_width + $this->marge_droite > $this->page_largeur) {
         $this->SetXY($this->marge_gauche, $this->GetY() + $this->cadre_photo_hauteur + $espacement_y);
         // saut de page si manque de place
         if ($this->GetY() + $this->cadre_photo_hauteur + $this->marge_bas > $this->page_hauteur) {
             $this->AddPage($this->orientation, 'A4');
         }
     }
     // image
     $memo_x = $this->GetX();
     $memo_y = $this->GetY();
     if ($img_src) {
         $this->MemImage(base64_decode($img_src), $memo_x, $memo_y, $img_width, $img_height, 'JPEG');
     } else {
         $this->Image('./_img/trombinoscope_vide.png', $memo_x, $memo_y, $img_width, $img_height, 'PNG');
     }
     // nom & prénom
     $this->SetXY($memo_x, $memo_y + $this->photo_hauteur_maxi + 0.5);
     $this->CellFit($img_width, 4, To::pdf($user_nom), 0, 2, 'C', FALSE);
     $this->CellFit($img_width, 4, To::pdf($user_prenom), 0, 2, 'C', FALSE);
     // positionnement pour la photo suivante
     $this->SetXY($memo_x + $img_width + $espacement_x, $memo_y);
 }
 public function derniere_ligne($info_ponderation_complete, $moyenne_affichee, $moyenne_pourcentage_acquis)
 {
     $this->choisir_couleur_fond('gris_moyen');
     $this->CellFit($this->cases_largeur, $this->cases_hauteur, To::pdf('Moyenne ' . $info_ponderation_complete . ' sur 20'), 1, 0, 'C', TRUE);
     $this->CellFit($this->cases_largeur, $this->cases_hauteur, To::pdf($moyenne_affichee), 1, 0, 'C', TRUE);
     $this->CellFit($this->cases_largeur, $this->cases_hauteur, To::pdf($moyenne_pourcentage_acquis . '% d\'items acquis'), 1, 0, 'C', TRUE);
 }
     }
 }
 // On archive les nouveaux identifiants dans un fichier pdf (classe fpdf + script étiquettes)
 echo '<ul class="puce">' . NL;
 if (count($fcontenu_pdf_tab)) {
     $fnom = 'identifiants_' . $_SESSION['BASE'] . '_' . fabriquer_fin_nom_fichier__date_et_alea();
     $pdf = new PDF_Label(array('paper-size' => 'A4', 'metric' => 'mm', 'marginLeft' => 5, 'marginTop' => 5, 'NX' => 3, 'NY' => 8, 'SpaceX' => 7, 'SpaceY' => 5, 'width' => 60, 'height' => 30, 'font-size' => 11));
     $pdf->AddFont('Arial', '', 'arial.php');
     $pdf->SetFont('Arial');
     // Permet de mieux distinguer les "l 1" etc. que la police Times ou Courrier
     $pdf->AddPage();
     $pdf->SetFillColor(245, 245, 245);
     $pdf->SetDrawColor(145, 145, 145);
     sort($fcontenu_pdf_tab);
     foreach ($fcontenu_pdf_tab as $text) {
         $pdf->Add_Label(To::pdf($text));
     }
     FileSystem::ecrire_sortie_PDF(CHEMIN_DOSSIER_LOGINPASS . $fnom . '.pdf', $pdf);
     echo '<li><a target="_blank" href="' . URL_DIR_LOGINPASS . $fnom . '.pdf"><span class="file file_pdf">Archiver / Imprimer les identifiants modifiés (étiquettes <em>pdf</em>).</span></a></li>' . NL;
     echo '<li><label class="alerte">Les mots de passe, cryptés, ne seront plus accessibles ultérieurement !</label></li>' . NL;
 }
 // On affiche le bilan
 echo '<li><b>Résultat de l\'analyse et des opérations effectuées :</b></li>' . NL;
 echo '</ul>' . NL;
 echo '<table>' . NL;
 echo '<tbody>' . NL;
 echo '<tr><th colspan="3">Utilisateurs trouvés dans le fichier dont les identifiants ont été modifiés.</th></tr>' . NL;
 echo $lignes_mod ? $lignes_mod : '<tr><td colspan="3">Aucun</td></tr>' . NL;
 echo '</tbody><tbody>' . NL;
 echo '<tr><th colspan="3">Utilisateurs trouvés dans le fichier dont les identifiants n\'ont pas pu être modifiés.</th></tr>' . NL;
 echo $lignes_pb ? $lignes_pb : '<tr><td colspan="3">Aucun</td></tr>' . NL;
 public function ligne_tag($tag_date_heure_initiales)
 {
     $taille_police = 5;
     $ligne_hauteur = $taille_police * 0.4;
     $this->SetFont('Arial', '', $taille_police);
     $this->SetXY($this->marge_gauche - 1, $this->marge_haut + 8.5);
     $this->Cell($this->page_largeur_moins_marges, $ligne_hauteur, To::pdf($tag_date_heure_initiales), 0, 2, 'R', FALSE);
 }
 public function repartition_nominative_cases_eleves( $tab_repartition_nominatif_item )
 {
   foreach($tab_repartition_nominatif_item as $code=>$tab_eleves)
   {
     // Ecrire les noms ; plus court avec MultiCell() mais pb des retours à la ligne pour les noms trop longs
     $memo_X = $this->GetX();
     $memo_Y = $this->GetY();
     foreach($tab_eleves as $key => $eleve_texte)
     {
       $this->CellFit( $this->cases_largeur , $this->lignes_hauteur , To::pdf($eleve_texte) , 0 , 2 , 'L' , FALSE /*fond*/ , '' );
     }
     // Ajouter la bordure
     $this->SetXY($memo_X , $memo_Y);
     $this->Cell( $this->cases_largeur , $this->cases_hauteur , '' , 1 , 0 , 'C' , FALSE /*fond*/ , '' );
   }
   $this->SetXY( $this->marge_gauche , $this->GetY()+$this->cases_hauteur );
 }
 $facture_PDF->CellFit(100, $hauteur_ligne, To::pdf($texte), 0, 2, 'L', FALSE);
 // date de règlement
 if ($DB_ROW['convention_paiement'] !== NULL) {
     $texte = 'Règlement acquitté le ' . convert_date_mysql_to_french($DB_ROW['convention_paiement']) . '.';
 } elseif ($DB_ROW['convention_signature'] !== NULL) {
     list($annee, $mois, $jour) = explode('-', $DB_ROW['convention_signature']);
     $timeunix_signature_plus2mois = mktime(0, 0, 0, $mois + 2, $jour, $annee);
     list($annee, $mois, $jour) = explode('-', $DB_ROW['convention_date_debut']);
     $timeunix_anneescolaire_plus3mois = mktime(0, 0, 0, $mois + 2, $jour, $annee);
     $date_limite = date("d/m/Y", max($timeunix_signature_plus2mois, $timeunix_anneescolaire_plus3mois));
     $texte = 'Date limite de règlement : ' . $date_limite . '.';
 } else {
     $texte = 'Date limite de règlement : 2 mois après la mise en service effective du connecteur.';
 }
 $facture_PDF->SetXY(20, 174);
 $facture_PDF->CellFit(180, $hauteur_ligne, To::pdf($texte), 0, 2, 'L', FALSE);
 // On enregistre la sortie PDF
 $facture_fichier_nom = 'convention_facture_' . fabriquer_fin_nom_fichier__date_et_alea() . '.pdf';
 FileSystem::ecrire_sortie_PDF(CHEMIN_DOSSIER_EXPORT . $facture_fichier_nom, $facture_PDF);
 //
 // Envoyer un courriel au contact.
 //
 if ($f_first_time == 'oui') {
     $titre = 'Convention connecteur ENT établissement - Documents générés';
     $texte = 'Bonjour ' . $DB_ROW2['structure_contact_prenom'] . ' ' . $DB_ROW2['structure_contact_nom'] . ',' . "\r\n";
     $texte .= "\r\n";
     $texte .= 'Vous venez de générer les documents associés à une convention pour un connecteur ENT :' . "\r\n";
     $texte .= 'Référence : ' . $connecteur_ref . "\r\n";
     $texte .= 'Établissement : ' . $_SESSION['ETABLISSEMENT']['DENOMINATION'] . "\r\n";
     $texte .= 'Période : du ' . convert_date_mysql_to_french($DB_ROW['convention_date_debut']) . ' au ' . convert_date_mysql_to_french($DB_ROW['convention_date_fin']) . "\r\n";
     $texte .= "\r\n";
 public function complet_competence($item_ref, $item_intitule, $note, $cases_nb)
 {
     $memo_x = $this->GetX();
     $memo_y = $this->GetY();
     list($ref_matiere, $ref_suite) = explode('.', $item_ref, 2);
     $this->SetFont('Arial', '', 7);
     $this->CellFit($this->reference_largeur, $this->cases_hauteur / 2, To::pdf($ref_matiere), 0, 2, 'C', FALSE);
     $this->CellFit($this->reference_largeur, $this->cases_hauteur / 2, To::pdf($ref_suite), 0, 2, 'C', FALSE);
     $this->SetFont('Arial', '', 8);
     $this->SetXY($memo_x, $memo_y);
     $this->Cell($this->reference_largeur, $this->cases_hauteur, '', 1, 0, 'C', FALSE);
     $this->CellFit($this->intitule_largeur, $this->cases_hauteur, To::pdf($item_intitule), 1, 0, 'L', FALSE);
     if ($cases_nb == 1) {
         // Avec une case à remplir
         $this->afficher_note_lomer($note, 1, 1);
     } else {
         // Avec 5 cases dont une à cocher
         $tab_codes = array('RR' => TRUE, 'R' => TRUE, 'V' => TRUE, 'VV' => TRUE, 'X' => FALSE);
         foreach ($tab_codes as $note_code => $is_note) {
             if ($is_note) {
                 $coche = $note_code == $note ? 'XXX' : '';
                 $fill = $note_code == $note ? TRUE : FALSE;
                 $br = 0;
             } else {
                 $coche = $note && !isset($tab_codes[$note]) ? $note : '';
                 $fill = $note && !isset($tab_codes[$note]) ? TRUE : FALSE;
                 $br = 1;
             }
             $this->CellFit($this->cases_largeur, $this->cases_hauteur, To::pdf($coche), 1, $br, 'C', $fill);
         }
     }
 }
 public function ligne_synthese($bilan_texte)
 {
     $this->SetFont('Arial', '', $this->taille_police);
     $this->choisir_couleur_fond('gris_moyen');
     if ($this->releve_format == 'eleve') {
         $this->Cell($this->reference_largeur, $this->cases_hauteur, '', 0, 0, 'C', FALSE);
     }
     $this->Cell($this->synthese_largeur, $this->cases_hauteur, To::pdf($bilan_texte), 1, 1, 'R', $this->fond);
 }
Example #9
0
 public function officiel_bloc_appreciation_generale($prof_id, $tab_infos, $tab_image_tampon_signature, $nb_lignes_appreciation_generale_avec_intitule, $bloc_largeur, $ligne_hauteur, $moyenne_generale_eleve, $moyenne_generale_classe)
 {
     $nb_lignes_appreciation_generale_hors_intitule = $nb_lignes_appreciation_generale_avec_intitule - 1;
     // Récupération des données de l'appréciation
     extract($tab_infos);
     // $prof_info $appreciation $note
     // Intitulé "Appréciation générale"
     $memoX = $this->GetX();
     $memoY = $this->GetY();
     $this->SetFont('Arial', 'B', $this->taille_police * 1.4);
     $this->Write($ligne_hauteur, To::pdf('Appréciation générale'));
     if ($prof_info) {
         $this->SetFont('Arial', '', $this->taille_police);
         $this->Write($ligne_hauteur, To::pdf('   [ ' . $prof_info . ' ]'));
     }
     // Moyenne générale éventuelle (élève & classe)
     $this->SetXY($memoX, $memoY);
     $largeur = $this->page_largeur_moins_marges;
     if ($moyenne_generale_eleve !== NULL) {
         $largeur_note = 10;
         $texte = $_SESSION['OFFICIEL']['BULLETIN_MOYENNE_CLASSE'] ? 'Moyenne générale élève (classe) :' : 'Moyenne générale élève :';
         $this->SetFont('Arial', '', $this->taille_police);
         $largueur_texte = $_SESSION['OFFICIEL']['BULLETIN_MOYENNE_CLASSE'] ? $largeur - 2 * $largeur_note : $largeur - $largeur_note;
         $this->Cell($largueur_texte, $ligne_hauteur, To::pdf($texte), 0, 0, 'R', FALSE);
         $moyenne_generale_eleve = $moyenne_generale_eleve !== NULL ? $_SESSION['OFFICIEL']['BULLETIN_CONVERSION_SUR_20'] ? number_format($moyenne_generale_eleve, 1, ',', '') : round($moyenne_generale_eleve * 5) . '%' : '-';
         $this->SetFont('Arial', 'B', $this->taille_police * 1.25);
         $this->Cell($largeur_note, $ligne_hauteur, To::pdf($moyenne_generale_eleve), 0, 0, 'C', FALSE);
         if ($_SESSION['OFFICIEL']['BULLETIN_MOYENNE_CLASSE']) {
             $moyenne_generale_classe = $moyenne_generale_classe !== NULL ? $_SESSION['OFFICIEL']['BULLETIN_CONVERSION_SUR_20'] ? number_format($moyenne_generale_classe, 1, ',', '') : round($moyenne_generale_classe * 5) . '%' : '-';
             $this->SetFont('Arial', '', $this->taille_police * 0.8);
             $this->Cell($largeur_note, $ligne_hauteur, To::pdf('(' . $moyenne_generale_classe . ')'), 0, 0, 'C', FALSE);
         }
     }
     $this->SetXY($memoX, $memoY + $ligne_hauteur);
     // préparation cadre appréciation
     $largeur_autorisee = $bloc_largeur;
     $hauteur_autorisee = $ligne_hauteur * $nb_lignes_appreciation_generale_hors_intitule;
     $memoX = $this->GetX();
     $memoY = $this->GetY();
     // signature
     $largeur_signature = $tab_image_tampon_signature ? $this->afficher_image($largeur_autorisee, $hauteur_autorisee, $tab_image_tampon_signature, 'signature') : min(50, $hauteur_autorisee);
     // contour cadre
     $this->SetXY($memoX, $memoY);
     $this->Cell($largeur_autorisee, $hauteur_autorisee, '', 1, 2, '', FALSE);
     // contenu appréciation
     $this->SetXY($memoX, $memoY);
     if ($prof_id) {
         $taille_police = $this->taille_police * 1.2;
         $taille_interligne = $ligne_hauteur * 0.8;
         $this->afficher_appreciation($largeur_autorisee - $largeur_signature, $hauteur_autorisee, $taille_police, $taille_interligne, $appreciation);
     }
     $this->SetXY($memoX, $memoY + $hauteur_autorisee);
 }
 public function appreciation_epreuve_eleves_collegues_tbody($epreuve_nom, $note, $appreciation)
 {
     $nb_lignes = max(1, ceil(mb_strlen($appreciation) / 125));
     // On prend une nouvelle page PDF si besoin
     $this->appreciation_page_break();
     $this->choisir_couleur_fond('gris_moyen');
     // cadre
     $memo_x = $this->GetX();
     $memo_y = $this->GetY();
     $this->Cell($this->page_largeur_moins_marges, $nb_lignes * $this->lignes_hauteur, '', 1, 0, 'L', FALSE);
     // épreuve, moyenne, appréciation
     $this->SetXY($memo_x, $memo_y);
     $this->SetFont('Arial', '', $this->taille_police);
     $this->CellFit($this->reference_largeur, $this->lignes_hauteur, To::pdf($epreuve_nom), 0, 1, 'L', FALSE);
     $this->Line($memo_x + $this->reference_largeur, $memo_y, $memo_x + $this->reference_largeur, $memo_y + $nb_lignes * $this->lignes_hauteur);
     // appréciations
     $this->SetXY($memo_x + $this->reference_largeur, $memo_y);
     $this->afficher_appreciation($this->cases_largeur, $nb_lignes * $this->lignes_hauteur, $this->taille_police, $this->lignes_hauteur, $note . ' - ' . $appreciation);
     $this->SetXY($memo_x, $memo_y + $nb_lignes * $this->lignes_hauteur);
 }
Example #11
0
 public function ligne_tag($tag_date_heure_initiales)
 {
   $taille_police = 5 ;
   $ligne_hauteur = $taille_police*0.4 ;
   $this->SetFont( 'Arial' , '' , $taille_police );
   $this->SetXY( $this->marge_gauche-1 , $this->marge_haut+8.5 );
   $this->Cell( $this->page_largeur_moins_marges , $ligne_hauteur , To::pdf($tag_date_heure_initiales) , 0 /*bordure*/ , 2 /*br*/ , 'R' /*alignement*/ , FALSE /*fond*/ );
 }
 public function item( $item_ref , $item_texte , $colspan_nb )
 {
   $br = ($colspan_nb) ? 0 : 1 ;
   $this->choisir_couleur_fond('gris_clair');
   $this->CellFit( $this->reference_largeur , $this->cases_hauteur , To::pdf($item_ref)   , 1 /*bordure*/ ,   0 /*br*/ , 'C' /*alignement*/ , $this->fond    );
   $this->CellFit( $this->intitule_largeur  , $this->cases_hauteur , To::pdf($item_texte) , 1 /*bordure*/ , $br /*br*/ , 'L' /*alignement*/ , FALSE /*fond*/ );
   $this->choisir_couleur_fond('blanc');
 }
Example #13
0
 public function ligne_synthese($bilan_texte)
 {
   $this->SetFont('Arial' , '' , $this->taille_police);
   $this->choisir_couleur_fond('gris_moyen');
   if($this->releve_format=='eleve') // Parce que sinon $this->reference_largeur = 0 et ça ne plait pas.à Cell().
   {
     $this->Cell( $this->reference_largeur , $this->cases_hauteur , ''                    , 0 /*bordure*/ , 0 /*br*/ , 'C' /*alignement*/ , FALSE /*fond*/ );
   }
   $this->Cell( $this->synthese_largeur  , $this->cases_hauteur , To::pdf($bilan_texte) , 1 /*bordure*/ , 1 /*br*/ , 'R' /*alignement*/ , $this->fond );
 }
 }
 elseif($DB_ROW['convention_signature']!==NULL)
 {
   list($annee,$mois,$jour) = explode('-',$DB_ROW['convention_signature']);
   $timeunix_signature_plus2mois = mktime(0,0,0,$mois+2,$jour,$annee);
   list($annee,$mois,$jour) = explode('-',$DB_ROW['convention_date_debut']);
   $timeunix_anneescolaire_plus3mois = mktime(0,0,0,$mois+2,$jour,$annee);
   $date_limite = date("d/m/Y", max($timeunix_signature_plus2mois,$timeunix_anneescolaire_plus3mois) );
   $texte = 'Date limite de règlement : '.$date_limite.'.';
 }
 else
 {
   $texte = 'Date limite de règlement : 2 mois après la mise en service effective du connecteur.';
 }
 $facture_PDF->SetXY(20,174);
 $facture_PDF->CellFit( 180 , $hauteur_ligne , To::pdf($texte) , 0 /*bordure*/ , 2 /*br*/ , 'L' /*alignement*/ , FALSE /*remplissage*/ );
 // On enregistre la sortie PDF
 $facture_fichier_nom = 'convention_facture_'.fabriquer_fin_nom_fichier__date_et_alea().'.pdf';
 FileSystem::ecrire_sortie_PDF( CHEMIN_DOSSIER_EXPORT.$facture_fichier_nom , $facture_PDF );
 //
 // Envoyer un courriel au contact.
 //
 if($f_first_time=='oui')
 {
   $titre = 'Convention connecteur ENT établissement - Documents générés';
   $texte = 'Bonjour '.$DB_ROW2['structure_contact_prenom'].' '.$DB_ROW2['structure_contact_nom'].','."\r\n";
   $texte.= "\r\n";
   $texte.= 'Vous venez de générer les documents associés à une convention pour un connecteur ENT :'."\r\n";
   $texte.= 'Référence : '.$connecteur_ref."\r\n";
   $texte.= 'Établissement : '.$_SESSION['ETABLISSEMENT']['DENOMINATION']."\r\n";
   $texte.= 'Période : du '.convert_date_mysql_to_french($DB_ROW['convention_date_debut']).' au '.convert_date_mysql_to_french($DB_ROW['convention_date_fin'])."\r\n";
Example #15
0
 public function ligne_synthese( $synthese_nom , $tab_infos_synthese , $total , $hauteur_ligne_synthese , $avec_texte_nombre , $avec_texte_code )
 {
   $hauteur_ligne = $this->lignes_hauteur * $hauteur_ligne_synthese ;
   $largeur_diagramme = ($this->officiel) ? 20 : 40 ;
   $this->SetFont('Arial' , '' , $this->taille_police*0.8);
   $this->afficher_proportion_acquis( $largeur_diagramme , $hauteur_ligne , $tab_infos_synthese , $total,$avec_texte_nombre , $avec_texte_code );
   $intitule_synthese_largeur = ( ($this->officiel) && ($_SESSION['OFFICIEL']['BULLETIN_APPRECIATION_RUBRIQUE_LONGUEUR']) ) ? ( $this->page_largeur_moins_marges ) / 2 - $largeur_diagramme : $this->page_largeur_moins_marges - $largeur_diagramme ;
   // Intitulé synthèse
   $this->SetFont('Arial' , '' , $this->taille_police);
   $couleur_fond = ($this->couleur=='oui') ? 'gris_clair' : 'blanc' ; // Forcer un fonc blanc en cas d'impression en niveau de gris sinon c'est très confus
   $this->choisir_couleur_fond($couleur_fond);
   $this->CellFit( $intitule_synthese_largeur , $hauteur_ligne , To::pdf($synthese_nom) , 1 /*bordure*/ , 1 /*br*/ , 'L' /*alignement*/ , $this->fond );
 }
 public function item($item_ref, $item_texte, $colspan_nb)
 {
     $br = $colspan_nb ? 0 : 1;
     $this->choisir_couleur_fond('gris_clair');
     $this->CellFit($this->reference_largeur, $this->cases_hauteur, To::pdf($item_ref), 1, 0, 'C', $this->fond);
     $this->CellFit($this->intitule_largeur, $this->cases_hauteur, To::pdf($item_texte), 1, $br, 'L', FALSE);
     $this->choisir_couleur_fond('blanc');
 }
Example #17
0
 public function pourcentage_eleve( $eleve_id , $eleve_nom , $eleve_prenom , $tab_score_socle_eleve , $tab_socle , $drapeau_langue )
 {
   $this->pourcentage_largeur = $this->cases_largeur;
   $this->choisir_couleur_fond('gris_moyen');
   $this->SetFont('Arial' , '' , $this->taille_police);
   $this->CellFit( $this->eleve_largeur , $this->cases_hauteur , To::pdf($eleve_nom.' '.$eleve_prenom) , 1 /*bordure*/ , 0 /*br*/ , 'L' /*alignement*/ , $this->fond );
   if($drapeau_langue)
   {
     $taille_image = min($this->cases_hauteur,5);
     $this->Image('./_img/drapeau/'.$drapeau_langue.'.gif',$this->GetX()-$taille_image-0.5,$this->GetY(),$taille_image,$taille_image,'GIF');
   }
   // - - - - -
   // Indication des pourcentages
   // - - - - -
   // Pour chaque entrée du socle...
   foreach($tab_socle as $pilier_id => $tab)
   {
     $this->SetX( $this->GetX()+1 );
     foreach($tab as $socle_id => $socle_nom)
     {
       $this->afficher_pourcentage_acquis( '' , $tab_score_socle_eleve[$socle_id][$eleve_id] , 'pourcentage' /*affich*/ );
     }
   }
   // positionnement pour la suite
   $this->SetXY( $this->marge_gauche , $this->GetY()+$this->cases_hauteur+1 );
 }
Example #18
0
 public function lignes_pied_cellules_debut( $info_ponderation )
 {
   $memo_y = $this->GetY()+2;
   $this->SetY( $memo_y );
   $this->choisir_couleur_fond('gris_moyen');
   $this->CellFit( $this->intitule_largeur , $this->cases_hauteur , To::pdf('moy. scores '.$info_ponderation.' [*]') , 1 , 2 , 'C' , $this->fond , '' );
   $this->CellFit( $this->intitule_largeur , $this->cases_hauteur , To::pdf('% items acquis [**]'                  ) , 1 , 0 , 'C' , $this->fond , '' );
   $memo_x = $this->GetX();
   $this->SetXY($memo_x,$memo_y);
 }
Example #19
0
 public function item( $item_nom , $test_affichage_Pourcentage , $tab_item_pourcentage , $test_affichage_Validation , $tab_item_validation )
 {
   // Case pourcentage
   if($test_affichage_Pourcentage)
   {
     $this->afficher_pourcentage_acquis( '' , $tab_item_pourcentage , 'detail' /*affich*/ );
   }
   // Case intitulé
   $this->choisir_couleur_fond('gris_clair');
   $this->SetFont('Arial' , '' , $this->taille_police);
   $br = $test_affichage_Validation ? 0 : 1 ;
   $this->CellFit( $this->item_largeur , $this->cases_hauteur , To::pdf($item_nom) , 1 /*bordure*/ , $br , 'L' /*alignement*/ , $this->fond );
   // Case validation
   if($test_affichage_Validation)
   {
     $this->afficher_etat_validation('',$tab_item_validation);
   }
 }
Example #20
0
       $releve_HTML_table_body .= Html::td_score($score,$tableau_tri_mode);
     }
     $valeur1 = $tab_moyenne_scores_item[$item_id];
     $valeur2 = $tab_pourcentage_acquis_item[$item_id];
     $releve_PDF->bilan_periode_synthese_pourcentages($valeur1,$valeur2,FALSE,TRUE);
     $checkbox = ($affichage_checkbox) ? '<td class="nu"><input type="checkbox" name="id_item[]" value="'.$item_id.'" /></td>' : '' ;
     $releve_HTML_table_body .= '<td class="nu">&nbsp;</td>'.Html::td_score($valeur1,$tableau_tri_mode,'%').Html::td_score($valeur2,$tableau_tri_mode,'%').$checkbox.'</tr>'."\r\n";
   }
 }
 $releve_HTML_table_body = '<tbody>'.$releve_HTML_table_body.'</tbody>'."\r\n";
 // dernière ligne (doublée)
 $memo_y = $releve_PDF->GetY()+2;
 $releve_PDF->SetY( $memo_y );
 $releve_PDF->choisir_couleur_fond('gris_moyen');
 $releve_PDF->Cell($releve_PDF->intitule_largeur , $releve_PDF->cases_hauteur , To::pdf('moy. scores '.$info_ponderation_courte.' [*]') , 1 , 2 , 'C' , TRUE , '');
 $releve_PDF->Cell($releve_PDF->intitule_largeur , $releve_PDF->cases_hauteur , To::pdf('% items acquis [**]') , 1 , 0 , 'C' , TRUE , '');
 $releve_HTML_table_foot1 = '<tr><th>moy. scores '.$info_ponderation_courte.' [*]</th>';
 $releve_HTML_table_foot2 = '<tr><th>% items acquis [**]</th>';
 $checkbox = ($affichage_checkbox) ? '<tr><th class="nu">&nbsp;</th>' : '' ;
 $memo_x = $releve_PDF->GetX();
 $releve_PDF->SetXY($memo_x,$memo_y);
 if($tableau_tri_objet=='eleve')
 {
   foreach($tab_liste_item as $item_id)  // Pour chaque item...
   {
     $valeur1 = $tab_moyenne_scores_item[$item_id];
     $valeur2 = $tab_pourcentage_acquis_item[$item_id];
     $releve_PDF->bilan_periode_synthese_pourcentages($valeur1,$valeur2,TRUE,FALSE);
     $releve_HTML_table_foot1 .= Html::td_score($valeur1,'score','%');
     $releve_HTML_table_foot2 .= Html::td_score($valeur2,'score','%');
     $checkbox .= ($affichage_checkbox) ? '<td class="nu"><input type="checkbox" name="id_item[]" value="'.$item_id.'" /></td>' : '' ;