diff --git a/admin/supervisor.php b/admin/supervisor.php index bdadebe2..edae5840 100644 --- a/admin/supervisor.php +++ b/admin/supervisor.php @@ -72,6 +72,18 @@ $operator_id = get_operator_id(); $case_id = false; if (isset($_GET['case_id'])) $case_id = bigintval($_GET['case_id']); + +if (isset($_GET['case_note_id'])) +{ + $case_note_id = bigintval($_GET['case_note_id']); + + $sql = "DELETE FROM case_note + WHERE case_id = '$case_id' + AND case_note_id = '$case_note_id'"; + + $db->Execute($sql); +} + xhtml_head(T_("Supervisor functions"),true,array("../css/table.css"),array("../js/window.js")); print "
" . T_("No notes") . "
"; else - xhtml_table($rs,array("time","firstName","note"),array(T_("Date/Time"),T_("Operator"),T_("Note"))); + xhtml_table($rs,array("time","firstName","note","link"),array(T_("Date/Time"),T_("Operator"),T_("Note"),T_("Delete"))); //add a note