aboutsummaryrefslogtreecommitdiff
path: root/views/list/update/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/list/update/index.php')
-rw-r--r--views/list/update/index.php44
1 files changed, 0 insertions, 44 deletions
diff --git a/views/list/update/index.php b/views/list/update/index.php
deleted file mode 100644
index 5366110..0000000
--- a/views/list/update/index.php
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
- require_login();
-
- $webpage = null;
- $list = null;
-
- try {
- $list = Database\Cookie::fromDB($TOKEN)->archiveLists();
- $webpage = Database\Webpage::fromDBwid($_GET['wid']);
- }
- catch (Exception $e) {}
-?>
-
-<?php if ($webpage !== null && $list !== null): ?>
- <h2>
- To which list do you want to add</br>
- <?= $webpage->URL ?></br>
- from</br>
- <?= $webpage->Date ?>?
- </h2>
-
- <form action="/list" method="GET" class="font-125 flex-row width-100 center-margin">
- <input type="hidden" name="method" value="PATCH">
- <select name="lid" class="flex-expand">
- <?php foreach ($list as $list): ?>
- <option value="<?= $list->LID ?>"><?= $list->Name ?></option>
- <?php endforeach; ?>
- </select>
- <input type="hidden" name="type" value="add">
- <input type="hidden" name="wid" value="<?= $_GET['wid'] ?>">
- <input type="submit" value="Select">
- </form>
-
-<?php elseif ($webpage === null): ?>
- <h2>No page with identifier <?= $_GET['wid'] ?> exists!</h2>
-
-<?php else: ?>
- <h2>You have no lists!</h2>
-
- <form action="/list/new" method="GET">
- <input type="submit" value="Create a new list">
- </form>
-
-<?php endif; ?>