$box->setLocation($location->getIndex()); $box->update(); } $box->printForm('batchmove'); } } } } } } else { if ($_GET['action'] == 'find') { $box->printFindForm(); } else { if ($_GET['action'] == 'delete') { if (isset($_GET['confirm'])) { $box->deleteBox($_GET['barcode']); } else { $barcode = $_GET['barcode']; echo "<br><center>Are you sure?<br>\n\t\t\t\t\t<a href=\"index.php?action=delete&type=box&barcode={$barcode}&confirm=yes\">Yes</a> \n\t\t\t\t\t<a href=\"index.php\">No</a>\n\t\t\t\t\t</center>"; } } else { if ($_GET['action'] == 'list') { $box->listBoxes(); } else { if ($_GET['action'] == 'view') { $box->loadEntry($_GET['barcode']); $box->printForm($_GET['action']); } else { if ($_GET['action'] == 'edit') { $box->loadEntry($_GET['barcode']); $box->printForm($_GET['action']);