-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimport.php
More file actions
34 lines (26 loc) · 828 Bytes
/
Copy pathimport.php
File metadata and controls
34 lines (26 loc) · 828 Bytes
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
<?php
include_once 'library/autloader.php';
$polygonLocatioMaker = new polygonLocationMaker();
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$polygonLocatioMaker->importLocations($_POST['locations']);
}
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="library/css/main.css">
</head>
<body>
<div id="form">
<form method="post">
<p>syntax: street,lat,lng,color</p>
<textarea class="form-control" id="locations" name="locations" style="height: 350px;"></textarea><br/>
<button type="submit" name="submit">
Import
</button>
</form>
</div>
</body>
</html>