]"
							  id="app_<?php 
                echo $elvChoisi->ine;
                ?>
_<?php 
                echo $exMatiere;
                ?>
_<?php 
                echo $anneeAPB;
                ?>
"
							  maxlength="300"
							  style="text-align: left;"
							  />
								  <?php 
                echo getAppreciationProf($elvChoisi->ine, $exMatiere, $anneeAPB);
                ?>
					</textarea>
					<?php 
                $prof = getUtilisateur(getLoginProfAppreciation($elvChoisi->ine, $exMatiere, $anneeAPB));
                ?>
					<?php 
                if ($prof) {
                    echo " (" . $prof->nom . " " . $prof->prenom . ")";
                }
                ?>
				<?php 
            }
            ?>
				</td>
			</tr>
 $newEval->addAttribute('modalite-election', $modalite);
 $newEval->addAttribute('code-matiere', $code_matiere);
 $newStructure = $newEval->addChild('structure');
 $structureEvaluation = structureEval($annee->annee, $evaluation->code_service);
 $structureEval = $structureEvaluation->fetch_object();
 $moinsHuit = reparMoinsHuit($annee->annee, $evaluation->code_service);
 $huitDouze = reparMoinsHuit($annee->annee, $evaluation->code_service, 8, 12);
 $plusDouze = 100 - ($moinsHuit + $huitDouze);
 $newStructure->addAttribute('effectif', $compteElv->nombre);
 $newStructure->addAttribute('moyenne', round($structureEval->moyenne, 2));
 $newStructure->addAttribute('repar-moins-huit', $moinsHuit);
 $newStructure->addAttribute('repar-huit-douze', $huitDouze);
 $newStructure->addAttribute('repar-plus-douze', $plusDouze);
 $structureEvaluation->close();
 //$appAnnuelle=" ";
 $appAnnuelle = getAppreciationProf($eleve->ine, $evaluation->code_service, $annee->annee + 1);
 if (!$appAnnuelle) {
     $appAnnuelle = " ";
     $newMessage = $eleve->nom . " " . $eleve->prenom;
     $newMessage .= " n'a pas d'appréciation pour la matière " . getMatiere($evaluation->code_service, $annee->annee + 1);
     $newMessage .= " pour l'année " . $annee->annee . "-" . ($annee->annee + 1);
     $messages[] = $newMessage;
 }
 $newEval->addChild('annuelle', $appAnnuelle);
 $Periodiques = $newEval->addChild('periodiques');
 $moyennes = moyenneTrimestre($annee->annee, $evaluation->code_service, $eleve->ine);
 while ($moyenne = $moyennes->fetch_object()) {
     $periodesNotes[] = $moyenne->trimestre;
     $trimestre = $Periodiques->addChild('periode');
     $trimestre->addAttribute('numero', $moyenne->trimestre);
     if ("S" == $moyenne->etat) {