本文整理汇总了PHP中Planning::afficherPlanning方法的典型用法代码示例。如果您正苦于以下问题:PHP Planning::afficherPlanning方法的具体用法?PHP Planning::afficherPlanning怎么用?PHP Planning::afficherPlanning使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Planning
的用法示例。
在下文中一共展示了Planning::afficherPlanning方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Moniteur
<?php
session_start();
include "../modeles/Modele.php";
include "../modeles/Modele_extend.php";
include 'Controleur_Class/Controleur_class_candidat.php';
include 'Controleur_Class/Controleur_class_vehicule.php';
include 'Controleur_Class/Controleur_class_lecon.php';
include 'Controleur_Class/Controleur_class_moniteur.php';
include 'Controleur_Class/Controleur_class_planning.php';
$unMoniteur = new Moniteur();
$unModele = new Modele("localhost", "auto_ecole_ppe", "root", "");
$unModele->renseigner("moniteur", "nummoniteur");
$unModelextend = new ModelExtend("localhost", "auto_ecole_ppe", "root", "");
$view = "planningmoniteur";
$chaine = "";
$resultat = $unModelextend->selectAllTablePlanningMoniteur($view);
$chaine = "<table class='table table-striped'>\n\t\t\t<tr><td>Date debut</td><td>Date fin</><td>Heure debut leçon</td><td>Heure fin leçon</td><td>Numéro vehicule</td><td>Nom candidat</td><td>Etat du planning</td><td>Nom du Moniteur</td></tr>";
foreach ($resultat as $key => $value) {
$unPlanning = new Planning();
$unPlanning->renseigner($value);
$chaine .= $unPlanning->afficherPlanning();
}
$chaine .= "</table>";
include "../Vues/Vue_planning_moniteur.html";
?>