> FANALYSE;
}
}
}
print "}" >> FANALYSE;
##############################################
# Fabrication du fichier de script affichage
##############################################
print "function plureponse\n { if [ $1 -gt 1 ]\n then\n echo \"| $1 réponses\"\n elif [ $1 -eq 1 ]\n then\n echo \" | 1 réponse\"\n else\n echo \" | \"\n fi\n }\n\ncat << _fin0\n" >> FAFFICHAGE;
printf ("%s - Evaluation des enseignements\n\n%s - Evaluation des enseignements\n_fin0\n\n", Intitule,Intitule) >> FAFFICHAGE;
printf("eval \"vTOTALREPONSES=${TOTALREPONSES}\"\n") >> FAFFICHAGE;
printf ("echo \" Nombre de réponses : ${vTOTALREPONSES}
\"\n") >> FAFFICHAGE;
print "cat << _fin00\nPour les questions auxquelles plusieurs réponses sont possibles, les pourcentages indiqués sont par rapport au nombre total de réponses à la question posée.
\n_fin00\n\n" >> FAFFICHAGE;
for(i=0;i
%s\n\n",i,Sections[i,I] >> FAFFICHAGE;
if(Sections[i,C]>1) {
print " | " >> FAFFICHAGE;
for(j=1;j<=Sections[i,C];j++)
printf("%s | ",Colonnes[i,j]) >> FAFFICHAGE;
print " \n" >> FAFFICHAGE;
}
printf "_entetesection%d\n\n",i >> FAFFICHAGE;
if(Sections[i,NG]>0)
for(j=0;j> FAFFICHAGE;
for(q=1;q<=Sections[i,Q];q++) {
code=SectQuestions[i,q];
if(Questions[code,TYP]==0)
printf("echo \"| %s | \"\n",Questions[code,RR]) >> FAFFICHAGE;
else
printf("echo \"
|---|
| %s (plusieurs réponses possibles) | \"\n",Questions[code,RR]) >> FAFFICHAGE;
for(j=0;j0)
for(g=1;g<=Sections[i,NG];g++)
printf("eval \"vS%dC%dG%d%s=${S%dC%dG%d%s}\"\n",i,j,g,code,i,j,g,code) >> FAFFICHAGE;
else
printf("eval \"vS%dC%d%s=${S%dC%d%s}\"\n",i,j,code,i,j,code) >> FAFFICHAGE;
for(k=0;k0)
for(g=1;g<=Sections[i,NG];g++)
printf("eval \"vRS%dC%dG%d%s%d=${RS%dC%dG%d%s%d}\"\n",i,j,g,code,
k,i,j,g,code,k) >> FAFFICHAGE;
else
printf("eval \"vRS%dC%d%s%d=${RS%dC%d%s%d}\"\n",i,j,code,k,i,j,code,k) >> FAFFICHAGE;
}
if(Sections[i,NG]>0) {
printf "echo \"\"\necho \"" >> FAFFICHAGE;
for(g=1;g<=Sections[i,NG];g++)
printf "| %s | \"\necho \"",Groupes[i,g] >> FAFFICHAGE;
printf " \"\n" >> FAFFICHAGE;
for(g=1;g<=Sections[i,NG];g++) {
if(Questions[code,TYP]==0)
printf("plureponse $vS%dC%dG%d%s\n",i,j,g,code) >> FAFFICHAGE;
else
printf("plureponse $vS%dC%dG%d\n",i,j,g) >> FAFFICHAGE;
for(k=0;k %s: ${vRS%dC%dG%d%s%d}%% \";fi\n",i,j,g,code,k,Reponses[code,k,RR],i,j,g,code,k) >> FAFFICHAGE;
print "echo \"\"\n" >> FAFFICHAGE;
}
print "echo \"
| \"\n" >> FAFFICHAGE;
}
else {
printf("plureponse $vS%dC%d%s\n",i,j,code) >> FAFFICHAGE;
for(k=0;k %s: ${vRS%dC%d%s%d}%%\";fi\n ",i,j,code,k,Reponses[code,k,RR],i,j,code,k) >> FAFFICHAGE;
print "echo \"\"\n" >> FAFFICHAGE;
}
}
print "echo \" \"\n" >> FAFFICHAGE;
}
print "echo \" \"\n" >> FAFFICHAGE;
}
print "echo \"\"\n" >> FAFFICHAGE;
print Intitule ;
}
|