-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
164 lines (117 loc) · 3.71 KB
/
index.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
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
<?php
if (array_key_exists('actor', $_GET))
include 'actor.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Monkey Divers :: BACON</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="assets/css/bootstrap.css" rel="stylesheet">
<link href="assets/css/bootstrap-responsive.css" rel="stylesheet">
<link href="assets/css/bacon.css" rel="stylesheet">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/bacon.js"></script>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="brand" href="#">Monkey Divers</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li class="active"><a href="#">Lovin' Bacon</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="container">
<div class="column span5">
<form class="span5 form-horizontal well">
<div class="control-group">
<div class="input-append">
<label class="control-label" for="inputActorButton">Actor</label>
<div class="controls">
<input type="text" id="inputActorButton" name="actor" placeholder="Bill Murray">
<button type="submit" class="btn" type="button"><i class="icon-user"></i> Go!</button>
</div>
</div>
</div>
<div class="control-group">
<div class="input-append">
<label class="control-label" for="inputDateButton">Date</label>
<div class="controls">
<input type="date" id="inputDateButton" name="date" placeholder="21/09/1950">
<button class="btn" type="button"><i class="icon-list"></i> Go!</button>
</div>
</div>
</div>
<div class="control-group">
<div class="input-append">
<label class="control-label" for="inputFilmButton">Film</label>
<div class="controls">
<input type="text" id="inputFilmButton" placeholder="Groundhog Day">
<button class="btn" type="button"><i class="icon-film"></i> Go!</button>
</div>
</div>
</div>
</form>
<hr class="span5">
<div class="row span5 well">
<div class="span5 outpust">
<h2>Output</h2>
<ul>
<?php
if (isset($data)) {
foreach ($data as $d) {
echo "<li>{$d}</li>";
}
}
?>
</ul>
</div>
</div>
</div>
<div class="column span1"></div>
<div class="column span4">
<div class="span4 well">
<div class="span3">
<h2>Actor / Actress</h2>
<p>Enter an artist name, and we'll work out which film they were in and had the most shared birthdays
with
other cast members.</p>
</div>
</div>
<div class="span4 well">
<div class="span3">
<h2>Date</h2>
<p>Enter a date, and we'll return you the film that has the most birthdays on that date (as well as a
list
of those actors)</p>
</div>
</div>
<div class="span4 well">
<div class="span3">
<h2>Film</h2>
<p>Enter a film, and we'll return you the day that the most cast birthdays fall on (as well as a list of
those actors)</p>
</div>
</div>
</div>
<footer>
<!--<hr>-->
<dl class="dl-horizontal span12">
<dt>© Monkey Divers</dt>
<dd>#monkeydivers</dd>
</dl>
</footer>
</div>
</body>
</html>