|
|
|
@ -41,7 +41,7 @@ void menu(VilleIUT *tiut[], int *nbIUT, Etudiant *tetud[], int *nbCandidats, boo
|
|
|
|
|
menuCandidat(tiut, nbIUT, tetud, nbCandidats);
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
menuResponsable(tetud, nbCandidats, tiut, nbIUT, tetudAdmis, nbEtudAdmis, tetudAttente, nbEtudAttente);
|
|
|
|
|
menuResponsable(tetud, *nbCandidats, tiut, nbIUT, tetudAdmis, nbEtudAdmis, tetudAttente, nbEtudAttente);
|
|
|
|
|
break;
|
|
|
|
|
case 9:
|
|
|
|
|
c = true;
|
|
|
|
@ -190,7 +190,7 @@ void menuCandidat(VilleIUT *tiut[], int *nbIUT, Etudiant *tetud[], int *nbCandid
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void menuResponsable(Etudiant *tetud[], int *nbCandidats, VilleIUT *tiut[], int *nbIUT, Etudiant *tetudAdmis[], int *nbEtudAdmis, Etudiant *tetudAttente[], int *nbEtudAttente)
|
|
|
|
|
void menuResponsable(Etudiant *tetud[], int nbCandidats, VilleIUT *tiut[], int *nbIUT, Etudiant *tetudAdmis[], int *nbEtudAdmis, Etudiant *tetudAttente[], int *nbEtudAttente)
|
|
|
|
|
{
|
|
|
|
|
int choix;
|
|
|
|
|
bool c = false;
|
|
|
|
@ -201,24 +201,31 @@ void menuResponsable(Etudiant *tetud[], int *nbCandidats, VilleIUT *tiut[], int
|
|
|
|
|
nbCandidatsDept = chargementRespDept(tetud, *nbCandidats, respVille, respDept, tetudResp);
|
|
|
|
|
triNote(tetudResp, nbCandidatsDept);
|
|
|
|
|
//! Ajouter la moyenne et nommer deux liste pour admis et en attente
|
|
|
|
|
|
|
|
|
|
while (c == false)
|
|
|
|
|
{
|
|
|
|
|
// system("clear");
|
|
|
|
|
Etudiant *tetudResp[100];
|
|
|
|
|
int nbCandidatsDept;
|
|
|
|
|
char respVille[30], respDept[30];
|
|
|
|
|
deptResp(tiut, *nbIUT, respVille, respDept);
|
|
|
|
|
nbCandidatsDept = chargementRespDept(tetud, nbCandidats, respVille, respDept, tetudResp);
|
|
|
|
|
printf("\n\nMenu des Responsable de Departement : Que voulez-vous faire ?\n");
|
|
|
|
|
printf("\t1 - Lancer les admissions\n");
|
|
|
|
|
printf("\t2 - Afficher les candidats dans mon département\n");
|
|
|
|
|
/*printf("\t1 - Modifier le nombre de places dans un département\n");
|
|
|
|
|
printf("\t2 - Afficher les candidats admis du departement\n");
|
|
|
|
|
printf("\t3 - Afficher les candidats refusés du departement\n");
|
|
|
|
|
printf("\t4 - Afficher les candidats en attente du departement\n");
|
|
|
|
|
printf("\t5 - Afficher les informations de tous les candidats du departement\n");
|
|
|
|
|
printf("\t6 - Afficher les informations d'un seul candidat du departement\n");
|
|
|
|
|
printf("\t7 - Afficher le statue d'un candidats du departement\n");
|
|
|
|
|
printf("\t8 - Afficher le nombre de candidats admis du departement\n");
|
|
|
|
|
printf("\t9 - Afficher le nombre de candidats refusés du departement\n");
|
|
|
|
|
printf("\t10- Afficher le nombre de candidats en attente du departement\n");
|
|
|
|
|
printf("\t11- Modifier la note minimal d'admission du departement\n");
|
|
|
|
|
printf("\t12- Modifier la note exellente d'admission du departement\n");*/
|
|
|
|
|
printf("\t2 - Affichages\n");
|
|
|
|
|
printf("\t3 - Modifier le nombre de places dans un département\n");
|
|
|
|
|
printf("\t4 - Modifier la note minimal d'admission du departement");
|
|
|
|
|
printf("\t5 - Modifier la note exellente d'admission du departement");
|
|
|
|
|
// printf("\t2 - Afficher les candidats dans mon département\n");
|
|
|
|
|
// printf("\t3 - Afficher les candidats admis du departement\n");
|
|
|
|
|
// printf("\t4 - Afficher les candidats refusés du departement\n");
|
|
|
|
|
// printf("\t5 - Afficher les candidats en attente du departement\n");
|
|
|
|
|
// printf("\t6 - Afficher les informations de tous les candidats du departement\n");
|
|
|
|
|
// printf("\t7 - Afficher les informations d'un seul candidat du departement\n");
|
|
|
|
|
// printf("\t8 - Afficher le statue d'un candidats du departement\n");
|
|
|
|
|
// printf("\t9 - Afficher le nombre de candidats admis du departement\n");
|
|
|
|
|
// printf("\t10- Afficher le nombre de candidats refusés du departement\n");
|
|
|
|
|
// printf("\t11- Afficher le nombre de candidats en attente du departement\n");
|
|
|
|
|
printf("\t9 - Quitter\n");
|
|
|
|
|
printf("\nEntrez votre choix :\n> ");
|
|
|
|
|
scanf("%d%*c", &choix);
|
|
|
|
@ -228,7 +235,7 @@ void menuResponsable(Etudiant *tetud[], int *nbCandidats, VilleIUT *tiut[], int
|
|
|
|
|
lancerAdmissions(tetudResp, *nbCandidats, tetudAdmis, nbEtudAdmis, tetudAttente, nbEtudAttente, respVille, respDept);
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
afficherCandidats(tetudResp, nbCandidatsDept);
|
|
|
|
|
menuAffichage(tetud, nbCandidats, tiut, nbIUT);
|
|
|
|
|
break;
|
|
|
|
|
/*case 1:
|
|
|
|
|
// modifNbPlaces(nbPlaces)
|
|
|
|
@ -274,4 +281,72 @@ void menuResponsable(Etudiant *tetud[], int *nbCandidats, VilleIUT *tiut[], int
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void menuAffichage(Etudiant *tetud[], int nbCandidats, VilleIUT *tiut[], int *nbIUT)
|
|
|
|
|
{
|
|
|
|
|
int choix;
|
|
|
|
|
bool c = false;
|
|
|
|
|
while (c == false)
|
|
|
|
|
{
|
|
|
|
|
// system("clear");
|
|
|
|
|
Etudiant *tetudResp[100];
|
|
|
|
|
int nbCandidatsDept;
|
|
|
|
|
char respVille[30], respDept[30];
|
|
|
|
|
deptResp(tiut, *nbIUT, respVille, respDept);
|
|
|
|
|
nbCandidatsDept = chargementRespDept(tetud, nbCandidats, respVille, respDept, tetudResp);
|
|
|
|
|
printf("\n\nMenu des Affichages Responsable de Departement : Que voulez-vous faire ?\n");
|
|
|
|
|
printf("\t1 - Afficher les candidats dans mon département\n");
|
|
|
|
|
printf("\t2 - Afficher les candidats admis du departement\n");
|
|
|
|
|
printf("\t3 - Afficher les candidats refusés du departement\n");
|
|
|
|
|
printf("\t4 - Afficher les candidats en attente du departement\n");
|
|
|
|
|
printf("\t5 - Afficher les informations de tous les candidats du departement\n");
|
|
|
|
|
printf("\t6 - Afficher les informations d'un seul candidat du departement\n");
|
|
|
|
|
printf("\t7 - Afficher le statue d'un candidats du departement\n");
|
|
|
|
|
// ! printf("\t8 - Afficher le nombre de candidats admis du departement\n");
|
|
|
|
|
// ! printf("\t9 - Afficher le nombre de candidats refusés du departement\n"); Les mettres a la fin de chaque affichage des autres
|
|
|
|
|
// ! printf("\t10- Afficher le nombre de candidats en attente du departement\n");
|
|
|
|
|
printf("\t9 - Quitter\n");
|
|
|
|
|
printf("\nEntrez votre choix :\n> ");
|
|
|
|
|
scanf("%d%*c", &choix);
|
|
|
|
|
switch (choix)
|
|
|
|
|
{
|
|
|
|
|
case 1:
|
|
|
|
|
// lancerAdmission(tetudResp, *nbCandidats);
|
|
|
|
|
break;
|
|
|
|
|
case 2:
|
|
|
|
|
afficherCandidatsAdmis(tetud, nbCandidats);
|
|
|
|
|
break;
|
|
|
|
|
case 3:
|
|
|
|
|
afficherCandidatsRefuses(tetud, nbCandidats);
|
|
|
|
|
break;
|
|
|
|
|
case 4:
|
|
|
|
|
afficherCandidatsAttente(tetud, nbCandidats);
|
|
|
|
|
break;
|
|
|
|
|
case 5:
|
|
|
|
|
afficherCandidats(tetud, nbCandidats);
|
|
|
|
|
break;
|
|
|
|
|
case 6:
|
|
|
|
|
afficherCandidat(tetud, nbCandidats);
|
|
|
|
|
break;
|
|
|
|
|
case 7:
|
|
|
|
|
statueCandidat(tetud, nbCandidats);
|
|
|
|
|
break;
|
|
|
|
|
case 8:
|
|
|
|
|
nbCandidatsAdmis(tetud, nbCandidats);
|
|
|
|
|
break;
|
|
|
|
|
case 10:
|
|
|
|
|
nbCandidatsRefuses(tetud, nbCandidats);
|
|
|
|
|
break;
|
|
|
|
|
case 11:
|
|
|
|
|
nbCandidatsAttente(tetud, nbCandidats);
|
|
|
|
|
break;
|
|
|
|
|
case 9:
|
|
|
|
|
c = true;
|
|
|
|
|
return;
|
|
|
|
|
default:
|
|
|
|
|
printf("Option non reconnue. Veuillez recommencer.\n");
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|