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>";
    }
Example #2
0
    echo "</section>";
    echo "<section class='row infos col-xs-12 col-sm-6 col-md-9'>";
    echo "<section class='col-xs-12'>";
    echo "<h3><span class='fa fa-download fa'></span> <a href='./curricula/{$lang}/{$doctor->curriculum}' class='link'>";
    if (strcmp($doctor->gender, 'M') == 0) {
        echo "Dr.";
    } else {
        echo "Dr. ssa";
    }
    echo " {$doctor->first_name} {$doctor->last_name}</a></h3>";
    $departments = new Departments($db);
    $departments->get_by_doctor($doctor->id);
    foreach ($departments->departments as $department) {
        echo " <span class='h5'><a class='link' href='./department.php?ID={$department->id}'>{$department->name}</a></span> |";
    }
    $ambulatories = new Ambulatories($db);
    $ambulatories->get_by_doctor($doctor->id);
    foreach ($ambulatories->ambulatories as $ambulatory) {
        echo " <span class='h5'><a class='link' href='./ambulatory.php?ID={$ambulatory->id}'>{$ambulatory->name}</a></span> |";
    }
    echo "</section>";
    echo "<section class='col-xs-12'>" . $content_extractor->get_section(strtolower($doctor->first_name . $doctor->last_name), "Download " . $doctor->last_name . "'s curriculum to know more.") . "</section>";
    echo "</section>";
    echo "</div>";
}
?>
		</div>
	</div>
	<?php 
include_once "./partials/_footer.php";
?>
</head>
<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">