-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtable-tracker-age.php
38 lines (37 loc) · 1.5 KB
/
table-tracker-age.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
<h3>
Count: <?= count($torrents); ?>
</h3>
<table>
<thead>
<th>Info Hash</th>
<th data-sort-method="number" data-sort-default="">Name</th>
<th data-sort-method="number">Oldest</th>
<th data-sort-method="number">Newest</th>
<th data-sort-method="number">Average</th>
<th data-sort-method="number">95% Age</th>
<th>Date Oldest</th>
<th>Date Newest</th>
<th>Date Average</th>
<th>Date 95% Age</th>
</thead>
<tbody>
<?php
$now = time();
foreach($torrents as $t): ?>
<tr>
<td>
<a href="stats-hash-table.php?hash=<?= $t->infohash; ?>"><?= $t->infohash; ?></a>
</td>
<td><?= $t->name; ?></td>
<td><?= $t->oldest ?></td>
<td><?= $t->newest ?></td>
<td><?= $t->average ?></td>
<td><?= $t->percentile_age; ?></td>
<td><?= secondsToTime($now - $t->oldest ); ?></td>
<td><?= secondsToTime($now - $t->newest ); ?></td>
<td><?= secondsToTime($now - $t->average ); ?></td>
<td><?= secondsToTime($now - $t->percentile_age ); ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>