-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmap.php
53 lines (49 loc) · 2.08 KB
/
map.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
<!DOCTYPE html>
<html>
<head>
<title>イベントを君におすすめするWebサイト</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="style/style.css">
<!-- <script src="http://maps.google.com/maps/api/js?key=<?php //echo getenv('GOOGLE_MAPS_API_KEY') ?>&language=ja"></script> -->
<script src="http://maps.google.com/maps/api/js?key=AIzaSyD2SLN_jrwM5MCqTLAIcJcLkuORj5dLiPw&language=ja"></script>
</head>
<body>
<?php
require_once("module/check_date.php");
$check_date = new CheckDate();
$check_date->check_date();
if ($check_date->flg_first_exec_today) {
require_once("module/save_data.php");
$save_event_info = new SaveEventInfo();
$save_event_info->exec_scraping_py();
$save_event_info->delete_database();
$save_event_info->save();
$save_event_info->disconnect();
}
require_once("module/search.php");
$search = new SEARCH();
$search->echo_search_screen("map.php");
require_once("module/get_print_event_info.php");
$get_print_event_info = new GetEventInfoMap();
$get_print_event_info->get_event_info();
$result = $get_print_event_info->extraction_by_search();
$get_print_event_info->get_event_info_for_map();
?>
<data id="latitude" value=""></data>
<data id="altitude" value=""></data>
<div id="map"></div>
<script src="module/map.js"></script>
<script>
my_map = new MyMap("<?php echo str_replace('"', '', $get_print_event_info->str_event_info_datas)?>");
my_map.exec_map_func(draw_map);
</script>
<form method="POST" action="?">
<div class="container">
<button type="submit" formaction="index.php" class="item">ホーム</button>
<button type="submit" formaction="map.php" class="item">マップ</button>
<button type="submit" formaction="search.php" class="item">検索</button>
<button type="submit" formaction="" class="item">並び替え</button>
</div>
</form>
</body>
</html>