-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
86 lines (76 loc) · 2.78 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
<?php if(!isset($_SESSION)) session_start();
require 'config.php';?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Inventory</title>
<meta name="description" content="Inventory">
<meta name="author" content="Johnny Stenson">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" media="screen" href="style.css?v=2.0">
<link rel="stylesheet" media="print" href="print.css?v=1.0">
<script src="js/jquery-3.4.1.min.js"></script>
<script src="js/functions.js?v=2.0"></script>
</head>
<body>
<button onclick="window.scrollTo(0,0);" id="btn_top" title="Go to top">Top</button>
<div id="loading_overlay"></div>
<div id="msg"></div
<div id='top'>
<?php
if(isset($_SESSION['site_auth']) && $_SESSION['site_auth']){
echo "
<div id='logout'>
<a href='logout.php' id='btn_logout'>Logout</a>
</div>
";
}
if(isset($_SESSION['role']) && 'CREW' == $_SESSION['role']){
?>
<div id="google_translate_element"></div>
<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en'
}, 'google_translate_element');
}
</script>
<script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<?php
}
require 'site-auth.php';
if(isset($_SESSION['site_auth']) && $_SESSION['site_auth']){
?>
<br class='clear' />
<div id="menuInvItem">
<a href='#' id='btn_Menu_inv' class='btn_menuInvItem btn_menuInvItem_selected' data-type='inv'>Inventory</a>
<a href='#' id='btn_Menu_item' class='btn_menuInvItem' data-type='item'>Equipment</a>
</div>
<?php
}
?>
<div id="menu">
<?php if(isset($_SESSION['site_auth']) && $_SESSION['site_auth']) show_all_locations($mySforceConnection); ?>
</div>
<div id="menuHidden" style="display:none;">
<a id='btnShowLocationButtons' href='#'>
Change Location from<br />
<span id='location_name' style="font-weight:bold;">All Inventory</span>
</a>
<?php if(isset($_SESSION['role']) && 'MNGR' == $_SESSION['role']){ ?>
<a href='#'
id='btnShowHideOF'
class='btn_blue_outline'
data-show_hide='Show'
>
<span id='spShowHideOF'>Show</span> Fulfillment
</a>
<?php
} ?>
</div>
</div> <!-- END #top -->
<div id="display"></div>
<div id='fulfillment'></div>
</body>
</html>