Beispiel #1
0
    if (isset($_GET["deleteMOC"])) {
        $results = isset($_GET["moc"]) ? $_GET["moc"] : NULL;
        if ($results != NULL) {
            foreach ($results as $row) {
                $daoMethodOfCapture->deleteMethodOfCapture($row);
            }
        }
    } else {
        if (isset($_GET["editMOC"])) {
            $daoMethodOfCapture->editMethodOfCapture(isset($_GET['editMethodOfCaptureId']) ? $_GET['editMethodOfCaptureId'] : NULL);
        } else {
            if (isset($_GET["getMOC"])) {
                $results = isset($_GET["moc"]) ? $_GET["moc"] : NULL;
                if ($results != NULL) {
                    foreach ($results as $row) {
                        foreach ($daoMethodOfCapture->getMethodOfCapture($row) as $record) {
                            echo '<tr>
                       <td><input type="checkbox" class="moc" name="moc[]" value ="' . $record->MethodOfCaptureId . '"></td>
                       <td>' . $record->MethodOfCapture . '</td>
                     <tr>' . PHP_EOL;
                        }
                    }
                }
            }
        }
    }
}
if (!isset($_GET['getMOC'])) {
    // Get the amount of rows to be displayed.
    $rowCount = isset($_GET['rowCount']) ? $_GET['rowCount'] : 10;
    $recPointer = isset($_SESSION['recPointer']) ? $_SESSION['recPointer'] : 0;