-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
container.php
53 lines (49 loc) · 1.89 KB
/
container.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
</head>
<body class="">
<script>
/* Keep track of the navigation bar selection */
jQuery(document).ready(function() {
jQuery(".nav.navbar-nav li:not(#googleBusiness)").click(function() {
jQuery(".nav.navbar-nav li:not(#googleBusiness)").removeClass('active');
jQuery(this).addClass('active');
})
var loc = window.location.href;
jQuery(".nav.navbar-nav li:not(#googleBusiness)").removeClass('active');
jQuery(".nav.navbar-nav li a").each(function() {
if (loc.indexOf(jQuery(this).attr("href")) != -1) {
jQuery(this).closest('li:not(#googleBusiness)').addClass("active");
}
});
});
</script>
<div role="navigation" class="navbar navbar-default navbar-static-top">
<div class="container">
<ul class="nav navbar-nav">
<li class="active"><a href="http://<?php echo $hostIP; ?>/customers.php">Customers</a></li>
</ul>
<ul class="nav navbar-nav">
<li><a href="http://<?php echo $hostIP; ?>/email.php">Email</a></li>
</ul>
<ul class="nav navbar-nav">
<li><a href="http://<?php echo $hostIP; ?>/configure.php">Configure</a></li>
</ul>
<?php
// Get the Google Business URL for the Google Business navigation button
$sql_query = "SELECT
comp_google_url
FROM company
WHERE comp_id = 1";
$stmnt = mysqli_prepare($conn, $sql_query);
mysqli_stmt_execute($stmnt);
$result_set = mysqli_stmt_get_result($stmnt);
while ($company = mysqli_fetch_assoc($result_set)) {
?>
<ul class="nav navbar-nav">
<li id="googleBusiness"><a target="_blank" href="<?php echo $company['comp_google_url']; ?>">Google Business</a></li>
</ul>
<?php } ?>
</div>
</div>
<div class="container" style="min-height:500px;">
<div class=''>
</div>