Example #1
0
<?php

include_once "./models/ambulatories.php";
$ambulatories = new Ambulatories($db);
$ambulatories->get_all();
foreach ($ambulatories->ambulatories as $ambulatory) {
    if (!$ambulatories->active) {
        continue;
    }
    echo "<div class='row ambulatory'>";
    echo "<section class='col-xs-12 col-sm-6 col-md-3' class='picture'>";
    echo "<img class='img-thumbnail img-responsive' src='./images/ambulatories/small/{$ambulatory->image}'>";
    echo "</section>";
    echo "<section class='row infos col-xs-12 col-sm-6 col-md-9'>";
    echo "<section class='col-xs-12'>";
    echo "<h3>";
    echo "<p>";
    if ($ambulatory->acronim == 'CA') {
        echo "<a href='./ambulatory.php?ID={$ambulatory->id}'>";
    }
    echo "{$ambulatory->name}";
    if ($ambulatory->acronim == 'CA') {
        echo "</a>";
    }
    echo "</p>";
    echo "</h3>";
    $doctors = new Doctors($db);
    $doctors->get_by_ambulatory($ambulatory->id);
    foreach ($doctors->doctors as $doctor) {
        echo " <span class='link h5'><a href='./team.php#{$doctor->first_name}{$doctor->last_name}'>{$doctor->first_name} {$doctor->last_name} |</a></span>";
    }
<body>
	<?php 
echo "<div id='header_bg_image' data-image='{$ambulatory->image}'>";
include_once "./partials/_navbar.php";
echo "</div>";
?>
	<div class="container page_section">
		<div class="row title_box">
			<div class="col-xs-12">
				<h3 class="text_stand_out text-center"><span class="fa fa-arrow-circle-o-left fa-lg scroll_arrow left_scroll_arrow" data-id="#dep-scroll"></span>Ambulatori<span class=" fa fa-arrow-circle-o-right fa-lg scroll_arrow right_scroll_arrow" data-id="#dep-scroll"></span></h3>
			</div>
		</div>
		<div class="row h_scroll" id="dep-scroll">
			<?php 
$all_amb = new Ambulatories($db);
$all_amb->get_all();
foreach ($all_amb->ambulatories as $one_a) {
    if (!$one_a->active) {
        continue;
    }
    echo "<section class='col-xs-6 col-sm-3 h_scroll_box h_scroll_box'>";
    echo "<img class='img-thumbnail img-responsive' src='./images/ambulatories/small/{$one_a->image}'>";
    echo "<h5 class='text-capitalize h_scroll_text'><a href='./ambulatory.php?ID={$one_a->id}' class='link'>{$one_a->name}</a></h5>";
    echo "</section>";
}
?>
		</div>
	</div>
	<div class="container page_section">
		<div class="row">
			<section class="ambulatory_description col-xs-12">