-
Notifications
You must be signed in to change notification settings - Fork 1
/
hitter.view.php
40 lines (36 loc) · 1.11 KB
/
hitter.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
<?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 HitterROMMapper($myrom);
$myhitter = $mapper->get($offset);
$hitterdetails = '
Hitter:<br />
Offset: ' . $myhitter->getOffset() . '<br />
Name: ' . $myhitter->getName() . '<br />
Lineup #: ' . $myhitter->getLineupNumber() . '<br />
Type: ' . $myhitter->getType() . '<br />
Pos: ' . $myhitter->getPosition() . '<br />
Bats: ' . $myhitter->getBats() . '<br />
Avg: ' . $myhitter->getAverage() . '<br />
HR: ' . $myhitter->getHomeruns() . '<br />
Power: ' . $myhitter->getPower() . '<br />
Contact: ' . $myhitter->getContact() . '<br />
Speed: ' . $myhitter->getSpeed() . '<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>
$hitterdetails
<a href='hitter.edit.php?offset=" . $myhitter->getOffset() . "'>Edit this player</a>
</body>
</html>
";