blob: 9938ddd8d6f3074658c5d72bbde57829ea8fc7cb (
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
38
39
40
41
42
43
|
<?php
include '../meta.php';
?>
<section class="highlight separate-margin">
<h2>Explore the archives or add a new page</h2>
<form action="/archive/index.php" method="GET" class="font-125 flex-row width-100 center-margin">
<input type="text" name="page_url" placeholder="Enter a URL" class="flex-expand">
<input type="submit" name="archive_page_button" value="Search">
</form>
</section>
<hr class="new-section"/>
<h1>Most popular archives</h1>
<?php foreach(Database\Webpage::mostVisited(10) as $page): ?>
<section class="card" onclick="open_archive('<?php echo $page->URL ?>')">
<section class="quickinfo">
<a href="<?php echo $page->URL ?>"><?php echo $page->URL ?></a>
<span class="float-right"><?php echo $page->Date ?></span>
</section>
<section>
<span><!-- Favicon --></span>
<span><!-- Title --></span>
</section>
<section>
<strong>Visits: <?php echo $page->Visits ?></strong>
<strong><!-- Archives count --></strong>
</section>
</section>
<?php endforeach; ?>
<h1>...</h1>
<div class="card-blank-afterspace"></div>
<script type="text/javascript">
function open_archive(url) {
window.location.href = '/archive/index.php?page_url=' + url;
}
</script>
<?php end_page(); ?>
|