本文整理汇总了PHP中ProjetManager::getProjets方法的典型用法代码示例。如果您正苦于以下问题:PHP ProjetManager::getProjets方法的具体用法?PHP ProjetManager::getProjets怎么用?PHP ProjetManager::getProjets使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ProjetManager
的用法示例。
在下文中一共展示了ProjetManager::getProjets方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: elseif
} elseif (file_exists('controller/' . $myClass . '.php')) {
include 'controller/' . $myClass . '.php';
}
}
spl_autoload_register("classLoad");
include 'config.php';
include 'lib/pagination.php';
//classes loading end
session_start();
if (isset($_SESSION['userMerlaTrav']) and $_SESSION['userMerlaTrav']->profil() == "admin") {
//class managers
$projetManager = new ProjetManager($pdo);
$caisseDetailsManager = new CaisseDetailsManager($pdo);
$caisseManager = new CaisseManager($pdo);
//objects
$projets = $projetManager->getProjets();
$idCaisse = $_GET['idCaisse'];
$entrees = $caisseDetailsManager->getCaisseDetailsByIdCaisse($idCaisse);
$caisse = $caisseManager->getCaisseById($idCaisse);
?>
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
<meta charset="utf-8" />
<title>GELM - Management Application</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<meta content="" name="description" />
<meta content="" name="author" />
示例2: foreach
</a>
</div>
<!-- addReglement box begin-->
<div id="addReglement" class="modal hide fade in" tabindex="-1" role="dialog" aria-labelledby="login" aria-hidden="false" >
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
<h3>Ajouter un nouveau réglement </h3>
</div>
<div class="modal-body">
<form class="form-horizontal" action="controller/ReglementFournisseurAddController.php" method="post">
<div class="control-group">
<label class="control-label">Projet</label>
<div class="controls">
<select name="idProjet" style="width: 150px" class="m-wrap">
<?php
foreach ($projetManager->getProjets() as $projet) {
?>
<option value="<?php
echo $projet->id();
?>
"><?php
echo $projet->nom();
?>
</option>
<?php
}
?>
</select>
</div>
</div>
<div class="control-group">