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.
105 lines
4.2 KiB
105 lines
4.2 KiB
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <stdbool.h>
|
|
#include "structures.h"
|
|
|
|
void global(void);
|
|
/* Menus */
|
|
void menu(VilleIUT *tiut[], int nbVilles);
|
|
void menuUtilisateur(VilleIUT *tiut[], int nbVilles);
|
|
void menuAdministrateur(VilleIUT *tiut[], int nbVilles);
|
|
|
|
/* 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 longueur(ListeDept l);
|
|
|
|
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 sauvegardeVillesIUT(VilleIUT *tiut[], int nb);
|
|
|
|
/* Utilisateur */
|
|
void affichageVillesIUT(VilleIUT *tiut[], int nb);
|
|
void affichageDeptIUT(VilleIUT *tiut[], int nb);
|
|
void affichageNbP(VilleIUT *tiut[], int nb);
|
|
void affichageDeptParticulier(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, ListeDepartement dpt);
|
|
void afficheDept(Departement dpt);
|
|
Admission lireCandidat(FILE *flot, ListeAdmission la);
|
|
void afficherCandidat(Admission candidat);
|
|
int chargerCandidats(MaillonEtudiant *tetud[]);
|
|
void sauvegarderCandidats(ListeAdmission listeCandidats, char dptResAdmi[30]);
|
|
void afficherCandidatsAdmis(ListeAdmission listeCandidats);
|
|
void afficherCandidatsNonAdmis(ListeAdmission listeCandidats);
|
|
void afficherCandidatsAttente(ListeAdmission listeCandidats);
|
|
void afficherCandidatsDpt(ListeAdmission listeCandidats);
|
|
ListeAdmission MoyenneCandidats(ListeAdmission listeCandidats);
|
|
|
|
// Liste Choix
|
|
ListeChoix listenouvChoix(void);
|
|
ListeChoix insererEnTeteChoix(ListeChoix lc, Choix choix);
|
|
ListeChoix insererChoix(ListeChoix lc, Choix choix);
|
|
ListeChoix supprimerEnTeteChoix(ListeChoix lc);
|
|
ListeChoix supprimerChoix(ListeChoix lc, Choix choix);
|
|
bool rechercheChoix(ListeChoix lc, Choix choix);
|
|
Choix TeteChoix(ListeChoix lc);
|
|
bool videChoix(ListeChoix lc);
|
|
void afficherChoix(ListeChoix lc);
|
|
int longueurChoix(ListeChoix lc);
|
|
void afficherCandidatsChoix(Choix choix);
|
|
|
|
/*
|
|
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);*/ |