@ -49,20 +49,20 @@ void menu(VilleIUT *tiut[], int *nbIUT, Etudiant *tetud[], int *nbCandidats, boo
switch ( choix )
{
case 1 :
char mdp [ 30 ] , MdPAdmin [ 30 ] ;
int i = 0 ;
strcpy ( MdPAdmin , chargerMdPAdmin ( ) ) ;
printf ( " Veuillez entrer le mot de passe administrateur : \n > " ) ;
while ( mdp ! = MdPAdmin )
{
if ( i = = 3 )
{
printf ( " Vous avez entré 3 fois le mauvais mot de passe, veuillez réessayer plus tard. \n " ) ;
}
printf ( " Veuillez entrer le mot de passe administrateur : \n > " ) ;
scanf ( " %s%*c " , mdp ) ;
i + + ;
}
// char mdp[30], MdPAdmin[30];
// int i = 0;
// strcpy(MdPAdmin, chargerMdPAdmin());
// printf("Veuillez entrer le mot de passe administrateur :\n> ");
// while(mdp != MdPAdmin)
// {
// if(i == 3)
// {
// printf("Vous avez entré 3 fois le mauvais mot de passe, veuillez réessayer plus tard.\n");
// }
// printf("Veuillez entrer le mot de passe administrateur :\n> ");
// scanf("%s%*c", mdp);
// i++;
// }
menuAdministrateur ( tiut , nbIUT , tetud , nbCandidats , phaseCandidatures , phaseTraitement ) ;
break ;
case 2 :
@ -277,22 +277,20 @@ void menuResponsable(Etudiant *tetud[], int nbCandidats, VilleIUT *tiut[], int *
int choix ;
bool c = false ;
float noteMin [ 5 ] ;
Etudiant * tetudResp [ 100 ] , * tetudRespAdmis [ 100 ] , * tetudRespAttente [ 100 ] ;
int nbCandidatsDept , nbCandidatsDeptAdmis , nbCandidatsDeptAttente , nbCandidatsDeptRefuse ;
Etudiant * tetudResp [ 100 ] ;
int nbCandidatsDept ;
char respVille [ 30 ] , respDept [ 30 ] ;
deptResp ( tiut , * nbIUT , respVille , respDept ) ;
nbCandidatsDept = chargementRespDept ( tetud , nbCandidats , respVille , respDept , tetudResp ) ; //* Ca marche ca
triNote ( tetudResp , nbCandidatsDept ) ;
//! Ajouter la moyenne et nommer deux liste pour admis et en attente
while ( c = = false )
{
// system("clear");
printf ( " \n \n Menu des Responsable de Departement : Que voulez-vous faire ? \n " ) ;
printf ( " \t 1 - Affichages \n " ) ;
printf ( " \t 2 - Modifier le nombre de places dans un département \n " ) ;
printf ( " \t 3 - Modifier la note minimal d'admission du departement \n " ) ; // ! A faire
printf ( " \t 4 - Lancer les admissions \n " ) ; // ! A revoir
printf ( " \t 3 - Modifier la note minimal d'admission du departement \n " ) ;
printf ( " \t 4 - Lancer les admissions \n " ) ;
printf ( " \t 9 - Quitter \n " ) ;
printf ( " \n Entrez votre choix : \n > " ) ;
scanf ( " %d%*c " , & choix ) ;
@ -304,16 +302,13 @@ void menuResponsable(Etudiant *tetud[], int nbCandidats, VilleIUT *tiut[], int *
case 2 :
modificationNbPDeptResp ( tiut , * nbIUT , respVille , respDept ) ;
break ;
// case 3:
// //*noteMin = modifNoteMin(noteMin);
// // ? Note min stocké où ? ==> dans le fichier informationsIUT.txt
// break; //! A revoir segment fault
// case 4:
// modifStatueCandidat(tetudResp, nbCandidatsDept, noteMin, tiut, *nbIUT, respVille, respDept); //! Mettre dans l'admin et dire que c'est lui qui lance tt
// // lancerAdmissions(tetudResp, nbCandidats, tetudAdmis, nbEtudAdmis, tetudAttente, nbEtudAttente, respVille, respDept);
// //! Qd finis enregistrer dans tblAdmis et tblAttente puis sauv dans fichier
// statueCandidat(tetud, nbCandidats, tetudAdmis, tetudAttente, nbEtudAdmis, nbEtudAttente);
// break;
case 3 :
* noteMin = modifNoteMin ( noteMin ) ;
break ;
case 4 :
modifStatueCandidat ( tetudResp , nbCandidatsDept , noteMin , tiut , * nbIUT , respVille , respDept ) ; //! A verifier
statueCandidat ( tetud , nbCandidats , tetudAdmis , tetudAttente , nbEtudAdmis , nbEtudAttente ) ;
break ;
case 9 :
c = true ;
return ;