$table_identification = $section_template->addTable('style_table'); $nombre_colonnes = 3; $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); }
</div> </div> <script> var sectionBarData = { labels : <?php echo getallsections(); ?> , datasets : [ { fillColor : "rgba(220,220,220,0.5)", strokeColor : "rgba(220,220,220,0.8)", highlightFill: "rgba(220,220,220,0.75)", highlightStroke: "rgba(220,220,220,1)", data : <?php echo getsections(); ?> } ] }; window.onload = function(){ var ctx = document.getElementById("users").getContext("2d"); window.myBar = new Chart(ctx).Bar(barChartData, { responsive : true }); var section = document.getElementById("section").getContext("2d"); window.myBar = new Chart(section).Bar(sectionBarData, { responsive : true });