-print '<li>';
-print '<form method="post" action="">';
-printf('<textarea id="%s" name="%1$s" cols=60 rows=3 placeholder="%s">%s</textarea>'."\n",
- 'reply',
- "Bericht van {$User->login}",
- ''
-);
-print '<input type="submit" value="Plaatsen" />'."\n";
-print "</form></li>\n";
+if ($User->login) {
+ print '<li>';
+ print '<form method="post" action="" enctype="multipart/form-data">';
+ if (isset($Issue) and $User->admin("edit {$Page->link}")) {
+ print '<p>';
+ printf(
+ '<label for="%s">%s:</label> '
+ . '<input id="%1$s" name="%1$s" value="%s" />'."\n",
+ 'assign',
+ $journalcol['assign'],
+ htmlspecialchars($Issue->assign ?? '')
+ );
+ printf(
+ '<input type="hidden" name="%s" value="" />' .
+ '<input type="checkbox" id="%1$s" name="%1$s" value="%s"%s />'
+ . '<label for="%1$s"> %s</label>'."\n",
+ 'status',
+ 'resolved',
+ isset($Issue->closed) ? ' checked' : '',
+ 'Gesloten'
+ );
+ print "</p>\n";
+ }
+ if (isset($Issue)) {
+ printf(
+ '<p><label for="%s">%s:</label> '
+ . '<input id="%1$s" name="%1$s" value=""%s /></p>'."\n",
+ 'image', 'Beeldmateriaal', ' type="file" accept="image/*"'
+ );
+ }
+ printf('<textarea id="%s" name="%1$s" cols=60 rows=3 placeholder="%s">%s</textarea>'."\n",
+ 'reply',
+ "Bericht van {$User->login}",
+ ''
+ );
+ print '<input type="submit" value="Plaatsen" />'."\n";
+ print "</form></li>\n";
+}