// <br> --> <br /> // <b> --> <strong> // zen_db_output --> zen_db_scrub_out($x) // zen_db_input --> zen_db_scrub_in($x, true/false) // zen_db_prepare_input --> zen_db_scrub_in($x, true/false) require 'includes/application_top.php'; $action = isset($_GET['action']) ? $_GET['action'] : ''; $oID = isset($_GET['oID']) ? (int) $_GET['oID'] : false; if ($oID) { require_once DIR_WS_CLASSES . 'super_order.php'; $so = new super_order($oID); } if (zen_not_null($action)) { switch ($action) { case 'mark_completed': $so->mark_completed(); $messageStack->add_session(sprintf(SUCCESS_MARK_COMPLETED, $oID), 'success'); zen_redirect(zen_href_link(FILENAME_SUPER_ORDERS, 'action=edit&oID=' . $oID, $request_type)); break; case 'mark_cancelled': $so->mark_cancelled(); $messageStack->add_session(sprintf(WARNING_MARK_CANCELLED, $oID), 'warning'); zen_redirect(zen_href_link(FILENAME_SUPER_ORDERS, 'action=edit&oID=' . $oID, $request_type)); break; case 'reopen': $so->reopen(); $messageStack->add_session(sprintf(WARNING_ORDER_REOPEN, $oID), 'warning'); zen_redirect(zen_href_link(FILENAME_SUPER_ORDERS, 'action=edit&oID=' . $oID, $request_type)); break; case 'add_note': $oID = $_POST['oID'];