예제 #1
0
파일: test.php 프로젝트: hodiqual/projetWeb
 /**
  * @depends testCreationBdd
  */
 public function testSessionSurfGetAll()
 {
     require_once 'modele/SessionSurf.php';
     $manager = new SessionSurfsManager(null);
     $listeSessionsSurf = $manager->getAll();
     $this->assertCount(0, $manager->getAll());
 }
예제 #2
0
function ecrireJeChercheSection()
{
    ?>
	<!-- Je cherche Section -->
	<div id="cherche" class="page">
	<div class="container">
		<!-- Title Page -->
		<div class="row">
			<div class="span12">
				<div class="title-page">
					<h2 class="title">Je cherche une session</h2>
					<h3 class="title-description">Rejoignez une équipe de glisse.</h3>
				</div>
			</div>
		</div>
		<!-- End Title Page -->

		<!-- Portfolio Projects -->
		<div class="row">
			<div class="span3">
				<!-- Filter -->
				<nav id="options" class="work-nav">
					<ul id="filters" class="option-set" data-option-key="filter">
						<li class="type-work">Les Spots</li>
						<li><a href="#filter" data-option-value="*" class="selected">Tous
								les spots</a></li>
	<?php 
    require_once "./modele/spot.php";
    $spotsManager = new SpotsManager(null);
    $spots = $spotsManager->getAll();
    foreach ($spots as $spot) {
        echo '<li><a href="#filter" data-option-value=".' . str_replace(' ', '', strtolower($spot->nomSpot())) . '">' . $spot->nomSpot() . '</a></li>';
    }
    ?>
	                    </ul>
				</nav>
				<!-- End Filter -->
			</div>

			<div class="span9">
				<div class="row">
					<section id="projects">
						<ul id="thumbs">
	                    		<?php 
    $managerSessionSurf = new SessionSurfsManager(null);
    $allSessionsSurfs = $managerSessionSurf->getAll();
    foreach ($allSessionsSurfs as $sessionsurf) {
        ecrireJeChercheItemSessionSurf($sessionsurf);
    }
    ?>
					
							</ul>
					</section>

				</div>
			</div>
		</div>
		<!-- End Portfolio Projects -->
	</div>

	</div>
	<!-- End Je cherche Section -->
<?php 
}