-
Notifications
You must be signed in to change notification settings - Fork 1
/
pitcher.view.php
43 lines (38 loc) · 1.26 KB
/
pitcher.view.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
<?php
namespace Pmeth\RBI;
include('bootstrap.php');
if(empty($_GET['offset'])) {
die("Sorry, invalid offset. <a href='index.php'>Return to Home</a>");
}
$offset = $_GET['offset'];
$mapper = new PitcherROMMapper($myrom);
$mypitcher = $mapper->get($offset);
$pitcherdetails = '
Pitcher:<br />
Offset ' . $mypitcher->getOffset() . '<br />
Name: ' . $mypitcher->getName() . '<br />
Lineup #: ' . $mypitcher->getLineupNumber() . '<br />
Type: ' . $mypitcher->getType() . '<br />
ERA: ' . $mypitcher->getEra() . '<br />
Throws: ' . $mypitcher->getThrows() . '<br />
Sink Spd: ' . $mypitcher->getSinkerspeed() . '<br />
Curv Spd: ' . $mypitcher->getCurvespeed() . '<br />
Fast Spd: ' . $mypitcher->getFastballspeed() . '<br />
Curv Left: ' . $mypitcher->getCurveleft() . '<br />
Curv Rt: ' . $mypitcher->getCurveright() . '<br />
Stamina: ' . $mypitcher->getStamina() . '<br />
Sink: ' . $mypitcher->getSink() . '<br />
';
echo "<!DOCTYPE html>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
<title></title>
</head>
<body>
<div class='menu'><a href='player.list.php'>Return to List</a></div>
$pitcherdetails
<a href='pitcher.edit.php?offset=" . $mypitcher->getOffset() . "'>Edit this player</a>
</body>
</html>
";