Example #1
0
        $refId = $refManager->getRefId();
    } elseif ($formSubmit == 'Edit Reference') {
        if ($_POST['refGroup'] == 1) {
            $statusStr = $refManager->editBookReference($_POST);
        } elseif ($_POST['refGroup'] == 2) {
            $statusStr = $refManager->editPerReference($_POST);
        } else {
            $statusStr = $refManager->editReference($_POST);
        }
    }
}
$refGroup = 0;
$refRank = 0;
$parentChild = 0;
if ($refId) {
    $refArr = $refManager->getRefArr($refId);
    $childArr = $refManager->getChildArr($refId);
    $authArr = $refManager->getRefAuthArr($refId);
    $fieldArr = $refManager->getRefTypeFieldArr($refArr["ReferenceTypeId"]);
    $refChecklistArr = $refManager->getRefChecklistArr($refId);
    $refCollArr = $refManager->getRefCollArr($refId);
    $refOccArr = $refManager->getRefOccArr($refId);
    $refTaxaArr = $refManager->getRefTaxaArr($refId);
    if ($refArr["ReferenceTypeId"] == 3 || $refArr["ReferenceTypeId"] == 4 || $refArr["ReferenceTypeId"] == 6 || $refArr["ReferenceTypeId"] == 27) {
        $refGroup = 1;
        $parentChild = 1;
        if ($refArr["ReferenceTypeId"] == 4) {
            $refRank = 1;
        }
        if ($refArr["ReferenceTypeId"] == 3 || $refArr["ReferenceTypeId"] == 6) {
            $refRank = 2;