errors(true) ?: array() as $message) echo sprintf('
%s
', Format::htmlchars($message)); // Current search fields. $info = $search->getSearchFields($form) ?: array(); if (($search instanceof SavedQueue) && !$search->checkOwnership($thisstaff)) { $matches = $search->getSupplementalMatches(); // Uneditable core criteria for the queue echo '
'. nl2br(Format::htmlchars($search->describeCriteria())). '

'; // Show any supplemental filters if ($matches) { ?>
 
getSupportedMatches(); } foreach (array_keys($info) as $F) { ?>errors(); $inbody = false; $already_listed = []; $first_field = true; foreach ($form->getFields() as $name=>$field) { @list($name, $sub) = explode('+', $field->get('name'), 2); $already_listed[$name] = 1; if ($sub === 'search') { if (!$first_field) { echo ''; } echo '
'; $inbody = false; $first_field = false; } elseif (!$first_field && !$inbody) { echo sprintf('
', !$has_errors && isset($info[$name]) && $info[$name]['active'] ? 'hidden' : ''); $inbody = true; } ?>
isVisible()) $class[] = "hidden"; if ($sub === 'method') $class[] = "adv-search-method"; elseif ($sub === 'search') $class[] = "adv-search-field"; elseif ($field->get('__searchval__')) $class[] = "adv-search-val"; if ($class) echo 'class="'.implode(' ', $class).'"'; ?>> render(); ?> describeField($info[$name]); ?> errors() as $E) { ?>
'; if ($matches && is_array($matches)) { ?>