From: Mischa POSLAWSKY Date: Thu, 25 Nov 2021 23:58:28 +0000 (+0100) Subject: issue: reply edit of page and announce columns X-Git-Tag: v5.4^0 X-Git-Url: http://git.shiar.nl/minimedit.git/commitdiff_plain/fc1eaa7b91bd44d7939c67b1d3d8aef50af3c5db issue: reply edit of page and announce columns --- diff --git a/issue/index.php b/issue/index.php index 4f0f57f..51d1de4 100644 --- a/issue/index.php +++ b/issue/index.php @@ -21,11 +21,18 @@ if ($id and ctype_digit($id)) { )->fetch(); if (!$row) throw new Exception('Antwoordnummer niet gevonden'); - print "

{$Page->title}

\n"; printf('
', $Page->handler ); + print "

{$Page->title}

\n"; printf(''."\n", 'id', $row->id); + printf( + '' + . '' + . ''."\n

", + 'announce', $row->announced ? ' checked' : '', 'Aangekondigd' + ); + printf('

'."\n", 'page', $row->page); printf(''."\n", 'reply', htmlspecialchars($row->raw) diff --git a/upload.inc.php b/upload.inc.php index 962bedc..22db140 100644 --- a/upload.inc.php +++ b/upload.inc.php @@ -111,6 +111,9 @@ function createcomment($input, &$Issue = NULL) if (isset($input['announce'])) { $reply['announced'] = !!$input['announce']; } + if (isset($input['page'])) { + $reply['page'] = $input['page']; + } if (isset($input['id'])) { $newcomment = $input['id'];