printTrail('view'); $misc->printTabs('view','select'); $misc->printMsg($msg); $attrs = $data->getTableAttributes($_REQUEST['view']); echo "
\n"; } else { if (!isset($_POST['show'])) $_POST['show'] = array(); if (!isset($_POST['values'])) $_POST['values'] = array(); if (!isset($_POST['nulls'])) $_POST['nulls'] = array(); // Verify that they haven't supplied a value for unary operators foreach ($_POST['ops'] as $k => $v) { if ($data->selectOps[$v] == 'p' && $_POST['values'][$k] != '') { doSelectRows(true, $lang['strselectunary']); return; } } if (sizeof($_POST['show']) == 0) doSelectRows(true, $lang['strselectneedscol']); else { // Generate query SQL $query = $data->getSelectSQL($_REQUEST['view'], array_keys($_POST['show']), $_POST['values'], $_POST['ops']); $_REQUEST['query'] = $query; $_REQUEST['return'] = "schema"; $_no_output = true; include('./display.php'); exit; } } } /** * Show confirmation of drop and perform actual drop */ function doDrop($confirm) { global $data, $misc; global $lang, $_reload_browser; if (empty($_REQUEST['view']) && empty($_REQUEST['ma'])) { doDefault($lang['strspecifyviewtodrop']); exit(); } if ($confirm) { $misc->printTrail('view'); $misc->printTitle($lang['strdrop'],'pg.view.drop'); echo "\n"; } else { if (is_array($_POST['view'])) { $msg = ''; $status = $data->beginTransaction(); if ($status == 0) { foreach($_POST['view'] as $s) { $status = $data->dropView($s, isset($_POST['cascade'])); if ($status == 0) $msg.= sprintf('%s: %s