$barcodes[] = $row[0]; } foreach ($barcodes as $barcode) { $the_asset = new Asset($connection); $the_asset->loadEntry($barcode); $the_asset->setCheckoutTo($connection->validate_string($_POST['checkoutTo'])); $the_asset->update(); } } else { if ($_GET['action'] == 'batchmove') { $location = new Location($connection); $location->loadEntry($_POST['location']); $barcodes = $_POST['barcodes']; foreach ($barcodes as $barcode) { $box->loadEntry($barcode); $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']);