-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmelding.php
More file actions
50 lines (41 loc) · 1.65 KB
/
Copy pathmelding.php
File metadata and controls
50 lines (41 loc) · 1.65 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
44
45
46
47
48
49
50
<?php
include_once("lib/settings/config.php");
$title = "MELDING";
try {
if(!empty($_POST)) {
Melding::makeMelding($_POST['long'],$_POST['lat'], $_POST['photo'], $_POST['description']);
}
}
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"); ?>
<video id="video" width="375" height="292" autoplay display="inherit" ></video>
<button id="snap">Snap Photo</button>
<canvas id="canvas" class="hidden" width="375" height="292" ></canvas>
<button id="tryAgain" class="hidden">Try again</button>
<button id="save" class="hidden">Save</button>
<form action="" method="post">
<input type="hidden" name="photo" class="photo" id="photo" value="">
<div class="description">
<label for="description" class="">Description</label>
<textarea cols="30" rows="5" class="" name="description" id="description" placeholder="uitleg"></textarea>
</div>
<input type="hidden" class="form__melding__long" name="long">
<input type="hidden" class="form__melding__lat" name="lat">
<button id="send" type="submit" name="meldingbtn">send</button>
</form>
<?php include_once("lib/includes/footer.inc.php"); ?>
</div>
</body>
</html>