-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirstaid.php
More file actions
43 lines (39 loc) · 1.44 KB
/
firstaid.php
File metadata and controls
43 lines (39 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
include_once("lib/settings/config.php");
include_once("lib/helpers/ehbo.class.php");
include_once("lib/classes/Db.class.php");
$title = "INSTRUCTIES";
try {
$video = ehbo::standardTreatment();
if(!empty($_GET['illness'])){
$videos = ehbo::getTreatment($_GET['illness']);
}
/*else if( ebho::userInRange($long, $lat)){
$video = ehbo::getTreatment(ehbo::getIllnessIdFromMelding());
}*/
}
catch(Exception $e){
}
?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<?php include("lib/includes/head.inc.php"); ?>
<title><?php echo $title ?></title>
</head>
<body>
<div class="canvas">
<?php include_once("lib/includes/nav.inc.php");
if(isset($videos)): ?>
<?php foreach($videos as $v): ?>
<iframe width="375" height="211" src="<?php echo $v->video?>" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
<?php endforeach; ?>
<?php else: ?>
<iframe width="375" height="211" src="<?php echo $video->video?>" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
<?php endif; ?>
<?php include_once("lib/includes/footer.inc.php"); ?>
</div>
</body>
</html>