[x] Corrections (étape 1)

+ connection étudiant, infos
	==== RANG+ANNEE+FORMATION => SEMESTRE_ID ====
		+ groupes étudiant, erreur semestre
		+ groupe étudiant, erreur semestre
		+ notes étudiant
		+ modules étudiant
	+ suppression "extends DBAccess" dans les repos
	+ publication par défaut lors de l'import de contrôles (non visible)
	+ Affichage des groupes pour un contrôle (enseignant)
	+ Affichage des étudiants d'un groupe pour un contrôle (enseignant)
	+ Affichage des groupes pour un contrôle (master/admin)
	+ Affichage des étudiants d'un groupe pour un contrôle (master/admin)
This commit is contained in:
xdrm-brackets 2016-01-02 14:21:31 +01:00
parent 7747395a79
commit a4c38bced1
29 changed files with 1457 additions and 112 deletions

16
API.php
View File

@ -55,19 +55,19 @@ require_once __ROOT__.'/manager/security.php';
break;
/**********/
/* MODULE */
/**********/
/***********/
/* MODULES */
/***********/
case 'modules':
if( isset($request->level_1) ){ modulesManager::switch_level_1($request, $answer); }
else { $answer->request = 'missing_level_1'; }
break;
/**********/
/* MODULE */
/**********/
case 'phpExcel':
if( isset($request->level_1) ){ excelManager::switch_lvl1($request, $answer); }
/*********/
/* EXCEL */
/*********/
case 'excel':
if( isset($request->level_1) ){ excelManager::switch_level_1($request, $answer); }
else { $answer->request = 'missing_level_1'; }
break;

View File

@ -126,8 +126,8 @@
/* gestion des différentes icônes */
#MENU span:nth-child(2){ background-image: url(../src/menu/menu_icon/home.svg); }
#MENU span:nth-child(3){ background-image: url(../src/menu/menu_icon/groups.svg); }
#MENU span:nth-child(4){ background-image: url(../src/menu/menu_icon/modules.svg); }
#MENU span:nth-child(5){ background-image: url(../src/menu/menu_icon/career.svg); }
#MENU span:nth-child(4){ background-image: url(../src/menu/menu_icon/modules2.svg); }
#MENU span:nth-child(5){ background-image: url(../src/menu/menu_icon/marks2.svg); }
#MENU span:nth-child(6){ background-image: url(../src/menu/menu_icon/settings.svg); }
@ -137,9 +137,9 @@
#MENU span:nth-child(3):hover,
#MENU span:nth-child(3).active{ background-image: url(../src/menu/menu_icon/groups@hover.svg); }
#MENU span:nth-child(4):hover,
#MENU span:nth-child(4).active{ background-image: url(../src/menu/menu_icon/modules@hover.svg); }
#MENU span:nth-child(4).active{ background-image: url(../src/menu/menu_icon/modules2@hover.svg); }
#MENU span:nth-child(5):hover,
#MENU span:nth-child(5).active{ background-image: url(../src/menu/menu_icon/career@hover.svg); }
#MENU span:nth-child(5).active{ background-image: url(../src/menu/menu_icon/marks2@hover.svg); }
#MENU span:nth-child(6):hover,
#MENU span:nth-child(6).active{ background-image: url(../src/menu/menu_icon/settings@hover.svg); }

View File

