<div class="form-group"><label>Texte de Présentation*</label> <textarea name="content" class="form-control" ><?php echo stripslashes($content); ?> </textarea></div> <div class="form-group"><label>Ressource</label> <textarea name="ressource" value="Tutoriel fourni" class="form-control" ><?php echo stripslashes($ressource); ?> </textarea></div> <div class="form-group"><label>Niveau</label> <?php echo "<select name=\"niveau\" class=\"form-control\" >"; $result = getAllLevel(0); $nb = mysqli_num_rows($result); for ($i = 1; $i <= $nb; $i++) { $row = mysqli_fetch_array($result); echo "<option value=\"" . $row["id_level"] . "\">" . $row["nom_level"] . "</option>"; } echo "</select>"; ?> </div> <div class="form-group"><label>Catégorie</label> <?php echo "<select name=\"categorie\" class=\"form-control\" >"; $result = getAllCategorie(0); $nb = mysqli_num_rows($result); for ($i = 1; $i <= $nb; $i++) {
<textarea name="content"><?php echo $rowsujet["content_atelier"]; ?> </textarea></fieldset> <fieldset><label>Ressource</label> <textarea name="ressource" value="Tutoriel fourni"><?php echo $rowsujet["ressource_atelier"]; ?> </textarea></fieldset> <fieldset><label>Niveau</label> <?php echo "<select name=\"niveau\">"; $result = getAllLevel(); $nb = mysqli_num_rows($result); for ($i = 1; $i <= $nb; $i++) { $row = mysqli_fetch_array($result); echo "<option value=\"" . $row["id_level"] . "\">" . $row["nom_level"] . "</option>"; } echo "</select>"; ?> </fieldset> <fieldset><label>Catégorie</label> <?php echo "<select name=\"categorie\">"; $result = getAllCategorie(); $nb = mysqli_num_rows($result); for ($i = 1; $i <= $nb; $i++) {
if ($pSujet == $key) { echo "<option value=\"" . $key . "\" selected>" . $value . "</option>"; } else { echo "<option value=\"" . $key . "\">" . $value . "</option>"; } } ?> </select></div> <div class="box-footer"> <input type="submit" value="Modifier" class="btn btn-primary"> </div> </form></div> </div> <?php $plevel = getAllLevel(1); $category = getAllCategorie(1); //debug($plevel); if ($pSujet > 0) { $result = getSujetSessionById($pSujet); $rowsujet = mysqli_fetch_array($result); $niveau = $rowsujet['session_niveau']; $categorie = $rowsujet['session_categorie']; ?> </section> <section class="col-lg-7 connectedSortable"> <form method="post" action="index.php?a=35&s=3&sujetsession=<?php echo $pSujet;
<input type="text" class="form-control" name="newcat" placeholder="Nom de la categorie"><input type="hidden" name="submitcat" > <span class="input-group-btn"><button type="submit" class="btn btn-info btn-flat" type="button"><i class="fa fa-check"></i></button></span> </div> </form> </div> </div></div> <!-- Niveau de compétence Atelier --> <div class="col-lg-4"> <div class="box box-success"><div class="box-header"><h3 class="box-title">Niveau d'atelier ou session</h3></div> <div class="box-body no-padding"> <table class="table"> <?php $niveaux = getAllLevel(1); $nbniv = count($niveaux); if ($nbniv > 0) { foreach ($niveaux as $key => $value) { ?> <form action="index.php?a=7&act=2&idniveau=<?php echo $key; ?> " method="post" class="form"> <tr> <td><input type="hidden" name="submitniv" ><input class="form-control" type="text" name="niveau" value="<?php echo $value; ?> " onchange="this.value = this.value.charAt(0).toUpperCase() + this.value.substr(1).toLowerCase();"></td> <td><button class="btn btn-success" type="submit" value="<?php echo $key;