-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathInspiration.php
More file actions
274 lines (226 loc) · 8.25 KB
/
Inspiration.php
File metadata and controls
274 lines (226 loc) · 8.25 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
#!/usr/local/bin/php
<html>
<head>
<title>Inspiration</title>
<meta name="keywords" content="Next Episode, inspiration">
<meta name="description" content="Next Episode Sports Database">
<meta name="author" content="Derek Hua, Matt Weingarten, Xin He, Jesse Chau">
<meta name="copyright" content="Copyright © 2014, All Rights Reserved">
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Open+Sans|Shadows+Into+Light|Rock+Salt">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<style>
<style style="text/css">
.datagrid table { border-collapse: collapse; text-align: left; width: 100%; }
.datagrid {
font: Arial, Helvetica, sans-serif;
background: #fff; overflow: hidden; border: 10px solid #36752D;
-webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px;
}
.datagrid table td, .datagrid table th { padding: 3px 10px; }
.datagrid table thead th {background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #36752D), color-stop(1, #275420) );background:-moz-linear-gradient( center top, #36752D 5%, #275420 100% );filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#36752D', endColorstr='#275420');background-color:#36752D; color:#FFFFFF; font-size: 15px; font-weight: bold; border-left: 1px solid #36752D; } .datagrid table thead th:first-child { border: none; }.datagrid table tbody td { color: #275420; border-left: 1px solid #C6FFC2;font-size: 20px;font-weight: normal; }.datagrid table tbody .alt td { background: #DFFFDE; color: #275420; }.datagrid table tbody td:first-child { border-left: none; }.datagrid table tbody tr:last-child td { border-bottom: none; }.datagrid table tfoot td div { border-top: 1px solid #36752D;background: #DFFFDE;} .datagrid table tfoot td { padding: 0; font-size: 18px } .datagrid table tfoot td div{ padding: 2px; }.datagrid table tfoot td ul { margin: 0; padding:0; list-style: none; text-align: right; }.datagrid table tfoot li { display: inline; }.datagrid table tfoot li a { text-decoration: none; display: inline-block; padding: 2px 8px; margin: 1px;color: #FFFFFF;border: 10px solid #36752D;-webkit-border-radius: 10px; -moz-border-radius: 10px; border-radius: 10px; background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #36752D), color-stop(1, #275420) );background:-moz-linear-gradient( center top, #36752D 5%, #275420 100% );filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#36752D', endColorstr='#275420');background-color:#36752D; }.datagrid table tfoot ul.active, .datagrid table tfoot ul a:hover { text-decoration: none;border-color: #275420; color: #FFFFFF; background: none; background-color:#36752D;}div.dhtmlx_window_active, div.dhx_modal_cover_dv { position: fixed !important; }
html {overflow-y: scroll}
h1 {
font-family: 'Rock Salt', sans-serif;
font-size: 26px;
font-weight: normal;
color:#FFFFFF;
text-align: center;
text-shadow: 2px 2px #000000;
padding-bottom: 15px;
}
body {
font-size: 16px;
background-color: #F9F4E1;
background-image: url("black-gradient-background.png");
background-size: 100% 100%;
background-repeat: no-repeat;
}
.wrapper {
width: 100%;
overflow: hidden;
}
.container {
width: 100%;
margin: 0 auto;
}
.white{
color:#FFFFFF
}
.black{
color:#000000
}
.query{
background: #efefef;
background: linear-gradient(top, #efefef 0%, #bbbbbb 100%);
background: -moz-linear-gradient(top, #efefef 0%, #bbbbbb 100%);
background: -webkit-linear-gradient(top, #efefef 0%,#bbbbbb 100%);
}
.banner-img {
width: 100%;
}
.buttoncenter {
text-align:center;
font-size: 24px;
}
nav ul ul {
display: none;
}
nav ul li:hover > ul {
display: block;
}
nav ul {
background: #efefef;
background: linear-gradient(top, #efefef 0%, #bbbbbb 100%);
background: -moz-linear-gradient(top, #efefef 0%, #bbbbbb 100%);
background: -webkit-linear-gradient(top, #efefef 0%,#bbbbbb 100%);
box-shadow: 0px 0px 9px rgba(0,0,0,0.15);
padding: 0 20px;
border-radius: 10px;
list-style: none;
position: relative;
display: inline-table;
}
nav ul:after {
content: ""; clear: both; display: block;
}
nav ul li {
float: left;
}
nav ul li:hover {
background: #4b545f;
background: linear-gradient(top, #4f5964 0%, #5f6975 40%);
background: -moz-linear-gradient(top, #4f5964 0%, #5f6975 40%);
background: -webkit-linear-gradient(top, #4f5964 0%,#5f6975 40%);
}
nav ul li:hover a {
color: #fff;
}
nav ul li a {
display: block; padding: 25px 40px;
color: #757575; text-decoration: none;
}
nav ul ul {
background: #5f6975; border-radius: 0px; padding: 0;
position: absolute; top: 100%;
}
nav ul ul li {
float: none;
border-top: 1px solid #6b727c;
border-bottom: 1px solid #575f6a;
position: relative;
}
nav ul ul li a {
padding: 15px 40px;
color: #fff;
}
nav ul ul li a:hover {
background: #4b545f;
}
nav ul ul ul {
position: absolute; left: 100%; top:0;
}
hr{
border: 0;
color: #9E9E9E;
background-color: #9E9E9E;
height: 5px;
width: 100%;
text-align: left;
}
table {
width: 50%;
margin-left:auto;
margin-right:auto;
}
th {
text-align: center;
padding: 15px;
}
td {
text-align: center;
padding: 15px;
}
#summary{
display:block;
padding:0;
border:100px;
text-align:center;
font-size:18px;
}
</style>
</head>
<script type = "text/javascript">
function ajaxFunction(){
var ajaxRequest; // The variable that makes Ajax possible!
try{
// Opera 8.0+, Firefox, Safari
ajaxRequest = new XMLHttpRequest();
}catch (e){
// Internet Explorer Browsers
try{
ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
}catch (e) {
try{
ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
}catch (e){
// Something went wrong
alert("Your browser broke!");
return false;
}
}
}
// Create a function that will receive data
// sent from the server and will update
// div section in the same page.
ajaxRequest.onreadystatechange = function(){
if(ajaxRequest.readyState == 4){
var ajaxDisplay = document.getElementById('resultDiv');
ajaxDisplay.innerHTML = ajaxRequest.responseText;
}
}
// Now get the value from user and pass it to
// server script.
ajaxRequest.open("GET", "getTuples.php", true);
ajaxRequest.send(null);
}
</script>
<body background="squared_metal.png">
<div id="banner">
<div id="wrapper">
<div id="container">
<img class="banner-img" src="NESBanner.png" alt="N.A.L.A. Apparel"/>
</div>
</div>
</div>
<h1>Inspiration</h1>
<hr>
<nav class="buttoncenter">
<ul>
<li><a href="HomePage.php">Home</a></li>
<li><a href="#">Functions</a>
<ul>
<li><a href="StatsRetrievalQuery.php">Retrieve</a></li>
<li><a href="CompareQuery.php">Compare</a></li>
<li><a href="SortQuery.php">Sort</a></li>
<li><a href="StatsQuery.php">Statistical Queries</a></li>
</ul>
</li>
<li><a href="Team.php">Team</a>
</li>
<li><a href="Inspiration.php">Inspiration</a></li>
</ul>
</nav>
<div id ="summary">
<table >
<tr>
<td> <form name="myform" method="post">
<p style="color:white">The Internet contains many databases covering each sport, such as basketball-reference.com, hockey-reference.com, or baseball-reference.com. However, there are no comprehensive sports database webpages out there. Since it seems more useful for all the sports information a user could want to lie in one website rather than a bunch of different websites, we combined the stats for teams, players, and coaches from baseball, basketball, and hockey into this database. We hope you enjoy!</p>
<div id = 'buttonDiv'>
<input type= "button" class="btn btn-success" style = "color:white" value="Calculate Tuples" onclick="ajaxFunction();"></input> <!--Button-->
</form>
</td>
</tr>
</table>
</div>
<div id='resultDiv'></div>
</body></html>