-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpitInput.php
108 lines (94 loc) · 3.15 KB
/
pitInput.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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<html>
<?php include("navbar.php");?>
<?php include("upload.php");?>
<head>
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="bootstrap-material-design-master/dist/css/ripples.min.css" rel="stylesheet">
<link href="bootstrap-material-design-master/dist/css/material-wfont.min.css" rel="stylesheet">
<script src="jquery-1.11.2.min.js"></script>
<script src="sorttable.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<style>
#overallForm {
font-size: 15px;
display: inline-block;
}
</style>
<div class="container row-offcanvas row-offcanvas-left">
<div class="well column col-lg-12 col-sm-12 col-xs-12" id="content">
<form action="" method="post" enctype="multipart/form-data">
<div class="form-group">
<b><text class="col-lg-2 control-label" >Team Number: </text></b>
<div class="col-lg-10">
<input type="text" class="form-control" id="TeamNumber" name="TeamNumber" placeholder=" ">
</div>
</div>
<div class="col-lg-2">
<b><br>Weight of Robot: </b>
</div>
<div class="col-lg-10">
<br>
<input type="text" class="form-control" id="RobotWeight" name="RobotWeight" placeholder=" ">
<br>
</div>
<div class="col-lg-2">
<b><br>How Many Batteries in the Pit: </b>
</div>
<div class="col-lg-10">
<br>
<input type="text" class="form-control" id="NumBatteries" name="NumBatteries" placeholder=" ">
<br>
</div>
<div class="col-lg-2">
<b><br>How Many Batteries Can Be Charged Simultaneously: </b>
</div>
<div class="col-lg-10">
<br>
<br>
<input type="text" class="form-control" id="BatteriesCharged" name="BatteriesCharged" placeholder=" ">
<br>
</div>
<div style="float:left; text-align: center;">
<br> <br>
<div style="float:right; padding: 5px;display: inline-block; padding-bottom: 10;" >
<u>Comments: </u><br>
<textarea placeholder="Click to add comment (Key-Rec will turn off)
This text will disappear once you begin typing.
Example Things to Comment About:
Did the robot get in the way of others?
Is the robot good at blocking shots??
What defenses are they good/bad at??
Decisions made during last few seceonds of match?
MAKE SURE ALL FIELDS ARE FILLED IN BEFORE SUBMITTING
<" rows="9" cols="50" id = "comments" class="form-control" onclick="commentOn()">
</textarea>
</div>
</div>
<div class="col-lg-12 col-sm-12 col-xs-12">
<input id="PitScouting" type="submit" class="btn btn-primary" value="Submit Data" onclick="" >
</form>
</div>
<?php
/*
$target_dir = "uploads/";
$target_file = $target_dir . basename($_FILES["fileToUpload"]["name"]);
$uploadOk = 1;
$imageFileType = pathinfo($target_file,PATHINFO_EXTENSION);
// Check if image file is a actual image or fake image
if(isset($_POST["PitScouting"])) {
$check = getimagesize($_FILES["fileToUpload"]["tmp_name"]);
if($check !== false) {
echo "File is an image - " . $check["mime"] . ".";
$uploadOk = 1;
} else {
echo "File is not an image.";
$uploadOk = 0;
}
}
*/
?>
<br>
</div>
</div>