-
Notifications
You must be signed in to change notification settings - Fork 7
/
shops.php
55 lines (48 loc) · 1.62 KB
/
shops.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
<?php
$shops = array("", "Crystal Depot", "Pharmacy", "MogDonald's", "Tools", "National Hero Specials", "Mighty Hero Specials", "Chains-Breaker Specials",
"", "", "Curio Vendor Moogles");
$clock = true;
require("include/html.inc");
$loading = array("Loading", "Enslaving Tarutaru", "Praying to Altana", "Training to Selbina", "Darkstar Initiating");
if (isset($_GET['id'])) {
htmlHeader(trim($_GET['id'], "/"));
htmlDropDown(2);
echo <<<EOF
</div>
<div id="content">
EOF;
//
// Auction House
//
echo <<<EOF
<table class="tbl tbl-ahcat">
<thead><tr class="tbl-head">
EOF;
$catid = $_GET['id'];
$category = $shops[$catid];
printf(" <td id=\"shopcat\" colspan=\"4\">%s</td>", $category);
echo <<<EOF
</tr>
<tr class="tbl-subhead">
<td> </td>
<th class="left">Item <i class="fa fa-unsorted" aria-hidden="true"></i></th>
<th class="center">Price <i class="fa fa-unsorted" aria-hidden="true"></i></th>
<th class="center">Stock <i class="fa fa-unsorted" aria-hidden="true"></i></th>
</tr></thead>
<tbody id="auctions">
<tr><td colspan="4" class="center" style="padding: 4px 10px; font-size:12pt">
EOF;
printf(" <i class=\"fa fa-refresh fa-spin fa-fw\" aria-hidden=\"true\"></i> %s", $loading[array_rand($loading)]);
echo <<<EOF
</td></tr>
</tbody>
</table>
EOF;
// Footer
echo " <div id=\"toTop\"><i class=\"fa fa-caret-square-o-up\" aria-hidden=\"true\"></i></div>";
echo " </div>";
htmlFooter("shops");
} else {
include("shops-categories.php");
}
?>