function backToForm($url, $errors) { list($msg, $fielderrs) = FieldError::listExtract($errors); $_SESSION["postVars"] = mkPostVars(); $_SESSION["pageErrors"] = $fielderrs; if (strchr($url, '?')) { header("Location: " . $url . "&msg=" . U($msg)); } else { header("Location: " . $url . "?msg=" . U($msg)); } exit; }
if (method_exists($l, 'paramDefs')) { $defs = $l->paramDefs(); } else { $defs = array(); } if (empty($defs) or isset($_REQUEST['filled'])) { $params = new Params(); $errs = $params->loadCgi_el($defs, 'lay_'); if (empty($errs)) { if (method_exists($l, 'init')) { $l->init($params); } $l->render($rpt); exit; } else { $_SESSION['postVars'] = mkPostVars(); $_SESSION['pageErrors'] = $errs; } } # Must ask for parameters $nav = "layoutparams"; $focus_form_name = "layoutparamform"; require_once "../classes/Localize.php"; $loc = new Localize(OBIB_LOCALE, 'reports'); if ($tab == 'opac') { include_once "../shared/header_opac.php"; } else { include_once "../shared/header.php"; } require "../shared/get_form_vars.php"; if (isset($_REQUEST['msg'])) {