コード例 #1
0
         }
     }
 } elseif ($action == "Submit Image Edits") {
     $statusStr = $occManager->editImage($_POST);
     $tabTarget = 2;
 } elseif ($action == "Submit New Image") {
     if ($occManager->addImage($_POST)) {
         $statusStr = 'Image added successfully';
         $tabTarget = 2;
     }
     if ($occManager->getErrorStr()) {
         $statusStr .= $occManager->getErrorStr();
     }
 } elseif ($action == "Delete Image") {
     $removeImg = array_key_exists("removeimg", $_POST) ? $_POST["removeimg"] : 0;
     if ($occManager->deleteImage($_POST["imgid"], $removeImg)) {
         $statusStr = 'Image deleted successfully';
         $tabTarget = 2;
     } else {
         $statusStr = $occManager->getErrorStr();
     }
 } elseif ($action == "Remap Image") {
     $statusStr = $occManager->remapImage($_POST["imgid"], $_POST["occid"]);
 } elseif ($action == "Apply Determination") {
     $makeCurrent = 0;
     if (array_key_exists('makecurrent', $_POST)) {
         $makeCurrent = 1;
     }
     $statusStr = $occManager->applyDetermination($_POST['detid'], $makeCurrent);
     $tabTarget = 1;
 } elseif ($action == "Make Determination Current") {