forked from jknee/IXmaps
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmap.php
More file actions
117 lines (93 loc) · 3.86 KB
/
map.php
File metadata and controls
117 lines (93 loc) · 3.86 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Map | IXmaps</title>
<?php include '_includes/global-head.php'; ?>
<script src="_assets/js/tablesorter.min.js" type="text/javascript"></script>
<script src="_assets/js/jquery.ui.core.min.js" type="text/javascript" ></script>
<script src="_assets/js/jquery.ui.widget.min.js" type="text/javascript"></script>
<script src="_assets/js/jquery.ui.position.min.js" type="text/javascript" ></script>
<script src="_assets/js/jquery.ui.menu.min.js" type="text/javascript" ></script>
<script src="_assets/js/jquery.ui.autocomplete.min.js" type="text/javascript" ></script>
<script src="_assets/js/map.min.js" type="text/javascript"></script>
<script src="_assets/js/gmaps.min.js" type="text/javascript"></script>
<script src="_assets/js/search.min.js" type="text/javascript"></script>
<script src="_assets/js/layers.min.js" type="text/javascript"></script>
<script src="_assets/js/data-structures.min.js" type="text/javascript"></script>
<link href="_assets/css/jquery.toast.min.css" rel="stylesheet" />
<link href="_assets/css/jquery.ui.autocomplete.css" rel="stylesheet" />
<script>
var initMode = 0;
var trIdFilter = 0;
jQuery(document).ready(function() {
<?php
if(isset($_GET['trid'])){
?>
initMode = 1; // trId is passed to map page
trIdFilter = <?php echo $_GET['trid']; ?>
//submitCustomQuery(trIdFilter);
<?php
} else if($_GET && isset($_GET['data'])){
?>
initMode = 2; // search filters are passed to map page
var postedData = '<?php echo $_GET['data'];?>';
//processPostedData(postedData);
<?php
} else {
?>
<?php
}
?>
// !!
init();
});
</script>
</head>
<body id="map-page">
<?php include '_includes/global-navigation.php'; ?>
<!-- SEARCH AREA -->
<?php include '_includes/map-search.php'; ?>
<!-- RESULTS AREA -->
<div class="map-holder">
<!-- LOADER MASK -->
<div id="loader" style="display: none">
<div id="loader-mask"></div>
<div class="loader-image">
<img width="100px" src="_assets/img/icn-loading.gif"/>
<br/><br/>
<div id="cancel-query-div">
<button id="cancel-query" class="ui massive centered blue button">Cancel</button>
</div>
</div>
</div>
<!-- LEGEND SIDEBAR -->
<?php include '_includes/map-layers.php'; ?>
<!-- RESULTS SIDEBAR -->
<?php include '_includes/map-results.php'; ?>
<!-- GOOGLE MAPS -->
<div class="map-canvas pusher">
<div class="map-buttons-container">
<button class="ui toggle button map-settings-button">
<span>SETTINGS</span>
</button>
<br />
<button class="layers-toggle ui toggle button">
<span id="num-active-layers">0 LAYERS</span>
</button>
</div>
<div id="map"></div>
</div>
</div>
<!-- ********************************************************** -->
<!-- ************************** MODALS ************************ -->
<!-- ********************************************************** -->
<?php include '_includes/map-modal-opening.php'; ?>
<?php include '_includes/map-modal-carrier.php'; ?>
<?php include '_includes/map-modal-tr-details.php'; ?>
<?php include '_includes/map-modal-settings.php'; ?>
<?php include '_includes/map-modal-flagging.php'; ?>
<?php include '_includes/map-modal-help.php'; ?>
</body>
<?php include '_includes/global-footer.php'; ?>
</html>