forked from cp6/DayZ-Trader-Bank-logging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtrades_table.php
34 lines (34 loc) · 1.12 KB
/
trades_table.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
<?php
require_once('class.php');
$dz = new dzTraderBankLogging();
($dz->IssetCheck('GET', 'hours')) ? $hours = $_GET['hours'] : $hours = 24;
($dz->IssetCheck('GET', 'limit')) ? $limit = $_GET['limit'] : $limit = 500;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Trades table from past <?php echo $hours; ?> hours</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="style.min.css"/>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-12">
<?php
if ($dz->mainViewSystem()) {//Is admin system in use or everyone can view
$dz->navBar('TRADE_TABLE');
$dz->mainTablePreface($hours, $limit);
$dz->recentTradeTable($hours, $limit);
$dz->footerText();
} else {
$dz->loginButtonPressed();//Login button was pressed
$dz->unAuthOutputs();//Not an admin OR login is required
}
?>
</div>
</div>
</div>
</body>
</html>