-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
133 lines (117 loc) · 6.09 KB
/
index.php
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!doctype html>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<title>水歴史マップ入力ツール</title>
<!-- Bootstrap core CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<meta name="theme-color" content="#7952b3">
<style>
.bd-placeholder-img {
font-size: 1.125rem;
text-anchor: middle;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
@media (min-width: 768px) {
.bd-placeholder-img-lg {
font-size: 3.5rem;
}
}
html {
padding: 0;
margin: 0;
height: 100%
}
body {
padding-top: 56px;
margin: 0;
height: 100%
}
</style>
<script>
$(window).on('load resize', function() {
// navbarの高さを取得する
var height = $('.navbar').height();
// bodyのpaddingにnavbarの高さを設定する
$('body').css('padding-top', height);
});
</script>
<!-- Custom styles for this template -->
<!-- <link href="style.css" rel="stylesheet"> -->
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
<div class="container-fluid">
<a class="navbar-brand" href="index.php">水歴史マップデータ入力</a>
<div>
<a href="https://docs.google.com/spreadsheets/d/1jOjbaxRrez2cjwgqZjdF_eotzcqNszAHMJXpe-ZZg4Q/edit#gid=0" target="_blank" style="color: white;">スプレッドシート</a>
<a href="https://winter.ai.is.saga-u.ac.jp/map/map.html" target="_blank" style="color: white;">地図</a>
</div>
</div>
</nav>
<main class="container-fluid m-0 p-0 h-50">
<!-- マップ表示部 -->
<iframe id="map" title="map" width="100%" height="100%" src="https://winter.ai.is.saga-u.ac.jp/map/map.html">
</iframe>
<!-- フォーム表示部 -->
<div id="form" class="container-fluid m-0 p-10">
<form action="map_update.php" method="POST">
<div class="row row-cols-2">
<div class="form-floating mb-3">
<input type="input" class="form-control" id="title" name="title" required>
<label for="title" class="form-label">タイトル</label>
</div>
<div class="form-floating mb-3">
<input type="input" class="form-control" id="latlng" name="latlng" required>
<label for="latlng" class="form-label">緯度,経度(地図をクリックしてコピペ)</label>
</div>
<div class="form-floating mb-3">
<input type="input" class="form-control" id="location" name="location">
<label for="location" class="form-label">所在地</label>
</div>
<div class="form-floating mb-3">
<input type="input" class="form-control" id="disaster_type" name="disaster_type">
<label for="disaster_type" class="form-label">災害別</label>
</div>
<div class="form-floating mb-3">
<input type="input" class="form-control" id="objectives" name="objectives">
<label for="latlng" class="form-label">目的別</label>
</div>
<div class="form-floating mb-3">
<input type="input" class="form-control" id="fundation_year" name="fundation_year">
<label for="latlng" class="form-label">建立年</label>
</div>
<div class="form-floating mb-3">
<input type="input" class="form-control" id="interest" name="interest">
<label for="latlng" class="form-label">特記事項</label>
</div>
<div class="form-floating mb-3">
<input type="input" class="form-control" id="reference" name="reference" value="「佐賀県の災害歴史遺産」佐賀県防災士会 誠文堂印刷株式会社 平成27年">
<label for="latlng" class="form-label">出典</label>
</div>
<div class="form-floating mb-3">
<input type="input" class="form-control" id="keyword" name="keyword">
<label for="latlng" class="form-label">キーワード</label>
</div>
<div class="form-floating mb-3">
<input type="input" class="form-control" id="input_person" name="input_person" required>
<label for="latlng" class="form-label">入力者</label>
</div>
</div>
<!-- <input type="submit" class="btn btn-primary" value="送信"> -->
<div class="col-12">
<button type="submit" class="btn btn-primary">確認</button>
</div>
</form>
</div>
</main>
<!-- /.container -->
</body>
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
</html>