-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinsertdata.php
More file actions
65 lines (56 loc) · 2.5 KB
/
Copy pathinsertdata.php
File metadata and controls
65 lines (56 loc) · 2.5 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE html>
<html>
<head>
<title>Insert Data</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<link rel="stylesheet" href="libs/css/main.css">
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
</head>
<body>
<input id="pac-input" class="controls" type="text"
placeholder="Masukkan Nama Lokasi">
<div id="type-selector" class="controls">
<input type="radio" name="type" id="changetype-all" checked="checked">
<label for="changetype-all">All</label>
<input type="radio" name="type" id="changetype-establishment">
<label for="changetype-establishment">Establishments</label>
<input type="radio" name="type" id="changetype-address">
<label for="changetype-address">Addresses</label>
<input type="radio" name="type" id="changetype-geocode">
<label for="changetype-geocode">Geocodes</label>
</div>
<div id="map"></div>
<div class="box-right">
<h2>Insert New Data</h2>
<form action="prosesData.php" method="POST">
<p>Nama Tempat :</p>
<input type="text" name="placeName" id="placeName" placeholder="Nama Lokasi">
<p>Alamat :</p>
<textarea name="placeAddress" cols="41" rows="5" id="placeAddress" style="resize: none;" placeholder="Alamat"></textarea>
<p>Nomor Telepon :</p>
<input type="text" name="placePhone" id="placePhone" placeholder="Nomor Telepon">
<p>Koordinat Lokasi :</p>
<input type="text" name="placeCoorLat" id="placeCoorLat" placeholder="Latitude">
<input type="text" name="placeCoorLng" id="placeCoorLng" placeholder="Longitude">
<div style="clear: both;"></div>
<p>URL Photo :</p>
<input type="text" name="placePhoto" id="placePhoto" placeholder="URL Photo" readonly>
<br><br>
<input class="btn btn-block btn-info" type="submit" name="insert" value="Masukkan Data">
</form>
<br><br>
<button onclick="location.reload()" class="btn btn-success">
<i class="glyphicon glyphicon-repeat"></i>
Reload Page
</button>
<button onclick="location.href='index.php'" class="btn btn-danger">
<i class="glyphicon glyphicon-home"></i>
Homepage
</button>
</div>
<script src="libs/js/main.js"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB4bemvG0ShtqPnSCeWjwuJgYV7gYYZFSk&libraries=places&callback=initMap"
async defer></script>
</body>
</html>