blob: ffbc8baebd2a735ad85779589e754ba4d043d64d (
plain) (
blame)
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
|
<section class="item">
<section>
<div>
<img src="<?= '/archives/' . $page->FaviconPath ?>" class="favicon">
<a href="<?= '/archives/' . $page->WID . '/index.php' ?>"><?= $page->URL ?></a>
<span class="float-right"><?= $page->Date ?></span>
</div>
<div class="details">
<span>Visits: <?= $page->Visits ?></span>
<iframe id="printFrame" src="<?= '/archives/' . $page->WID . '/index.php' ?>" style="display:none;"></iframe>
<span class="float-right"><?= Database\User::fromDBuid($page->RequesterUID)->Username ?></span>
</div>
</section>
<section class="global-buttons">
<form action="/list/export/index.php" method="GET">
<input type="hidden" name="wid" value="<?= $page->WID ?>">
<input type="hidden" name="title" value="<?= $page->Title ?>">
<input type="hidden" name="url" value="<?= $page->URL ?>">
<button><?php include $VIEWS_DIR . '/img/pdf-export.svg' ?></button>
</form>
<span></span>
</section>
<section name="itemButton" hidden>
<form action="/list/add" method="GET">
<input type="hidden" name="wid" value="<?= $page->WID ?>">
<button><?php include $VIEWS_DIR . '/img/add-list.svg' ?></button>
</form>
<?php if ($user !== null && $user->Role === 'Admin'): ?>
<form action="/archive/delete" method="GET">
<input type="hidden" name="wid" value="<?= $page->WID ?>">
<button><?php include $VIEWS_DIR . '/img/delete.svg' ?></button>
</form>
<?php else: ?>
<span></span>
<?php endif; ?>
</section>
</section>
|