You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
2.9 KiB
76 lines
2.9 KiB
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <stdbool.h>
|
|
#include "structures.h"
|
|
|
|
/* Menus */
|
|
void choixMenu(void);
|
|
void menuUtilisateur(void);
|
|
void menuAdministrateur(void);
|
|
|
|
/* Partie 1 */
|
|
ListeDept listenouv(void);
|
|
ListeDept insererEnTete(ListeDept l, char departement[], int nbP, char resp[]);
|
|
ListeDept inserer(ListeDept l, char departement[], int nbP, char resp[]);
|
|
void afficher(ListeDept l);
|
|
bool vide(ListeDept l);
|
|
void afficherDept(ListeDept l);
|
|
int rechercheDept(ListeDept l, char departement[], bool *trouve);
|
|
ListeDept supprimerEnTete(ListeDept l);
|
|
ListeDept supprimer(ListeDept l, char departement[]);
|
|
|
|
int getNbP(ListeDept l, int pos);
|
|
void setNbP(ListeDept l, int pos, int valeur);
|
|
char* getResp(ListeDept l, int pos);
|
|
void setResp(ListeDept l, int pos, char valeur[]);
|
|
char* getDept(ListeDept l, int pos);
|
|
void setResp(ListeDept l, int pos, char valeur[]);
|
|
|
|
/* Fichier */
|
|
int chargementVillesIUT(VilleIUT *tiut[]);
|
|
int rechercheVille(VilleIUT *tiut[], int nb, char val[], bool *trouve);
|
|
void sauvegarde(VilleIUT *tiut[], int nb);
|
|
|
|
/* Utilisateur */
|
|
void affichageVillesIUT(VilleIUT *tiut[], int nb);
|
|
void affichageDeptIUT(VilleIUT *tiut[], int nb);
|
|
|
|
/* Administrateur */
|
|
void modificationNbPDept(VilleIUT *tiut[], int nb);
|
|
void creationDept(VilleIUT *tiut[], int nb);
|
|
int suppressionDept(VilleIUT *tiut[], int nb);
|
|
void modificationRespDept(VilleIUT *tiut[], int nb);
|
|
|
|
|
|
// Partie 3
|
|
|
|
Departement lireDpt(FILE *flot);
|
|
void afficherDpt(Departement dpt);
|
|
Admission lireCandidat(FILE *flot);
|
|
void afficherCandidat(Admission candidat);
|
|
ListeAdmission chargerCandidats(char *ficAdmission, char dptResAdmi[30]);
|
|
void sauvegarderCandidats(ListeAdmission lAdmission, char dptResAdmi[30]);
|
|
void afficherCandidatsAdmis(ListeAdmission listeCandidats);
|
|
void afficherCandidatsNonAdmis(ListeAdmission listeCandidats);
|
|
void afficherCandidatsAttente(ListeAdmission listeCandidats);
|
|
void afficherCandidatsDpt(ListeAdmission listeCandidats);
|
|
ListeAdmission MoyenneCandidats(ListeAdmission listeCandidats);
|
|
int modifNoteMinAdmis();
|
|
int modifNbAdmisMax();
|
|
|
|
// Authentification
|
|
|
|
int ConnexionUtilisateur(char *login, char *mdp);
|
|
ListeUtilisateurs chargerUtilisateurs(char *ficUtilisateurs, ListeUtilisateurs Utilisateurs);
|
|
Utilisateur lireUtilisateur(FILE *flot);
|
|
void afficherUtilisateur(Utilisateur utilisateur);
|
|
void afficherUtilisateurs(ListeUtilisateurs listeUtilisateurs);
|
|
ListeUtilisateurs insererUtilisateur(ListeUtilisateurs listeUtilisateurs, Utilisateur utilisateur);
|
|
ListeUtilisateurs supprimerUtilisateur(ListeUtilisateurs listeUtilisateurs, char *nomUtilisateur);
|
|
int videUtilisateurs(ListeUtilisateurs listeUtilisateurs);
|
|
void sauveUtilisateurs(char *ficUtilisateurs, ListeUtilisateurs listeUtilisateurs);
|
|
int rechercherUtilisateur(ListeUtilisateurs listeUtilisateurs, char *nomUtilisateur);
|
|
int supprimerUtilisateur(ListeUtilisateurs listeUtilisateurs, char *nomUtilisateur);
|
|
int menuUtilisateur(ListeUtilisateurs listeUtilisateurs);
|
|
void global(void); |