-
Notifications
You must be signed in to change notification settings - Fork 1
/
cricket.php
91 lines (84 loc) · 4.23 KB
/
cricket.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
<?php
require_once __DIR__ . "/sportsData.php";
$sport = "cricket";
$participants = findBySport($sport);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cricket</title>
<link rel="stylesheet" type="text/css" href="./public/css/sports.css" />
</head>
<body>
<div class="head">
<img src="./public/images/cricket.jpg" class="coverimg" alt="cricket" />
<form action='register_sport.php' method='POST'>
<input type='hidden' name='sport' value='cricket' />
<input type='submit' value='REGISTER'>
</form>
</div>
<div class=" navdivs">
<button class="navs selected" onclick="currentdisp(1)">About</button>
<button class="navs" onclick="currentdisp(2)">Rules & Regulations</button>
<button class="navs" onclick="currentdisp(3)">Participants</button>
</div>
<div class="items active">
<div class="content">
<p style="text-align: justify; padding:80px;">
Cricket is a bat-and-ball game played between two teams of eleven players on a
field at the centre of which is a 20-metre (22-yard) pitch with a wicket at each
end, each comprising two bails balanced on three stumps. The batting side scores
runs by striking the ball bowled at the wicket with the bat, while the bowling
and fielding side tries to prevent this and dismiss each player (so they are "out").
Means of dismissal include being bowled, when the ball hits the stumps and dislodges
the bails, and by the fielding side catching the ball after it is hit by the bat,
but before it hits the ground. When ten players have been dismissed, the innings
ends and the teams swap roles. The game is adjudicated by two umpires, aided by
a third umpire and match referee in international matches. They communicate with
two off-field scorers who record the match's statistical information.There are
various formats ranging from Twenty20, played over a few hours with each team batting
for a single innings of 20 overs, to Test matches, played over five days with unlimited
overs and the teams each batting for two innings of unlimited length. Traditionally
cricketers play in all-white kit, but in limited overs cricket they wear club or team
colours. In addition to the basic kit, some players wear protective gear to prevent injury
caused by the ball, which is a hard, solid spheroid made of compressed leather with a
slightly raised sewn seam enclosing a cork core which is layered with tightly wound string.
</p>
</div>
</div>
<div class="items">
<div class="content">
<p style="text-align: justify; padding:80px;">
1.Cricket is played between two teams each made up of eleven players. <br><br>
2.Games comprise of at least one innings where each team will take turns in batting
and fielding/bowling.<br><br>
3.The fielding team will have a bowler bowl the ball to the batsman who tries to hit
the ball with their bat.<br><br>
4.The fielding team tries to get the batsmen out by…<br><br>
a.Hitting the wickets with the ball when bowling<br>
b.Catching a batsman’s shot on the full<br>
c.Hitting the batsman’s leg in front of the wicket (LBW)<br>
d.Or hitting the wickets before the batsmen can run to the other end of the pitch
</p>
</div>
</div>
<div class="items">
<div class="content">
<table id="t01">
<tr>
<th>Email of Participant</th>
</tr>
<?php
foreach ($participants as $x) {
echo "<tr><td>" . htmlentities($x["user"]) . "</td></tr>";
}
?>
</table>
</div>
</div>
<div class="footer"></div>
<script type="text/javascript" src="./public/javascript/sports.js"></script>
</body>
</html>