$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'] $gBitSmarty->assign_by_ref('listInfo', $_REQUEST['listInfo']); // Display the template $gBitSystem->display('bitpackage:gmap/list_gmaps.tpl', tra('Map'), array('display_mode' => 'list')); } else { $gBitSystem->display('bitpackage:gmap/error_nokey.tpl', tra('Map'), array('display_mode' => 'list')); }