forked from the4dpatrick/FitnessManager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuser2.html
533 lines (513 loc) · 21 KB
/
user2.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
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bill Cosby | FitnessManager</title>
<link rel="stylesheet" href="css/foundation.css" />
<link rel="stylesheet" href="css/custom.css" />
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="js/vendor/modernizr.js"></script>
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script type='text/javascript'>
// this is the id of the form
$("#formoid").submit(function(event) {
/* stop form from submitting normally */
event.preventDefault();
/* get some values from elements on the page: */
var $form = $( this ),
url = $form.attr( 'action' );
/* Send the data using post */
var posting = $.post( url, { name: $('#name').val(), name2: $('#name2').val() } );
/* Put the results in a div */
posting.done(function( data ) {
alert('success');
});
});
var $showAddClientForm = false;
function display1(e){
document.getElementById("client_FirstName").defaultValue="Goofy";
console.log("display1");
$showAddClientForm = true;
document.getElementById('yourDiv').style.display = 'block';
document.getElementById('yourDiv2').style.display = 'none';
/*
if (e.checked)
document.getElementById('yourDiv').style.display = 'block';
else
document.getElementById('yourDiv').style.display = 'none';
*/
}
function display2(e){
console.log("display2");
// http://imgur.com/HILNVqB
}
</script>
</head>
<body>
<div id="yourDiv" style="display:none">
<form id="formoid" action="http://peirongli.dreamhosters.com/WiX/FitnessManager2/retrieveFromDB/addClient.php" title="" method="post">
<div>
<label class="title">First Name</label>
<input type="text" id="client_FirstName" name="FirstName" >
</div>
<div>
<label class="title">Last Name</label>
<input type="text" name="LastName" >
</div>
<div>
<label class="title">Username</label>
<input type="text" name="Username" >
</div>
<div>
<label class="title">Age</label>
<input type="text" name="Age" >
</div>
<div>
<label class="title">ImgURL</label>
<input type="text" name="ImgURL" >
</div>
<div>
<label class="title">Weight</label>
<input type="text" name="Weight1" >
</div>
<div>
<label class="title">Height</label>
<input type="text" name="Height1" >
</div>
<div>
<input type="submit" id="submitButton" name="submitButton" value="Submit">
</div>
</form>
</div>
<div class="off-canvas-wrap">
<div class="inner-wrap">
<nav class="tab-bar show-for-small-only">
<section class="left-small">
<a class="left-off-canvas-toggle menu-icon" ><span></span></a>
</section>
<section class="middle tab-bar-section">
<h1 class="title">Joe's Personal Training</h1>
</section>
</nav>
<aside class="left-off-canvas-menu">
<ul class="off-canvas-list">
<li class="has-form give-me-space">
<a href="#" class="button" onClick="display1(this)">Add client</a>
</li>
<li><label>Links</label></li>
<li><a href="#panel1a">Dashboard</a></li>
<li><a href="#panel2a">Clients</a></li>
<li><a href="#panel3a">Calculators</a></li>
<li><label>Calculators</label></li>
<li><a href="#panel2-1">BMR</a></li>
<li><a href="#panel2-2">Protein</a></li>
<li><a href="#panel2-3">BMI</a></li>
<li><a href="#panel2-4">1 Rep Max</a></li>
</ul>
</aside>
<section class="main-section">
<nav class="top-bar hide-for-small-only" data-topbar>
<ul class="title-area">
<li class="name hide-for-small">
<h1>
<a href="#">Joe's Personal Training</a>
</h1>
</li>
<li class="name-small name show-for-small-only">
<h1>
<a href="#">Joe's Personal Training</a>
</h1>
</li>
<li class="toggle-topbar menu-icon"><a href="#">Menu</a></li>
</ul>
<section class="top-bar-section">
<ul class="right">
<li class="has-form hide-for-medium-up">
<a href="#" class="button">Add client1</a>
</li>
<li class="has-dropdown hide-for-small-only">
<a href="#">Patrick Perey</a>
<ul class="dropdown">
<li><a href="#">Settings</a></li>
<li><a href="#">Logout</a></li>
</ul>
</li>
<li class="divider"></li>
<li class="has-form">
<!--- <a href="#" class="button">Add client2</a> --->
<div id="yourDiv2">
<input class="button" type="button" name="button" value="Add Client" onClick="display1(this)">
</div>
<!---
<input type="checkbox" onclick="display1(this)">Add more users</input>
--->
</li>
</ul>
<ul class="right show-for-small-only">
<li><a href="#panel1a">Dashboard</a></li>
<li><a href="#panel2a">Clients</a></li>
<li><a href="#panel3a">Calculators</a></li>
<li class="has-dropdown show-for-small-only">
<a href="#">Patrick Perey</a>
<ul class="dropdown">
<li><a href="#">Settings</a></li>
<li><a href="#">Logout</a></li>
</ul>
</li>
</ul>
</section>
</nav>
<dl id="sidebar" class="tabs vertical hide-for-small-only" data-tab>
<dd class="active entypo-chart-line"><a href="#panel1a">Dashboard</a></dd>
<dd class="entypo-users"><a href="#panel2a">Clients</a></dd>
<dd class="entypo-plus-squared"><a href="#panel3a">Calculators</a></dd>
</dl>
<div id="main-content" class="tabs-content vertical">
<div class="content active" id="panel1a">
<div class="row">
<a href="#" data-dropdown="drop" class="button button-box-shadow tiny radius dropdown">Bill Cosby</a><br>
<ul id="drop" data-dropdown-content class="f-dropdown">
<li><a href="/WiX/FitnessManager2/user1.html">Joe Schmo</a></li>
<li><a href="/WiX/FitnessManager2/index2.html">Billy Paneda</a></li>
<li><a href="#">Jane Simpson</a></li>
</ul>
<div class="row" data-equalizer>
<div class="large-3 columns panel panel-text" data-equalizer-watch>
<div class="header-container">
<h4 class="panel-header">CrossFit</h4>
</div>
Today
</div>
<div class="large-3 columns panel panel-text" data-equalizer-watch>
<div class="header-container">
<h4 class="panel-header">20 Squats</h4>
</div>
Challenge
</div>
<div class="large-3 columns panel panel-text" data-equalizer-watch>
<div class="header-container">
<h4 class="panel-header">2.3lb</h4>
</div>
Muscle-Gained
</div>
<div class="large-3 columns panel panel-text" data-equalizer-watch>
<div class="header-container">
<h4 class="panel-header">Summer's Coming</h4>
</div>
Motivation
</div>
</div>
</div>
<div class="row">
<div class="small-12 columns">
<h4 id="progress-bars">Progress Bars</h4>
<div class="progress large-6"><span class="meter" style="width: 40%"></span></div>
<div class="radius progress success large-8"><span class="meter" style="width: 80%"></span></div>
<div class="nice round progress alert large-10"><span class="meter" style="width: 30%"></span></div>
<div class="nice secondary progress"><span class="meter" style="width: 50%"></span></div>
</div>
</div>
<div class="row">
<div id="piechart" class="small-12 medium-4 columns">
</div>
<div class="small-12 medium-4 columns">
</div>
<div class="small-12 medium-4 columns">
</div>
<div class="small-12 medium-4 columns">
</div>
</div>
</div>
<div class="content" id="panel2a">
<div class="small-12 columns">
<h1>All Clients</h1>
<ul class="pagination pagination"><li class="arrow unavailable"><a href="">← Previous</a></li> <li class="current"><a href="">1</a></li> <li><a rel="next" href="/users?page=2">2</a></li> <li><a href="/users?page=3">3</a></li> <li><a href="/users?page=4">4</a></li> <li class="arrow"><a rel="next" href="/users?page=2">Next →</a></li></ul>
<table>
<thead>
<tr>
<th>User</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="/users/1">Seth Green</a></td>
</tr>
<tr>
<td><a href="/users/2">Toni Greenholt</a></td>
<td>
<a data-confirm="Are you sure you want to delete Toni Greenholt" data-method="delete" href="/users/2" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/3">Mr. Anahi Moore</a></td>
<td>
<a data-confirm="Are you sure you want to delete Mr. Anahi Moore" data-method="delete" href="/users/3" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/4">Lisandro Abernathy</a></td>
<td>
<a data-confirm="Are you sure you want to delete Lisandro Abernathy" data-method="delete" href="/users/4" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/5">Melyssa Haley</a></td>
<td>
<a data-confirm="Are you sure you want to delete Melyssa Haley" data-method="delete" href="/users/5" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/6">Kian Steuber</a></td>
<td>
<a data-confirm="Are you sure you want to delete Kian Steuber" data-method="delete" href="/users/6" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/7">Ted Durgan II</a></td>
<td>
<a data-confirm="Are you sure you want to delete Ted Durgan II" data-method="delete" href="/users/7" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/8">Raegan Larkin</a></td>
<td>
<a data-confirm="Are you sure you want to delete Raegan Larkin" data-method="delete" href="/users/8" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/9">Alexzander Harber</a></td>
<td>
<a data-confirm="Are you sure you want to delete Alexzander Harber" data-method="delete" href="/users/9" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/10">Juliana Welch</a></td>
<td>
<a data-confirm="Are you sure you want to delete Juliana Welch" data-method="delete" href="/users/10" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/11">Wellington Bashirian</a></td>
<td>
<a data-confirm="Are you sure you want to delete Wellington Bashirian" data-method="delete" href="/users/11" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/12">Julio Larson</a></td>
<td>
<a data-confirm="Are you sure you want to delete Julio Larson" data-method="delete" href="/users/12" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/13">Aisha Schulist</a></td>
<td>
<a data-confirm="Are you sure you want to delete Aisha Schulist" data-method="delete" href="/users/13" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/14">Elissa Farrell</a></td>
<td>
<a data-confirm="Are you sure you want to delete Elissa Farrell" data-method="delete" href="/users/14" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/15">Dr. Seth Fadel</a></td>
<td>
<a data-confirm="Are you sure you want to delete Dr. Seth Fadel" data-method="delete" href="/users/15" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/16">Marta Pollich</a></td>
<td>
<a data-confirm="Are you sure you want to delete Marta Pollich" data-method="delete" href="/users/16" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/17">Demond Schultz</a></td>
<td>
<a data-confirm="Are you sure you want to delete Demond Schultz" data-method="delete" href="/users/17" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/18">Antonina Schultz</a></td>
<td>
<a data-confirm="Are you sure you want to delete Antonina Schultz" data-method="delete" href="/users/18" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/19">Miss Virgie Konopelski</a></td>
<td>
<a data-confirm="Are you sure you want to delete Miss Virgie Konopelski" data-method="delete" href="/users/19" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/20">Dr. Eden Berge</a></td>
<td>
<a data-confirm="Are you sure you want to delete Dr. Eden Berge" data-method="delete" href="/users/20" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/21">Enid Larkin</a></td>
<td>
<a data-confirm="Are you sure you want to delete Enid Larkin" data-method="delete" href="/users/21" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/22">Norwood Hintz V</a></td>
<td>
<a data-confirm="Are you sure you want to delete Norwood Hintz V" data-method="delete" href="/users/22" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/23">Ariel Trantow</a></td>
<td>
<a data-confirm="Are you sure you want to delete Ariel Trantow" data-method="delete" href="/users/23" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/24">Rosemary Halvorson</a></td>
<td>
<a data-confirm="Are you sure you want to delete Rosemary Halvorson" data-method="delete" href="/users/24" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/25">Raymond Shields MD</a></td>
<td>
<a data-confirm="Are you sure you want to delete Raymond Shields MD" data-method="delete" href="/users/25" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/26">Lennie Schowalter</a></td>
<td>
<a data-confirm="Are you sure you want to delete Lennie Schowalter" data-method="delete" href="/users/26" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/27">Buck Padberg</a></td>
<td>
<a data-confirm="Are you sure you want to delete Buck Padberg" data-method="delete" href="/users/27" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/28">Mr. Evans Dickens</a></td>
<td>
<a data-confirm="Are you sure you want to delete Mr. Evans Dickens" data-method="delete" href="/users/28" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/29">Sandra Schneider</a></td>
<td>
<a data-confirm="Are you sure you want to delete Sandra Schneider" data-method="delete" href="/users/29" rel="nofollow">delete</a>
</td>
</tr>
<tr>
<td><a href="/users/30">Toney Langosh</a></td>
<td>
<a data-confirm="Are you sure you want to delete Toney Langosh" data-method="delete" href="/users/30" rel="nofollow">delete</a>
</td>
</tr>
</tbody>
</table>
<ul class="pagination pagination"><li class="arrow unavailable"><a href="">← Previous</a></li> <li class="current"><a href="">1</a></li> <li><a rel="next" href="/users?page=2">2</a></li> <li><a href="/users?page=3">3</a></li> <li><a href="/users?page=4">4</a></li> <li class="arrow"><a rel="next" href="/users?page=2">Next →</a></li></ul>
</div>
</div>
<div class="content" id="panel3a">
<div class="row">
<dl id="calc-tabs" class="tabs radius hide-for-medium-down" data-tab>
<dd class="active"><a href="#panel2-1">Basal Metabolic Rate</a></dd>
<dd><a href="#panel2-2">Protein intake</a></dd>
<dd><a href="#panel2-3">Body Mass Index</a></dd>
<dd><a href="#panel2-4">1 Rep Max</a></dd>
</dl>
<div id="calcs" class="tabs-content">
<div class="content active" id="panel2-1">
<p>Lean Body Mass</p>
<div id="lean" class="panel small-12 medium-6 medium-centered columns">
<form id="lean-form" name="protein" onsubmit="return lean();">
<label>Weight(lb):</label>
<input id="weight-lean" type="text" name="weight">
<label>Body Fat %:</label>
<input id="body-fat" type="text" name="body-fat">
<input class="button radius" type="submit" value="Calculate">
</form>
<div id="result-large" class="show-for-large-up">121lb</div>
<div id="result-medium" class="show-for-medium-only">121lb</div>
<div id="result-small" class="show-for-small-only">121lb</div>
</div>
</div>
<div class="content" id="panel2-2">
<p>Recommended Protein Intake</p>
<div id="protein" class="panel small-12 medium-6 medium-centered columns">
<form id="protein-form" name="protein" onsubmit="return protein();">
<label>Weight(lb):</label>
<input id="weight-protein" type="text" name="weight">
<input class="button radius" type="submit" value="Calculate">
</form>
<div id="result-large" class="show-for-large-up">102g</div>
<div id="result-medium" class="show-for-medium-only">102g</div>
<div id="result-small" class="show-for-small-only">102g</div>
</div>
</div>
<div class="content" id="panel2-3">
<p>Body Mass Index</p>
<div id="bmi" class="panel small-12 medium-6 medium-centered columns">
<form id="bmi-form" name="bmi" onsubmit="return bmi();">
<label>Weight(lb):</label>
<input id="weight-bmi" type="text" name="weight">
<label>Height(in):</label>
<input id="height" type="text" name="height">
<input class="button radius" type="submit" value="Calculate">
</form>
<div id="result-large" class="show-for-large-up">20.5</div>
<div id="result-medium" class="show-for-medium-only">20.5</div>
<div id="result-small" class="show-for-small-only">20.5</div>
</div>
<table>
<tbody><tr><td><b><abbr title="Body Mass Index">BMI</abbr></b></td><td><b>Classification</b></td></tr>
<tr><td>Less than 18.5</td><td>Underweight</td></tr>
<tr><td>From 18.5 to 25</td><td>Normal</td></tr>
<tr><td>Greater than 25</td><td>Overweight</td></tr>
<tr><td>Greater than 30</td><td>Obese</td></tr>
</tbody></table>
</div>
<div class="content " id="panel2-4">
<p>(Weight x 0.0333 x Reps) + Weight</p>
<div id="rep-max" class="panel small-12 medium-6 medium-centered columns">
<form id="oneRepMax" name="oneRepMax">
<label>Weight(lb):</label>
<input id="weight-rep" type="text" name="weight">
<label>Reps:</label>
<input id="reps" type="text" name="reps">
<input class="button radius" type="submit" value="Calculate">
</form>
<div id="result-large" class="show-for-large-up">N/A</div>
<div id="result-medium" class="show-for-medium-only">N/A</div>
<div id="result-small" class="show-for-small-only">N/A</div>
</div>
</div>
</div>
</div>
</div>
<div class="content" id="panel4a">
<p>Panel 4 content goes here.</p>
</div>
</div>
</section>
<a class="exit-off-canvas"></a>
</div>
</div>
<div id="fitness-manager-logo">Powered by <a href="#"><img src="images/fm-logo.png"></div>
<script src="js/vendor/jquery.js"></script>
<script src="js/foundation.min.js"></script>
<script src="js/calc.js"></script>
<script src="js/oneRepMax.js"></script>
<script src="js/prefixfree-1.0.7.js"></script>
<script src="js/piechart.js"></script>
<script src="js/line-chart.js"></script>
<script>
$(document).foundation();
</script>
</body>
</html>