Website Summary Files Commits Branches @commit @diff @stats
path: root / views / archive / index.php
diff options
context:
space:
mode:
Commitda0952778ec9790b4409cdbbeda12dc618cfd461 (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-01-25 20:24:40 +0200
Committer
 Syndamia <kamen@syndamia.com>
2025-01-25 20:24:40 +0200
Filesc503bc4ca7d16afeb5be565ee949a454b9ef6a04 /views/archive/index.php
nowayforward_human-da0952778ec9790b4409cdbbeda12dc618cfd461.tar
nowayforward_human-da0952778ec9790b4409cdbbeda12dc618cfd461.tar.gz
nowayforward_human-da0952778ec9790b4409cdbbeda12dc618cfd461.zip
Parentdadd644a84a90ea44cc57fe2f5ed986a0e31da4e (diff)
feat(views/archive): Improve formatting and layout
1 files changed, 14 insertions, 0 deletions
-rw-r--r--views/archive/index.php14
diff --git a/views/archive/index.php b/views/archive/index.php
index d30ddf2..0b5dff6 100644
--- a/views/archive/index.php
+++ b/views/archive/index.php
@@ -6,6 +6,14 @@
<?php if ($page !== null): ?>
<iframe src="<?php echo "/archives/{$page->WID}" ?>" scrolling="no"></iframe>
+
+ <form action="/sample_archive/index.php" method="POST">
+ <input type="hidden" name="page_url" value="<?php echo $_GET["page_url"] ?>">
+ <input type="submit" value="Archive Now!">
+ </form>
+ <!-- Button to add to list -->
+ <!-- Button to delete -->
+
<h2>Archives by date:</h2>
<?php foreach (Database\Webpage::allArchives($page->URL) as $page): ?>
<section class="item">
@@ -20,6 +28,12 @@
<span class="float-right"><?php echo Database\User::fromDBuid($page->RequesterUID)->Username ?></span>
</div>
</section>
+ <?php if (false): # If user logged-in ?>
+ <section>
+ <span><!-- Add to list button --></span>
+ <span><!-- Delete (when admin) button --></span>
+ <section>
+ <?php endif; ?>
</section>
<?php endforeach; ?>