コード例 #1
0
    $cell_width = $GLOBALS["table_width"] / $nombre_colonnes;
    $table_identification->addRow($GLOBALS["style_row"]);
    $table_identification->addCell($cell_width, $GLOBALS["style_cellule_titre"])->addText("Identification du cours", $GLOBALS["style_font_titre"], $GLOBALS["style_align_center"]);
    $table_identification->addRow($GLOBALS["style_row"]);
    $table_identification->addCell($cell_width)->addText("Discipline", null, $GLOBALS["style_align_center"]);
    $table_identification->addCell($cell_width)->addText($nom_cours, null, $GLOBALS["style_align_center"]);
    $table_identification->addCell($cell_width)->addText($code_cours, null, $GLOBALS["style_align_center"]);
    $table_identification->addRow($GLOBALS["style_row"]);
    $table_identification->addCell($cell_width)->addText($ponderation_cours, null, $GLOBALS["style_align_center"]);
    $table_identification->addCell($cell_width)->addText($nombre_unites_cours, null, $GLOBALS["style_align_center"]);
    $table_identification->addCell($cell_width)->addText("test", null, $GLOBALS["style_align_center"]);
    // Fin de la section de l'indentification du cours
    // ----------------------------------------------
    $sections = getsections($_SESSION["id_plancadre"]);
    foreach ($sections as $i => $section) {
        addSection($php_word, $section["titre"], readFrom($_POST['save_path'] . $section["emplacement"] . ".txt"));
    }
    $path_docx = "../plancadre/" . $_SESSION["id_plancadre"] . "_" . $info_plancadre["CodeCours"] . ".docx";
    $php_word->save($path_docx);
    header('Location: ../view/view_create_plancadre.php');
} else {
    if (isset($_POST['open'])) {
        header('Location: ../view/view_elaboration_plancadre.php');
    }
}
function getPlanCadre($id_plancadre)
{
    return fetchPlanCadreElaboration_PlanCadre($id_plancadre);
}
function getPrealableCours($id_cours)
{
コード例 #2
0
?>
            <label class="control-label col-md-2">Énoncé des compétences : </label>
            <br>
            <div class="col-md-10">
                <textarea class="ckeditor" name="EnonceCompetences" rows="12" cols="50"><?php 
echo readFrom($path_competences);
?>
                </textarea>
            </div>
            <br>

            <label class="control-label col-md-2">Objectifs d'apprentissage : </label>
            <br>
            <div class="col-md-10">
                <textarea class="ckeditor" name="ObjectifsApprentissage" rows="12" cols="50"><?php 
echo readFrom($path_apprentissage);
?>
                </textarea>
            </div>
            <br>
            
            
            <div class="col-md-offset-2 col-md-2">
                <input name="save" type="submit" value="Sauvegarder..." <?php 
if (!$updating) {
    echo 'disabled="disabled"';
}
?>
 class="btn btn-default" />
            </div>