Ongoing webgui work
This commit is contained in:
+2
-3
@@ -62,7 +62,7 @@ switch ($submit = form_get_action()) {
|
||||
// now really delete
|
||||
$sth = $pdo->prepare("DELETE FROM note WHERE noteid=?");
|
||||
$sth->execute([$id]);
|
||||
header_location($backlink);
|
||||
header_location($backlink, ['info' => _('Note deleted.')]);
|
||||
break;
|
||||
|
||||
default:
|
||||
@@ -111,6 +111,7 @@ foreach ($res as $row) {
|
||||
echo "<td>", $row['refid'], "</td>\n";
|
||||
echo "<td>", $row['notetype'], "</td>\n";
|
||||
echo "<td>", $row['annotation'], "</td>\n";
|
||||
form_action_buttons($g_scriptname, $row['noteid']);
|
||||
echo "</tr>\n";
|
||||
}
|
||||
|
||||
@@ -204,8 +205,6 @@ echo "</form>\n";
|
||||
elseif ($action == ACT_DELETE):
|
||||
// ========== VARIANT: delete record ==========================================
|
||||
|
||||
echo '<h2>', _('Delete Note'), "</h2>\n";
|
||||
|
||||
$sql = "SELECT notetype, annotation FROM note WHERE noteid=?";
|
||||
$sth = $pdo->prepare($sql);
|
||||
$sth->execute([$id]);
|
||||
|
||||
Reference in New Issue
Block a user