[x] Rang pour import d'inscrits limité 'liste déroulante'

This commit is contained in:
xdrm-brackets 2016-01-07 22:56:54 +01:00
parent 99bf5447b9
commit 4125338c73
2 changed files with 9 additions and 2 deletions

View File

@ -255,7 +255,7 @@ if( importInscrits != null ){
importInscrits.addEventListener('change', function(e){
var annee = parseInt( importInscrits.parentNode.dataset.year );
var rang = parseInt( importInscrits.parentNode.parentNode.children[5].value );
var rang = parseInt( importInscrits.parentNode.parentNode.children[6].value );
console.log(annee);
console.log(rang);

View File

@ -684,7 +684,14 @@ if( permission('master') || permission('admin') ){
echo "<option value='".($currentYear+$i)."'>".anneeScolaire($currentYear+$i)."</option>";
}
echo "</select><br>";
echo "<input type='number' class='import_rangs' min=0 max=6 step=1 placeholder='rang du semestre'><br>";
// echo "<input type='number' class='import_rangs' min=1 max=2 step=1 placeholder='rang du semestre'><br>";
echo "<span class='unstressed'>Rang du semestre :</span>";
echo "<select id='rang_semestre'>";
echo "<option value='1'>1</option>";
echo "<option value='2'>2</option>";
echo "</select><br>";
// echo "<div data-year='".$anneeOpt."' class='confirm active center'>Importer une liste</div>";
echo "<div data-year='".$anneeOpt."' class='confirm active center'>Importer une liste<input type='file' id='import_inscrits'></div>";