-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathhealthy-choices-admin.html
executable file
·193 lines (171 loc) · 10.1 KB
/
healthy-choices-admin.html
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Welcome to Acme Fresh Delivery Foods</title>
<meta name="description" content="Welcome to Acme Fresh Foods">
<meta name="author" content="Jaspersoft">
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<!-- Google Font Arvo -->
<link href='css/fonts.css' rel='stylesheet' type='text/css'>
<!-- Custom styles for this template -->
<link href="css/acme.css" rel="stylesheet">
<!-- Core JavaScript
================================================== -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/require.js"></script>
<script type='text/javascript' src="http://localhost:8080/jasperserver-pro/client/visualize.js"></script>
<script src="js/visualizeHelper.js"></script>
<script type='text/javascript' src="js/healthy-choices.js"></script>
//Invisible form used to convert url into text for authentication
<FORM NAME="convert">
<INPUT TYPE="hidden" NAME="myurl">
</FORM>
//Get username passed from last url
<script>
var locate = window.location
document.convert.myurl.value = locate
var text = document.convert.myurl.value
function delineate(str){
theleft = str.indexOf("=") + 1;
theright = str.lastIndexOf("&");
return(str.substring(theleft, theright));
}
var username = delineate(text)
//Get password passed from last url
function delineate2(str)
{
point = str.lastIndexOf("=");
return(str.substring(point+1,str.length));
}
var password = delineate2(text)
//Menu variables
var homeurl = 'index-admin.html?u='+username+'&p='+password;
var topurl = 'top-sellers-admin.html?u='+username+'&p='+password;
var healthyurl = 'healthy-choices-admin.html?u='+username+'&p='+password;
var greenurl = 'go-green-admin.html?u='+username+'&p='+password;
var internalurl = 'internal.html?u='+username+'&p='+password;
var shippingurl = 'shipping-optimizer.html?u='+username+'&p='+password;
var adminurl = 'admin.html?u='+username+'&p='+password;
var admin2url = 'admin2.html?u='+username+'&p='+password;
var blankurl = 'blank-dashboard.html?u='+username+'&p='+password;
</script>
</head>
<body>
<div class="site-wrapper">
<div class="site-wrapper-inner">
<div class="acme-container-siteadmin">
<!-- header -->
<header>
<div class="masthead clearfix">
<div class="inner">
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a onclick="document.location= homeurl;" style="cursor: pointer;">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
Our Products <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a onclick="document.location= topurl;" style="cursor: pointer;">Top Sellers</a></li>
<li><a onclick="document.location= healthyurl;" style="cursor: pointer;">Healthy Choices</a></li>
<li><a onclick="document.location= greenurl;" style="cursor: pointer;">Go Green</a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
Admin <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li><a onclick="document.location= admin2url;" style="cursor: pointer;">Employee Payroll</a></li>
<li><a onclick="document.location= internalurl;" style="cursor: pointer;">Manager Metrics</a></li>
<li><a onclick="document.location= adminurl;" style="cursor: pointer;">Inventory Dashboard</a></li>
<li><a onclick="document.location= shippingurl;" style="cursor: pointer;">Create/View</a></li>
<li><a onclick="document.location= blankurl;" style="cursor: pointer;">New Dashboard (blank)</a></li>
</ul>
</li>
</ul>
<!-- Admin Logout link -->
<form class="navbar-form navbar-right">
<a href="index.html">Logout</a>
</form>
</div>
<!-- /.navbar-collapse -->
</div>
<!-- /.container-fluid -->
</nav>
</div>
</div>
</header>
<!-- heathy choices content -->
<a name="healthy-choices" ></a>
<article class="healthy-choices interior-article">
<div class="container-fluid">
<div class="row">
<div class="col-md-3 col-lg-3 col-xl-3 aux-col">
<img src="img/interior-header-staff.jpg" width="100%" height="220" alt="Healthy Choices" class="img-responsive" />
<div class="col-text">
<h2>Healthy Choices</h2>
<p class="lead">A new way to order your fresh produce!</p>
</div>
<img src="img/seasonal-legend/seasonal-title.jpg" width="100%" height="100" alt="Seasonal" class="img-responsive"/>
<img src="img/seasonal-legend/high-off.jpg" width="40%" height="100" style="float:left" alt="High" class="img-responsive" onmouseover="this.src='img/seasonal-legend/high-on2.jpg';" onmouseout="this.src='img/seasonal-legend/high-off.jpg';" onClick="passControls('SupplyTime', 1);"/>
<img src="img/seasonal-legend/good-off.jpg" width="40%" height="100" alt="Good" class="img-responsive" onmouseover="this.src='img/seasonal-legend/good-on2.jpg';" onmouseout="this.src='img/seasonal-legend/good-off.jpg';" onClick="passControls('SupplyTime', 2);"/>
<img src="img/seasonal-legend/limited-off.jpg" width="40%" height="100" style="float:left" alt="Limited" class="img-responsive" onmouseover="this.src='img/seasonal-legend/limited-on2.jpg';" onmouseout="this.src='img/seasonal-legend/limited-off.jpg';" onClick="passControls('SupplyTime', 3);"/>
<img src="img/seasonal-legend/none-off.jpg" width="40%" height="100" alt="None" class="img-responsive" onmouseover="this.src='img/seasonal-legend/none-on2.jpg';" onmouseout="this.src='img/seasonal-legend/none-off.jpg';" onClick="passControls('SupplyTime', 4);"/>
<img src="img/seasonal-legend/all-off.jpg" width="100%" height="100" alt="All" class="img-responsive" onmouseover="this.src='img/seasonal-legend/all-on.jpg';" onmouseout="this.src='img/seasonal-legend/all-off.jpg';" onClick="resetControls('SupplyTime');"/>
</div>
<div style="background-color:#FFF" class="col-md-9 main-col main-col-interior">
<h2 class="chart-header">Select bubbles to view individual products</h2>
<br>
<div id="healthy-choices" align="center" class="chart-container healthy-choices"></div>
<br>
<table class="data-table" border="0" cellpadding="4" style="color:black;" width="100%" class="img-responsive">
<tr>
<td height="100" width="10%" rowspan="3"></td>
<td height="100" width="30%" rowspan="3" valign="top"><span id="ImageLink"></span></td>
<td valign="bottom" width="60%" colspan="2" height="70">
<h3><b><span id="ProductNameSimple"></span></b></h3></td>
</tr>
<tr>
<td valign="middle" width="22%"><h4>Group: <b><span id="Group" style="font-family: sans-serif;"></span></b></h4></td>
<td valign="middle" width="33%"><h4>Price per Unit: <b><span id="Price" style="font-family: sans-serif;"></span></b></h4></td>
</tr>
<tr>
<td valign="top" width="22%"><h4>Availability: <b><span style="font-family: sans-serif;" id="AvailSupply"></span></b></h4></td>
<td valign="top" width="33%"><h4>Units Per Case: <b><span id="UnitsCase" style="font-family: sans-serif;"></span></b></h4></td>
</tr>
</table>
<br>
</div>
</div>
</div>
</div>
</article>
<footer>
<div class="mastfoot">
<div class="inner">
<p>© Acme Fresh Delivery Foods is not a real company, this is a demo website for <a href="http://jaspersoft.com" target="_blank">Jaspersoft</a>.</p>
</div>
</div>
</footer>
</div>
</div>
</div>