diff options
Diffstat (limited to 'views/home/index.php')
| -rw-r--r-- | views/home/index.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/views/home/index.php b/views/home/index.php new file mode 100644 index 0000000..33f123d --- /dev/null +++ b/views/home/index.php @@ -0,0 +1,38 @@ +<?php + include '../meta.php'; +?> + +<section class="highlight separate-margin"> + <h2>Explore the archives or add a new page</h2> + <form action="/sample_archive/index.php" method="POST" 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"> + <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> + +<?php end_page(); ?> + |
