Example #1
0
								$cpt++;


							} // On n'a pas de LVR sur Rouen

						}
					}
				}
				//$larg_intitule_avis=80;
				$larg_intitule_avis=$larg_col_disc+$larg_col_note;
				$pdf->SetXY($marge,$y_cadre_bas);
				$pdf->Cell(210-2*$marge, $h_cadre_bas, "",'LRBT',2,'C');
				$pdf->SetXY($marge,$y_cadre_bas);
				$pdf->SetFont('DejaVu','B',$fs_txt);
				$texte="Avis et signature du chef d'établissement";
				$font_size=adjust_size_font($texte,$larg_intitule_avis,$fs_txt,0.3);
				$pdf->SetFontSize($font_size);
				$pdf->Cell($larg_intitule_avis, $pdf->FontSize*$sc_interligne, $texte,'',0,'L');
				$pdf->SetFont('DejaVu','',$fs_txt);
				$x=$pdf->GetX();
				$avis="";
				$sql="SELECT * FROM notanet_avis WHERE login='******';";
				$res_avis=mysqli_query($GLOBALS["mysqli"], $sql);
				if(mysqli_num_rows($res_avis)>0) {
					$lig_avis=mysqli_fetch_object($res_avis);
					if($lig_avis->favorable=="O") {$avis="Avis favorable.\n";}
					elseif($lig_avis->favorable=="N") {$avis="Avis défavorable.\n";}
					$avis.=$lig_avis->avis;
				}
				//$pdf->Cell(100, $h_cadre_bas, $avis,'',0,'C');
				$largeur_dispo=210-2*$marge-$larg_intitule_avis-2*$larg_col_note;
Example #2
0
									$texte=trim($lig_app->appreciation);
								}
							}

							//if($tabmatieres[$j]['socle']!='y') {
								//$largeur_dispo=100-$largeur_colonnes_moy;
								$largeur_dispo=$larg_col_app;
							//}
							//else {
							//	$largeur_dispo=$larg_col_app+2*$larg_col_note_classe;
							//}

							$h_cell=$h_par_matiere;
							// Par précaution, si ma fonction cell_ajustee() posait pb:
							if($use_cell_ajustee=="n") {
								$font_size=adjust_size_font($texte,100-$largeur_colonnes_moy,$fs_txt,0.1);
								$pdf->SetFontSize($font_size);
								$pdf->drawTextBox(($texte), $largeur_dispo, $h_cell, 'J', 'M', 1);
							}
							else {
								$taille_max_police=$fs_txt;
								$taille_min_police=ceil($fs_txt/3);
								cell_ajustee(($texte),$x_col_app,$y,$largeur_dispo,$h_cell,$taille_max_police,$taille_min_police,'LRBT');
							}

							if($tabmatieres[$j]['socle']=='y') {
								$pdf->SetXY($marge+$larg_col_disc,$y);
								$pdf->Cell($larg_col_note_glob,$h_par_matiere, "(2)",'',0,'L');
								$pdf->SetXY($marge+$larg_col_disc+$larg_col_note_classe,$y);
								$pdf->Cell($larg_col_note_glob,$h_par_matiere, "(3)",'',0,'L');
							}
Example #3
0
				$sql="SELECT * FROM notanet_socles WHERE login='******';";
				//echo "$sql<br />";
				$res_socles=mysqli_query($GLOBALS["mysqli"], $sql);
				if(mysqli_num_rows($res_socles)==0) {
					$note_b2i="";
					$note_a2="";
				}
				else {
					$lig_socle=mysqli_fetch_object($res_socles);
					$note_b2i=$lig_socle->b2i;
					$note_a2=$lig_socle->a2;
					$lv_a2=$lig_socle->lv;
				}
	
				$texte="non maîtrisée (1)";
				$font_size=adjust_size_font($texte,$larg_col_note,$fs_txt,0.3);
				$pdf->SetFontSize($font_size);

				$pdf->SetXY($x_col_note_glob,$pdf->GetY());
				$texte="maîtrisée (1)";
				$pdf->Cell($larg_col_note,$pdf->FontSize*$sc_interligne, $texte,'LRBT',0,'C');
				$texte="non maîtrisée (1)";
				$pdf->Cell($larg_col_note,$pdf->FontSize*$sc_interligne, $texte,'LRBT',0,'C');
				$texte="non évaluée (1)";
				$pdf->Cell($larg_col_note,$pdf->FontSize*$sc_interligne, $texte,'LRBT',1,'C');

				$pdf->SetFontSize($fs_txt);
				$texte="B2i (joindre l'attestation ou les feuilles de position)";
				$pdf->Cell($l_page-2*$marge-3*$larg_col_note,$pdf->FontSize*$sc_interligne, $texte,'LRBT',0,'L');
				if($note_b2i=='MS') {$texte="X";} else { {$texte="";}}
				$pdf->Cell($larg_col_note,$pdf->FontSize*$sc_interligne, $texte,'LRBT',0,'C');