package MEPTL; import java.text.DecimalFormat; import java.util.ArrayList; import cXML.node; import evaluer.evaluation; /** * * @author pablo rodriguez * */ public class HTML { // Titre principaux des analyses avec identifiant pour lien public static String H1(String txt, String id) { txt = sautLigneAvantTitre(id) + "

\r\n" + ""+ txt +"


\r"; return txt; } // Titre principaux des analyse public static String H1(String txt) { txt = "

\r\n" + ""+ txt +"


\r"; return txt; } // Titre 2 public static String H2(String txt) { txt="

"+ txt +"

"; return txt; } // Titre 2 public static String H2(String txt, String id) { txt=sautLigneAvantTitre(id) +"

"+ txt +"

"; return txt; } // Titre 3 public static String H3(String txt) { txt="

"+ txt +"

"; return txt; } // paragraphe class pablo public static String Ppablo(String txt) { return "

" + txt +"

"; } /** * Style HTML pour paragraphe style class p1 * @param txt * @return */ public static String Paragraph_classp1(String txt) { return("

" + txt + "

"); } /** * Style HTML pour paragraphe style class p11 * @param txt * @return */ public static String Paragraph_classCommentaire(String txt) { return("

" + txt + "

"); } /** * Style HTML pour paragraphe style class p1 * @param txt * @return */ public static String Paragraph_classp1(String txt, String id) { return sautLigneAvantTitre(id) +"

" + txt + "

"; } // paragraphe avec la class p5 fond ROUGE pour erreur public static String Paragraph_classp5(String txt) { return("

" + txt + "

"); } // paragraphe avec la class p5 fond ROUGE pour erreur public static String Paragraph_classp6(String txt) { return("

" + txt + "

"); } // style avec la class p7 fond VERT pour correct public static String Paragraph_classp7(String txt) { return("

" + txt + "

"); } //Saut de page puis titre public static String SautLigneOnduleBleu(String titre, String id) { return sautLigneAvantTitre(id) +"

" + titre+"

\r"; } //Saut de page puis titre public static String SautLigneOnduleBleu(String titre) { return "

" + titre+"

\r"; } //Saut de page puis titre public static String SautP8(String titre, String id) { return sautLigneAvantTitre(id) + "

" + titre+"

\r"; } //Saut de page puis titre public static String SautP8(String titre) { return "

" + titre+"

\r"; } //Saut pour les marques nodes public static String SautP11(String titre) { return "

" + titre+" ** supprimer la méthode marquage des nodes avant de fournir le feedback aux étudiants **

\r"; } /** * Un saut de ligne * @return */ public static String SautLigne() { return "
\r"; } public static String sautLigneAvantTitre(String id) { return "








"; } /** * Un saut de ligne puis un trait horizontal sans style * @return */ public static String SautLigneEtBordure() { return "

\r"; } // Entête des tables pour les styles de paragraphe, styles de page, etc... public static String TableEnteteTableurSynthese() { return "\r\n" + " "+ " " + "\r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + "

\r\n" + "Sous partie

\r\n" + "Proportion (%)

\r\n" + "Nombre de points

\r\n" + "Points gagnés

\r\n" + "Coef.

"; } public static String TablePointsSyntheseStyle2(String titre,double prop, String pointstotal, String pointsgagnes) { String propRed = Integer.toHexString(255 - (int) Math.round(Math.pow(prop,3)*255)); String propGreen = Integer.toHexString((int) Math.round(Math.pow(prop,3)*255)); if(propRed.length()==1) propRed= "0"+propRed; if(propGreen.length()==1) propGreen= "0"+propGreen; String color="#" + propRed + propGreen + "40"; DecimalFormat df = new DecimalFormat("###.##"); if(prop>=0) return "\r\n" + "" + "" + "" + "" + "" + "" + "\r\n" + "

" + ""+ titre +"

" + "█► " + df.format(prop*100) +"%

"+ pointstotal +"

"+ pointsgagnes + "

"; return ""; } /** * Table pour la synthèse au début du FeedBack : Style de paragraphe, Style de page * @param titre * @param prop * @param pointstotal * @param pointsgagnes * @param coef * @param id * @return */ public static String TablePointsSyntheseStyle(String titre,double prop, String pointstotal, String pointsgagnes, String coef, String id ) { String propRed = Integer.toHexString(255 - (int) Math.round(Math.pow(prop,3)*255)); String propGreen = Integer.toHexString((int) Math.round(Math.pow(prop,3)*255)); if(propRed.length()==1) propRed= "0"+propRed; if(propGreen.length()==1) propGreen= "0"+propGreen; String color="#" + propRed + propGreen + "40"; DecimalFormat df = new DecimalFormat("###.##"); if(prop>=0) return "\r\n" + "" + "" + "" + "" + "" + "" + "" + "\r\n" + "

" + "" + titre +"

" + "█► " + df.format(prop*100) +"%

"+ pointstotal + "

"+ pointsgagnes + "

"+ coef + "

"; if(!commandes.noDetail) { return "\r\n" + "" + "" + "" + "\r\n" + "

" + "├ " + titre +"

"; } return ""; // return "\r\n" + // "" // + "" // + "" // + "" // + "" // + "" // + "" // + "\r\n" + // "

" + // "" + titre +"

" + // "

"; } // Entête des tables pour les styles de paragraphe, styles de page, etc... public static String TableEntete() { return "\r\n" + ""+ "\r\n" + "\r\n" + "\r\n" + "\r\n" + " \r\n" + "

\r\n" + "" + "Correct/Erreur" + "

\r\n" + "" + "Propriété" +"

\r\n" + "Valeur fichier

\r\n" + "Consigne" +"

"; } // Entête des tables pour ordre structure public static String TableEnteteOrdreStructure() { return "\r\n" + ""+ "\r\n" + "\r\n" + "\r\n" + "\r\n" + " \r\n" + "

\r\n" + "" + "Correct/Erreur" + "

\r\n" + "" + "Propriété" +"

\r\n" + "Ordre fichier

\r\n" + "Ordre consigne" +"

"; } /** * Table pour les résultats corrects et incorrects ** * @param txt1 = résultat avec le point en positif ou négatif * @param txt2 * @param txt3 * @param txt4 * @param niveau * @return */ public static String Table(String txt1, String txt2, String txt3, String txt4,int niveau) { String color = "#AAAAAA"; //# if(niveau==2) color =" #dc143c"; if(niveau==1) color = "#32cd32"; return "\r\n" + " "+ " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + "

\r\n" + "" + txt1 + "

\r\n" + txt2 +"

\r\n" + txt3 +"

\r\n" + txt4 +"

"; } //************************************* //***** table d'un node de l'analyse ** //************************************* public static String Table(node nod) { if(nod.getAttributs().get("pointtotal")!=null)if(!nod.getAttributs().get("pointtotal").equals("0")) { String code = HTML.SautLigne(); code = addSautEtTitres(code,nod); //ajoute le commentaire if(!nod.getContenu().isEmpty()) if(nod.getNodes().size()>0) code = code + HTML.Paragraph_classp6(nod.getContenu().get(0)) + HTML.SautLigne(); //ajoute l'entête code = code + HTML.TableEntete(); for(int k = 0 ; k < nod.getNodes().size();k++) { if(nod.getNodes().get(k).getAttributs().get("niveau")!=null) { String Tst = nod.getNodes().get(k).getAttributs().get("resultat"); String Key = null; if(nod.getNodes().get(k).getAttributs().get("attribut")!=null) { Key = evaluation.traduction.get(nod.getNodes().get(k).getAttributs().get("elt") + " " + evaluation.withoutCodeAndPoint(nod.getNodes().get(k).getAttributs().get("attribut"))); if(Key==null) Key = nod.getNodes().get(k).getAttributs().get("elt") + " " + evaluation.withoutCodeAndPoint(nod.getNodes().get(k).getAttributs().get("attribut")); }else { Key = evaluation.traduction.get(nod.getNodes().get(k).getAttributs().get("elt")); } String valueStudent = nod.getNodes().get(k).getAttributs().get("valueStudent"); String valueSujet = evaluation.withoutCodeAndPoint(nod.getNodes().get(k).getAttributs().get("valueSujet")); int niveau = Integer.valueOf(nod.getNodes().get(k).getAttributs().get("niveau")); code = code + HTML.Table(Tst, Key, valueStudent, valueSujet, niveau); }else { code = addSautEtTitres(code,nod.getNodes().get(k)); if(!nod.getContenu().isEmpty()) code = code + HTML.Paragraph_classp6(nod.getContenu().get(0)) + HTML.SautLigne(); for(int l = 0 ; l < nod.getNodes().get(k).getNodes().size() ; l++) { if(!nod.getNodes().get(k).getNodes().get(l).getNomElt().equals("saut")){ String Tst = nod.getNodes().get(k).getNodes().get(l).getAttributs().get("resultat"); String Key2 = evaluation.traduction.get(nod.getNodes().get(k).getNodes().get(l).getAttributs().get("elt") + " " + evaluation.withoutCodeAndPoint(nod.getNodes().get(k).getNodes().get(l).getAttributs().get("attribut"))); if(Key2==null) Key2 = nod.getNodes().get(k).getNodes().get(l).getAttributs().get("elt") + " " + evaluation.withoutCodeAndPoint(nod.getNodes().get(k).getNodes().get(l).getAttributs().get("attribut")); String valueStudent = nod.getNodes().get(k).getNodes().get(l).getAttributs().get("valueStudent"); String valueSujet = evaluation.withoutCodeAndPoint(nod.getNodes().get(k).getNodes().get(l).getAttributs().get("valueSujet")); int niveau = Integer.valueOf(nod.getNodes().get(k).getNodes().get(l).getAttributs().get("niveau")); code = code + HTML.Table(Tst, Key2, valueStudent, valueSujet, niveau); }else { code = addSautEtTitres(code,nod.getNodes().get(k).getNodes().get(l)); } } } } code = code.replace("-NewLine-", "
"); return code; } return ""; } private static String addSautEtTitres(String code, node nodeAna) { if(nodeAna.getNomElt().equals("saut")) { code = code + HTML.SautLigne(); } if(nodeAna.getAttributs().get("marquenode")!=null) if(!nodeAna.getAttributs().get("marquenode").isEmpty()){ code = code + HTML.SautLigne()+ HTML.SautP11(nodeAna.getAttributs().get("marquenode") + HTML.SautLigne()); } if(nodeAna.getAttributs().get("titre")!=null) if(!nodeAna.getAttributs().get("titre").isEmpty()){ if(nodeAna.getAttributs().get("proportioncorrect")!=null)if(!nodeAna.getAttributs().get("proportioncorrect").equals("NaN"))if(nodeAna.getAttributs().get("id")!=null) code = code + HTML.SautLigne()+ HTML.H1(nodeAna.getAttributs().get("titre"),nodeAna.getAttributs().get("id")) + HTML.SautLigne(); ; if(nodeAna.getAttributs().get("proportioncorrect")==null)if(nodeAna.getAttributs().get("id")!=null) code = code + HTML.SautLigne()+ HTML.H1(nodeAna.getAttributs().get("titre"),nodeAna.getAttributs().get("id")) + HTML.SautLigne(); ; if(nodeAna.getAttributs().get("id")==null) code = code + HTML.SautLigne()+ HTML.H1(nodeAna.getAttributs().get("titre")) + HTML.SautLigne(); ; } if(nodeAna.getAttributs().get("titre1")!=null) if(!nodeAna.getAttributs().get("titre1").isEmpty()){ if(nodeAna.getAttributs().get("proportioncorrect")!=null)if(!nodeAna.getAttributs().get("proportioncorrect").equals("NaN"))if(nodeAna.getAttributs().get("id")!=null) code = code + HTML.SautLigne()+ HTML.H2(nodeAna.getAttributs().get("titre1"),nodeAna.getAttributs().get("id")) + HTML.SautLigne(); ; if(nodeAna.getAttributs().get("proportioncorrect")==null)if(nodeAna.getAttributs().get("id")!=null) code = code + HTML.SautLigne()+ HTML.H2(nodeAna.getAttributs().get("titre1"),nodeAna.getAttributs().get("id")) + HTML.SautLigne(); ; if(nodeAna.getAttributs().get("id")==null) code = code + HTML.SautLigne() + HTML.H2(nodeAna.getAttributs().get("titre1")) + HTML.SautLigne(); ; } if(nodeAna.getAttributs().get("titre2")!=null) if(!nodeAna.getAttributs().get("titre2").isEmpty()){ if(nodeAna.getAttributs().get("proportioncorrect")!=null)if(!nodeAna.getAttributs().get("proportioncorrect").equals("NaN"))if(nodeAna.getAttributs().get("id")!=null) code = code + HTML.SautLigne()+ HTML.SautLigneOnduleBleu(nodeAna.getAttributs().get("titre2"),nodeAna.getAttributs().get("id")) + HTML.SautLigne(); ; if(nodeAna.getAttributs().get("proportioncorrect")==null)if(nodeAna.getAttributs().get("id")!=null) code = code + HTML.SautLigne()+ HTML.SautLigneOnduleBleu(nodeAna.getAttributs().get("titre2"),nodeAna.getAttributs().get("id")) + HTML.SautLigne(); ; if(nodeAna.getAttributs().get("id")==null) code = code + HTML.SautLigne() + HTML.SautLigneOnduleBleu(nodeAna.getAttributs().get("titre2")) + HTML.SautLigne(); ; } if(nodeAna.getAttributs().get("titre3")!=null) if(!nodeAna.getAttributs().get("titre3").isEmpty()){ if(nodeAna.getAttributs().get("proportioncorrect")!=null)if(!nodeAna.getAttributs().get("proportioncorrect").equals("NaN"))if(nodeAna.getAttributs().get("id")!=null) code = code + HTML.SautLigne()+ HTML.SautP8(nodeAna.getAttributs().get("titre3"),nodeAna.getAttributs().get("id")) + HTML.SautLigne(); ; if(nodeAna.getAttributs().get("proportioncorrect")==null)if(nodeAna.getAttributs().get("id")!=null) code = code + HTML.SautLigne()+ HTML.SautP8(nodeAna.getAttributs().get("titre3"),nodeAna.getAttributs().get("id")) + HTML.SautLigne(); ; if(nodeAna.getAttributs().get("id")==null) code = code + HTML.SautLigne() + HTML.SautP8(nodeAna.getAttributs().get("titre3")) + HTML.SautLigne(); ; } return code; } // Table correct pour application des styles public static String TableApplStyle(String NomStyle,ArrayList T, ArrayList S, boolean erreur) { String T1 = ""; String T2 = ""; for(int i=0; i\r"; } for(int i=0; i\r"; } String color = "#32cd32"; //vert if(erreur) color = "#dc143c"; //rouge // table pour l'application des styles return "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "\r\n" + "

" + "Les paragraphes qui sont dans le style \"" + NomStyle + "\"

" + "

\r\n" + "Correct/Erreur

" + "

\r\n" + "Dans fichier remis

" + "

\r\n" + "Consigne

" + "

\r\n" + "Correct

" + "

\r\n" + T1 + "

" + "

\r\n" + T2 + "

" + "
"; } // Aller en haut // public static String GoToTop() { // return "

" + ImgTop() +"

"; // } // Les points obtenus sous les tables public static String Paragraph_SousPartieNote(int ptacquis, int ptotal, double prop ) { return "

Total des points acquis = " + ptacquis + "
Total des points analysés = " + ptotal + "
Proportion = " + prop + "

\r"; } // image du logo de la fac public static String imgLogos() { return "\r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " image/svg+xml\r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + "\r\n" + ""; } /** * Image SVG de la progression * @return */ public static String imgProgression() { return "\r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " image/svg+xml\r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " 0%\r\n" + " 10%\r\n" + " 20%\r\n" + " 30%\r\n" + " 40%\r\n" + " 50%\r\n" + " 60%\r\n" + " 70%\r\n" + " 80%\r\n" + " 90%\r\n" + " 100%\r\n" + " 0\r\n" + " 2\r\n" + " 4\r\n" + " 6\r\n" + " 8\r\n" + " 10\r\n" + " 12\r\n" + " 14\r\n" + " 16\r\n" + " 18\r\n" + " 20\r\n" + " \r\n" + " Proportion correcte\r\n" + " Note sur 20\r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " Progression 1 (linéaire)Progression 1,5Progression 0,33Progression 0,5Progression 2Progression 3\r\n" + " \r\n" + " \r\n" + " Progression de la note en fonction de la proportion correcte\r\n" + " Exemple pour avoir une note de 10/20, lorsque la progression est de 0,33. Il faut 12.5% de proportion correcte. 0,5. Il faut 25% de proportion correcte. 1. Il faut 50% de proportion correcte. 1,5. Il faut 63% de proportion correcte. 2. Il faut 70.7% de proportion correcte. 3. Il faut 79.4% de proportion correcte.\r\n" + " \r\n" + " \r\n" + ""; } /** * Image SVG de la note A. * @return */ public static String NoteA( ) { return "\r\n" + "\r\n" + "\r\n" + "\r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + "\r\n"; } /** * Image SVG de la note B * @return */ public static String NoteB() { return "\r\n" + "\r\n" + "\r\n" + "\r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + "\r\n"; } /** * Image SVG de la note C * @return */ public static String NoteC() { return "\r\n" + "\r\n" + "\r\n" + "\r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + "\r\n"; } /** * Image SVG de la note D * @return */ public static String NoteD() { return "\r\n" + "\r\n" + "\r\n" + "\r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + "\r\n" + ""; } /** * Image SVG de la note E * @return */ public static String NoteE() { return "\r\n" + "\r\n" + "\r\n" + "\r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + "\r\n" + ""; } /** * Image SVG Interoorgation * @return */ public static String imgInterogation() { return "\r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + " \r\n" + ""; } /** * Retourne l'entête et les styles CSS du formulaire * @return */ public static String getStyleCSS() { // Date aujourdhui = new Date(); // DateFormat mediumDateFormat = DateFormat.getDateTimeInstance(DateFormat.MEDIUM,DateFormat.MEDIUM); return "\r\r"; } /** * Retourne le code HTML du menu * @param items * @return */ public static String getHTMLmenu(ArrayList items) { String codeHTMLMenu= "
Note"; for(int i =0 ; i < items.size(); i++) { codeHTMLMenu = codeHTMLMenu + "" + items.get(i).getAttributs().get("titre") + ""; } codeHTMLMenu = codeHTMLMenu + "
"; return codeHTMLMenu; } /** * Du javascript pour le menu sticky * @return */ public static String getHTMLJavaScript() { return ""; } }