Repository navigation
Expand file tree
/
Copy pathplayers.php
More file actions
1387 lines (1257 loc) · 52.2 KB
/
Copy pathplayers.php
File metadata and controls
1387 lines (1257 loc) · 52.2 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
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
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<?php
// Variables for connecting to the mySQL server
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "elitelevelprospects";
// Player id
if(isset($_GET['player']))
{
$playerId = $_GET['player'];
}
$projectionSteps = 3;
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
function Project($data, $statNames, $steps = 3) {
$slopes = array(); //array where stat name maps to average slope of stat
$projections = array();
$arraySize = count($data);
if ($arraySize >= $steps) {
// Find the average slope of the last <projectionSteps> entries
foreach($statNames as $statName)
$slopes[$statName] = 0;
$count = 0;
for($i = $arraySize - $steps; $i < $arraySize - 1; $i++) {
$count++;
$x1 = strtotime($data[$i]["date_stats_collected"]);
$x2 = strtotime($data[$i + 1]["date_stats_collected"]);
foreach($statNames as $statName) {
$y1 = $data[$i][$statName];
$y2 = $data[$i + 1][$statName];
$slopes[$statName] += ($y2-$y1)/($x2-$x1);
}
}
$i = $arraySize - 1;
$row = array();
$row["date_stats_collected"] = $data[$i]["date_stats_collected"];
$timespan = strtotime($data[$arraySize - 1]["date_stats_collected"]) - strtotime($data[$arraySize - $steps]["date_stats_collected"]);
$row2 = array();
$row2["date_stats_collected"] = date("Y-m-d", strtotime($data[$arraySize - 1]["date_stats_collected"]) + $timespan);
foreach($statNames as $statName) {
$slopes[$statName] /= $count;
$row[$statName] = $data[$i][$statName];
$row2[$statName] = $row[$statName] + $slopes[$statName] * $timespan;
}
$projections[] = $row;
$projections[] = $row2;
}
return $projections;
}
function WriteName($row) {
echo $row["first_name"] . " " . $row["last_name"];// . " (" . $row["player_id"] . ")";
}
function PlotStat($array, $xAxisName, $yAxisName) {
foreach ($array as $row) {
echo "{ x: new Date('" . $row[$xAxisName] . "'), y: " . $row[$yAxisName] . " },";
}
}
function ResultToArray($result) {
$resultArray = array();
while($row = $result->fetch_assoc()) {
$resultArray[] = $row;
}
return $resultArray;
}
?>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<meta name="description" content="">
<meta name="author" content="Jacob Nash">
<!-- Bootstrap core CSS -->
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="bootstrap/css/dropdown.css" rel="stylesheet">
<!-- Custom styles -->
<link href="commonstyles.css" rel="stylesheet" type="text/css">
<link href="players.css" rel="stylesheet" type="text/css">
<script src="tabcontent.js" type="text/javascript"></script>
<script src="bootstrap/assets/js/ie-emulation-modes-warning.js"></script>
<!-- Fonts -->
<link href='http://fonts.googleapis.com/css?family=Russo+One|Pathway+Gothic+One' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Lato|Oswald|Montserrat' rel='stylesheet' type='text/css'>
<?php
//Coach Follows
/**$query = " SELECT coach_follows.player_id, coach_follows.account_id, player_details.player_id, player_details.first_name, player_details.last_name
FROM coach_follows, player_details
WHERE coach_follows.account_id = 4 AND player_details.player_id = coach_follows.player_id
ORDER BY follows_id"; //This will need to be dynamic
$coachfollows = $conn->query($query)**/
if(isset($playerId))
{
$query = "SELECT
player_details.*,
school.*,
player_position.*, positions.*
FROM
player_details, school, player_position, positions
WHERE player_details.player_id = " . $playerId . "
AND player_details.school_id = school.school_id
AND player_position.player_id = " . $playerId . " AND positions.pos_id = player_position.pos_id";
$result = $conn->query($query);
$pedigree = $result->fetch_assoc(); // puts the first row of the table into an array
$feet = floor($pedigree["height"] / 12);
$inches = round(($pedigree["height"] / 12 - floor($pedigree["height"] / 12)) * 12);
if($pedigree["pos_id"]=="1")
{
$field = "Pitching";
}
else
{
$field = "Fielding";
}
//Batting Stats
$query = "SELECT q1.*
FROM batspeed_stats q1
LEFT OUTER JOIN batspeed_stats q2
ON (q1.player_id = q2.player_id AND q1.date_stats_collected < q2.date_stats_collected)
WHERE q2.player_id IS NULL AND q1.player_id = " . $playerId;
$result = $conn->query($query);
$batting = $result->fetch_assoc();
//Strength Stats
$query = "SELECT q1.*
FROM player_strength q1
LEFT OUTER JOIN player_strength q2
ON (q1.player_id = q2.player_id AND q1.date_stats_collected < q2.date_stats_collected)
WHERE q2.player_id IS NULL AND q1.player_id = " . $playerId;
$result = $conn->query($query);
$strength = $result->fetch_assoc();
//Fielding Stats
if($pedigree['pos_id']==1)
{
//Pitching Stats
$query = "SELECT q1.*
FROM pitcher_stats q1
LEFT OUTER JOIN pitcher_stats q2
ON (q1.player_id = q2.player_id AND q1.date_stats_collected < q2.date_stats_collected)
WHERE q2.player_id IS NULL AND q1.player_id = " . $playerId;
}
else
{
//Catching Stats
$query = "SELECT q1.*
FROM catcher_stats q1
LEFT OUTER JOIN catcher_stats q2
ON (q1.player_id = q2.player_id AND q1.date_stats_collected < q2.date_stats_collected)
WHERE q2.player_id IS NULL AND q1.player_id = " . $playerId;
$result = $conn->query($query);
$catching = $result->fetch_assoc();
if($pedigree['pos_id']>=2 && $pedigree['pos_id']<=6)
{
//Infielder Stats
$query = "SELECT q1.*
FROM infielder_stats q1
LEFT OUTER JOIN infielder_stats q2
ON (q1.player_id = q2.player_id AND q1.date_stats_collected < q2.date_stats_collected)
WHERE q2.player_id IS NULL AND q1.player_id = " . $playerId;
}
else
{
//Outfielder Stats
$query = "SELECT q1.*
FROM outfielder_stats q1
LEFT OUTER JOIN outfielder_stats q2
ON (q1.player_id = q2.player_id AND q1.date_stats_collected < q2.date_stats_collected)
WHERE q2.player_id IS NULL AND q1.player_id = " . $playerId;
}
}
$result = $conn->query($query);
$fielding = $result->fetch_assoc();
//Speed Stats
$query = "SELECT q1.*
FROM player_speed q1
LEFT OUTER JOIN player_speed q2
ON (q1.player_id = q2.player_id AND q1.date_stats_collected < q2.date_stats_collected)
WHERE q2.player_id IS NULL AND q1.player_id = " . $playerId;
$result = $conn->query($query);
$speed = $result->fetch_assoc();
//Batting Graph
$query = "SELECT *
FROM batspeed_stats
WHERE player_id = " . $playerId . "
ORDER BY date_stats_collected";
$result = $conn->query($query);
$battingGraphData = ResultToArray($result);
$batGraph = array("bat_speed", "exit_velocity");
//Pitching Graph
//if($pedigree['pos_id']==1)
{
$query = "SELECT *
FROM pitcher_stats
WHERE player_id = " . $playerId . "
ORDER BY date_stats_collected";
$result = $conn->query($query);
$pitchingGraphData = ResultToArray($result);
$pitchingGraph = array("two_seem", "four_seem","changeball","curveball","slider","knuckleball");
}
//Fielding Graph
//else
{
}
//Speed Graph
$query = "SELECT *
FROM player_speed
WHERE player_id = " . $playerId . "
ORDER BY date_stats_collected";
$result = $conn->query($query);
$speedGraphData = ResultToArray($result);
$speedGraph = array("sixty_yard_time", "onetwenty_yard_time", "vertical_leap", "shuttle_run", "reach");
}
?>
<?php if(isset($_GET['player'])) { ?>
<title>Prospect: <?php echo $pedigree["first_name"]?> <?php echo $pedigree["last_name"]?> </title>
<?php } else { ?>
<title>Prospect Lookup</title>
<?php } ?>
</head>
<body>
<?php
$allowCoaches = true;
$allowPlayers = true;
require('protected.php');
require('navbar.php');
?>
<div class="content">
<div class="bg-left">
<div class="space">
<img class="players" src="images/coach.jpg" style="border-color:#666666;">
<?php
$username = $_SESSION['username'];
?>
<h1 style="border-top:none;border-bottom:none;">
<?php echo $username; ?>
</h1>
<ul class="sidebar">
Pretend this works
<!--<?php
//$count = 1;
//while($row = $coachfollows->fetch_assoc()) { ?>
<li class="left"><?php //echo $count ?>. <img class ="sidebar" src="images/hitter.jpg"> <a href="players.php?player= <?php echo $row['player_id']?>&tempFollow=1&tempMod=0"><?php echo $row['first_name']?> <?php echo $row['last_name']?></a></li>
<?php
//$count++;
//} ?>-->
</ul>
</div>
</div>
<?php if($_GET['tempMod']==0) { ?>
<div class="main">
<div class="space" style="margin:0px;">
<div class="basesegment">
<ul class="name">
<li><?php echo $pedigree["first_name"]?> <?php echo $pedigree["last_name"]?></li>
<li class="small">Bats:<?php echo $pedigree["bats"]?> / Throws:<?php echo $pedigree["throws"]?>
<li><?php echo $pedigree["pos_name"]?></li>
<li class="small"><?php echo $pedigree["grad_year"]?></li>
<li>
<?php if(($_GET['tempMod'])==1) { ?>
<a href="players.php">Edit Stats</a>
<?php } else { ?>
<a href="players.php?player=<?php echo $playerId;?>&tempFollow=<?php echo $_GET['tempFollow'] * -1?>&tempMod=0">
<?php if($_GET['tempFollow']==1){echo "Unfollow";} else {echo "Follow";} } ?></a>
</li>
</ul>
<div class="space">
<div class="profilepicture">
<div class="space">
<img class="players" src="images/hitter.jpg">
</div>
</div>
<div class="basestatistics">
<div class="space">
<ul class="profile">
<li class="cat">Height: </li>
<li class="stat"><?php echo $feet . "'" . $inches . '"'?></li>
<li class="cat">Weight: </li>
<li class="stat"><?php echo $pedigree["weight"];?> lbs</li>
<li class="cat">Date of Birth: </li>
<li class="stat"><?php echo $pedigree["dob"];?></li>
<li class="cat">Graduating Year: </li>
<li class="stat"><?php echo $pedigree["grad_year"];?></li>
<li class="cat">School: </li>
<li class="stat"><?php echo $pedigree["name"];?></li>
<li class="cat">GPA: </li>
<li class="stat"><?php echo $pedigree["gpa"];?></li>
<li class="cat">City: </li>
<li class="stat"><?php echo $pedigree["city"];?></li>
<li class="cat">State: </li>
<li class="stat"><?php echo $pedigree["state"];?></li>
<li class="cat" style="border:none; margin:0px;">Rank: </li>
<li class="stat" style="border:none; margin:0px;">Implement This</li>
<li class="cat" style="border:none; margin:0px;">Rating: </li>
<li class="stat" style="border:none; margin:0px;">Implement This</li>
</ul>
</div>
<ul class="tabs">
<li class="four"><a href="#vids">Videos</a></li>
<li class="four"><a href="#anal">Analysis</a></li>
<li class="four"><a href="#project">Projections</a></li>
<li class="four selected"><a href="#default">Bio</a></li>
</ul>
</div>
</div>
</div>
<div class="tabcontent" style="padding:0px;margin-top:25px;">
<div id="default">
</div>
<div id="vids">
<div class="tabbedsegment">
<ul class="tabs">
<li class="three"><a href="#bat1">Hitting</a></li>
<li class="three"><a href="#ball1"><?php echo $field?></a></li>
<li class="three"><a href="#run1">Speed</a></li>
</ul>
<div class="tabcontent">
<div id="bat1">
<div class="leftbox">
<iframe width="100%" height="480" src="https://www.youtube.com/embed/wlXuqdzA1nY" frameborder="0" allowfullscreen></iframe>
</div>
<div class="rightbox">
Date Updated: <?php echo $batting["date_stats_collected"]?>
<ul class="stats">
<li class="cat">Bat Speed:</li>
<li class="stat"><?php echo $batting["bat_speed"]?> mph</li>
<li class="cat">Velocity:</li>
<li class="stat"><?php echo $batting["exit_velocity"]?> mph</li>
<li class="cat">Bench Press:</li>
<li class="stat"><?php echo $strength["bench_press"]?> lbs</li>
<li class="cat">Squat:</li>
<li class="stat"><?php echo $strength["squat"]?> lbs</li>
<li class="cat">Dead Lift:</li>
<li class="stat"><?php echo $strength["dead_lift"]?> lbs</li>
</ul>
</div>
</div>
<div id="ball1">
<div class="leftbox">
<iframe width="100%" height="480" src="https://www.youtube.com/embed/wlXuqdzA1nY" frameborder="0" allowfullscreen></iframe>
</div>
<div class="rightbox">
Date Updated: <?php echo $fielding["date_stats_collected"]?>
<?php if(($pedigree["pos_id"])==1) { ?>
<ul class="stats">
<li class="cat">Two Seem:</li>
<li class="stat"><?php echo $fielding["two_seem"]?> mph</li>
<li class="cat">Four Seem:</li>
<li class="stat"><?php echo $fielding["four_seem"]?> mph</li>
<li class="cat">Changeball:</li>
<li class="stat"><?php echo $fielding["changeball"]?> mph</li>
<li class="cat">Curveball:</li>
<li class="stat"><?php echo $fielding["curveball"]?> mph</li>
<li class="cat">Slider:</li>
<li class="stat"><?php echo $fielding["slider"]?> mph</li>
<li class="cat">Knuckleball:</li>
<li class="stat"><?php echo $fielding["knuckleball"]?> mph</li>
</ul>
<?php } else { ?>
<ul class="stats">
<li class="cat">Throwing Speed:</li>
<li class="stat"><?php echo $fielding["throwing_speed"]?> mph</li>
<li class="cat">Pop Time:</li>
<li class="stat"><?php echo $catching["pop_time"]?> seconds</li>
</ul>
<?php } ?>
</div>
</div>
<div id="run1">
<div class="leftbox">
<iframe width="100%" height="480" src="https://www.youtube.com/embed/wlXuqdzA1nY" frameborder="0" allowfullscreen></iframe>
</div>
<div class="rightbox">
Date Updated: <?php echo $speed["date_stats_collected"]?>
<ul class="stats">
<li class="cat">60 Yard Time:</li>
<li class="stat"><?php echo $speed["sixty_yard_time"]?> seconds</li>
<li class="cat">120 Yard Time:</li>
<li class="stat"><?php echo $speed["onetwenty_yard_time"]?> seconds</li>
<li class="cat">Shuttle Run:</li>
<li class="stat"><?php echo $speed["shuttle_run"]?> seconds</li>
<li class="cat">Vertical Leap:</li>
<li class="stat"><?php echo $speed["vertical_leap"]?> inches</li>
<li class="cat">Reach:</li>
<li class="stat"><?php echo $speed["reach"]?> inches</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div id="anal">
<div class="tabbedsegment">
<ul class="tabs">
<li class="three"><a href="#bat2">Hitting</a></li>
<li class="three"><a href="#ball2"><?php echo $field?></a></li>
<li class="three"><a href="#run2">Speed</a></li>
</ul>
<div class="tabcontent">
<div id="bat2">
<div class="leftbox">
<canvas id="battingGraph" width="800px" height="480px"></canvas>
</div>
<div class="rightbox">
<ul class="stats">
<li class="cat">Bat Speed:</li>
<li class="stat"style="color:#8dc8e0;"><?php echo $batting["bat_speed"]?> mph</li>
<li class="cat">Velocity:</li>
<li class="stat"style="color:#029EDC;"><?php echo $batting["exit_velocity"]?> mph</li>
<li class="cat">Bench Press:</li>
<li class="stat"><?php echo $strength["bench_press"]?> lbs</li>
<li class="cat">Squat:</li>
<li class="stat"><?php echo $strength["squat"]?> lbs</li>
<li class="cat">Dead Lift:</li>
<li class="stat"><?php echo $strength["dead_lift"]?> lbs</li>
</ul>
</div>
</div>
<div id="ball2">
<div class="leftbox">
<?php if(($pedigree["pos_id"])==1) { ?>
<canvas id="pitchingGraph" width="800px" height="480px"></canvas>
<?php } else { ?>
This is a graph - - - REPLACE ME!!!
<?php } ?>
</div>
<div class="rightbox">
<?php if(($pedigree["pos_id"])==1) { ?>
<ul class="stats">
<li class="cat">Two Seem:</li>
<li class="stat"style="color:#8dc8e0;"><?php echo $fielding["two_seem"]?> mph</li>
<li class="cat">Four Seem:</li>
<li class="stat"style="color:#029EDC;"><?php echo $fielding["four_seem"]?> mph</li>
<li class="cat">Changeball:</li>
<li class="stat"style="color:#5edee5;"><?php echo $fielding["changeball"]?> mph</li>
<li class="cat">Curveball:</li>
<li class="stat"style="color:#c9c9c9;"><?php echo $fielding["curveball"]?> mph</li>
<li class="cat">Slider:</li>
<li class="stat"style="color:#ffffff;"><?php echo $fielding["slider"]?> mph</li>
<li class="cat">Knuckleball:</li>
<li class="stat"style="color:#00bfa5;"><?php echo $fielding["knuckleball"]?> mph</li>
</ul>
<?php } else { ?>
<ul class="stats">
<li class="cat">Throwing Speed:</li>
<li class="stat"><?php echo $fielding["throwing_speed"]?> mph</li>
<li class="cat">Pop Time:</li>
<li class="stat"><?php echo $catching["pop_time"]?> seconds</li>
</ul>
<?php } ?>
</div>
</div>
<div id="run2">
<div class="leftbox">
<canvas id="speedGraph" width="800px" height="480px"></canvas>
</div>
<div class="rightbox">
<ul class="stats">
<li class="cat">60 Yard Time:</li>
<li class="stat"style="color:#8dc8e0;"><?php echo $speed["sixty_yard_time"]?> seconds</li>
<li class="cat">120 Yard Time:</li>
<li class="stat"style="color:#029EDC;"><?php echo $speed["onetwenty_yard_time"]?> seconds</li>
<li class="cat">Shuttle Run:</li>
<li class="stat"style="color:#5edee5;"><?php echo $speed["shuttle_run"]?> seconds</li>
<li class="cat">Vertical Leap:</li>
<li class="stat"><?php echo $speed["vertical_leap"]?> inches</li>
<li class="cat">Reach:</li>
<li class="stat"><?php echo $speed["reach"]?> inches</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div id="project">
<div class="tabbedsegment">
<ul class="tabs">
<li class="three"><a href="#bat3">Hitting</a></li>
<li class="three"><a href="#ball3"><?php echo $field?></a></li>
<li class="three"><a href="#run3">Speed</a></li>
</ul>
<div class="tabcontent">
<div id="bat3">
<div class="leftbox">
PROJECTIONS TO BE IMPLEMENTED
</div>
<div class="rightbox">
PROJECTIONS TO BE IMPLEMENTED
<ul class="stats">
<li class="cat">Bat Speed:</li>
<li class="stat"><?php echo $batting["bat_speed"]?> mph</li>
<li class="cat">Velocity:</li>
<li class="stat"><?php echo $batting["exit_velocity"]?> mph</li>
<li class="cat">Bench Press:</li>
<li class="stat"><?php echo $strength["bench_press"]?> lbs</li>
<li class="cat">Squat:</li>
<li class="stat"><?php echo $strength["squat"]?> lbs</li>
<li class="cat">Dead Lift:</li>
<li class="stat"><?php echo $strength["dead_lift"]?> lbs</li>
</ul>
</div>
</div>
<div id="ball3">
<div class="leftbox">
PROJECTIONS TO BE IMPLEMENTED
</div>
<div class="rightbox">
PROJECTIONS TO BE IMPLEMENTED
<?php if(($pedigree["pos_id"])==1) { ?>
<ul class="stats">
<li class="cat">Two Seem:</li>
<li class="stat"><?php echo $fielding["two_seem"]?> mph</li>
<li class="cat">Four Seem:</li>
<li class="stat"><?php echo $fielding["four_seem"]?> mph</li>
<li class="cat">Changeball:</li>
<li class="stat"><?php echo $fielding["changeball"]?> mph</li>
<li class="cat">Curveball:</li>
<li class="stat"><?php echo $fielding["curveball"]?> mph</li>
<li class="cat">Slider:</li>
<li class="stat"><?php echo $fielding["slider"]?> mph</li>
<li class="cat">Knuckleball:</li>
<li class="stat"><?php echo $fielding["knuckleball"]?> mph</li>
</ul>
<?php } else { ?>
<ul class="stats">
<li class="cat">Throwing Speed:</li>
<li class="stat"><?php echo $fielding["throwing_speed"]?> mph</li>
<li class="cat">Pop Time:</li>
<li class="stat"><?php echo $catching["pop_time"]?> seconds</li>
</ul>
<?php } ?>
</div>
</div>
<div id="run3">
<div class="leftbox">
PROJECTIONS TO BE IMPLEMENTED
</div>
<div class="rightbox">
PROJECTIONS TO BE IMPLEMENTED
<ul class="stats">
<li class="cat">60 Yard Time:</li>
<li class="stat"><?php echo $speed["sixty_yard_time"]?> seconds</li>
<li class="cat">120 Yard Time:</li>
<li class="stat"><?php echo $speed["onetwenty_yard_time"]?> seconds</li>
<li class="cat">Shuttle Run:</li>
<li class="stat"><?php echo $speed["shuttle_run"]?> seconds</li>
<li class="cat">Vertical Leap:</li>
<li class="stat"><?php echo $speed["vertical_leap"]?> inches</li>
<li class="cat">Reach:</li>
<li class="stat"><?php echo $speed["reach"]?> inches</li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<?php if($usertype == 'coach') { ?>
<div class="commentsegment">
<div class="space" style="margin:10px;">
<div class="detailBox">
<div class="titleBox">
<label>Comment Box</label>
</div>
<div class="actionBox">
<ul class="commentList">
<li>
<div class="commenterImage">
<img src="http://lorempixel.com/50/50/people/6" />
</div>
<div class="commentText">
<p class="">I saw this player in a match a few weeks ago - pretty good.</p> <span class="date sub-text">on July 5th, 2014</span>
</div>
</li>
<li>
<div class="commenterImage">
<img src="http://lorempixel.com/50/50/people/7" />
</div>
<div class="commentText">
<p class="">Has quite a bit to work on, but he is defiinitely improving. Has anyone spoken to him in person and gotten a good impression of him?</p> <span class="date sub-text">on August 5th, 2014</span>
</div>
</li>
<li>
<div class="commenterImage">
<img src="http://lorempixel.com/50/50/people/9" />
</div>
<div class="commentText">
<p class="">He has a good attitude from what I've seen.</p> <span class="date sub-text">on August 6th, 2014</span>
</div>
</li>
</ul>
<form class="form-inline" role="form">
<div class="form-group">
<input class="form-control" type="text" placeholder="Your comments" />
</div>
<div class="form-group">
<button class="btn btn-default">Add</button>
</div>
</form>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<div class="bg-right"style="height:100%;">
<div class="space"style="height:100%;">
<img class="players" src="images/logo.png" style="border:none;">
<div class="input-group">
<input type="text" class="form-control" placeholder="Search Prospects">
<span class="input-group-btn">
<button class="btn btn-default" type="button">Go!</button>
</span>
</div>
<div class="sidebarsegment" style="background:none;border:none;">
<ul class="sidebar" style="height:100%;">
<li class="dropdown" style="text-align:center;">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">2018 <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="players.php">Hitting</a></li>
<li><a href="players.php">Pitching/Fielding</a></li>
<li><a href="players.php">Speed</a></li>
</ul>
</li>
<li class="dropdown" style="text-align:center;">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">2017 <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="players.php">Hitting</a></li>
<li><a href="players.php">Pitching/Fielding</a></li>
<li><a href="players.php">Speed</a></li>
</ul>
</li>
<li class="dropdown" style="text-align:center;">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">2016 <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="players.php">Hitting</a></li>
<li><a href="players.php">Pitching/Fielding</a></li>
<li><a href="players.php">Speed</a></li>
</ul>
</li>
<li class="dropdown" style="text-align:center;">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">2015 <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="players.php">Hitting</a></li>
<li><a href="players.php">Pitching/Fielding</a></li>
<li><a href="players.php">Speed</a></li>
</ul>
</li>
</ul>
</div>
</div>
</div>
<?php } else { ?>
<div class="main">
<div class="space" style="margin:0px;">
<div class="basesegment">
<ul class="name">
<li><?php echo $pedigree["first_name"]?> <?php echo $pedigree["last_name"]?></li>
<li class="small dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Bats/Throws <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="">R/R</a></li>
<li><a href="">R/L</a></li>
<li><a href="">L/R</a></li>
<li><a href="">L/L</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Position <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="">Pitcher</a></li>
<li><a href="">Catcher</a></li>
<li><a href="">Base One</a></li>
<li><a href="">Base Two</a></li>
<li><a href="">Base Three</a></li>
<li><a href="">Shortstop</a></li>
<li><a href="">Right Field</a></li>
<li><a href="">Center Field</a></li>
<li><a href="">Left Field</a></li>
</ul>
</li>
<li class="small"><?php echo $pedigree["grad_year"]?></li>
<li>
<?php if(($_GET['tempMod'])==1) { ?>
<a href="players.php">Edit Stats</a>
<?php } else { ?>
<a href="players.php?player=<?php echo $playerId;?>&tempFollow=<?php echo $_GET['tempFollow'] * -1?>&tempMod=0">
<?php if($_GET['tempFollow']==1){echo "Unfollow";} else {echo "Follow";} } ?></a>
</li>
</ul>
<div class="space">
<div class="profilepicture">
<div class="space">
<img class="players" src="images/hitter.jpg">
</div>
</div>
<div class="basestatistics">
<div class="space">
<ul class="profile">
<li class="cat">Height: </li>
<li class="stat">
<div class="input-group">
<input type="text" class="form-control" placeholder="<?php echo $feet . "'" . $inches . '"'?>">
</div>
</li>
<li class="cat">Weight: </li>
<li class="stat">
<div class="input-group">
<input type="text" class="form-control" placeholder="<?php echo $pedigree["weight"];?> lbs">
</div>
</li>
<li class="cat">Date of Birth: </li>
<li class="stat">
<div class="input-group">
<input type="text" class="form-control" placeholder="<?php echo $pedigree["dob"];?>">
</div>
</li>
<li class="cat">Graduating Year: </li>
<li class="stat">
<div class="input-group">
<input type="text" class="form-control" placeholder="<?php echo $pedigree["grad_year"];?>">
</div>
</li>
<li class="cat">School: </li>
<li class="stat">
<div class="input-group">
<input type="text" class="form-control" placeholder="<?php echo $pedigree["name"];?>">
</div>
</li>
<li class="cat">GPA: </li>
<li class="stat">
<div class="input-group">
<input type="text" class="form-control" placeholder="<?php echo $pedigree["gpa"];?>">
</div>
</li>
<li class="cat">City: </li>
<li class="stat">
<div class="input-group">
<input type="text" class="form-control" placeholder="<?php echo $pedigree["city"];?>">
</div>
</li>
<li class="cat">State: </li>
<li class="stat">
<div class="input-group">
<input type="text" class="form-control" placeholder="<?php echo $pedigree["state"];?>">
</div>
</li>
<li class="cat" style="border:none; margin:0px;">Rank: </li>
<li class="stat" style="border:none; margin:0px;">Implement This</li>
<li class="cat" style="border:none; margin:0px;">Rating: </li>
<li class="stat" style="border:none; margin:0px;">Implement This</li>
</ul>
</div>
<ul class="tabs">
<li class="four"><a href="#vids">Videos</a></li>
<li class="four"><a href="#anal">Analysis</a></li>
<li class="four"><a href="#project">Projections</a></li>
<li class="four selected"><a href="#default">Bio</a></li>
</ul>
</div>
</div>
</div>
<div class="tabcontent" style="padding:0px;margin-top:25px;">
<div id="default">
</div>
<div id="vids">
<div class="tabbedsegment">
<ul class="tabs">
<li class="three"><a href="#bat1">Hitting</a></li>
<li class="three"><a href="#ball1"><?php echo $field?></a></li>
<li class="three"><a href="#run1">Speed</a></li>
</ul>
<div class="tabcontent">
<div id="bat1">
<div class="leftbox">
<iframe width="100%" height="480" src="https://www.youtube.com/embed/wlXuqdzA1nY" frameborder="0" allowfullscreen></iframe>
</div>
<div class="rightbox">
Date Updated: <?php echo $batting["date_stats_collected"]?>
<ul class="stats">
<li class="cat">Bat Speed:</li>
<li class="stat"><?php echo $batting["bat_speed"]?> mph</li>
<li class="cat">Velocity:</li>
<li class="stat"><?php echo $batting["exit_velocity"]?> mph</li>
<li class="cat">Bench Press:</li>
<li class="stat"><?php echo $strength["bench_press"]?> lbs</li>
<li class="cat">Squat:</li>
<li class="stat"><?php echo $strength["squat"]?> lbs</li>
<li class="cat">Dead Lift:</li>
<li class="stat"><?php echo $strength["dead_lift"]?> lbs</li>
</ul>
</div>
</div>
<div id="ball1">
<div class="leftbox">
<iframe width="100%" height="480" src="https://www.youtube.com/embed/wlXuqdzA1nY" frameborder="0" allowfullscreen></iframe>
</div>
<div class="rightbox">
Date Updated: <?php echo $fielding["date_stats_collected"]?>
<?php if(($pedigree["pos_id"])==1) { ?>
<ul class="stats">
<li class="cat">Two Seem:</li>
<li class="stat"><?php echo $fielding["two_seem"]?> mph</li>
<li class="cat">Four Seem:</li>
<li class="stat"><?php echo $fielding["four_seem"]?> mph</li>
<li class="cat">Changeball:</li>
<li class="stat"><?php echo $fielding["changeball"]?> mph</li>
<li class="cat">Curveball:</li>
<li class="stat"><?php echo $fielding["curveball"]?> mph</li>
<li class="cat">Slider:</li>
<li class="stat"><?php echo $fielding["slider"]?> mph</li>
<li class="cat">Knuckleball:</li>
<li class="stat"><?php echo $fielding["knuckleball"]?> mph</li>
</ul>
<?php } else { ?>
<ul class="stats">
<li class="cat">Throwing Speed:</li>
<li class="stat"><?php echo $fielding["throwing_speed"]?> mph</li>
<li class="cat">Pop Time:</li>
<li class="stat"><?php echo $catching["pop_time"]?> seconds</li>
</ul>
<?php } ?>
</div>
</div>
<div id="run1">
<div class="leftbox">
<iframe width="100%" height="480" src="https://www.youtube.com/embed/wlXuqdzA1nY" frameborder="0" allowfullscreen></iframe>
</div>
<div class="rightbox">
Date Updated: <?php echo $speed["date_stats_collected"]?>
<ul class="stats">
<li class="cat">60 Yard Time:</li>
<li class="stat"><?php echo $speed["sixty_yard_time"]?> seconds</li>
<li class="cat">120 Yard Time:</li>
<li class="stat"><?php echo $speed["onetwenty_yard_time"]?> seconds</li>
<li class="cat">Shuttle Run:</li>
<li class="stat"><?php echo $speed["shuttle_run"]?> seconds</li>
<li class="cat">Vertical Leap:</li>
<li class="stat"><?php echo $speed["vertical_leap"]?> inches</li>
<li class="cat">Reach:</li>
<li class="stat"><?php echo $speed["reach"]?> inches</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div id="anal">
<div class="tabbedsegment">
<ul class="tabs">
<li class="three"><a href="#bat2">Hitting</a></li>
<li class="three"><a href="#ball2"><?php echo $field?></a></li>
<li class="three"><a href="#run2">Speed</a></li>
</ul>
<div class="tabcontent">
<div id="bat2">
<div class="leftbox">
<canvas id="battingGraph" width="800px" height="480px"></canvas>
</div>
<div class="rightbox">
<ul class="stats">
<li class="cat">Bat Speed:</li>
<li class="stat"style="color:#8dc8e0;"><?php echo $batting["bat_speed"]?> mph</li>
<li class="cat">Velocity:</li>
<li class="stat"style="color:#029EDC;"><?php echo $batting["exit_velocity"]?> mph</li>
<li class="cat">Bench Press:</li>
<li class="stat"><?php echo $strength["bench_press"]?> lbs</li>
<li class="cat">Squat:</li>
<li class="stat"><?php echo $strength["squat"]?> lbs</li>
<li class="cat">Dead Lift:</li>
<li class="stat"><?php echo $strength["dead_lift"]?> lbs</li>
</ul>
</div>
</div>
<div id="ball2">
<div class="leftbox">
<?php if(($pedigree["pos_id"])==1) { ?>
<canvas id="pitchingGraph" width="800px" height="480px"></canvas>
<?php } else { ?>
This is a graph - - - REPLACE ME!!!
<?php } ?>
</div>
<div class="rightbox">
<?php if(($pedigree["pos_id"])==1) { ?>
<ul class="stats">
<li class="cat">Two Seem:</li>
<li class="stat"style="color:#8dc8e0;"><?php echo $fielding["two_seem"]?> mph</li>
<li class="cat">Four Seem:</li>
<li class="stat"style="color:#029EDC;"><?php echo $fielding["four_seem"]?> mph</li>
<li class="cat">Changeball:</li>