Modification structure de données (BDD) + rectifications associées

This commit is contained in:
xdrm-brackets 2015-11-09 12:52:03 +01:00
parent 7ee26924e3
commit 86c643f9d6
769 changed files with 305 additions and 204 deletions

View File

@ -35,6 +35,13 @@ $notifNotifNum = 5;
</head> </head>
<body><!-- CORPS DE LA PAGE --> <body><!-- CORPS DE LA PAGE -->
<?php
if( $_SESSION['identifiant'] != null ){
echo "<input type='hidden' name='identifiant' value='".$_SESSION['identifiant']."'>";
echo "<input type='hidden' name='semestre' value='".$_SESSION['semestre']."' >";
echo "<input type='hidden' name='annee' value='".$_SESSION['annee']."' >";
}
?>
<div id='DRAGNDROP'></div> <div id='DRAGNDROP'></div>

View File

@ -24,7 +24,7 @@ class DataBase{
/* retourne une instance de la classe */ /* retourne une instance de la classe */
public static function getInstance(){ public static function getInstance(){
return new DataBase("localhost", "sid2", "root", ""); return new DataBase("localhost", "sid2", "php", "Qt358nUdyeTxLDM8");
} }
@ -1141,10 +1141,11 @@ class DataBase{
// si on a l'UID utilisateur & l'UID groupe => on récupère les modules // si on a l'UID utilisateur & l'UID groupe => on récupère les modules
$getModuleList = $this->pdo->prepare("SELECT m.nom as module, m.libelle as modulelib, note.intitule, note.valeur, note.base, note.coefficient ". $getModuleList = $this->pdo->prepare("SELECT m.nom as module, m.libelle as modulelib, ctrl.intitule, note.valeur, ctrl.base, ctrl.coefficient ".
"FROM note, appartenance as app, semestre as s, module as m, mcc_ue, mcc_module as mcc_m ". "FROM note, appartenance as app, semestre as s, module as m, mcc_ue, mcc_module as mcc_m, controle as ctrl ".
"WHERE note.id_appartenance = app.id_appartenance ". "WHERE note.id_appartenance = app.id_appartenance ".
"AND note.id_mcc_module = mcc_m.id_mcc_module ". "AND ctrl.id_controle = note.id_controle ".
"AND ctrl.id_mcc_module = mcc_m.id_mcc_module ".
"AND mcc_ue.id_semestre = app.id_semestre ". "AND mcc_ue.id_semestre = app.id_semestre ".
"AND mcc_ue.id_semestre = s.id_semestre ". "AND mcc_ue.id_semestre = s.id_semestre ".
@ -1156,7 +1157,7 @@ class DataBase{
"AND m.id_module = :moduleUID ". "AND m.id_module = :moduleUID ".
"AND app.id_etudiant = :etudiantUID ". "AND app.id_etudiant = :etudiantUID ".
"AND s.id_semestre = :semestreUID ". "AND s.id_semestre = :semestreUID ".
"ORDER BY note.valeur, note.base ASC"); "ORDER BY ctrl.date_publication ASC");
$getModuleList->execute(array( $getModuleList->execute(array(
':moduleUID' => $moduleUID, ':moduleUID' => $moduleUID,
':etudiantUID' => $etudiantUID, ':etudiantUID' => $etudiantUID,
@ -1230,10 +1231,11 @@ class DataBase{
return 'unknown_UE'; return 'unknown_UE';
// si on a l'UID utilisateur & l'UID UE => on récupère les notes // si on a l'UID utilisateur & l'UID UE => on récupère les notes
$getUEList = $this->pdo->prepare("SELECT m.nom as module, m.libelle as modulelib, note.intitule, note.valeur, note.base, note.coefficient ". $getUEList = $this->pdo->prepare("SELECT m.nom as module, m.libelle as modulelib, ctrl.intitule, note.valeur, ctrl.base, ctrl.coefficient ".
"FROM note, appartenance as app, semestre as s, module as m, ue, mcc_ue, mcc_module as mcc_m ". "FROM note, appartenance as app, semestre as s, module as m, ue, mcc_ue, mcc_module as mcc_m, controle as ctrl ".
"WHERE note.id_appartenance = app.id_appartenance ". "WHERE note.id_appartenance = app.id_appartenance ".
"AND note.id_mcc_module = mcc_m.id_mcc_module ". "AND ctrl.id_mcc_module = mcc_m.id_mcc_module ".
"AND ctrl.id_controle = note.id_controle ".
"AND mcc_ue.id_ue = ue.id_ue ". "AND mcc_ue.id_ue = ue.id_ue ".
"AND mcc_ue.id_semestre = app.id_semestre ". "AND mcc_ue.id_semestre = app.id_semestre ".
@ -1246,7 +1248,7 @@ class DataBase{
"AND ue.id_ue = :UEUID ". "AND ue.id_ue = :UEUID ".
"AND app.id_etudiant = :etudiantUID ". "AND app.id_etudiant = :etudiantUID ".
"AND s.id_semestre = :semestreUID ". "AND s.id_semestre = :semestreUID ".
"ORDER BY m.nom, note.valeur, note.base ASC"); "ORDER BY m.nom, ctrl.date_publication ASC");
$getUEList->execute(array( $getUEList->execute(array(
':UEUID' => $UEUID, ':UEUID' => $UEUID,
':etudiantUID' => $etudiantUID, ':etudiantUID' => $etudiantUID,

View File

@ -58,7 +58,7 @@ if( permission('student') ){ // si l'utilisateur est connecté et que c'est un
echo "<td><span class=link>".$note['module']." - ".$note['modulelib']."</span></td>"; echo "<td><span class=link>".$note['module']." - ".$note['modulelib']."</span></td>";
echo '<td><span class=unstressed>"</span>'.$note['intitule'].'<span class=unstressed>"</span></td>'; echo '<td><span class=unstressed>"</span>'.$note['intitule'].'<span class=unstressed>"</span></td>';
echo '<td>'.number_format($note['valeur'], 2).' <span class=unstressed>/</span> '.$note['base'].'</td>'; echo '<td>'.number_format($note['valeur'], 2).' <span class=unstressed>/</span> '.$note['base'].'</td>';
echo '<td>Coefficient '.$note['coefficient'].'</td>'; echo '<td>Coefficient '.number_format($note['coefficient'], 2).'</td>';
echo '</tr>'; echo '</tr>';
} }
echo '</tbody>'; echo '</tbody>';
@ -112,7 +112,7 @@ if( permission('student') ){ // si l'utilisateur est connecté et que c'est un
echo "<td><span class=link>".$note['module']." - ".$note['modulelib']."</span></td>"; echo "<td><span class=link>".$note['module']." - ".$note['modulelib']."</span></td>";
echo '<td><span class=unstressed>"</span>'.$note['intitule'].'<span class=unstressed>"</span></td>'; echo '<td><span class=unstressed>"</span>'.$note['intitule'].'<span class=unstressed>"</span></td>';
echo '<td>'.number_format($note['valeur'], 2).' <span class=unstressed>/</span> '.$note['base'].'</td>'; echo '<td>'.number_format($note['valeur'], 2).' <span class=unstressed>/</span> '.$note['base'].'</td>';
echo '<td>'.$note['coefficient'].'</td>'; echo '<td>Coefficient '.number_format($note['coefficient'], 2).'</td>';
echo '</tr>'; echo '</tr>';
} }
echo '</tbody>'; echo '</tbody>';

0
src/phpexcel/Classes/PHPExcel.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Autoloader.php Normal file → Executable file
View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File

0
src/phpexcel/Classes/PHPExcel/CalcEngine/Logger.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Calculation.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Calculation/Database.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Calculation/DateTime.php Normal file → Executable file
View File

View File

View File

View File

View File

View File

View File

0
src/phpexcel/Classes/PHPExcel/Calculation/Function.php Normal file → Executable file
View File

View File

0
src/phpexcel/Classes/PHPExcel/Calculation/Logical.php Normal file → Executable file
View File

View File

0
src/phpexcel/Classes/PHPExcel/Calculation/MathTrig.php Normal file → Executable file
View File

View File

0
src/phpexcel/Classes/PHPExcel/Calculation/TextData.php Normal file → Executable file
View File

View File

View File

0
src/phpexcel/Classes/PHPExcel/Cell.php Normal file → Executable file
View File

View File

0
src/phpexcel/Classes/PHPExcel/Cell/DataType.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Cell/DataValidation.php Normal file → Executable file
View File

View File

0
src/phpexcel/Classes/PHPExcel/Cell/Hyperlink.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Cell/IValueBinder.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Chart.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Chart/DataSeries.php Normal file → Executable file
View File

View File

0
src/phpexcel/Classes/PHPExcel/Chart/Exception.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Chart/Layout.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Chart/Legend.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Chart/PlotArea.php Normal file → Executable file
View File

View File

0
src/phpexcel/Classes/PHPExcel/Chart/Title.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Comment.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/DocumentProperties.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/DocumentSecurity.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Exception.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/HashTable.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/IComparable.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/IOFactory.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/NamedRange.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Reader/Abstract.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Reader/CSV.php Normal file → Executable file
View File

View File

0
src/phpexcel/Classes/PHPExcel/Reader/Excel2003XML.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Reader/Excel2007.php Normal file → Executable file
View File

View File

View File

0
src/phpexcel/Classes/PHPExcel/Reader/Excel5.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Reader/Excel5/Escher.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Reader/Excel5/MD5.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Reader/Excel5/RC4.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Reader/Exception.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Reader/Gnumeric.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Reader/HTML.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Reader/IReadFilter.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Reader/IReader.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Reader/OOCalc.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Reader/SYLK.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/ReferenceHelper.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/RichText.php Normal file → Executable file
View File

View File

0
src/phpexcel/Classes/PHPExcel/RichText/Run.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/RichText/TextElement.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Settings.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Shared/CodePage.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Shared/Date.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Shared/Drawing.php Normal file → Executable file
View File

0
src/phpexcel/Classes/PHPExcel/Shared/Escher.php Normal file → Executable file
View File

View File

View File

0
src/phpexcel/Classes/PHPExcel/Shared/Excel5.php Normal file → Executable file
View File

Some files were not shown because too many files have changed in this diff Show More