<?php /* Set up error handling. */ error_reporting(E_ALL); ini_set("display_errors", 1); /* Set up the data access object for the method of capture. */ require_once "../login/config/config.php"; require_once "../classes/dao.php"; $daoMethodOfCapture = new MethodOfCapture(); /* The CRUD for the Method of Capture table. */ echo $_GET['action']; if (isset($_GET["addMOC"])) { $daoMethodOfCapture->addMethodOfCapture(isset($_GET['addMethodOfCapture']) ? $_GET['addMethodOfCapture'] : NULL); } else { 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) {