Ajout des input pour ajouter un module à un UE d'un Semestre
This commit is contained in:
parent
4151f80242
commit
a44027bdb5
|
@ -205,6 +205,12 @@ select{
|
|||
appearance:none;
|
||||
}
|
||||
|
||||
/* select grisé => selection modules existants par exemple */
|
||||
tr.grayscale select{
|
||||
border-color: #bdbdbd;
|
||||
color: #4e4e4e;
|
||||
}
|
||||
|
||||
/* pour déplacement d'élève */
|
||||
td select{ margin: -1em; padding: .5em; }
|
||||
|
||||
|
@ -257,7 +263,8 @@ td select > option{ padding: 0; }
|
|||
|
||||
|
||||
/* @all */
|
||||
.confirm.all{ margin-top: -.7em; }
|
||||
.confirm.all,
|
||||
tr.grayscale .confirm{ margin-top: -.7em; }
|
||||
|
||||
|
||||
|
||||
|
@ -280,7 +287,8 @@ body.trHoverActivated tr:hover td .confirm.active{
|
|||
}
|
||||
|
||||
/* saisie note */
|
||||
.saisie_note{
|
||||
.saisie_note,
|
||||
tr.grayscale input{
|
||||
/* position */
|
||||
margin: -.5em;
|
||||
width: 4em;
|
||||
|
@ -292,7 +300,11 @@ body.trHoverActivated tr:hover td .confirm.active{
|
|||
}
|
||||
|
||||
/* @focus */
|
||||
.saisie_note:focus{ border-color: #999; }
|
||||
.saisie_note:focus,
|
||||
tr.grayscale input:focus{
|
||||
border-color: #999;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -355,8 +355,12 @@ class DataBase{
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
/**********************************************************/
|
||||
/*** retourne la liste exhaustive des MODULES de la BDD ***/
|
||||
/**********************************************************/
|
||||
public function getExhaustiveModuleList(){
|
||||
return moduleRepo::exhaustiveList();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -171,4 +171,18 @@ class moduleRepo extends DBAccess{
|
|||
|
||||
|
||||
|
||||
|
||||
/* retourne la liste de tous les modules existants
|
||||
*
|
||||
* @return modules<Array> retourne la liste de tous les modules existant
|
||||
*
|
||||
*/
|
||||
public static function exhaustiveList(){
|
||||
$getModuleList = DataBase::getPDO()->query("SELECT id_module as id, nom, libelle FROM module ORDER BY nom, libelle");
|
||||
|
||||
return DataBase::delNumeric( $getModuleList->fetchAll() );
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -432,7 +432,23 @@ if( permission('admin') ){ // si l'utilisateur est un admin
|
|||
echo '<td>'.$UE['nom'].' - '.$UE['libelle'].'</td>';
|
||||
echo '</tr>';
|
||||
}
|
||||
|
||||
|
||||
require_once __ROOT__.'/manager/database.php';
|
||||
debug();
|
||||
$completeModuleList = DataBase::getInstance()->getExhaustiveModuleList();
|
||||
// saisie d'un nouveau module
|
||||
echo "<tr class='grayscale'><td>";
|
||||
echo "<select name='modules'>";
|
||||
foreach($completeModuleList as $module)
|
||||
echo "<option value='".$module['id']."'>".$module['nom']." - ".$module['libelle']."</option>";
|
||||
echo "</select>";
|
||||
echo "</td><td>";
|
||||
echo "<input style='min-width:20%;' type='text' placeholder='Nom'>";
|
||||
echo "<input style='min-width:50%;' type='text' placeholder='Libellé'>";
|
||||
echo "</td><td>";
|
||||
echo "<div class='confirm active'>Ajouter le module</div>";
|
||||
echo "</td></tr>";
|
||||
|
||||
echo '</tbody>';
|
||||
echo '</table>';
|
||||
|
||||
|
|
Loading…
Reference in New Issue