Ajout de fonctionnalités pour l'administrateur

master
Yann CHAMPEAU 3 years ago
parent f911cec734
commit b4a9a1d9be

@ -8,15 +8,6 @@ typedef struct pile
} pile;
typedef struct pile* Pile;
Pile creerpile(int tmax);
void empiler(Pile p, int x);
void afficherPileEntier(Pile p);
int depiler(Pile p);
//File
typedef struct file
{
@ -26,10 +17,28 @@ typedef struct file
} file;
typedef struct file* File;
//Initialisation de fonctions :
void menu(void);
//Fonctions relatives aux listes chaînées : //
int existe(Listedep liste, char* mot);
//----------------------------------//
//Fonctions relatives aux piles : //
Pile creerpile(int tmax); //
//
void empiler(Pile p, int x); //
//
void afficherPileEntier(Pile p); //
//
int depiler(Pile p); //
//----------------------------------//
//Fonctions relatives aux files : //
File creerfile(int tmax); //
//

@ -2,6 +2,7 @@
#include <stdlib.h>
#include <errno.h>
#include "saeP1.h"
#include "../annexe/saeAnnexe.h"
void menuAdmin(void){
printf("#--------------------------------------------------------------------#\n");
@ -19,3 +20,28 @@ void menuAdmin(void){
printf("#--------------------------------------------------------------------#\n\n");
printf("Choisissez l'action que vous voulez exécuter : ");
}
void modifPlaces(VilleIUT* tiut){
int quit=0;
printf("Entrez la ville correspondant à l'IUT à modifier (Q pour abandonner):");
char* ville[31];
scanf("%*c%s",&ville);
if(ville=="Q") quit=1;
while(!quit && !rechercheVille(tiut,ville)){
printf("Entrez la ville correspondant à l'IUT à modifier (Q pour abandonner):");
scanf("%*c%s",&ville);
if(ville=="Q") quit=1;
}
quit=0
printf("Entrez le département à modifier (Q pour abandonner):");
char* dep[31];
scanf("%*c%s",&dep);
if(dep=="Q") quit=1;
while(!quit && !existe(tiut->ldept,dep)){
printf("Entrez le département à modifier (Q pour abandonner):");
scanf("%*c%s",&dep);
if(dep=="Q") quit=1;
}
break;
//PAS FINI
}

@ -8,10 +8,12 @@ typedef struct MaillonDep
struct MaillonDep* suivant;
}MaillonDep;
typedef MaillonDep* ListeDept;
typedef struct
{
char Ville[31];
MaillonDep* ldept;
ListeDep ldept;
}VilleIUT;
//Consultant
@ -30,12 +32,16 @@ void SearchDepInIUT();
void menuAdmin();
void ModSpotInDep();
void modifPlaces();
//void creerDep();
//void supprimerDep();
void CreateDepInIUT();
//void gestionPhaseCandidatures();
void DelDepFromAnIUT();
//void modifNomResponsable();
void LauchOrCancelCandidPhase();
//Général
void ModRespNameFromDep();
//int rechercheVille(VilleIUT* tiut, char* ville);

@ -9,6 +9,8 @@
int main(void)
{
VilleIUT* tiut;
loadIUT(tiut);
menu();
char user;
scanf("%c",&user);

Loading…
Cancel
Save