예제 #1
0
            $loanType = 'exchange';
        } elseif ($formSubmit == 'Save Outgoing') {
            $statusStr = $loanManager->editLoanOut($_POST);
            $loanType = 'out';
        } elseif ($formSubmit == 'Delete Loan') {
            $status = $loanManager->deleteLoan($loanId);
            if ($status) {
                $loanId = 0;
            }
        } elseif ($formSubmit == 'Delete Exchange') {
            $status = $loanManager->deleteExchange($exchangeId);
            if ($status) {
                $exchangeId = 0;
            }
        } elseif ($formSubmit == 'Save Incoming') {
            $statusStr = $loanManager->editLoanIn($_POST);
            $loanType = 'in';
        } elseif ($formSubmit == 'Perform Action') {
            $statusStr = $loanManager->editSpecimen($_REQUEST);
        } elseif ($formSubmit == 'Add New Determinations') {
            include_once $serverRoot . '/classes/OccurrenceEditorManager.php';
            $occManager = new OccurrenceEditorDeterminations();
            $occidArr = $_REQUEST['occid'];
            foreach ($occidArr as $k) {
                $occManager->setOccId($k);
                $occManager->addDetermination($_REQUEST, $isEditor);
            }
        }
    }
}
$loanOutList = $loanManager->getLoanOutList($searchTerm, $displayAll);