本文整理匯總了PHP中Planning::renseigner方法的典型用法代碼示例。如果您正苦於以下問題:PHP Planning::renseigner方法的具體用法?PHP Planning::renseigner怎麽用?PHP Planning::renseigner使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Planning
的用法示例。
在下文中一共展示了Planning::renseigner方法的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";
?>