printf("\nLa phase de candidature a été lancée.\n");
}
if(*phaseCandidature==1)
{
printf("La phase de candidature est en court.\n");
printf("\nÊtes-vous sur d'arrêter la phase de candidature?(o/n)\t");
scanf("%c",&choix);
if(choix!='O'&&choix!='o')
{
printf("La phase de candidature n'a pas été arrêtée.\n");
scanf("%c",&choix);
clearpage();
return;
}
*phaseCandidature=2;
printf("\nLa phase de candidature a été arrêtée.\n");
}
clearpage();
}
@ -628,8 +648,6 @@ int login(Candidat *tCand[],int *tMax,int *pos) /* Affiche un menu de connexion
}
}
voidmenuAdmin(VilleIUT*tiut[],int*tLog,inttMax,int*phaseCandidature)/* Affiche un menu de choix adaptés pour un administrateur et appelle les fonctions en conséquence */
{
intselect,pos;
@ -677,6 +695,8 @@ void menuAdmin(VilleIUT *tiut[], int *tLog, int tMax,int *phaseCandidature) /* A
{
creerDept(tiut,*tLog);
}
if(*phaseCandidature==0)
{
if(select==4)
{
retirerDept(tiut,*tLog);
@ -725,6 +745,8 @@ void menuAdmin(VilleIUT *tiut[], int *tLog, int tMax,int *phaseCandidature) /* A
}
}
}
}
if(select==8)
{
lancerPhaseCandidature(phaseCandidature);
@ -823,6 +845,8 @@ void menuCandidat(VilleIUT *tiut[], int *tLog, int tMax,Candidat *tCand[],int tM
{
afficheDeptDesIUT(tiut,*tLog);
}
if(phaseCandidature==1)
{
if(select==5)
{
for(i=0;i<tCand[pos]->nombreChoix;i++)
@ -848,10 +872,14 @@ void menuCandidat(VilleIUT *tiut[], int *tLog, int tMax,Candidat *tCand[],int tM