Пример #1
0
        $statusStr = $tEditor->editStatement($_POST);
    } elseif ($action == "Delete Statement") {
        $statusStr = $tEditor->deleteStatement($_POST['tdsid']);
    } elseif ($action == "Submit Image Sort Edits") {
        $imgSortArr = array();
        foreach ($_REQUEST as $sortKey => $sortValue) {
            if ($sortValue && substr($sortKey, 0, 6) == "imgid-") {
                $imgSortArr[substr($sortKey, 6)] = $sortValue;
            }
        }
        $statusStr = $tEditor->editImageSort($imgSortArr);
    } elseif ($action == "Upload Image") {
        if ($tEditor->loadImage($_POST)) {
            $statusStr = 'Image uploaded successfully';
        }
        if ($tEditor->getErrorStr()) {
            $statusStr .= '<br/>' . $tEditor->getErrorStr();
        }
    }
}
?>
<html>
<head>
	<title><?php 
echo $defaultTitle . " Taxon Editor: " . $tEditor->getSciName();
?>
</title>
	<meta http-equiv="Content-Type" content="text/html; charset=<?php 
echo $charset;
?>
" />