feedback_display_size_buttons($_GET['id'], $_GET['div_id']); } else { if ($_GET['operation'] == "required") { $sql = "UPDATE " . PREFIX . "feedback SET size=2 WHERE id=" . sql_safe($_GET['id']) . ";"; mysql_query($sql); feedback_display_size_buttons($_GET['id'], $_GET['div_id']); } else { if ($_GET['operation'] == "small_improvement") { $sql = "UPDATE " . PREFIX . "feedback SET size=3 WHERE id=" . sql_safe($_GET['id']) . ";"; mysql_query($sql); feedback_display_size_buttons($_GET['id'], $_GET['div_id']); } else { if ($_GET['operation'] == "big_change") { $sql = "UPDATE " . PREFIX . "feedback SET size=4 WHERE id=" . sql_safe($_GET['id']) . ";"; mysql_query($sql); feedback_display_size_buttons($_GET['id'], $_GET['div_id']); } else { if ($_GET['operation'] == "merge" && isset($_GET['extra'])) { $sql = "UPDATE " . PREFIX . "feedback SET merged_with=" . sql_safe($_GET['extra']) . " WHERE id=" . sql_safe($_GET['id']) . ";"; mysql_query($sql); feedback_display_merge_form($_GET['id'], $_GET['div_id']); } else { if ($_GET['operation'] == "unmerge") { $sql = "UPDATE " . PREFIX . "feedback SET merged_with=NULL WHERE id=" . sql_safe($_GET['id']) . ";"; mysql_query($sql); feedback_display_merge_form($_GET['id'], $_GET['div_id']); } } } } }
function feedback_display_bottom($feedback_id, $parent_div_id, $id_expanded = NULL) { echo '<ul class="list-group">'; feedback_status_show($feedback_id, NULL, NULL, NULL, NULL, "feedback_status_" . $feedback_id, $parent_div_id, '<li class="list-group-item">', '</li>'); feedback_display_size_buttons($feedback_id, "", '<li class="list-group-item">', '</li>'); feedback_display_merge_form($feedback_id, "", '<li class="list-group-item">', '</li>'); //Attached $attached = feedback_get_attached_feedbacks($feedback_id); if ($attached) { echo '<li class="list-group-item">'; echo "<h3>" . _("Attached feedbacks") . "</h3>"; echo '<ul class="list-group">'; foreach ($attached as $a) { echo '<li class="list-group-item feedback ' . feedback_get_class($a) . '">'; // echo 'Attached'; // feedback_display_specific_headline($id, $div_id, $source_div=NULL, $expanded=FALSE, $display_user=TRUE, $div_prefix="") if ($id_expanded === $a) { feedback_display_specific_headline($a, NULL, $parent_div_id, TRUE); } else { feedback_display_specific_headline($a, NULL, $parent_div_id); } echo '</li>'; } echo '</ul>'; echo '</li>'; } echo '</ul>'; }