if (isset($_REQUEST["submit_mult"]) && isset($_REQUEST["checked"]) && $_REQUEST["submit_mult"] == "remove_gmaps") { // Now check permissions to remove the selected gmap $gBitSystem->verifyPermission('p_gmap_remove'); if (!empty($_REQUEST['cancel'])) { // user cancelled - just continue on, doing nothing } elseif (empty($_REQUEST['confirm'])) { $formHash['delete'] = TRUE; $formHash['submit_mult'] = 'remove_gmaps'; foreach ($_REQUEST["checked"] as $del) { $formHash['input'][] = '<input type="hidden" name="checked[]" value="' . $del . '"/>'; } $gBitSystem->confirmDialog($formHash, array('warning' => tra('Are you sure you want to delete these gmaps?') . ' (' . tra('Count: ') . count($_REQUEST["checked"]) . ')', 'error' => tra('This cannot be undone!'))); } else { foreach ($_REQUEST["checked"] as $deleteId) { $tmpPage = new BitGmap($deleteId); if (!$tmpPage->load() || !$tmpPage->expunge()) { array_merge($errors, array_values($tmpPage->mErrors)); } } if (!empty($errors)) { $gBitSmarty->assign_by_ref('errors', $errors); } } } $gmap = new BitGmap(); $listgmaps = $gmap->getList($_REQUEST); $gBitSmarty->assign_by_ref('control', $_REQUEST["control"]); $gBitSmarty->assign_by_ref('list', $listgmaps["data"]); // add pagination info $_REQUEST['listInfo']['ihash']['content_type_guid'] = BITGMAP_CONTENT_TYPE_GUID; // getList() has now placed all the pagination information in $_REQUEST['listInfo']