Correction de la structure bdd + ajout @note + ajout xdoc/MCD.png
This commit is contained in:
parent
70af3210e9
commit
6b0867b933
|
@ -107,7 +107,7 @@ table.basic tr:last-child td:last-child { border-radius: 0 0 5px 0; }
|
|||
|
||||
/* @hover */
|
||||
table.basic tr:hover td{
|
||||
background-color: #f7f8fc;
|
||||
/*background-color: #f7f8fc;*/
|
||||
color: #333;
|
||||
}
|
||||
|
||||
|
|
|
@ -22,11 +22,10 @@ require_once __ROOT__.'/manager/modules.php';
|
|||
<!-- mes modules -->
|
||||
|
||||
<?php
|
||||
/*******************/
|
||||
/*** MES MODULES ***/
|
||||
/*******************/
|
||||
/**************************************/
|
||||
/*** MES MODULES (version étudiant) ***/
|
||||
/**************************************/
|
||||
if( $_SESSION['identifiant'] != null && $_SESSION['droits'] == 'student' ){ // si l'utilisateur est connecté et que c'est un élève
|
||||
echo "<section name='mymodules' title='Mes modules' class='basic'>";
|
||||
|
||||
$request = new stdClass(); $answer = new stdClass();
|
||||
debug();
|
||||
|
@ -40,25 +39,23 @@ if( $_SESSION['identifiant'] != null && $_SESSION['droits'] == 'student' ){ // s
|
|||
|
||||
if( $answer->request == 'success' ){ // si on a bien récupéré les membres du groupe
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
echo "<section name='mymodules' title='Mes modules' class='basic'>";
|
||||
|
||||
foreach($answer->modules as $module){
|
||||
echo "<table class='basic'>";
|
||||
|
||||
echo "<thead class='active'><tr>";
|
||||
echo '<th colspan=5>'.$module['nom'].'</th>';
|
||||
echo '</tr></thead>';
|
||||
|
||||
echo '<tbody>';
|
||||
|
||||
echo '<tr><td>'.$module['libelle'].'</td></tr>';
|
||||
|
||||
echo '</tbody>';
|
||||
|
||||
echo "<thead class='active'>";
|
||||
echo '<tr>';
|
||||
echo '<th colspan=5>'.$module['nom'].'</th>';
|
||||
echo '</tr>';
|
||||
echo '</thead>';
|
||||
echo '<tbody>';
|
||||
echo '<tr><td>'.$module['libelle'].'</td></tr>';
|
||||
echo '</tbody>';
|
||||
echo '</table>';
|
||||
}
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
echo '</section>';
|
||||
}else
|
||||
echo "Erreur interne.";
|
||||
|
||||
|
||||
echo '</section>';
|
||||
} ?>
|
||||
|
|
12
test.php
12
test.php
|
@ -172,7 +172,7 @@ require_once __ROOT__.'/manager/security.php';
|
|||
|
||||
|
||||
|
||||
/*** AFFICHER LES MEMBRES DE TOUS LES GROUPES ***/
|
||||
/*** AFFICHER LES MEMBRES DE TOUS LES GROUPES (d'un semestre particulier) ***/
|
||||
|
||||
require('manager/groups.php');
|
||||
|
||||
|
@ -189,11 +189,15 @@ require_once __ROOT__.'/manager/security.php';
|
|||
echo '<br><br><br><br>';
|
||||
|
||||
foreach($answer->grouplist as $group){
|
||||
echo "<br>=== GROUPE ".$group->nom."===<br>";
|
||||
echo "<br><br>================";
|
||||
echo "<br>=== GROUPE ".$group->nom." ===<br>";
|
||||
echo "================<br>";
|
||||
foreach($group as $userlist)
|
||||
foreach($userlist as $user)
|
||||
foreach($userlist as $user){
|
||||
foreach($user as $key=>$value)
|
||||
echo $key.' = '.$value.'<br>';
|
||||
echo $key.' = '.$value.' | ';
|
||||
echo '<br>';
|
||||
}
|
||||
}
|
||||
|
||||
echo "<br><br><br><br><br><br><br>It works !";
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 101 KiB |
|
@ -46,14 +46,24 @@
|
|||
* + id_semestre (63) => S3
|
||||
*
|
||||
* [PROGRAMME]
|
||||
* + id_semestre (63) => S3
|
||||
* + id_ue (3) => UE3
|
||||
* + id_module (39) => M3305
|
||||
* + id_programme (++)
|
||||
* + id_semestre (63) => S3
|
||||
* + id_ue (3) => UE3
|
||||
* + id_module (39) => M3305
|
||||
*
|
||||
* [NOTE]
|
||||
* + id_note (++)
|
||||
* + id_etudiant (mrd1609a)
|
||||
* + id_programme (10)
|
||||
* + valeur (18) => 18
|
||||
* + base (20) => /20
|
||||
*
|
||||
* [ETUDIANT] membre d'un [GROUPE] associé à un [SEMESTRE] = appartenance_groupe [id_etudiant, id_groupe, id_semestre]
|
||||
*
|
||||
* [UE] contient des [MODULES] en fonction du [SEMESTRE] = programme [id_semestre, id_ue, id_module]
|
||||
*
|
||||
* [NOTE] est définie pour une [APPARTENANCE] ([ETUDIANT] dans un [GROUPE] un [SEMESTRE]) dans un [PROGRAMME] ([MODULE] d'un [UE] lors d'un [SEMESTRE])
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -134,8 +144,18 @@ ORDER BY s.annee, ue.nom, m.nom ASC
|
|||
/******************************************/
|
||||
/*** AFFICHE LES ETUDIANTS PAR SEMESTRE ***/
|
||||
/******************************************/
|
||||
SELECT DISTINCT s.nom as semestre, u.pseudo as etudiant
|
||||
FROM utilisateurs as u, semestre as s, association_utilisateur_groupe as asso
|
||||
WHERE asso.id_utilisateur = u.id_utilisateur
|
||||
AND asso.id_semestre = s.id_semestre
|
||||
ORDER BY s.nom, u.pseudo ASC;
|
||||
SELECT DISTINCT s.annee as annee, s.nom as semestre, u.identifiant+'-' as etudiant
|
||||
FROM utilisateur as u, semestre as s, appartenance as app
|
||||
WHERE app.id_etudiant = u.identifiant
|
||||
AND app.id_semestre = s.id_semestre
|
||||
ORDER BY s.annee, s.nom, u.identifiant ASC;
|
||||
|
||||
/**************************************/
|
||||
/*** AFFICHER LES NOTES PAR MODULES ***/
|
||||
/**************************************/
|
||||
SELECT DISTINCT m.nom as module, app.id_etudiant as etudiant, n.valeur as note, n.base as base
|
||||
FROM note as n, module as m, programme as prog, appartenance as app
|
||||
WHERE prog.id_module = m.id_module
|
||||
AND prog.id_programme = n.id_programme
|
||||
AND n.id_appartenance = app.id_appartenance
|
||||
ORDER BY m.nom, app.id_etudiant, n.valeur ASC;
|
363
xdoc/sid.sql
363
xdoc/sid.sql
|
@ -3,7 +3,7 @@
|
|||
-- http://www.phpmyadmin.net
|
||||
--
|
||||
-- Client: localhost
|
||||
-- Généré le: Mer 28 Octobre 2015 à 18:05
|
||||
-- Généré le: Mer 28 Octobre 2015 à 23:11
|
||||
-- Version du serveur: 5.5.44-0ubuntu0.14.04.1
|
||||
-- Version de PHP: 5.5.9-1ubuntu4.13
|
||||
|
||||
|
@ -19,6 +19,8 @@ SET time_zone = "+00:00";
|
|||
--
|
||||
-- Base de données: `sid2`
|
||||
--
|
||||
CREATE DATABASE IF NOT EXISTS `sid2` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
|
||||
USE `sid2`;
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
|
@ -27,14 +29,16 @@ SET time_zone = "+00:00";
|
|||
--
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `appartenance` (
|
||||
`id_appartenance` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`id_etudiant` varchar(8) 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`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;
|
||||
|
||||
--
|
||||
-- RELATIONS POUR LA TABLE `appartenance`:
|
||||
|
@ -50,107 +54,107 @@ CREATE TABLE IF NOT EXISTS `appartenance` (
|
|||
-- Contenu de la table `appartenance`
|
||||
--
|
||||
|
||||
INSERT INTO `appartenance` (`id_etudiant`, `id_groupe`, `id_semestre`) VALUES
|
||||
('ydw1981a', 25, 3),
|
||||
('ihf1991a', 26, 4),
|
||||
('mma1990a', 23, 3),
|
||||
('lme1952a', 9, 3),
|
||||
('imf1922a', 9, 3),
|
||||
('gyy1983a', 28, 4),
|
||||
('otm1902a', 28, 4),
|
||||
('tnx1949a', 25, 3),
|
||||
('sjl1937a', 12, 2),
|
||||
('anj1991a', 4, 2),
|
||||
('xdh1989a', 6, 4),
|
||||
('agl1956a', 11, 1),
|
||||
('mhu1946a', 17, 1),
|
||||
('cvv1936a', 22, 2),
|
||||
('mzh1955a', 27, 4),
|
||||
('pdi1904a', 13, 3),
|
||||
('cuk1947a', 23, 3),
|
||||
('non1968a', 7, 1),
|
||||
('hmn1970a', 16, 1),
|
||||
('hth1975a', 22, 2),
|
||||
('liw1940a', 11, 1),
|
||||
('dtg1946a', 6, 4),
|
||||
('oxz1985a', 12, 2),
|
||||
('ono1984a', 27, 4),
|
||||
('auy1966a', 10, 4),
|
||||
('dui1946a', 27, 4),
|
||||
('cyw1979a', 4, 2),
|
||||
('pfv1965a', 11, 1),
|
||||
('oqz1937a', 13, 3),
|
||||
('aft1950a', 20, 2),
|
||||
('bae1943a', 22, 2),
|
||||
('kul1903a', 19, 1),
|
||||
('rmj1965a', 9, 3),
|
||||
('yyt1926a', 16, 1),
|
||||
('ktz1997a', 27, 4),
|
||||
('hku1995a', 5, 3),
|
||||
('zgy1948a', 7, 1),
|
||||
('vau1957a', 7, 1),
|
||||
('hsx1927a', 5, 3),
|
||||
('eca1977a', 11, 1),
|
||||
('wpa1966a', 4, 2),
|
||||
('qoe1974a', 16, 1),
|
||||
('tkz1955a', 7, 1),
|
||||
('wnx1995a', 16, 1),
|
||||
('sft1994a', 9, 3),
|
||||
('vgb1979a', 22, 2),
|
||||
('wbt1993a', 11, 1),
|
||||
('xtb1903a', 27, 4),
|
||||
('msj1985a', 25, 3),
|
||||
('wvn1982a', 20, 2),
|
||||
('psg1965a', 25, 3),
|
||||
('hpa1908a', 24, 3),
|
||||
('maq1980a', 21, 2),
|
||||
('agq1929a', 28, 4),
|
||||
('gwe1975a', 6, 4),
|
||||
('gdb1939a', 4, 2),
|
||||
('jrc1974a', 17, 1),
|
||||
('jfa1965a', 10, 4),
|
||||
('buz1982a', 24, 3),
|
||||
('mhr1952a', 10, 4),
|
||||
('pos1958a', 7, 1),
|
||||
('xdi1926a', 11, 1),
|
||||
('awl1901a', 25, 3),
|
||||
('uix1942a', 7, 1),
|
||||
('ngz1932a', 26, 4),
|
||||
('kpf1942a', 26, 4),
|
||||
('aiv1989a', 23, 3),
|
||||
('sjw1936a', 21, 2),
|
||||
('fei1944a', 8, 2),
|
||||
('zge1937a', 10, 4),
|
||||
('rpl1936a', 4, 2),
|
||||
('hrv1902a', 12, 2),
|
||||
('djo1928a', 5, 3),
|
||||
('scm1996a', 13, 3),
|
||||
('ylq1926a', 26, 4),
|
||||
('eme1913a', 5, 3),
|
||||
('otv1930a', 27, 4),
|
||||
('cda1951a', 20, 2),
|
||||
('eee1933a', 26, 4),
|
||||
('kfx1995a', 27, 4),
|
||||
('jgd1966a', 19, 1),
|
||||
('rwg1909a', 21, 2),
|
||||
('ngw1997a', 20, 2),
|
||||
('obg1973a', 24, 3),
|
||||
('hzg1935a', 14, 4),
|
||||
('iyh1918a', 10, 4),
|
||||
('tdc1978a', 8, 2),
|
||||
('swd1951a', 5, 3),
|
||||
('vdj1905a', 12, 2),
|
||||
('bit1985a', 8, 2),
|
||||
('iah1936a', 6, 4),
|
||||
('ypt1989a', 19, 1),
|
||||
('ljc1902a', 26, 4),
|
||||
('hcc1997a', 24, 3),
|
||||
('bky1924a', 11, 1),
|
||||
('vul1953a', 12, 2),
|
||||
('ssr1906a', 21, 2),
|
||||
('yjh1944a', 16, 1),
|
||||
('ste1994a', 21, 2),
|
||||
('ypo1964a', 9, 3);
|
||||
INSERT INTO `appartenance` (`id_appartenance`, `id_etudiant`, `id_groupe`, `id_semestre`) VALUES
|
||||
(1, 'ydw1981a', 25, 3),
|
||||
(2, 'ihf1991a', 26, 4),
|
||||
(3, 'mma1990a', 23, 3),
|
||||
(4, 'lme1952a', 9, 3),
|
||||
(5, 'imf1922a', 9, 3),
|
||||
(6, 'gyy1983a', 28, 4),
|
||||
(7, 'otm1902a', 28, 4),
|
||||
(8, 'tnx1949a', 25, 3),
|
||||
(9, 'sjl1937a', 12, 2),
|
||||
(10, 'anj1991a', 4, 2),
|
||||
(11, 'xdh1989a', 6, 4),
|
||||
(12, 'agl1956a', 11, 1),
|
||||
(13, 'mhu1946a', 17, 1),
|
||||
(14, 'cvv1936a', 22, 2),
|
||||
(15, 'mzh1955a', 27, 4),
|
||||
(16, 'pdi1904a', 13, 3),
|
||||
(17, 'cuk1947a', 23, 3),
|
||||
(18, 'non1968a', 7, 1),
|
||||
(19, 'hmn1970a', 16, 1),
|
||||
(20, 'hth1975a', 22, 2),
|
||||
(21, 'liw1940a', 11, 1),
|
||||
(22, 'dtg1946a', 6, 4),
|
||||
(23, 'oxz1985a', 12, 2),
|
||||
(24, 'ono1984a', 27, 4),
|
||||
(25, 'auy1966a', 10, 4),
|
||||
(26, 'dui1946a', 27, 4),
|
||||
(27, 'cyw1979a', 4, 2),
|
||||
(28, 'pfv1965a', 11, 1),
|
||||
(29, 'oqz1937a', 13, 3),
|
||||
(30, 'aft1950a', 20, 2),
|
||||
(31, 'bae1943a', 22, 2),
|
||||
(32, 'kul1903a', 19, 1),
|
||||
(33, 'rmj1965a', 9, 3),
|
||||
(34, 'yyt1926a', 16, 1),
|
||||
(35, 'ktz1997a', 27, 4),
|
||||
(36, 'hku1995a', 5, 3),
|
||||
(37, 'zgy1948a', 7, 1),
|
||||
(38, 'vau1957a', 7, 1),
|
||||
(39, 'hsx1927a', 5, 3),
|
||||
(40, 'eca1977a', 11, 1),
|
||||
(41, 'wpa1966a', 4, 2),
|
||||
(42, 'qoe1974a', 16, 1),
|
||||
(43, 'tkz1955a', 7, 1),
|
||||
(44, 'wnx1995a', 16, 1),
|
||||
(45, 'sft1994a', 9, 3),
|
||||
(46, 'vgb1979a', 22, 2),
|
||||
(47, 'wbt1993a', 11, 1),
|
||||
(48, 'xtb1903a', 27, 4),
|
||||
(49, 'msj1985a', 25, 3),
|
||||
(50, 'wvn1982a', 20, 2),
|
||||
(51, 'psg1965a', 25, 3),
|
||||
(52, 'hpa1908a', 24, 3),
|
||||
(53, 'maq1980a', 21, 2),
|
||||
(54, 'agq1929a', 28, 4),
|
||||
(55, 'gwe1975a', 6, 4),
|
||||
(56, 'gdb1939a', 4, 2),
|
||||
(57, 'jrc1974a', 17, 1),
|
||||
(58, 'jfa1965a', 10, 4),
|
||||
(59, 'buz1982a', 24, 3),
|
||||
(60, 'mhr1952a', 10, 4),
|
||||
(61, 'pos1958a', 7, 1),
|
||||
(62, 'xdi1926a', 11, 1),
|
||||
(63, 'awl1901a', 25, 3),
|
||||
(64, 'uix1942a', 7, 1),
|
||||
(65, 'ngz1932a', 26, 4),
|
||||
(66, 'kpf1942a', 26, 4),
|
||||
(67, 'aiv1989a', 23, 3),
|
||||
(68, 'sjw1936a', 21, 2),
|
||||
(69, 'fei1944a', 8, 2),
|
||||
(70, 'zge1937a', 10, 4),
|
||||
(71, 'rpl1936a', 4, 2),
|
||||
(72, 'hrv1902a', 12, 2),
|
||||
(73, 'djo1928a', 5, 3),
|
||||
(74, 'scm1996a', 13, 3),
|
||||
(75, 'ylq1926a', 26, 4),
|
||||
(76, 'eme1913a', 5, 3),
|
||||
(77, 'otv1930a', 27, 4),
|
||||
(78, 'cda1951a', 20, 2),
|
||||
(79, 'eee1933a', 26, 4),
|
||||
(80, 'kfx1995a', 27, 4),
|
||||
(81, 'jgd1966a', 19, 1),
|
||||
(82, 'rwg1909a', 21, 2),
|
||||
(83, 'ngw1997a', 20, 2),
|
||||
(84, 'obg1973a', 24, 3),
|
||||
(85, 'hzg1935a', 14, 4),
|
||||
(86, 'iyh1918a', 10, 4),
|
||||
(87, 'tdc1978a', 8, 2),
|
||||
(88, 'swd1951a', 5, 3),
|
||||
(89, 'vdj1905a', 12, 2),
|
||||
(90, 'bit1985a', 8, 2),
|
||||
(91, 'iah1936a', 6, 4),
|
||||
(92, 'ypt1989a', 19, 1),
|
||||
(93, 'ljc1902a', 26, 4),
|
||||
(94, 'hcc1997a', 24, 3),
|
||||
(95, 'bky1924a', 11, 1),
|
||||
(96, 'vul1953a', 12, 2),
|
||||
(97, 'ssr1906a', 21, 2),
|
||||
(98, 'yjh1944a', 16, 1),
|
||||
(99, 'ste1994a', 21, 2),
|
||||
(100, 'ypo1964a', 9, 3);
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
|
@ -162,39 +166,44 @@ 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=29 ;
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;
|
||||
|
||||
--
|
||||
-- Contenu de la table `groupe`
|
||||
--
|
||||
|
||||
INSERT INTO `groupe` (`id_groupe`, `nom`) VALUES
|
||||
(2, 'S1A'),
|
||||
(4, 'S2A'),
|
||||
(5, 'S3A'),
|
||||
(6, 'S4A'),
|
||||
(7, 'S1B'),
|
||||
(8, 'S2B'),
|
||||
(9, 'S3B'),
|
||||
(10, 'S4B'),
|
||||
(11, 'S1C'),
|
||||
(12, 'S2C'),
|
||||
(13, 'S3C'),
|
||||
(14, 'S4C'),
|
||||
(16, 'S1E'),
|
||||
(17, 'S1D'),
|
||||
(19, 'S1F'),
|
||||
(20, 'S2D'),
|
||||
(21, 'S2E'),
|
||||
(22, 'S2F'),
|
||||
(23, 'S3D'),
|
||||
(24, 'S3E'),
|
||||
(25, 'S3F'),
|
||||
(26, 'S4D'),
|
||||
(27, 'S4E'),
|
||||
(28, 'S4F');
|
||||
(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');
|
||||
|
||||
----------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Structure de la table `module`
|
||||
|
@ -205,21 +214,83 @@ CREATE TABLE IF NOT EXISTS `module` (
|
|||
`nom` varchar(5) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
|
||||
`libelle` varchar(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL,
|
||||
PRIMARY KEY (`id_module`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;
|
||||
|
||||
--
|
||||
-- Contenu de la table `module`
|
||||
--
|
||||
|
||||
INSERT INTO `module` (`id_module`, `nom`, `libelle`) VALUES
|
||||
(1, 'M1101', 'Bases de l''algorithmique'),
|
||||
(2, 'M1102', 'Programmation web'),
|
||||
(3, 'M2101', 'Magazine'),
|
||||
(4, 'M2102', 'Affiche'),
|
||||
(5, 'M3101', 'Algorithmique et structures de données'),
|
||||
(6, 'M3102', 'Programmation Orientée Objet'),
|
||||
(7, 'M4101', 'Stage partie 1'),
|
||||
(8, 'M4102', 'Stage partie 2');
|
||||
(1, 'M1101', 'Bases de l''algorithmique'), -- S1 - UE1
|
||||
(2, 'M1102', 'Programmation web'), -- S1 - UE1
|
||||
(3, 'M1201', 'Affiche'), -- S1 - UE2
|
||||
(4, 'M1202', 'Journal'), -- S1 - UE2
|
||||
|
||||
(5, 'M2101', 'Base de la POO'), -- S2 - UE1
|
||||
(6, 'M2102', 'Ada'), -- S2 - UE1
|
||||
(7, 'M2201', 'Revue de projet'), -- S2 - UE2
|
||||
(8, 'M2202', 'Magazine'), -- S2 - UE2
|
||||
|
||||
(9, 'M3301', 'Algorithmique et structures de données'), -- S3 - UE3
|
||||
(10, 'M3302', 'POO avancée'), -- S3 - UE3
|
||||
(11, 'M3401', 'Curriculum Vitae'), -- S3 - UE4
|
||||
(12, 'M3402', 'Lettre de motivation'), -- S3 - UE4
|
||||
|
||||
(13, 'M4301', 'Programmation serveur: PHP'), -- S4 - UE3
|
||||
(14, 'M4302', 'Informatique en stage'); -- S4 - UE3
|
||||
(15, 'M4401', 'Entretien'); -- S4 - UE4
|
||||
(16, 'M4402', 'Communication en stage'); -- S4 - UE4
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- 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_programme` int(11) NOT NULL,
|
||||
`valeur` float NOT NULL,
|
||||
`base` float NOT NULL,
|
||||
PRIMARY KEY (`id_note`),
|
||||
KEY `id_programme` (`id_programme`),
|
||||
KEY `id_appartenance` (`id_appartenance`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;
|
||||
|
||||
--
|
||||
-- RELATIONS POUR LA TABLE `note`:
|
||||
-- `id_appartenance`
|
||||
-- `appartenance` -> `id_appartenance`
|
||||
-- `id_programme`
|
||||
-- `programme` -> `id_programme`
|
||||
--
|
||||
|
||||
--
|
||||
-- Contenu de la table `note`
|
||||
--
|
||||
|
||||
INSERT INTO `note` (`id_note`, `id_appartenance`, `id_programme`, `valeur`, `base`) VALUES
|
||||
(1, 6, 1, 1, 20), -- 01/20
|
||||
(2, 7, 1, 2, 20), -- 02/20
|
||||
(3, 7, 1, 3, 20), -- 03/20
|
||||
(4, 7, 1, 4, 20), -- 04/20
|
||||
(5, 7, 1, 5, 20), -- 05/20
|
||||
(6, 7, 1, 6, 20), -- 06/20
|
||||
(7, 7, 1, 7, 20), -- 07/20
|
||||
(8, 7, 1, 8, 20), -- 08/20
|
||||
(9, 7, 1, 9, 20), -- 09/20
|
||||
(10, 7, 1, 10, 20), -- 10/20
|
||||
(11, 6, 1, 11, 20), -- 11/20
|
||||
(12, 7, 1, 12, 20), -- 12/20
|
||||
(13, 7, 1, 13, 20), -- 13/20
|
||||
(14, 7, 1, 14, 20), -- 14/20
|
||||
(15, 7, 1, 15, 20), -- 15/20
|
||||
(16, 7, 1, 16, 20), -- 16/20
|
||||
(17, 7, 1, 17, 20), -- 17/20
|
||||
(18, 7, 1, 18, 20), -- 18/20
|
||||
(19, 7, 1, 19, 20), -- 19/20
|
||||
(20, 7, 1, 20, 20); -- 20/20
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
|
@ -236,7 +307,7 @@ CREATE TABLE IF NOT EXISTS `programme` (
|
|||
KEY `id_module` (`id_module`),
|
||||
KEY `id_ue` (`id_ue`),
|
||||
KEY `id_semestre` (`id_semestre`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=9 ;
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;
|
||||
|
||||
--
|
||||
-- RELATIONS POUR LA TABLE `programme`:
|
||||
|
@ -275,7 +346,7 @@ CREATE TABLE IF NOT EXISTS `semestre` (
|
|||
`annee` year(4) NOT NULL,
|
||||
PRIMARY KEY (`id_semestre`),
|
||||
UNIQUE KEY `rang` (`rang`,`annee`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;
|
||||
|
||||
--
|
||||
-- Contenu de la table `semestre`
|
||||
|
@ -286,6 +357,7 @@ INSERT INTO `semestre` (`id_semestre`, `nom`, `rang`, `annee`) VALUES
|
|||
(2, 'S2', 2, 2015),
|
||||
(3, 'S3', 3, 2015),
|
||||
(4, 'S4', 4, 2015),
|
||||
|
||||
(5, 'S1', 0, 2016),
|
||||
(7, 'S2', 2, 2016),
|
||||
(8, 'S3', 3, 2016),
|
||||
|
@ -302,14 +374,14 @@ CREATE TABLE IF NOT EXISTS `ue` (
|
|||
`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=5 ;
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;
|
||||
|
||||
--
|
||||
-- Contenu de la table `ue`
|
||||
--
|
||||
|
||||
INSERT INTO `ue` (`id_ue`, `nom`, `libelle`) VALUES
|
||||
(1, 'UE1', 'Informatique'),
|
||||
(1, 'UE1', 'Bases algorithmiques'),
|
||||
(2, 'UE2', 'Communication'),
|
||||
(3, 'UE3', 'Informatique Avancée'),
|
||||
(4, 'UE4', 'Projet Personnel et Professionnel');
|
||||
|
@ -449,6 +521,13 @@ ALTER TABLE `appartenance`
|
|||
ADD CONSTRAINT `appartenance_id_groupe` FOREIGN KEY (`id_groupe`) REFERENCES `groupe` (`id_groupe`),
|
||||
ADD CONSTRAINT `appartenance_id_semestre` FOREIGN KEY (`id_semestre`) REFERENCES `semestre` (`id_semestre`);
|
||||
|
||||
--
|
||||
-- Contraintes pour la table `note`
|
||||
--
|
||||
ALTER TABLE `note`
|
||||
ADD CONSTRAINT `note_id_appartenance` FOREIGN KEY (`id_appartenance`) REFERENCES `appartenance` (`id_appartenance`),
|
||||
ADD CONSTRAINT `note_id_programme` FOREIGN KEY (`id_programme`) REFERENCES `programme` (`id_programme`);
|
||||
|
||||
--
|
||||
-- Contraintes pour la table `programme`
|
||||
--
|
||||
|
|
Loading…
Reference in New Issue