コード例 #1
0
ファイル: occurattributes.php プロジェクト: Symbiota/Symbiota
if ($tidFilter) {
    $attrManager->setTidFilter($tidFilter);
}
if ($collid) {
    $attrManager->setCollid($collid);
}
$statusStr = '';
if ($isEditor) {
    if ($submitForm == 'Save and Next') {
        $stateID = $_POST['stateid'];
        $targetOccid = $_POST['targetoccid'];
        $notes = $_POST['notes'];
        if (is_array($stateID)) {
            foreach ($stateID as $id) {
                if (!$attrManager->saveAttributes($id, $targetOccid, $notes, $SYMB_UID)) {
                    $statusStr = $attrManager->getErrorStr();
                }
            }
        } else {
            $attrManager->saveAttributes($stateID, $targetOccid, $notes, $SYMB_UID);
        }
    }
    if ($submitForm == 'Set Status and Save') {
        $targetOccid = $_POST['targetoccid'];
        $stateID = $_POST['stateid'];
        $stateIdArr = array();
        if (is_array($stateID)) {
            $stateIdArr = $stateID;
        } else {
            $stateIdArr[] = $stateID;
        }