예제 #1
0
    } elseif ($action == "Create New Collection") {
        if ($IS_ADMIN) {
            $newCollid = $collManager->submitCollAdd($_POST);
            if (is_numeric($newCollid)) {
                $statusStr = 'New collection added successfully! <br/>Click <a href="../admin/specuploadmanagement.php?collid=' . $newCollid . '&action=addprofile">here</a> to upload specimen records for this new collection.';
                header('Location: collprofiles.php?collid=' . $newCollid);
            } else {
                $statusStr = $collid;
            }
        }
    } elseif ($action == 'Link Address') {
        if (!$collManager->linkAddress($_POST['iid'])) {
            $statusStr = $collManager->getErrorStr();
        }
    } elseif (array_key_exists('removeiid', $_GET)) {
        if (!$collManager->removeAddress($_GET['removeiid'])) {
            $statusStr = $collManager->getErrorStr();
        }
    }
}
$collData = $collManager->getCollectionData(true);
?>
<html>
<head>
	<title><?php 
echo $defaultTitle . " " . ($collid ? $collData["collectionname"] : "");
?>
 Collection Profiles</title>
	<link href="../../css/base.css?<?php 
echo $CSS_VERSION;
?>