blob: b3737f0073a0cdba4fb7928bdd8d336d5d953c02 (
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
|
<!-- TODO: Redirect when no user -->
<?php
$user = null;
$webpage = null;
try {
$user = Database\Cookie::fromDB($TOKEN);
$webpage = Database\Webpage::fromDBwid($_GET['wid']);
}
catch (Exception $e) {}
?>
<!-- TODO: Redirect when no webpage -->
<!-- TODO: Redirect when lists is empty -->
<h2>To which list do you want to add "<?= $webpage->URL ?>"?</h2>
<form action="/list" method="GET">
<input type="hidden" name="method" value="PATCH">
<select name="lid">
<?php foreach ($user->archiveLists() 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>
|