@ -37,14 +37,14 @@ class careerManager{
/***************************/
case 'getNotesEtudiant': if( permission('student') || permission('master') || permission('admin') ){
$areSetParam = isset($request->etudiant) && isset($request->semestre) && isset($request->annee) && isset($request->formation); // les arguments existent
$etudiantCheck = $areSetParam && checkParam($request->etudiant, 'utilisateur.identifiant'); // nom bon format
$formationCheck = $etudiantCheck && checkParam($request->formation, 'auto_increment_id'); // formation (formation) bon format
$semestreCheck = $formationCheck && checkParam($request->semestre, 'semestre.rang'); // semestre (rang) bon format
$anneeCheck = $semestreCheck && checkParam($request->annee, 'semestre.annee'); // semestre (annee) bon format
$areSetParam = isset($request->etudiant) && isset($request->semestre); // les arguments existent
$etudiantCheck = $areSetParam && checkParam($request->etudiant, 'utilisateur.identifiant'); // nom bon format
// $formationCheck = $etudiantCheck && checkParam($request->formation, 'auto_increment_id'); // formation (formation) bon format
$semestreCheck = $etudiantCheck && checkParam($request->semestre, 'auto_increment_id'); // semestre (rang) bon format
// $anneeCheck = $semestreCheck && checkParam($request->annee, 'semestre.annee'); // semestre (annee) bon format
if( $anneeCheck ){ // si tout les paramètres sont bons
$UEs = DataBase::getInstance()->getNotesEtudiant($request->etudiant, $request->formation, $request->semestre, $request->annee);
if( $semestreCheck ){ // si tout les paramètres sont bons
$UEs = DataBase::getInstance()->getNotesEtudiant($request->etudiant, $request->semestre);
if( is_array($UEs) ){ // si on a bien un tableau
$answer->UEs = $UEs; // on renvoie dans answer->note

View File

@ -258,10 +258,10 @@ class DataBase{
*
*/
public static function studentSemestre($etudiant, $semestre_pair, $annee){
if( $semestre = semestreRepo::forStudent($etudiant, $semestre_pair, $annee) ) // si on a un résultat
return $semestre;
else
if( !($semestre=semestreRepo::forStudent($etudiant, $semestre_pair, $annee)) ) // si on a un résultat
return 'error';
else
return $semestre;
}
@ -465,9 +465,11 @@ class DataBase{
/******************************************************************/
/*** retourne la liste des utilisateurs du groupe d'un étudiant ***/
/******************************************************************/
public function listeEtudiantsGroupe($etudiant, $formation, $semestre, $annee){
public function listeEtudiantsGroupe($etudiant, $semestre){
// on vérifie que le groupe et le semestre existent
if( !($semestreUID=semestreRepo::UID($formation, $semestre, $annee)) ) return 'unknown_semestre'; else $semestreUID = (int) $semestreUID;
if( !semestreRepo::exists($semestre) ) return 'unknown_semestre';
else $semestreUID = $semestre;
if( !($etudiantUID=userRepo::UID($etudiant, $semestreUID)) ) return 'unknown_user';
if( !($groupeObj=groupRepo::forStudent($etudiantUID, $semestreUID)) ) return 'unknown_group';
@ -484,24 +486,24 @@ class DataBase{
/********************************************************************/
/*** retourne la liste des utilisateurs des groupes d'un semestre ***/
/********************************************************************/
public function listeEtudiantsTousGroupesSemestre($formation, $semestre, $annee){
public function listeEtudiantsTousGroupesSemestre($semestre){
// on vérifie que le semestre existe
if( !($semestreUID=semestreRepo::UID($formation, $semestre, $annee)) ) return 'unknown_semestre'; else $semestreUID = (int) $semestreUID;
if( !semestreRepo::exists($semestre) ) return 'unknown_semestre';
else $semestreUID = $semestre;
// on cherche tout les groupes du même semestre de la même année
$getGroupesUID = DataBase::getPDO()->prepare("SELECT DISTINCT g.id_groupe as id, g.nom, s.rang, s.nom as semestre ".
"FROM groupe as g, semestre as s, appartenance as app ".
"WHERE g.id_groupe = app.id_groupe ".
"AND s.id_semestre = app.id_semestre ".
$getGroupesUID = DataBase::getPDO()->prepare("SELECT DISTINCT g.id_groupe as id, g.nom, s.rang, s.nom as semestre
FROM groupe as g, semestre as s, appartenance as app
WHERE g.id_groupe = app.id_groupe
AND s.id_semestre = app.id_semestre
"AND s.id_semestre = :semestreUID ".
"ORDER BY g.nom");
AND s.id_semestre = :semestreUID
ORDER BY g.nom");
$getGroupesUID->execute(array(
':semestreUID' => $semestreUID
));
$grouplist = $getGroupesUID->fetchAll(); // contiendra tout les groupes
$grouplist = DataBase::delNumeric( $getGroupesUID->fetchAll() ); // contiendra tout les groupes
// on parcourt tous les groupes
foreach($grouplist as $iter=>$val)
@ -606,9 +608,11 @@ class DataBase{
/**************************************************/
/*** retourne les modules d'un étudiant par UEs ***/
/**************************************************/
public function getModulesByUEByEtudiant($etudiant, $formation, $semestre, $annee){
public function getModulesByUEByEtudiant($etudiant, $semestre){
// on vérifie que le semestre et l'utilisateur existent
if( !($semestreUID=semestreRepo::UID($formation, $semestre, $annee)) ) return 'unknown_semestre'; else $semestreUID = (int) $semestreUID;
if( !semestreRepo::exists($semestre) ) return 'unknown_semestre';
else $semestreUID = $semestre;
if( !($etudiantUID=userRepo::UID($etudiant, $semestreUID)) ) return 'unknown_user';
// on récupère la liste des UE
@ -792,9 +796,11 @@ class DataBase{
/****************************************/
/*** retourne les notes d'un étudiant ***/
/****************************************/
public function getNotesEtudiant($etudiant, $formation, $semestre, $annee){
public function getNotesEtudiant($etudiant, $semestre){
// on vérifie que le semestre exist et que l'étudiant est inscrit à ce semestre
if( !($semestreUID=semestreRepo::UID($formation, $semestre, $annee)) ) return 'unknown_semestre'; else $semestreUID = (int) $semestreUID;
if( !semestreRepo::exists($semestre) ) return 'unknown_semestre';
else $semestreUID = $semestre;
if( !($etudiantUID=userRepo::UID($etudiant, $semestreUID)) ) return 'unknown_user';
@ -976,7 +982,7 @@ class DataBase{
public function getNotesForControle($annee, $controle, $groupe=null){ // [OPTIONNEL] $groupe
// on récupère les informations du contrôle
if( ! ($controlObj=controleRepo::info($controle)) ) return 'unknown_controle';
if( !($controlObj=controleRepo::info($controle)) ) return 'unknown_controle';
// on ajoute la moyenne au contrôle
$controlObj['moyenne'] = noteRepo::moyenneForControle($controlObj['id']);

View File

@ -7,7 +7,7 @@ chdir( __ROOT__.'/src/files/' );
class excelManager{
public static function switch_lvl1($request, $answer){
public static function switch_level_1($request, $answer){
//inclusion des classes de PHPExcel et des fichiers necessaires
@ -18,7 +18,7 @@ class excelManager{
/* [1] TABLE DE ROUTAGE
============================================================*/
switch ($request->level_1) {
switch($request->level_1){
/***************************************************/
/* Export la liste des étudiants d'un groupe donné */

View File

@ -75,14 +75,14 @@ class groupsManager{
/*****************************************/
case 'userlist': if( permission('student') ){
$areSetParam = isset($request->etudiant) && isset($request->semestre) && isset($request->annee) && isset($request->formation); // les arguments existent
$areSetParam = isset($request->etudiant) && isset($request->semestre); // les arguments existent
$etudiantCheck = $areSetParam && checkParam($request->etudiant, 'utilisateur.identifiant'); // etudiant (username) bon format
$formationCheck = $etudiantCheck && checkParam($request->formation, 'auto_increment_id'); // formation (formation) bon format
$semestreCheck = $formationCheck && checkParam($request->semestre, 'semestre.rang'); // semestre (rang) bon format
$anneeCheck = $semestreCheck && checkParam($request->annee, 'semestre.annee'); // semestre (annee) bon format
// $formationCheck = $etudiantCheck && checkParam($request->formation, 'auto_increment_id'); // formation (formation) bon format
$semestreCheck = $etudiantCheck && checkParam($request->semestre, 'auto_increment_id'); // semestre (rang) bon format
// $anneeCheck = $semestreCheck && checkParam($request->annee, 'semestre.annee'); // semestre (annee) bon format
if( $anneeCheck ){ // si tout les paramètres sont bons
$userlist = DataBase::getInstance()->listeEtudiantsGroupe($request->etudiant, $request->formation, $request->semestre, $request->annee);
if( $semestreCheck ){ // si tout les paramètres sont bons
$userlist = DataBase::getInstance()->listeEtudiantsGroupe($request->etudiant, $request->semestre);
if( is_array($userlist) ){ // si on a récupéré la liste des utilisateurs
$answer->userlist = $userlist;
@ -128,14 +128,14 @@ class groupsManager{
/*******************************************************************/
case 'grouplist': if( permission('student') ){
$areSetParam = isset($request->semestre) && isset($request->annee) && isset($request->formation); // les arguments existent
$formationCheck = $areSetParam && checkParam($request->formation, 'auto_increment_id'); // formation (formation) bon format
$semestreCheck = $formationCheck && checkParam($request->semestre, 'semestre.rang'); // semestre (rang) bon format
$anneeCheck = $semestreCheck && checkParam($request->annee, 'semestre.annee'); // semestre (annee) bon format
$areSetParam = isset($request->semestre); // les arguments existent
// $formationCheck = $areSetParam && checkParam($request->formation, 'auto_increment_id'); // formation (formation) bon format
$semestreCheck = $areSetParam && checkParam($request->semestre, 'auto_increment_id'); // semestre (rang) bon format
// $anneeCheck = $semestreCheck && checkParam($request->annee, 'semestre.annee'); // semestre (annee) bon format
if( $anneeCheck ){
if( $semestreCheck ){
$grouplist = DataBase::getInstance()->listeEtudiantsTousGroupesSemestre($request->formation, $request->semestre, $request->annee);
$grouplist = DataBase::getInstance()->listeEtudiantsTousGroupesSemestre($request->semestre);
if( is_array($grouplist) ){ // si on a récupéré la liste des utilisateurs
$answer->grouplist = $grouplist;

View File

@ -7,7 +7,7 @@
// on se place dans /.../src/files
chdir( $path );
chmod( $path, 0774 );
if( move_uploaded_file($_FILES["file"]["tmp_name"], $path.$fileName) ){
// on modifie les droits du fichier

View File

@ -43,14 +43,14 @@ class modulesManager{
$request->semestre = $_SESSION['semestre'];
}
$areSetParam = isset($request->etudiant) && isset($request->semestre) && isset($request->annee); // les arguments existent
$areSetParam = isset($request->etudiant) && isset($request->semestre); // les arguments existent
$etudiantCheck = $areSetParam && checkParam($request->etudiant, 'utilisateur.identifiant'); // identifiant bon format
$semestreCheck = $etudiantCheck && checkParam($request->semestre, 'semestre.rang'); // semestre (rang) bon format
$anneeCheck = $semestreCheck && checkParam($request->annee, 'semestre.annee'); // semestre (annee) bon format
$semestreCheck = $etudiantCheck && checkParam($request->semestre, 'auto_increment_id'); // semestre (rang) bon format
// $anneeCheck = $semestreCheck && checkParam($request->annee, 'semestre.annee'); // semestre (annee) bon format
if( $anneeCheck ){ // si tout les paramètres sont bons
$UEList = DataBase::getInstance()->getModulesByUEByEtudiant($request->etudiant, $_SESSION['formation'], $request->semestre, $request->annee);
if( $semestreCheck ){ // si tout les paramètres sont bons
$UEList = DataBase::getInstance()->getModulesByUEByEtudiant($request->etudiant, $request->semestre);
// STRUCTURE
// tableau d'UES contenant un tableau de MODULES

View File

@ -9,7 +9,7 @@
/* */
/************************************************************************************/
class controleRepo extends DBAccess{
class controleRepo{
/* RENVOIE LES INFORMATIONS D'UN CONTROLE D'UID DONNÉ
*
* @controleUID<int> l'UID du controle duquel on veut les infos
@ -223,7 +223,7 @@ class controleRepo extends DBAccess{
/* [1] SI LE CONTRÔLE N'EXISTE PAS => ON LE CRÉÉ
=====================================================*/
$creerControle = DataBase::getPDO()->prepare("INSERT INTO controle(id_controle, id_mcc_module, nom, libelle, base, coefficient, publication)
VALUES(DEFAULT, :mcc_module, :nom, :libelle, 20, :coefficient, NOW())");
VALUES(DEFAULT, :mcc_module, :nom, :libelle, 20, :coefficient, 0)");
$creerControle->execute(array( ':mcc_module' => $mcc_module, ':nom' => $nom, ':libelle' => $libelle, ':coefficient' => $coefficient ));
/* ON VÉRIFIE QUE LE MODULE APPARTIENT AU MCC DE CE MCC_UE */

View File

@ -9,7 +9,7 @@
/* */
/********************************************************************/
class groupRepo extends DBAccess{
class groupRepo{
/* VERIFIE L'EXISTENCE D'UN GROUPE DANS LA BDD
*
* @nom<String> le nom du groupe recherché
@ -170,6 +170,7 @@ class groupRepo extends DBAccess{
*/
public static function membres($groupeUID, $semestreUID){
// si le groupe existe => on récupère ses utilisateurs
// var_dump($groupeUID.' - '.$semestreUID);
$getMembres = DataBase::getPDO()->prepare("SELECT u.identifiant, u.prenom, u.nom, u.mail, u.droits, s.nom as semestre, g.id_groupe, g.nom as groupe
FROM utilisateur as u, groupe as g, semestre as s, appartenance as app, formation as f
WHERE s.id_formation = f.id_formation
@ -277,26 +278,42 @@ class groupRepo extends DBAccess{
*
*/
public static function forControle($controle, $enseignant=null){
$enseignantUID = (is_string($enseignant)) ? $enseignant : '%';
$getGroupeList = DataBase::getPDO()->prepare("SELECT DISTINCT g.id_groupe, g.nom
FROM groupe as g, mcc_module as mcc_m, controle as ctrl, enseignement as ens
-- WHERE app.id_groupe = g.id_groupe
-- AND ens.id_groupe = g.id_groupe
-- AND ens.id_mcc_module = mcc_m.id_mcc_module
-- AND ctrl.id_mcc_module = mcc_m.id_mcc_module
-- AND mcc_m.id_mcc_ue = mcc_ue.id_mcc_ue
-- AND app.id_semestre = mcc_ue.id_semestre
WHERE ctrl.id_mcc_module = ens.id_mcc_module
AND ens.id_groupe = g.id_groupe
/* [1] Tous les groupes pour un contrôle
===============================================*/
if( !is_string($enseignant) ){ // admin et master
AND ens.id_enseignant LIKE '$enseignantUID'
AND ctrl.id_controle = :controle
ORDER BY g.nom ASC");
$getGroupeList->execute(array( ':controle' => $controle ));
$getGroupList = DataBase::getPDO()->prepare("SELECT DISTINCT g.id_groupe, g.nom
FROM controle as ctrl, mcc_module as mcc_m, mcc_ue, appartenance as app, groupe as g
WHERE ctrl.id_mcc_module = mcc_m.id_mcc_module
AND mcc_m.id_mcc_ue = mcc_ue.id_mcc_ue
AND mcc_ue.id_semestre = app.id_semestre
AND app.id_groupe = g.id_groupe
AND ctrl.id_controle = :controle
ORDER BY g.nom ASC");
$getGroupList->execute(array( ':controle' => $controle ));
return DataBase::delNumeric( $getGroupeList->fetchAll() );
/* [2] Les groupes d'un enseignant uniquement
===============================================*/
}else{ // teacher
$getGroupList = DataBase::getPDO()->prepare("SELECT DISTINCT g.id_groupe, g.nom
FROM controle as ctrl, mcc_module as mcc_m, enseignement as ens, groupe as g
WHERE ctrl.id_mcc_module = mcc_m.id_mcc_module
AND ens.id_mcc_module = mcc_m.id_mcc_module
AND ens.id_groupe = g.id_groupe
AND ens.id_enseignant LIKE '$enseignant'
AND ctrl.id_controle = :controle
ORDER BY g.nom ASC");
$getGroupList->execute(array( ':controle' => $controle ));
}
return DataBase::delNumeric( $getGroupList->fetchAll() );
}

View File

@ -9,7 +9,7 @@
/* */
/**************************************************************************/
class moduleRepo extends DBAccess{
class moduleRepo{
/* VERIFIE L'EXISTENCE D'UN MODULE DANS LA BDD
*
* @nom<String> le nom du module recherché

View File

@ -9,7 +9,7 @@
/* */
/*************************************************************/
class noteRepo extends DBAccess{
class noteRepo{
/* VERIFIE L'EXISTENCE D'UNE NOTE POUR UN ÉTUDIANT A UN CONTROLE
*
* @etudiant<String> l'identifiant de l'étudiant recherché

View File

@ -28,7 +28,7 @@
*
*/
class semestreRepo extends DBAccess{
class semestreRepo{
/* VERIFIE L'EXISTENCE D'UN SEMESTRE DANS LA BDD
*
* @formation<int> l'UID de la formation en question
@ -60,8 +60,26 @@ class semestreRepo extends DBAccess{
}
/* VERIFIE L'EXISTENCE D'UN SEMESTRE DANS LA BDD PAR SON ID_UNIQUE
*
* @semestreUID<int> l'UID du semestre en question
*
*
* @return exists<Boolean> VRAI si un semestre avec cet id existe
*
*/
public static function exists($semestreUID){
// on cherche si un semestre existe avec cet UID
$getSemestreUID = DataBase::getPDO()->prepare("SELECT id_semestre
FROM semestre
WHERE id_semestre = :semestreUID");
$getSemestreUID->execute(array(
':semestreUID' => $semestreUID
));
// on retourne si OUI/NON le semestre existe
return $getSemestreUID->fetch() !== FALSE;
}
/* retourne l'UID d'une formation et la créé en amont si elle n'existe pas
*
@ -210,8 +228,8 @@ class semestreRepo extends DBAccess{
public static function forStudent($etudiant, $semestre_pair, $annee){
// on formate les variables
$semestre_pair = ($semestre_pair) ? '0' : '1';
$getSemestreUID = DataBase::getPDO()->prepare("SELECT s.id_semestre as id, f.id_formation, f.code as formation, f.nom as nom_formation
$getSemestreInfos = DataBase::getPDO()->prepare("SELECT s.id_semestre as id, s.rang as rang, f.id_formation, f.code as formation, f.nom as nom_formation
FROM semestre as s, appartenance as app, formation as f
WHERE s.id_formation = f.id_formation
AND app.id_semestre = s.id_semestre
@ -220,14 +238,14 @@ class semestreRepo extends DBAccess{
AND s.annee = :annee
AND s.rang % 2 = :semestre_pair
ORDER BY s.rang DESC");
$getSemestreUID->execute(array(
$getSemestreInfos->execute(array(
':etudiant' => $etudiant,
':annee' => $annee,
':semestre_pair' => $semestre_pair
));
// on retourne les infos du semestre courant
return $getSemestreUID->fetch();
return $getSemestreInfos->fetch();
}

View File

@ -275,8 +275,8 @@
// sinon => DataBase, on le charge
elseif( is_file(__ROOT__.DIRECTORY_SEPARATOR.'manager'.DIRECTORY_SEPARATOR.strtolower($className).'.php') )
require_once __ROOT__.DIRECTORY_SEPARATOR.'manager'.DIRECTORY_SEPARATOR.strtolower($className).'.php';
else
var_dump('ok');
// else
// var_dump('autoloaderFail');
}

View File

@ -255,7 +255,6 @@ class userManager{
// [4] On récupère les informations dans la base de données
if( $utilInfo = Database::getInstance()->utilisateurInfo($username) ){ // si l'utilisateur est dans le BDD
$_SESSION['identifiant'] = $utilInfo['identifiant'];
$_SESSION['droits'] = explode(',', $utilInfo['droits']);
$_SESSION['sexe'] = ($utilInfo['sexe']=='1') ? 'M' : 'F';
@ -269,7 +268,6 @@ class userManager{
// on défini le semestre par défaut à NULL
$_SESSION['id_formation'] = null;
$_SESSION['semestre'] = null;
/* on récupère le semestre courant si c'est un étudiant */

View File

@ -23,9 +23,16 @@ if( canSeeStudent ){
var canMoveStudents = document.querySelector('#CONTAINER section[name=movestudents]') != null;
canMoveStudents = canMoveStudents && document.querySelectorAll('#CONTAINER section[name=movestudents] table tr td input.deplacer_etu[data-usr]').length > 0;
canMoveStudents = canMoveStudents && document.querySelectorAll('#CONTAINER section[name=movestudents] table tr td .deplacement_groupe[data-stre]').length > 0;
canMoveStudents = canMoveStudents && document.querySelectorAll('#CONTAINER section[name=movestudents] table tr td .valider_deplacement').length > 0;
canMoveStudents = canMoveStudents && document.querySelector('#CONTAINER section[name=movestudents] table tr td .deplacement_groupe[data-stre]') != null;
canMoveStudents = canMoveStudents && document.querySelector('#CONTAINER section[name=movestudents] table tr td .deplacement_groupe[data-stre]') != null;
/* GESTION DU DEPLACEMENT D'ELEVES */
if( document.querySelector('#CONTAINER section[name=movestudents]') != null ){ // si c'set l'admin
if( canMoveStudents ){ // si c'set l'admin
var deplacementEtudiants = document.querySelectorAll('#CONTAINER section[name=movestudents] table tr td input.deplacer_etu[data-usr]');
var choixGroupeDestination = document.querySelectorAll('#CONTAINER section[name=movestudents] table tr td .deplacement_groupe[data-stre]');
@ -37,6 +44,8 @@ if( document.querySelector('#CONTAINER section[name=movestudents]') != null ){ /
var destGroupe = document.querySelector('#CONTAINER section[name=movestudents] table tr td .deplacement_groupe[data-stre]').value;
var destSemestre = document.querySelector('#CONTAINER section[name=movestudents] table tr td .deplacement_groupe[data-stre]').dataset.stre;
/* LORSQU'ON "CHECK" UN ETUDIANT ON LE RAJOUTE A LA LISTE */
for( var i = 0 ; i < deplacementEtudiants.length ; i++ )
deplacementEtudiants[i].addEventListener('click', function(e){
@ -207,19 +216,21 @@ if( importInscrits != null ){
xhr.onreadystatechange = function(){
if( xhr.readyState == 4 && [0, 200].indexOf(xhr.status) > -1 )
console.log('[1] IMPORT=> '+xhr.responseText);
if( xhr.responseText == 'success' ){
/* [2] LECTURE DU FICHIER
=======================================*/
var request = { level_0: 'excel', level_1: 'import_inscrits' };
API.send(request, function(e){
console.log('[2] PARSE=>'+e.request);
if( e.request == 'success' ){
/* [3] INTÉGRATION À LA BDD
=======================================*/
requestIntegration = { level_0: 'groups', level_1: 'addUserlist', rang: rang, annee: annee, formationList: e.formationList };
API.send( requestIntegration, function(f){
console.log('[3] INTEGRATION=>'+f.request);
if( f.request == 'success' ){
console.log('liste intégrée');
reload();

View File

@ -74,9 +74,9 @@ if( permission('student') ){ // si l'utilisateur est connecté et que c'est un
$request->level_1 = 'getNotesEtudiant';
$request->etudiant = $_SESSION['identifiant'];
$request->formation = $_SESSION['formation'];
// $request->formation = $_SESSION['formation'];
$request->semestre = $_SESSION['semestre'];
$request->annee = $_SESSION['annee'];
// $request->annee = $_SESSION['annee'];
careerManager::switch_level_1($request, $answer);

View File

@ -51,16 +51,16 @@ require_once __ROOT__.'/manager/security.php';
/*
* UTILISATEUR -> affichage du même semestre
*
*/
*/
if( permission('student') ){ // si connecté && utilisateur
$request = new stdClass();
$answer = new stdClass();
$request->level_1 = 'grouplist';
$request->formation = $_SESSION['formation'];
// $request->formation = $_SESSION['formation'];
$request->semestre = $_SESSION['semestre'];
$request->annee = $_SESSION['annee'];
// $request->annee = $_SESSION['annee'];
groupsManager::switch_level_1($request, $answer);
@ -134,9 +134,9 @@ if( permission('student') ){ // si l'utilisateur est connecté et que c'est un
$request = new stdClass(); $answer = new stdClass();
$request->level_1 = 'userlist';
$request->etudiant = $_SESSION['identifiant'];
$request->formation = $_SESSION['formation'];
// $request->formation = $_SESSION['formation'];
$request->semestre = $_SESSION['semestre'];
$request->annee = $_SESSION['annee'];
// $request->annee = $_SESSION['annee'];
groupsManager::switch_level_1($request, $answer);
if( $answer->request == 'success' ){ // si on a bien récupéré les membres du groupe

View File

@ -62,11 +62,10 @@ if( permission('student') ){ // si l'utilisateur est connecté et que c'est un
$request->level_1 = 'getByEtudiant';
$request->etudiant = $_SESSION['identifiant'];
$request->semestre = $_SESSION['semestre'];
$request->annee = $_SESSION['annee'];
// $request->annee = $_SESSION['annee'];
modulesManager::switch_level_1($request, $answer);
if( $answer->request == 'success' ){ // si on a bien récupéré les membres du groupe
////////////////////////////////////////////////////////////////////////////////
echo "<section name='studentsmodules' data-title='Mes modules' class='basic'>";

BIN
src/loader.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 847 B

97
src/menu/menu_icon/marks2.svg Executable file
View File

@ -0,0 +1,97 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
id="svg3183"
version="1.1"
inkscape:version="0.48.4 r9939"
width="448.05722"
height="274.57547"
sodipodi:docname="marks2.svg">
<metadata
id="metadata3189">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs3187" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1056"
id="namedview3185"
showgrid="false"
inkscape:snap-object-midpoints="false"
inkscape:snap-center="true"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:zoom="1.7203704"
inkscape:cx="116.63494"
inkscape:cy="110.36481"
inkscape:window-x="0"
inkscape:window-y="24"
inkscape:window-maximized="1"
inkscape:current-layer="svg3183" />
<path
style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#000000;fill-opacity:1;stroke:none;stroke-width:16.60000038;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans"
d="m 204.92766,77.099076 c 0.28308,-0.0218 0.52379,-0.15625 0.8125,-0.15625 0.29732,0 0.55228,0.13311 0.84375,0.15625 l -0.84375,-0.8125 -0.8125,0.8125 z"
id="path3989"
inkscape:connector-curvature="0" />
<path
style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#000000;fill-opacity:1;stroke:none;stroke-width:16.60000038;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans"
d="m 339.45891,230.78658 c -0.3143,0.0268 -0.5851,0.1875 -0.9063,0.1875 -0.2891,0 -0.529,-0.13449 -0.8124,-0.15625 l 0.8437,0.84375 0.875,-0.875 z"
id="path4000"
inkscape:connector-curvature="0" />
<path
style="fill:#b9c4cd;fill-opacity:1;stroke:none"
d="M 50.5625,105.22115 C 22.63318,105.22115 0,127.85433 0,155.78365 c 0,27.92932 22.63318,50.5625 50.5625,50.5625 27.929316,0 50.59375,-22.63318 50.59375,-50.5625 0,-27.92932 -22.664434,-50.5625 -50.59375,-50.5625 z m 0,31.21875 c 10.67731,0 19.34375,8.66644 19.34375,19.34375 0,10.67731 -8.66644,19.34375 -19.34375,19.34375 -10.67731,0 -19.3125,-8.66644 -19.3125,-19.34375 0,-10.67731 8.63519,-19.34375 19.3125,-19.34375 z"
id="path3058"
inkscape:connector-curvature="0" />
<path
d="m 156.36169,140.37453 a 50.570507,50.570507 0 1 1 -101.141014,0 50.570507,50.570507 0 1 1 101.141014,0 z"
sodipodi:ry="50.570507"
sodipodi:rx="50.570507"
sodipodi:cy="140.37453"
sodipodi:cx="105.79118"
id="path3060"
style="fill:#ffffff;fill-opacity:0;stroke:none"
sodipodi:type="arc"
transform="matrix(0.52046783,0,0,0.52046783,24.282932,50.663178)" />
<path
id="path3066"
d="m 230.5893,173.45048 c -27.92932,0 -50.5625,22.63318 -50.5625,50.5625 0,27.92932 22.63318,50.5625 50.5625,50.5625 27.92932,0 50.59375,-22.63318 50.59375,-50.5625 0,-27.92932 -22.66443,-50.5625 -50.59375,-50.5625 z m 0,31.21875 c 10.67731,0 19.34375,8.66644 19.34375,19.34375 0,10.67731 -8.66644,19.34375 -19.34375,19.34375 -10.67731,0 -19.3125,-8.66644 -19.3125,-19.34375 0,-10.67731 8.63519,-19.34375 19.3125,-19.34375 z"
style="fill:#b9c4cd;fill-opacity:1;stroke:none"
inkscape:connector-curvature="0" />
<path
inkscape:connector-curvature="0"
style="fill:#b9c4cd;fill-opacity:1;stroke:none"
d="m 397.46346,0 c -27.92932,0 -50.5625,22.63318 -50.5625,50.5625 0,27.92932 22.63318,50.5625 50.5625,50.5625 27.92932,0 50.59375,-22.63318 50.59375,-50.5625 C 448.05721,22.63318 425.39278,0 397.46346,0 z m 0,31.21875 c 10.67731,0 19.34375,8.66644 19.34375,19.34375 0,10.67731 -8.66644,19.34375 -19.34375,19.34375 -10.67731,0 -19.3125,-8.66644 -19.3125,-19.34375 0,-10.67731 8.63519,-19.34375 19.3125,-19.34375 z"
id="path3068" />
<path
style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#889bab;fill-opacity:1;stroke:none;stroke-width:39.20000457999999810;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans"
d="m 351.08391,70.755326 -102.125,106.125004 c 12.66504,4.93577 22.86193,14.81953 28.1875,27.28125 L 379.45891,97.817826 c -12.70314,-4.84363 -22.96556,-14.650714 -28.375,-27.0625 z M 101.11516,153.84908 c 0.0245,0.64585 0.0312,1.28566 0.0312,1.9375 0,13.4726 -5.280364,25.68817 -13.875004,34.75 l 92.781304,35.15625 c -0.0181,-0.5566 -0.0312,-1.12649 -0.0312,-1.6875 0,-13.55999 5.34516,-25.85847 14.03125,-34.9375 l -92.93755,-35.21875 z"
id="path3880"
inkscape:connector-curvature="0" />
</svg>

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@ -0,0 +1,98 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
id="svg3183"
version="1.1"
inkscape:version="0.48.4 r9939"
width="448.05722"
height="274.57547"
sodipodi:docname="marks2.svg">
<metadata
id="metadata3189">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs3187" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1920"
inkscape:window-height="1056"
id="namedview3185"
showgrid="false"
inkscape:snap-object-midpoints="false"
inkscape:snap-center="true"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:zoom="1.7203704"
inkscape:cx="116.63494"
inkscape:cy="110.36481"
inkscape:window-x="0"
inkscape:window-y="24"
inkscape:window-maximized="1"
inkscape:current-layer="svg3183" />
<path
style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#000000;fill-opacity:1;stroke:none;stroke-width:16.60000038;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans"
d="m 204.92766,77.099076 c 0.28308,-0.0218 0.52379,-0.15625 0.8125,-0.15625 0.29732,0 0.55228,0.13311 0.84375,0.15625 l -0.84375,-0.8125 -0.8125,0.8125 z"
id="path3989"
inkscape:connector-curvature="0" />
<path
style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#000000;fill-opacity:1;stroke:none;stroke-width:16.60000038;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans"
d="m 339.45891,230.78658 c -0.3143,0.0268 -0.5851,0.1875 -0.9063,0.1875 -0.2891,0 -0.529,-0.13449 -0.8124,-0.15625 l 0.8437,0.84375 0.875,-0.875 z"
id="path4000"
inkscape:connector-curvature="0" />
<path
style="fill:#2ecc6d;fill-opacity:1;stroke:none"
d="M 50.5625,105.22115 C 22.63318,105.22115 0,127.85433 0,155.78365 c 0,27.92932 22.63318,50.5625 50.5625,50.5625 27.929316,0 50.59375,-22.63318 50.59375,-50.5625 0,-27.92932 -22.664434,-50.5625 -50.59375,-50.5625 z m 0,31.21875 c 10.67731,0 19.34375,8.66644 19.34375,19.34375 0,10.67731 -8.66644,19.34375 -19.34375,19.34375 -10.67731,0 -19.3125,-8.66644 -19.3125,-19.34375 0,-10.67731 8.63519,-19.34375 19.3125,-19.34375 z"
id="path3058"
inkscape:connector-curvature="0" />
<path
d="m 156.36169,140.37453 a 50.570507,50.570507 0 1 1 -101.141014,0 50.570507,50.570507 0 1 1 101.141014,0 z"
sodipodi:ry="50.570507"
sodipodi:rx="50.570507"
sodipodi:cy="140.37453"
sodipodi:cx="105.79118"
id="path3060"
style="fill:#ffffff;fill-opacity:0;stroke:none"
sodipodi:type="arc"
transform="matrix(0.52046783,0,0,0.52046783,24.282932,50.663178)" />
<path
id="path3066"
d="m 230.5893,173.45048 c -27.92932,0 -50.5625,22.63318 -50.5625,50.5625 0,27.92932 22.63318,50.5625 50.5625,50.5625 27.92932,0 50.59375,-22.63318 50.59375,-50.5625 0,-27.92932 -22.66443,-50.5625 -50.59375,-50.5625 z m 0,31.21875 c 10.67731,0 19.34375,8.66644 19.34375,19.34375 0,10.67731 -8.66644,19.34375 -19.34375,19.34375 -10.67731,0 -19.3125,-8.66644 -19.3125,-19.34375 0,-10.67731 8.63519,-19.34375 19.3125,-19.34375 z"
style="fill:#2ecc6d;fill-opacity:1;stroke:none"
inkscape:connector-curvature="0" />
<path
inkscape:connector-curvature="0"
style="fill:#2ecc6d;fill-opacity:1;stroke:none"
d="m 397.46346,0 c -27.92932,0 -50.5625,22.63318 -50.5625,50.5625 0,27.92932 22.63318,50.5625 50.5625,50.5625 27.92932,0 50.59375,-22.63318 50.59375,-50.5625 C 448.05721,22.63318 425.39278,0 397.46346,0 z m 0,31.21875 c 10.67731,0 19.34375,8.66644 19.34375,19.34375 0,10.67731 -8.66644,19.34375 -19.34375,19.34375 -10.67731,0 -19.3125,-8.66644 -19.3125,-19.34375 0,-10.67731 8.63519,-19.34375 19.3125,-19.34375 z"
id="path3068" />
<path
style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#889bab;fill-opacity:1;stroke:none;stroke-width:39.20000457999999810;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans"
d="m 351.08391,70.755326 -102.125,106.125004 c 12.66504,4.93577 22.86193,14.81953 28.1875,27.28125 L 379.45891,97.817826 c -12.70314,-4.84363 -22.96556,-14.650714 -28.375,-27.0625 z M 101.11516,153.84908 c 0.0245,0.64585 0.0312,1.28566 0.0312,1.9375 0,13.4726 -5.280364,25.68817 -13.875004,34.75 l 92.781304,35.15625 c -0.0181,-0.5566 -0.0312,-1.12649 -0.0312,-1.6875 0,-13.55999 5.34516,-25.85847 14.03125,-34.9375 l -92.93755,-35.21875 z"
id="path3880"
inkscape:connector-curvature="0" />
</svg>

After

Width:  |  Height:  |  Size: 6.3 KiB

77
src/menu/menu_icon/modules2.svg Executable file
View File

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="555.69415"
height="441.89902"
id="svg2"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="modules2@hover.svg">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.7"
inkscape:cx="412.80337"
inkscape:cy="389.58339"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:window-width="1920"
inkscape:window-height="1056"
inkscape:window-x="0"
inkscape:window-y="24"
inkscape:window-maximized="1" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-85.3125,-964.101)">
<path
style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#889bab;fill-opacity:1;stroke:none;stroke-width:8.19999999999999929;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans;stroke-miterlimit:4;stroke-dasharray:none"
d="m 89.0625,1009.9062 a 4.1004099,4.1004099 0 0 0 -3.625,4.1563 l -0.125,367.0625 0,4.5 4.5,-0.4375 c 32.86204,-3.2216 82.72023,-11.0591 133.375,-11.7188 50.65477,-0.6596 101.86352,5.9998 137.09375,30.8125 l 2.4375,1.7188 2.40625,-1.7813 c 30.00028,-22.6908 75.41158,-31.0981 124.5625,-31.875 49.15092,-0.7768 101.89087,5.928 146.375,12.4375 l 4.6875,0.6875 0,-4.7187 0.25,-366.1875 a 4.1004099,4.1004099 0 1 0 -8.1875,0 l -0.25,361.4687 c -43.64256,-6.3157 -94.69343,-12.6385 -143,-11.875 -48.7827,0.7711 -94.66358,8.7395 -126.9375,31.875 -37.52117,-25.2016 -89.1564,-31.4059 -139.53125,-30.75 -49.49808,0.6446 -97.16654,7.8689 -129.59375,11.25 l 0.125,-362.4687 a 4.1004099,4.1004099 0 0 0 -4.5625,-4.1563 z"
id="path2998"
inkscape:connector-curvature="0" />
<path
style="fill:#889bab;fill-opacity:1;stroke:none;stroke-width:8.19999999999999929;stroke-miterlimit:4;stroke-dasharray:none"
d="m 109.09648,973.8963 0,369.2107 c 107.72182,-13.6371 191.71855,-10.4226 238.90107,18.9404 l 0,-367.6955 C 299.81728,960.7265 216.49111,957.05493 109.09648,973.8963 z"
id="path3772"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccc" />
<path
sodipodi:nodetypes="ccccc"
inkscape:connector-curvature="0"
id="path3774"
d="m 615.99755,973.8963 0,369.2107 C 508.27573,1329.4699 424.279,1332.6844 377.09648,1362.0474 l 0,-367.6955 c 48.18027,-33.6254 131.50644,-37.29697 238.90107,-20.4556 z"
style="fill:#889bab;fill-opacity:1;stroke:none;stroke-width:8.19999999999999929;stroke-miterlimit:4;stroke-dasharray:none" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="555.69415"
height="441.89902"
id="svg2"
version="1.1"
inkscape:version="0.48.4 r9939"
sodipodi:docname="modules2.svg">
<defs
id="defs4" />
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="0.7"
inkscape:cx="412.80337"
inkscape:cy="389.58339"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="false"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
inkscape:window-width="1920"
inkscape:window-height="1056"
inkscape:window-x="0"
inkscape:window-y="24"
inkscape:window-maximized="1" />
<metadata
id="metadata7">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-85.3125,-964.101)">
<path
style="font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-indent:0;text-align:start;text-decoration:none;line-height:normal;letter-spacing:normal;word-spacing:normal;text-transform:none;direction:ltr;block-progression:tb;writing-mode:lr-tb;text-anchor:start;baseline-shift:baseline;color:#000000;fill:#2ecc71;fill-opacity:1;stroke:none;stroke-width:8.19999981;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate;font-family:Sans;-inkscape-font-specification:Sans"
d="m 89.0625,1009.9062 a 4.1004099,4.1004099 0 0 0 -3.625,4.1563 l -0.125,367.0625 0,4.5 4.5,-0.4375 c 32.86204,-3.2216 82.72023,-11.0591 133.375,-11.7188 50.65477,-0.6596 101.86352,5.9998 137.09375,30.8125 l 2.4375,1.7188 2.40625,-1.7813 c 30.00028,-22.6908 75.41158,-31.0981 124.5625,-31.875 49.15092,-0.7768 101.89087,5.928 146.375,12.4375 l 4.6875,0.6875 0,-4.7187 0.25,-366.1875 a 4.1004099,4.1004099 0 1 0 -8.1875,0 l -0.25,361.4687 c -43.64256,-6.3157 -94.69343,-12.6385 -143,-11.875 -48.7827,0.7711 -94.66358,8.7395 -126.9375,31.875 -37.52117,-25.2016 -89.1564,-31.4059 -139.53125,-30.75 -49.49808,0.6446 -97.16654,7.8689 -129.59375,11.25 l 0.125,-362.4687 a 4.1004099,4.1004099 0 0 0 -4.5625,-4.1563 z"
id="path2998"
inkscape:connector-curvature="0" />
<path
style="fill:#2ecc71;fill-opacity:1;stroke:none"
d="m 109.09648,973.8963 0,369.2107 c 107.72182,-13.6371 191.71855,-10.4226 238.90107,18.9404 l 0,-367.6955 C 299.81728,960.7265 216.49111,957.05493 109.09648,973.8963 z"
id="path3772"
inkscape:connector-curvature="0"
sodipodi:nodetypes="ccccc" />
<path
sodipodi:nodetypes="ccccc"
inkscape:connector-curvature="0"
id="path3774"
d="m 615.99755,973.8963 0,369.2107 C 508.27573,1329.4699 424.279,1332.6844 377.09648,1362.0474 l 0,-367.6955 c 48.18027,-33.6254 131.50644,-37.29697 238.90107,-20.4556 z"
style="fill:#2ecc71;fill-opacity:1;stroke:none" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -7,6 +7,10 @@
"mrd1609a": {
"password" : "0c443b41ddfc6327efa3cfff9337c6dcdb6bf0dc"
},
"Etud100": {
"password" : "0c443b41ddfc6327efa3cfff9337c6dcdb6bf0dc"
},
"lbh1609a": {
"password" : "password"

View File

@ -45,11 +45,12 @@ require_once __ROOT__.'/manager/security.php';
debug();
// var_dump( $_SESSION );
$_SESSION['semestre'] = 37;
var_dump( $_SESSION );
// [1] On récupère tous les UE d'un étudiant
$uelist = DataBase::getInstance()->getUEsEtudiant('mrd1609a', 16, 2015);
var_dump( $uelist );
// $uelist = DataBase::getInstance()->getUEsEtudiant('mrd1609a', 16, 2015);
// var_dump( $uelist );
@ -78,7 +79,7 @@ var_dump( $uelist );
// $_SESSION['annee'] = 2015;
require_once __ROOT__.'/manager/security.php';
// require_once __ROOT__.'/manager/security.php';
// $_SESSION['identifiant'] = 'modele'; // afin de lire le fichier

BIN
xdoc/MCD.png Executable file → Normal file

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 KiB

After

Width:  |  Height:  |  Size: 132 KiB

View File

@ -1,10 +1,4 @@
DELETE FROM appartenance WHERE id_etudiant LIKE 'Etud%';
DELETE FROM utilisateur WHERE identifiant LIKE 'Etud%';
DELETE FROM note;
DELETE FROM enseignement;
DELETE FROM controle;
DELETE FROM mcc_module;
DELETE FROM mcc_ue;
DELETE FROM module;
DELETE FROM ue;
DELETE FROM note; DELETE FROM enseignement; DELETE FROM mcc_ue; DELETE FROM ue; DELETE FROM mcc_module; DELETE FROM module; DELETE FROM controle; DELETE FROM semestre; DELETE FROM formation;

948
xdoc/filled.sql Executable file
View File

@ -0,0 +1,948 @@
-- phpMyAdmin SQL Dump
-- version 4.0.10deb1
-- http://www.phpmyadmin.net
--
-- Client: localhost
-- Généré le: Sam 02 Janvier 2016 à 01:13
-- Version du serveur: 5.5.46-0ubuntu0.14.04.2
-- Version de PHP: 5.5.9-1ubuntu4.14
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
--
-- Base de données: `sid2`
--
-- --------------------------------------------------------
--
-- Structure de la table `appartenance`
--
CREATE TABLE IF NOT EXISTS `appartenance` (
`id_appartenance` int(11) NOT NULL AUTO_INCREMENT,
`id_etudiant` varchar(50) NOT NULL,
`id_groupe` int(11) NOT NULL,
`id_semestre` int(11) NOT NULL,
PRIMARY KEY (`id_appartenance`),
KEY `id_etudiant` (`id_etudiant`),
KEY `id_groupe` (`id_groupe`),
KEY `id_semestre` (`id_semestre`),
KEY `identifiant` (`id_etudiant`),
KEY `id_etudiant_2` (`id_etudiant`),
KEY `id_groupe_2` (`id_groupe`),
KEY `id_semestre_2` (`id_semestre`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=114 ;
--
-- RELATIONS POUR LA TABLE `appartenance`:
-- `id_etudiant`
-- `utilisateur` -> `identifiant`
-- `id_groupe`
-- `groupe` -> `id_groupe`
-- `id_semestre`
-- `semestre` -> `id_semestre`
--
--
-- Contenu de la table `appartenance`
--
INSERT INTO `appartenance` (`id_appartenance`, `id_etudiant`, `id_groupe`, `id_semestre`) VALUES
(1, 'mrd1609a', 2, 2),
(2, 'ihf1991a', 8, 4),
(3, 'mma1990a', 13, 1),
(4, 'lme1952a', 15, 3),
(5, 'imf1922a', 21, 1),
(6, 'gyy1983a', 4, 4),
(7, 'otm1902a', 14, 2),
(8, 'tnx1949a', 12, 4),
(9, 'sjl1937a', 4, 4),
(10, 'anj1991a', 16, 4),
(11, 'xdh1989a', 20, 4),
(12, 'agl1956a', 3, 3),
(13, 'mhu1946a', 21, 1),
(14, 'cvv1936a', 14, 2),
(15, 'mzh1955a', 6, 2),
(16, 'pdi1904a', 19, 3),
(17, 'cuk1947a', 10, 2),
(18, 'non1968a', 22, 2),
(19, 'hmn1970a', 1, 1),
(20, 'hth1975a', 5, 1),
(21, 'liw1940a', 6, 2),
(22, 'dtg1946a', 18, 2),
(23, 'oxz1985a', 7, 3),
(24, 'ono1984a', 14, 2),
(25, 'auy1966a', 15, 3),
(26, 'dui1946a', 55, 1),
(27, 'cyw1979a', 24, 4),
(28, 'pfv1965a', 3, 3),
(29, 'oqz1937a', 24, 4),
(30, 'aft1950a', 7, 3),
(31, 'bae1943a', 8, 4),
(32, 'kul1903a', 9, 1),
(33, 'rmj1965a', 11, 3),
(34, 'yyt1926a', 17, 1),
(35, 'ktz1997a', 6, 2),
(36, 'hku1995a', 17, 1),
(37, 'zgy1948a', 10, 2),
(38, 'vau1957a', 23, 3),
(39, 'hsx1927a', 19, 3),
(40, 'eca1977a', 3, 3),
(41, 'wpa1966a', 20, 4),
(42, 'qoe1974a', 20, 4),
(43, 'tkz1955a', 11, 3),
(44, 'wnx1995a', 16, 4),
(45, 'sft1994a', 2, 2),
(46, 'vgb1979a', 11, 3),
(47, 'wbt1993a', 19, 3),
(48, 'xtb1903a', 11, 3),
(49, 'msj1985a', 13, 1),
(50, 'wvn1982a', 9, 1),
(51, 'psg1965a', 4, 4),
(52, 'hpa1908a', 5, 1),
(53, 'maq1980a', 19, 3),
(54, 'agq1929a', 13, 1),
(55, 'gwe1975a', 18, 2),
(56, 'gdb1939a', 7, 3),
(57, 'jrc1974a', 10, 2),
(58, 'jfa1965a', 1, 1),
(59, 'buz1982a', 24, 4),
(60, 'mhr1952a', 7, 3),
(61, 'pos1958a', 11, 3),
(62, 'xdi1926a', 3, 3),
(63, 'awl1901a', 17, 1),
(64, 'uix1942a', 7, 3),
(65, 'ngz1932a', 19, 3),
(66, 'kpf1942a', 15, 3),
(67, 'aiv1989a', 21, 1),
(68, 'sjw1936a', 19, 3),
(69, 'fei1944a', 23, 3),
(70, 'zge1937a', 21, 1),
(71, 'rpl1936a', 19, 3),
(72, 'hrv1902a', 22, 2),
(73, 'djo1928a', 9, 1),
(74, 'scm1996a', 1, 1),
(75, 'ylq1926a', 18, 2),
(76, 'eme1913a', 23, 3),
(77, 'otv1930a', 1, 1),
(78, 'cda1951a', 55, 1),
(79, 'eee1933a', 17, 1),
(80, 'kfx1995a', 18, 2),
(81, 'jgd1966a', 3, 3),
(82, 'rwg1909a', 14, 2),
(83, 'ngw1997a', 17, 1),
(84, 'obg1973a', 2, 2),
(85, 'hzg1935a', 12, 4),
(86, 'iyh1918a', 3, 3),
(87, 'tdc1978a', 13, 1),
(88, 'swd1951a', 2, 2),
(89, 'vdj1905a', 22, 2),
(90, 'bit1985a', 19, 3),
(91, 'iah1936a', 1, 1),
(92, 'ypt1989a', 7, 3),
(93, 'ljc1902a', 17, 1),
(94, 'hcc1997a', 7, 3),
(95, 'bky1924a', 22, 2),
(96, 'vul1953a', 5, 1),
(97, 'ssr1906a', 55, 1),
(98, 'yjh1944a', 11, 3),
(99, 'ste1994a', 2, 2),
(100, 'ypo1964a', 7, 3),
(103, 'mrd1609a', 9, 1),
(104, 'scm1996a', 2, 2),
(105, 'hmn1970a', 2, 2),
(106, 'hpa1908a', 2, 2),
(107, 'wvn1982a', 2, 2),
(108, 'msj1985a', 2, 2),
(109, 'tdc1978a', 2, 2),
(110, 'yyt1926a', 2, 2),
(111, 'ljc1902a', 2, 2),
(112, 'zge1937a', 2, 2),
(113, 'ssr1906a', 2, 2);
-- --------------------------------------------------------
--
-- Structure de la table `controle`
--
CREATE TABLE IF NOT EXISTS `controle` (
`id_controle` int(11) NOT NULL AUTO_INCREMENT,
`id_mcc_module` int(11) NOT NULL,
`nom` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`libelle` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`base` int(11) NOT NULL,
`coefficient` float NOT NULL,
`publication` tinyint(1) NOT NULL DEFAULT '0',
PRIMARY KEY (`id_controle`),
KEY `id_mcc_module` (`id_mcc_module`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=259 ;
--
-- RELATIONS POUR LA TABLE `controle`:
-- `id_mcc_module`
-- `mcc_module` -> `id_mcc_module`
--
--
-- Contenu de la table `controle`
--
INSERT INTO `controle` (`id_controle`, `id_mcc_module`, `nom`, `libelle`, `base`, `coefficient`, `publication`) VALUES
(169, 105, '4R1101E1', 'Archi n°1', 20, 25, 1),
(170, 105, '4R1101E2', 'Système', 20, 30, 1),
(171, 105, '4R1101E3', 'Archi n°2', 20, 25, 1),
(172, 105, '4R1101E4', 'Admin. Système', 20, 20, 0),
(173, 106, '4R1102E1', 'Controle TP', 20, 30, 0),
(174, 106, '4R1102E2', 'Contrôle TP', 20, 30, 0),
(175, 106, '4R1102E3', 'Algo - Prog', 20, 40, 0),
(176, 107, '4R1103E1', 'CC TD/TP', 20, 40, 0),
(177, 107, '4R1103E2', 'Struct. Données & Algo', 20, 60, 0),
(178, 108, '4R1104E1', 'ACSI', 20, 60, 0),
(179, 108, '4R1104E2', 'Bases de données', 20, 40, 0),
(180, 109, '4R1105E1', 'Contrôle TP', 20, 32, 0),
(181, 109, '4R1105E2', 'Contrôle TP', 20, 68, 0),
(182, 110, '4R1106E1', 'Oral', 20, 50, 0),
(183, 110, '4R1106E2', 'Ecrit', 20, 50, 0),
(184, 111, '4R1201E1', 'Ecrit n°1', 20, 33, 0),
(185, 111, '4R1201E2', 'Ecrit n°2', 20, 67, 0),
(186, 112, '4R1202E1', 'Ecrit n°1', 20, 33, 0),
(187, 112, '4R1202E2', 'Ecrit n°2', 20, 67, 0),
(188, 113, '4R1203E1', 'Contrôle cont', 20, 25, 0),
(189, 113, '4R1203E2', 'Environnement eco', 20, 75, 0),
(190, 114, '4R1204E1', 'Mod Organisation', 20, 65, 0),
(191, 114, '4R1204E2', 'Diagnostic Strat.', 20, 35, 0),
(192, 115, '4R1205E1', 'Oral Indiv.', 20, 38, 0),
(193, 115, '4R1205E2', 'Ecrit CC', 20, 12, 0),
(194, 115, '4R1205E3', 'Ecrit Indiv.', 20, 50, 0),
(195, 116, '4R1206E1', 'Anglais informatique : Oral', 20, 50, 0),
(196, 116, '4R1206E2', 'Anglais informatique : Ecrit', 20, 50, 0),
(197, 117, '4R1207E1', 'Oral Coll.', 20, 75, 0),
(198, 117, '4R1207E2', 'Ecrit Ind.', 20, 25, 0),
(199, 118, '4R1101E1', 'Archi n°1', 20, 25, 1),
(200, 118, '4R1101E2', 'Système', 20, 30, 0),
(201, 118, '4R1101E3', 'Archi n°2', 20, 25, 0),
(202, 118, '4R1101E4', 'Admin. Système', 20, 20, 0),
(203, 119, '4R1102E1', 'Controle TP', 20, 30, 0),
(204, 119, '4R1102E2', 'Contrôle TP', 20, 30, 0),
(205, 119, '4R1102E3', 'Algo - Prog', 20, 40, 0),
(206, 120, '4R1103E1', 'CC TD/TP', 20, 40, 0),
(207, 120, '4R1103E2', 'Struct. Données & Algo', 20, 60, 0),
(208, 121, '4R1104E1', 'ACSI', 20, 60, 0),
(209, 121, '4R1104E2', 'Bases de données', 20, 40, 0),
(210, 122, '4R1105E1', 'Contrôle TP', 20, 32, 0),
(211, 122, '4R1105E2', 'Contrôle TP', 20, 68, 0),
(212, 123, '4R1106E1', 'Oral', 20, 50, 0),
(213, 123, '4R1106E2', 'Ecrit', 20, 50, 0),
(214, 124, '4R1201E1', 'Ecrit n°1', 20, 33, 0),
(215, 124, '4R1201E2', 'Ecrit n°2', 20, 67, 0),
(216, 125, '4R1202E1', 'Ecrit n°1', 20, 33, 0),
(217, 125, '4R1202E2', 'Ecrit n°2', 20, 67, 0),
(218, 126, '4R1203E1', 'Contrôle cont', 20, 25, 0),
(219, 126, '4R1203E2', 'Environnement eco', 20, 75, 0),
(220, 127, '4R1204E1', 'Mod Organisation', 20, 65, 0),
(221, 127, '4R1204E2', 'Diagnostic Strat.', 20, 35, 0),
(222, 128, '4R1205E1', 'Oral Indiv.', 20, 38, 0),
(223, 128, '4R1205E2', 'Ecrit CC', 20, 12, 0),
(224, 128, '4R1205E3', 'Ecrit Indiv.', 20, 50, 0),
(225, 129, '4R1206E1', 'Anglais informatique : Oral', 20, 50, 0),
(226, 129, '4R1206E2', 'Anglais informatique : Ecrit', 20, 50, 0),
(227, 130, '4R1207E1', 'Oral Coll.', 20, 75, 0),
(228, 130, '4R1207E2', 'Ecrit Ind.', 20, 25, 0),
(229, 131, '4R1101E1', 'Archi n°1', 20, 25, 0),
(230, 131, '4R1101E2', 'Système', 20, 30, 0),
(231, 131, '4R1101E3', 'Archi n°2', 20, 25, 0),
(232, 131, '4R1101E4', 'Admin. Système', 20, 20, 0),
(233, 132, '4R1102E1', 'Controle TP', 20, 30, 0),
(234, 132, '4R1102E2', 'Contrôle TP', 20, 30, 0),
(235, 132, '4R1102E3', 'Algo - Prog', 20, 40, 0),
(236, 133, '4R1103E1', 'CC TD/TP', 20, 40, 0),
(237, 133, '4R1103E2', 'Struct. Données & Algo', 20, 60, 0),
(238, 134, '4R1104E1', 'ACSI', 20, 60, 0),
(239, 134, '4R1104E2', 'Bases de données', 20, 40, 0),
(240, 135, '4R1105E1', 'Contrôle TP', 20, 32, 0),
(241, 135, '4R1105E2', 'Contrôle TP', 20, 68, 0),
(242, 136, '4R1106E1', 'Oral', 20, 50, 0),
(243, 136, '4R1106E2', 'Ecrit', 20, 50, 0),
(244, 137, '4R1201E1', 'Ecrit n°1', 20, 33, 0),
(245, 137, '4R1201E2', 'Ecrit n°2', 20, 67, 0),
(246, 138, '4R1202E1', 'Ecrit n°1', 20, 33, 0),
(247, 138, '4R1202E2', 'Ecrit n°2', 20, 67, 0),
(248, 139, '4R1203E1', 'Contrôle cont', 20, 25, 0),
(249, 139, '4R1203E2', 'Environnement eco', 20, 75, 0),
(250, 140, '4R1204E1', 'Mod Organisation', 20, 65, 0),
(251, 140, '4R1204E2', 'Diagnostic Strat.', 20, 35, 0),
(252, 141, '4R1205E1', 'Oral Indiv.', 20, 38, 0),
(253, 141, '4R1205E2', 'Ecrit CC', 20, 12, 0),
(254, 141, '4R1205E3', 'Ecrit Indiv.', 20, 50, 0),
(255, 142, '4R1206E1', 'Anglais informatique : Oral', 20, 50, 0),
(256, 142, '4R1206E2', 'Anglais informatique : Ecrit', 20, 50, 0),
(257, 143, '4R1207E1', 'Oral Coll.', 20, 75, 0),
(258, 143, '4R1207E2', 'Ecrit Ind.', 20, 25, 0);
-- --------------------------------------------------------
--
-- Structure de la table `enseignement`
--
CREATE TABLE IF NOT EXISTS `enseignement` (
`id_enseignement` int(11) NOT NULL AUTO_INCREMENT,
`id_enseignant` varchar(50) NOT NULL,
`id_mcc_module` int(11) NOT NULL,
`id_groupe` int(11) NOT NULL,
`correcteur` tinyint(4) NOT NULL,
PRIMARY KEY (`id_enseignement`),
KEY `id_enseignant` (`id_enseignant`),
KEY `id_mcc_module` (`id_mcc_module`),
KEY `id_groupe` (`id_groupe`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=203 ;
--
-- RELATIONS POUR LA TABLE `enseignement`:
-- `id_enseignant`
-- `utilisateur` -> `identifiant`
-- `id_groupe`
-- `groupe` -> `id_groupe`
-- `id_mcc_module`
-- `mcc_module` -> `id_mcc_module`
--
--
-- Contenu de la table `enseignement`
--
INSERT INTO `enseignement` (`id_enseignement`, `id_enseignant`, `id_mcc_module`, `id_groupe`, `correcteur`) VALUES
(192, 'lbh1609a', 105, 17, 1),
(194, 'lbh1609a', 105, 1, 1),
(195, 'lbh1609a', 105, 9, 1);
-- --------------------------------------------------------
--
-- Structure de la table `formation`
--
CREATE TABLE IF NOT EXISTS `formation` (
`id_formation` int(11) NOT NULL AUTO_INCREMENT,
`code` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`nom` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`nb_semestres` int(11) NOT NULL DEFAULT '2',
PRIMARY KEY (`id_formation`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
--
-- Contenu de la table `formation`
--
INSERT INTO `formation` (`id_formation`, `code`, `nom`, `nb_semestres`) VALUES
(1, 'ITINN1', 'DUT 1A INFORMATIQUE', 2),
(2, 'ITINN2', 'DUT 2A INFORMATIQUE', 2),
(3, 'INGBD1', 'LP AGBD', 2),
(4, 'INSIQ1', 'LP DQL', 2),
(5, 'ITINAS', 'DUT AS INFORMATIQUE', 2),
(6, 'ITINS1', 'DUT PST 1A INFORMATIQUE', 2),
(7, 'ITINT2', 'DUT PST INFO/G.INFO 2E AN', 2),
(8, 'ITINT3', 'DUT PST INFO/G.INFO 3E AN', 2);
-- --------------------------------------------------------
--
-- Structure de la table `groupe`
--
CREATE TABLE IF NOT EXISTS `groupe` (
`id_groupe` int(11) NOT NULL AUTO_INCREMENT,
`nom` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id_groupe`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=148 ;
--
-- Contenu de la table `groupe`
--
INSERT INTO `groupe` (`id_groupe`, `nom`) VALUES
(1, 'S1A'),
(2, 'S2A'),
(3, 'S3A'),
(4, 'S4A'),
(5, 'S1B'),
(6, 'S2B'),
(7, 'S3B'),
(8, 'S4B'),
(9, 'S1C'),
(10, 'S2C'),
(11, 'S3C'),
(12, 'S4C'),
(13, 'S1D'),
(14, 'S2D'),
(15, 'S3D'),
(16, 'S4D'),
(17, 'S1E'),
(18, 'S2E'),
(19, 'S3E'),
(20, 'S4E'),
(21, 'S1F'),
(22, 'S2F'),
(23, 'S3F'),
(24, 'S4F'),
(34, 'INGBD1 S1'),
(35, 'INSIQ1 S1'),
(36, 'ITINAS S1'),
(37, 'ITINN1 S1'),
(38, 'ITINN2 S1'),
(39, 'ITINS1 S1'),
(40, 'ITINT2 S1'),
(41, 'ITINT3 S1'),
(42, 'S1M'),
(43, 'S2M'),
(44, 'S3M'),
(45, 'S4M'),
(46, 'S5M'),
(47, 'S6M'),
(48, 'S7M'),
(49, 'S8M'),
(50, 'S9M'),
(51, 'S10M'),
(52, 'S1G'),
(53, 'S1H'),
(54, 'S1I'),
(55, 'S1J'),
(56, 'S1K'),
(57, 'S1L'),
(58, 'S2G'),
(59, 'S2H'),
(60, 'S2I'),
(61, 'S2J'),
(62, 'S2K'),
(63, 'S2L'),
(64, 'S3G'),
(65, 'S3H'),
(66, 'S3I'),
(67, 'S3J'),
(68, 'S3K'),
(69, 'S3L'),
(70, 'S4G'),
(71, 'S4H'),
(72, 'S4I'),
(73, 'S4J'),
(74, 'S4K'),
(75, 'S4L'),
(76, 'S5A'),
(77, 'S5B'),
(78, 'S5C'),
(79, 'S5D'),
(80, 'S5E'),
(81, 'S5F'),
(82, 'S5G'),
(83, 'S5H'),
(84, 'S5I'),
(85, 'S5J'),
(86, 'S5K'),
(87, 'S5L'),
(88, 'S6A'),
(89, 'S6B'),
(90, 'S6C'),
(91, 'S6D'),
(92, 'S6E'),
(93, 'S6F'),
(94, 'S6G'),
(95, 'S6H'),
(96, 'S6I'),
(97, 'S6J'),
(98, 'S6K'),
(99, 'S6L'),
(100, 'S7A'),
(101, 'S7B'),
(102, 'S7C'),
(103, 'S7D'),
(104, 'S7E'),
(105, 'S7F'),
(106, 'S7G'),
(107, 'S7H'),
(108, 'S7I'),
(109, 'S7J'),
(110, 'S7K'),
(111, 'S7L'),
(112, 'S8A'),
(113, 'S8B'),
(114, 'S8C'),
(115, 'S8D'),
(116, 'S8E'),
(117, 'S8F'),
(118, 'S8G'),
(119, 'S8H'),
(120, 'S8I'),
(121, 'S8J'),
(122, 'S8K'),
(123, 'S8L'),
(124, 'S9A'),
(125, 'S9B'),
(126, 'S9C'),
(127, 'S9D'),
(128, 'S9E'),
(129, 'S9F'),
(130, 'S9G'),
(131, 'S9H'),
(132, 'S9I'),
(133, 'S9J'),
(134, 'S9K'),
(135, 'S9L'),
(136, 'S10A'),
(137, 'S10B'),
(138, 'S10C'),
(139, 'S10D'),
(140, 'S10E'),
(141, 'S10F'),
(142, 'S10G'),
(143, 'S10H'),
(144, 'S10I'),
(145, 'S10J'),
(146, 'S10K'),
(147, 'S10L');
-- --------------------------------------------------------
--
-- Structure de la table `mcc_module`
--
CREATE TABLE IF NOT EXISTS `mcc_module` (
`id_mcc_module` int(11) NOT NULL AUTO_INCREMENT,
`id_mcc_ue` int(11) NOT NULL,
`id_module` int(11) NOT NULL,
`coefficient` float NOT NULL,
PRIMARY KEY (`id_mcc_module`),
KEY `id_mcc_ue` (`id_mcc_ue`),
KEY `id_module` (`id_module`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=144 ;
--
-- RELATIONS POUR LA TABLE `mcc_module`:
-- `id_mcc_ue`
-- `mcc_ue` -> `id_mcc_ue`
-- `id_module`
-- `module` -> `id_module`
--
--
-- Contenu de la table `mcc_module`
--
INSERT INTO `mcc_module` (`id_mcc_module`, `id_mcc_ue`, `id_module`, `coefficient`) VALUES
(105, 17, 53, 3.5),
(106, 17, 54, 3.5),
(107, 17, 55, 2.5),
(108, 17, 56, 3.5),
(109, 17, 57, 2.5),
(110, 17, 58, 1.5),
(111, 18, 59, 2.5),
(112, 18, 60, 2),
(113, 18, 61, 1.5),
(114, 18, 62, 2.5),
(115, 18, 63, 2),
(116, 18, 64, 1.5),
(117, 18, 65, 1),
(118, 19, 53, 3.5),
(119, 19, 54, 3.5),
(120, 19, 55, 2.5),
(121, 19, 56, 3.5),
(122, 19, 57, 2.5),
(123, 19, 58, 1.5),
(124, 20, 59, 2.5),
(125, 20, 60, 2),
(126, 20, 61, 1.5),
(127, 20, 62, 2.5),
(128, 20, 63, 2),
(129, 20, 64, 1.5),
(130, 20, 65, 1),
(131, 21, 53, 3.5),
(132, 21, 54, 3.5),
(133, 21, 55, 2.5),
(134, 21, 56, 3.5),
(135, 21, 57, 2.5),
(136, 21, 58, 1.5),
(137, 22, 59, 2.5),
(138, 22, 60, 2),
(139, 22, 61, 1.5),
(140, 22, 62, 2.5),
(141, 22, 63, 2),
(142, 22, 64, 1.5),
(143, 22, 65, 1);
-- --------------------------------------------------------
--
-- Structure de la table `mcc_ue`
--
CREATE TABLE IF NOT EXISTS `mcc_ue` (
`id_mcc_ue` int(11) NOT NULL AUTO_INCREMENT,
`id_semestre` int(11) NOT NULL,
`id_ue` int(11) NOT NULL,
`coefficient` float NOT NULL,
PRIMARY KEY (`id_mcc_ue`),
KEY `id_semestre` (`id_semestre`),
KEY `id_ue` (`id_ue`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=23 ;
--
-- RELATIONS POUR LA TABLE `mcc_ue`:
-- `id_semestre`
-- `semestre` -> `id_semestre`
-- `id_ue`
-- `ue` -> `id_ue`
--
--
-- Contenu de la table `mcc_ue`
--
INSERT INTO `mcc_ue` (`id_mcc_ue`, `id_semestre`, `id_ue`, `coefficient`) VALUES
(17, 1, 9, 17),
(18, 1, 10, 13),
(19, 2, 9, 17),
(20, 2, 10, 13),
(21, 8, 9, 17),
(22, 8, 10, 13);
-- --------------------------------------------------------
--
-- Structure de la table `module`
--
CREATE TABLE IF NOT EXISTS `module` (
`id_module` int(11) NOT NULL AUTO_INCREMENT,
`nom` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`libelle` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id_module`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=66 ;
--
-- Contenu de la table `module`
--
INSERT INTO `module` (`id_module`, `nom`, `libelle`) VALUES
(53, '4R1101', 'Introduction aux systèmes informatiques'),
(54, '4R1102', 'Introduction à l''algorithmique et à la programmation'),
(55, '4R1103', 'Structure de données et algorithmique fondamentaux'),
(56, '4R1104', 'Introduction aux bases de données'),
(57, '4R1105', 'Conception de documents et d''interfaces numériques'),
(58, '4R1106', 'Projet tutoré - découverte'),
(59, '4R1201', 'Mathématiques discrètes'),
(60, '4R1202', 'Algèbre linéaire'),
(61, '4R1203', 'Environnement économique'),
(62, '4R1204', 'Fonctionnement des organisations'),
(63, '4R1205', 'Expression-Communication - Fondamentaux de la communication'),
(64, '4R1206', 'Anglais et informatique'),
(65, '4R1207', 'PPP - connaître le monde professionnel');
-- --------------------------------------------------------
--
-- Structure de la table `note`
--
CREATE TABLE IF NOT EXISTS `note` (
`id_note` int(11) NOT NULL AUTO_INCREMENT,
`id_appartenance` int(11) NOT NULL,
`id_controle` int(11) NOT NULL,
`valeur` float NOT NULL,
PRIMARY KEY (`id_note`),
KEY `id_appartenance` (`id_appartenance`),
KEY `id_controle` (`id_controle`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=133 ;
--
-- RELATIONS POUR LA TABLE `note`:
-- `id_appartenance`
-- `appartenance` -> `id_appartenance`
-- `id_controle`
-- `controle` -> `id_controle`
--
--
-- Contenu de la table `note`
--
INSERT INTO `note` (`id_note`, `id_appartenance`, `id_controle`, `valeur`) VALUES
(104, 83, 169, 1),
(105, 103, 169, 1),
(106, 103, 170, 2),
(107, 103, 171, 3),
(108, 103, 169, 2),
(109, 83, 169, 20),
(110, 103, 169, 10),
(111, 103, 169, 18),
(112, 97, 169, 0),
(113, 97, 169, 15),
(114, 32, 169, 10),
(115, 32, 169, 8),
(116, 32, 169, 5),
(117, 91, 169, 0),
(118, 103, 170, 5),
(119, 103, 170, 6.7),
(120, 103, 170, 6.7),
(121, 103, 170, 6.7),
(122, 103, 170, 6.7),
(123, 103, 170, 6.7),
(124, 103, 170, 6.7),
(125, 103, 170, 6.5),
(126, 103, 170, 8.7),
(127, 103, 170, 18.4),
(128, 103, 170, 18.4),
(129, 103, 170, 13.9),
(130, 103, 170, 8.34),
(131, 50, 169, 1),
(132, 73, 169, 2);
-- --------------------------------------------------------
--
-- Structure de la table `semestre`
--
CREATE TABLE IF NOT EXISTS `semestre` (
`id_semestre` int(11) NOT NULL AUTO_INCREMENT,
`id_formation` int(11) NOT NULL,
`nom` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`rang` tinyint(4) NOT NULL,
`annee` year(4) NOT NULL,
PRIMARY KEY (`id_semestre`),
KEY `id_formation` (`id_formation`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=17 ;
--
-- RELATIONS POUR LA TABLE `semestre`:
-- `id_formation`
-- `formation` -> `id_formation`
--
--
-- Contenu de la table `semestre`
--
INSERT INTO `semestre` (`id_semestre`, `id_formation`, `nom`, `rang`, `annee`) VALUES
(1, 1, 'S1', 1, 2015),
(2, 1, 'S2', 2, 2015),
(3, 2, 'S3', 3, 2015),
(4, 2, 'S4', 4, 2015),
(8, 1, 'S1', 1, 2016),
(9, 2, 'S1', 1, 2016),
(16, 2, 'S1', 1, 2015);
-- --------------------------------------------------------
--
-- Structure de la table `ue`
--
CREATE TABLE IF NOT EXISTS `ue` (
`id_ue` int(11) NOT NULL AUTO_INCREMENT,
`nom` varchar(10) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`libelle` varchar(100) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
PRIMARY KEY (`id_ue`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
--
-- Contenu de la table `ue`
--
INSERT INTO `ue` (`id_ue`, `nom`, `libelle`) VALUES
(9, '4RUE11', 'UE1 - Bases de l''informatique'),
(10, '4RUE12', 'UE2 - Bases de culture scientifique, sociale et humaine');
-- --------------------------------------------------------
--
-- Structure de la table `utilisateur`
--
CREATE TABLE IF NOT EXISTS `utilisateur` (
`identifiant` varchar(50) NOT NULL,
`prenom` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`nom` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
`sexe` tinyint(1) NOT NULL DEFAULT '1',
`mail` varchar(50) NOT NULL,
`mdp` varchar(40) NOT NULL,
`droits` varchar(44) NOT NULL DEFAULT 'student',
PRIMARY KEY (`identifiant`),
UNIQUE KEY `identifiant` (`identifiant`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Contenu de la table `utilisateur`
--
INSERT INTO `utilisateur` (`identifiant`, `prenom`, `nom`, `sexe`, `mail`, `mdp`, `droits`) VALUES
('admin', 'monsieur', 'administrateur', 1, 'admin@iut-tlse3.fr', 'lkjdsqlkjdlqksjdlqksjdqlksdjlqksjdqj', 'teacher,admin'),
('admin2', 'madame', 'administratrice', 0, 'mme.admin@iut-tlse3.fr', 'lkjdsqlkjdlqksjdlqksjdqlksdjlqksjdqj', 'admin'),
('aft1950a', 'Rachel', 'DAVENPORT', 0, 'rachel.davenport@etu.iut-tlse3.fr', '68724b2da1b628fd37116d3abae9c4233aa9fa56', 'student'),
('agl1956a', 'Cruz', 'HOWE', 1, 'cruz.howe@etu.iut-tlse3.fr', 'c3f22ac779a9e0e276acdc9933cdcdb2f054e317', 'student'),
('agq1929a', 'Althea', 'POOLE', 1, 'althea.poole@etu.iut-tlse3.fr', 'f20feea8f16e481683d420f8c97c4366d4941f4c', 'student'),
('aiv1989a', 'Concetta', 'ROBLES', 1, 'concetta.robles@etu.iut-tlse3.fr', 'e3e642e4b47a582f3a4b3e20c4d9bf612add1824', 'student'),
('anj1991a', 'Katie', 'GUTIERREZ', 1, 'katie.gutierrez@etu.iut-tlse3.fr', '0e2a184f4a27976f6648dbad6f33ffaba193c190', 'student'),
('auy1966a', 'Bobbi', 'PRATT', 1, 'bobbi.pratt@etu.iut-tlse3.fr', 'bd01c0a7d116ac61a12cddf768de4384cb2ed382', 'student'),
('awl1901a', 'Clare', 'ROLLINS', 1, 'clare.rollins@etu.iut-tlse3.fr', '0294ff411362354abbad41829c27b5d42cbc4388', 'student'),
('bae1943a', 'Shaw', 'GOFF', 1, 'shaw.goff@etu.iut-tlse3.fr', '99636e590508ed14336cf5847dcd24302bd86908', 'student'),
('bit1985a', 'Rosalind', 'FISHER', 1, 'rosalind.fisher@etu.iut-tlse3.fr', 'bbba4cd89896d2d6bf5c8d33ce3b4af025d6165d', 'student'),
('bky1924a', 'Gena', 'ENGLAND', 1, 'gena.england@etu.iut-tlse3.fr', '89805c2213710c0f7c03954d1fb171b3aba3c107', 'student'),
('buz1982a', 'Kemp', 'JACOBS', 1, 'kemp.jacobs@etu.iut-tlse3.fr', 'eda25de06910b9bbeeebcd81421093f1163d5a2c', 'student'),
('cda1951a', 'Mcpherson', 'ANTHONY', 1, 'mcpherson.anthony@etu.iut-tlse3.fr', '928e8e07046c74f035b0bd0f84a6463133890006', 'student'),
('cuk1947a', 'Baxter', 'HERRERA', 1, 'baxter.herrera@etu.iut-tlse3.fr', '1e0927db69476aa8dad0e2f0b360aa142800b66c', 'student'),
('cvv1936a', 'Kayla', 'CANTRELL', 1, 'kayla.cantrell@etu.iut-tlse3.fr', '7c9976507ec461d729f8e48ccdf5b8e8418ae6fa', 'student'),
('cyw1979a', 'Zamora', 'RIDDLE', 0, 'zamora.riddle@etu.iut-tlse3.fr', '747582c758969846527f612f05ac525a82f2d67f', 'student'),
('djo1928a', 'Vaughn', 'DURHAM', 1, 'vaughn.durham@etu.iut-tlse3.fr', 'cd6d4eb78a2f2b4228913d8ca89ab95fba17a953', 'student'),
('dtg1946a', 'Ruiz', 'WILKERSON', 1, 'ruiz.wilkerson@etu.iut-tlse3.fr', '61fa79da89021355623584247fc5597b4a811c4a', 'student'),
('dui1946a', 'Burns', 'COMPTON', 1, 'burns.compton@etu.iut-tlse3.fr', '7efa228dda0181027eff80368fe5426321ffa40e', 'student'),
('eca1977a', 'Hope', 'WILSON', 1, 'hope.wilson@etu.iut-tlse3.fr', 'aa9f150450bed0a9c47d6d1b412e9af032da8fa9', 'student'),
('eee1933a', 'Stacey', 'LITTLE', 0, 'stacey.little@etu.iut-tlse3.fr', '31b9ae5ec7027c386807ca2e8212dcc26c3b087e', 'student'),
('eme1913a', 'Booth', 'HENRY', 1, 'booth.henry@etu.iut-tlse3.fr', '86fb4f37792e36d800265554310d21e59d624d4d', 'student'),
('fei1944a', 'Esperanza', 'TERRELL', 1, 'esperanza.terrell@etu.iut-tlse3.fr', '9800cde34ddf1e24c2b1e31f84d72f2f9de753c8', 'student'),
('gdb1939a', 'Kate', 'NOEL', 1, 'kate.noel@etu.iut-tlse3.fr', '918bcf2e3ffccb2bd18290a67bcbada6921c8ba3', 'student'),
('gwe1975a', 'Helen', 'HICKS', 1, 'helen.hicks@etu.iut-tlse3.fr', 'd5578ae52d8b9429a411fe6824f79aa2e4ba4295', 'student'),
('gyy1983a', 'Merrill', 'WALTER', 1, 'merrill.walter@etu.iut-tlse3.fr', '2d6450fb04820591c34d6e470d8d16cc129ed634', 'student'),
('hcc1997a', 'Madeline', 'MARKS', 1, 'madeline.marks@etu.iut-tlse3.fr', '193e0b1555ac578b13b6f02b4b2c6b8c0576a2cd', 'student'),
('hku1995a', 'Roslyn', 'MURPHY', 1, 'roslyn.murphy@etu.iut-tlse3.fr', 'a2c17932dcc6a628601a86bd02e5e6110b774205', 'student'),
('hmn1970a', 'Levy', 'ARMSTRONG', 1, 'levy.armstrong@etu.iut-tlse3.fr', '85eed5e07ad380224e3dff9c68631436fc5e0580', 'student'),
('hpa1908a', 'Jacklyn', 'BYRD', 1, 'jacklyn.byrd@etu.iut-tlse3.fr', '50c850d3d6c6e8b5277f58f59c206d7ed685b8f9', 'student'),
('hrv1902a', 'Irwin', 'HOUSTON', 1, 'irwin.houston@etu.iut-tlse3.fr', '99ab47f6cce9313bb631d892d3a192420df1ba43', 'student'),
('hsx1927a', 'Irene', 'MONROE', 1, 'irene.monroe@etu.iut-tlse3.fr', '7fa7e7fcbb03c0be72583f2d1bfc41720f2274f1', 'student'),
('hth1975a', 'Pruitt', 'FERGUSON', 1, 'pruitt.ferguson@etu.iut-tlse3.fr', '562802653c96a2e3d2523fb6f38df8c42a6c70a2', 'student'),
('hzg1935a', 'Clarice', 'ORTEGA', 1, 'clarice.ortega@etu.iut-tlse3.fr', '8c50183063238ec8218d0959c71f3315715102be', 'student'),
('iah1936a', 'Franklin', 'SLATER', 1, 'franklin.slater@etu.iut-tlse3.fr', 'c4b7e3ae38056aa7b5a492b5ae4d6822bbc4f04b', 'student'),
('ihf1991a', 'Robinson', 'MCGEE', 1, 'robinson.mcgee@etu.iut-tlse3.fr', '4aeeee2100e584893c71d32ebcb5b4837f3e2e1a', 'student'),
('imf1922a', 'Hawkins', 'PATTERSON', 1, 'hawkins.patterson@etu.iut-tlse3.fr', '05ef138dfd9464af5ca7ddb1e6fc5d38a5d256dc', 'student'),
('iyh1918a', 'Tucker', 'TRAN', 1, 'tucker.tran@etu.iut-tlse3.fr', '70e3a6e9f775731a6dc43044576feb6acf4739bd', 'student'),
('jfa1965a', 'Lolita', 'FARRELL', 1, 'lolita.farrell@etu.iut-tlse3.fr', '1a5d44889500c4f04f076836691d9ccea4c56cff', 'student'),
('jgd1966a', 'Janelle', 'BURKS', 1, 'janelle.burks@etu.iut-tlse3.fr', '83cbc892278c1d7aab3214383b272a2677a39f01', 'student'),
('jrc1974a', 'Pierce', 'CHURCH', 1, 'pierce.church@etu.iut-tlse3.fr', '0bf72260769a364574bebe43a0e2d40f0b42918a', 'student'),
('kfx1995a', 'Mitzi', 'SCHROEDER', 1, 'mitzi.schroeder@etu.iut-tlse3.fr', 'ea085dda880c523b14c1d9c24bfe8479901d90bf', 'student'),
('kpf1942a', 'Strickland', 'ROACH', 1, 'strickland.roach@etu.iut-tlse3.fr', '49ae8a41825e039415fc5403721a08bf849675dd', 'student'),
('ktz1997a', 'Mcgowan', 'COHEN', 1, 'mcgowan.cohen@etu.iut-tlse3.fr', '77f2eb9b0cd9702671799b4016e115fe185b44da', 'student'),
('kul1903a', 'Magdalena', 'SIMON', 1, 'magdalena.simon@etu.iut-tlse3.fr', 'a364c06c6bc0883322fe0b8fecf70379187e85de', 'student'),
('lbh1609a', 'Hervé', 'LEBLANC', 1, 'herve.leblanc@iut-tlse3.fr', 'lqkjsdlkjsdlkjqsdlkjqsdlkjqsdkjqsldjqsj', 'teacher'),
('liw1940a', 'Middleton', 'WATERS', 1, 'middleton.waters@etu.iut-tlse3.fr', '406a96ab06f805166e3ef4809e5b8aefd3fa422a', 'student'),
('ljc1902a', 'Lisa', 'CLEMENTS', 1, 'lisa.clements@etu.iut-tlse3.fr', '8b554a1fdc6fa3c07988a523bf411c90c1b647f7', 'student'),
('lme1952a', 'Hollie', 'GILLIAM', 1, 'hollie.gilliam@etu.iut-tlse3.fr', '3f7b0669e6d2a9df317c89d9947b8b2c724278f5', 'student'),
('maq1980a', 'Cook', 'DUNN', 1, 'cook.dunn@etu.iut-tlse3.fr', '9a35d39268d9ba001290d4ad62de2e8d3da645dc', 'student'),
('mhr1952a', 'Socorro', 'BLAIR', 1, 'socorro.blair@etu.iut-tlse3.fr', '007a09dbff0959962f7aca117f55e125d77658c4', 'student'),
('mhu1946a', 'Edna', 'GREEN', 1, 'edna.green@etu.iut-tlse3.fr', 'a2be4db796235e6ee539d8a96a692fc1936957db', 'student'),
('mma1990a', 'Williamson', 'HATFIELD', 1, 'williamson.hatfield@etu.iut-tlse3.fr', 'b00d282627610321925b6573ecf55242491e4382', 'student'),
('mrd1609a', 'Adrien', 'MARQUES', 1, 'adrien.marques@etu.iut-tlse3.de', '34ad81180ba7cfa510101af8abe47a558e46858a', 'student'),
('msj1985a', 'Ball', 'AVILA', 1, 'ball.avila@etu.iut-tlse3.fr', 'a65d0ad5230a8e62f691ad1f2f95a3c65f1c03dd', 'student'),
('mzh1955a', 'Leblanc', 'WHEELER', 1, 'leblanc.wheeler@etu.iut-tlse3.fr', 'd5711bb21c243770c254b30fc2fb429b06bbfaf0', 'student'),
('ngw1997a', 'Booker', 'LOPEZ', 1, 'booker.lopez@etu.iut-tlse3.fr', 'a0feaf0e9ec8f18cfc3cc8eaa0a4af131c5c91d7', 'student'),
('ngz1932a', 'Faye', 'PAYNE', 1, 'faye.payne@etu.iut-tlse3.fr', '166e4a0172787e784c6835ed07d34a550b61b986', 'student'),
('non1968a', 'Foster', 'TILLMAN', 1, 'foster.tillman@etu.iut-tlse3.fr', '3a3f8d8ddbf68fa1e366cd87d20357f05fa09f45', 'student'),
('obg1973a', 'Lynch', 'CHANDLER', 1, 'lynch.chandler@etu.iut-tlse3.fr', 'a10d3ba3eacf95b418fe2c108492ea41ad83fc9e', 'student'),
('ono1984a', 'Kitty', 'SANFORD', 0, 'kitty.sanford@etu.iut-tlse3.fr', '2100f892c9e0c1a0ce35e444d969b2bdf9de9d6b', 'student'),
('oqz1937a', 'Morse', 'MICHAEL', 1, 'morse.michael@etu.iut-tlse3.fr', '2edfedd459e1b63bf637184c4ee4a978f0c8e41e', 'student'),
('otm1902a', 'Woods', 'DEJESUS', 1, 'woods.dejesus@etu.iut-tlse3.fr', '8d3a059e7df1744e6e342dad660adeb3675d42d1', 'student'),
('otv1930a', 'Odonnell', 'BEASLEY', 0, 'odonnell.beasley@etu.iut-tlse3.fr', 'b55e173984ef282d1bbfb1cf441b1c702533ac87', 'student'),
('oxz1985a', 'Paul', 'GROSS', 1, 'paul.gross@etu.iut-tlse3.fr', '5ba7159ed8bea08ff0c6b25f47c979f2e3b9e1a5', 'student'),
('pdi1904a', 'Brady', 'ASHLEY', 1, 'brady.ashley@etu.iut-tlse3.fr', '48c9adaa6687ec1f896675cd7dd262c6b38c2b44', 'student'),
('pfv1965a', 'Francine', 'COMBS', 0, 'francine.combs@etu.iut-tlse3.fr', 'a6ba94eec7357d691231ce8b7940d86ae2cb94a9', 'student'),
('pos1958a', 'Juliana', 'FULLER', 0, 'juliana.fuller@etu.iut-tlse3.fr', 'bd4300a1779af89b2c87863384d7ab4c93d922ad', 'student'),
('psg1965a', 'Knapp', 'STEPHENS', 1, 'knapp.stephens@etu.iut-tlse3.fr', '4e24185809f6d19ab25469582b340d1d98d1478a', 'student'),
('qoe1974a', 'Raquel', 'CUNNINGHAM', 1, 'raquel.cunningham@etu.iut-tlse3.fr', '5670da6f0a600ea148705e8dfe87921b35bc24dc', 'student'),
('ref', 'mlle', 'référente', 0, 'ref@ref.ref', 'sqldkmsqldksqmlkd', 'master'),
('rmj1965a', 'Bridges', 'ROSALES', 1, 'bridges.rosales@etu.iut-tlse3.fr', 'ffa1cf9f81059b83a1a05fe7408867027decf767', 'student'),
('rpl1936a', 'Tamera', 'MOSES', 0, 'tamera.moses@etu.iut-tlse3.fr', 'd7f0216bd90b84f878bf562f473875e500d6ae40', 'student'),
('rwg1909a', 'Kelly', 'WALLACE', 0, 'kelly.wallace@etu.iut-tlse3.fr', '28356092e4722e7d40d761db1b2a3e4178c0e8a1', 'student'),
('scm1996a', 'Dotson', 'SANDOVAL', 1, 'dotson.sandoval@etu.iut-tlse3.fr', '3d2818a46340435822af94d9736bfad7ad1ecd4b', 'student'),
('sft1994a', 'Norris', 'BROCK', 1, 'norris.brock@etu.iut-tlse3.fr', 'fcfd756acef2869bb15d72b877ccd9eed675fd26', 'student'),
('sjl1937a', 'English', 'POPE', 1, 'english.pope@etu.iut-tlse3.fr', 'a5536a593633b1d610e976985d3be1fc27999e4d', 'student'),
('sjw1936a', 'Cross', 'MEYERS', 1, 'cross.meyers@etu.iut-tlse3.fr', '8571d7564e2a196feb0841fd8474754d0032721c', 'student'),
('ssr1906a', 'Howell', 'FAULKNER', 1, 'howell.faulkner@etu.iut-tlse3.fr', '073de42d66740dfd2beec792e63806a7147fa087', 'student'),
('ste1994a', 'Allison', 'CALLAHAN', 0, 'allison.callahan@etu.iut-tlse3.fr', 'a5f1074db3275a128b57d99c8a48a557297084c9', 'student'),
('swd1951a', 'Jenny', 'GRAHAM', 0, 'jenny.graham@etu.iut-tlse3.fr', 'ae8ffe6506ca1863cee65fc4402bb5dd6e563d4b', 'student'),
('tdc1978a', 'Bird', 'TRAVIS', 1, 'bird.travis@etu.iut-tlse3.fr', '4a10508dd7f87089a321fc07ff63a8269a427bcb', 'student'),
('tkz1955a', 'Nora', 'BREWER', 0, 'nora.brewer@etu.iut-tlse3.fr', '6695f488b7caf712423e5f090707058b5af0798d', 'student'),
('tnx1949a', 'Dejesus', 'WALTON', 1, 'dejesus.walton@etu.iut-tlse3.fr', '830e567e1f570e0b90ae23488e1aaa11142ec4a6', 'student'),
('uix1942a', 'Kristen', 'GIBSON', 0, 'kristen.gibson@etu.iut-tlse3.fr', '66fa9b0c1e377689bde5992b7ce9f8a88b394693', 'student'),
('vau1957a', 'Kathy', 'STOUT', 0, 'kathy.stout@etu.iut-tlse3.fr', '7149c984ea57994e5306ce3c4026064a776de1d4', 'student'),
('vdj1905a', 'Dean', 'ESPINOZA', 1, 'dean.espinoza@etu.iut-tlse3.fr', 'fde91e6c0086ecda41e08a683eb6df56c7739371', 'student'),
('vgb1979a', 'Baird', 'FORD', 1, 'baird.ford@etu.iut-tlse3.fr', '66eb6f8e8634e210729fcf25dfa32ca17bf401c3', 'student'),
('vul1953a', 'Robyn', 'BATES', 1, 'robyn.bates@etu.iut-tlse3.fr', '6421ed3a69005e0de9ab025db4617a5a2d125682', 'student'),
('wbt1993a', 'Goodman', 'PAUL', 1, 'goodman.paul@etu.iut-tlse3.fr', '282c5d93f43a3960e840b410f95b4c598e8a9340', 'student'),
('wnx1995a', 'Lorraine', 'PADILLA', 1, 'lorraine.padilla@etu.iut-tlse3.fr', '6f38a397c9c7e5b3aceab87e63da5533fa612459', 'student'),
('wpa1966a', 'Collier', 'ENGLISH', 1, 'collier.english@etu.iut-tlse3.fr', 'fd63ff8eefa080cbecb52b68dc3cf264cf121fe3', 'student'),
('wvn1982a', 'Sears', 'WELCH', 1, 'sears.welch@etu.iut-tlse3.fr', '39b49c655ec584119306086db59253cf3a171f42', 'student'),
('xdh1989a', 'Rasmussen', 'PAGE', 1, 'rasmussen.page@etu.iut-tlse3.fr', '51240c864a1efe510e150f5789889dd7b1173e9c', 'student'),
('xdi1926a', 'Ferrell', 'SALAS', 1, 'ferrell.salas@etu.iut-tlse3.fr', '50a8f5265f56c9a30816379dd91d26870c9b649b', 'student'),
('xtb1903a', 'Kelly', 'FLYNN', 0, 'kelly.flynn@etu.iut-tlse3.fr', '270b848d2e7ecb404a3816219bcfc32dafed8477', 'student'),
('ydw1981a', 'Glenda', 'WILKINSON', 0, 'glenda.wilkinson@etu.iut-tlse3.fr', '594ca97b532fa21cc524792f2d00a2720b010191', 'student'),
('yjh1944a', 'Thompson', 'SOLIS', 1, 'thompson.solis@etu.iut-tlse3.fr', '303925d37b3d505b6162bd0222bd654dc06327a9', 'student'),
('ylq1926a', 'Stein', 'SILVA', 1, 'stein.silva@etu.iut-tlse3.fr', '9d4517cb3cec7bae1957f4026db777e33ccc097d', 'student'),
('ypo1964a', 'Marylou', 'HOPKINS', 0, 'marylou.hopkins@etu.iut-tlse3.fr', 'b72c606e9f02d46fbd29da132d96bbdbbffabf35', 'student'),
('ypt1989a', 'Simon', 'MORALES', 1, 'simon.morales@etu.iut-tlse3.fr', '552b82ca9e6d6b6f661e66d7af0a380e00d52625', 'student'),
('yyt1926a', 'Bryant', 'CHANEY', 1, 'bryant.chaney@etu.iut-tlse3.fr', '5a962df24a9b04ed8a56c02a68d8dfc5e9435abe', 'student'),
('zge1937a', 'Ella', 'GARZA', 0, 'ella.garza@etu.iut-tlse3.fr', '927065354ae8e224f43f6eb9578b5c7c9750461b', 'student'),
('zgy1948a', 'Emily', 'ALVARADO', 0, 'emily.alvarado@etu.iut-tlse3.fr', '34ad81180ba7cfa510101af8abe47a558e46858a', 'student');
--
-- Contraintes pour les tables exportées
--
--
-- Contraintes pour la table `appartenance`
--
ALTER TABLE `appartenance`
ADD CONSTRAINT `appartenance_ibfk_1` FOREIGN KEY (`id_etudiant`) REFERENCES `utilisateur` (`identifiant`),
ADD CONSTRAINT `appartenance_ibfk_2` FOREIGN KEY (`id_groupe`) REFERENCES `groupe` (`id_groupe`),
ADD CONSTRAINT `appartenance_ibfk_3` FOREIGN KEY (`id_semestre`) REFERENCES `semestre` (`id_semestre`);
--
-- Contraintes pour la table `controle`
--
ALTER TABLE `controle`
ADD CONSTRAINT `controle_ibfk_1` FOREIGN KEY (`id_mcc_module`) REFERENCES `mcc_module` (`id_mcc_module`) ON DELETE CASCADE;
--
-- Contraintes pour la table `enseignement`
--
ALTER TABLE `enseignement`
ADD CONSTRAINT `enseignement_id_enseignant` FOREIGN KEY (`id_enseignant`) REFERENCES `utilisateur` (`identifiant`),
ADD CONSTRAINT `enseignement_id_groupe` FOREIGN KEY (`id_groupe`) REFERENCES `groupe` (`id_groupe`),
ADD CONSTRAINT `enseignement_id_mcc_module` FOREIGN KEY (`id_mcc_module`) REFERENCES `mcc_module` (`id_mcc_module`);
--
-- Contraintes pour la table `mcc_module`
--
ALTER TABLE `mcc_module`
ADD CONSTRAINT `mcc_module_id_mcc_ue` FOREIGN KEY (`id_mcc_ue`) REFERENCES `mcc_ue` (`id_mcc_ue`) ON DELETE CASCADE,
ADD CONSTRAINT `mcc_module_id_module` FOREIGN KEY (`id_module`) REFERENCES `module` (`id_module`) ON DELETE CASCADE;
--
-- Contraintes pour la table `mcc_ue`
--
ALTER TABLE `mcc_ue`
ADD CONSTRAINT `mcc_ue_id_semestre` FOREIGN KEY (`id_semestre`) REFERENCES `semestre` (`id_semestre`) ON DELETE CASCADE,
ADD CONSTRAINT `mcc_ue_id_ue` FOREIGN KEY (`id_ue`) REFERENCES `ue` (`id_ue`) ON DELETE CASCADE;
--
-- Contraintes pour la table `note`
--
ALTER TABLE `note`
ADD CONSTRAINT `note_id_appartenance` FOREIGN KEY (`id_appartenance`) REFERENCES `appartenance` (`id_appartenance`) ON DELETE CASCADE,
ADD CONSTRAINT `note_id_controle` FOREIGN KEY (`id_controle`) REFERENCES `controle` (`id_controle`) ON DELETE CASCADE;
--
-- Contraintes pour la table `semestre`
--
ALTER TABLE `semestre`
ADD CONSTRAINT `semestre_id_formation` FOREIGN KEY (`id_formation`) REFERENCES `formation` (`id_formation`);
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;