';
echo '';
echo '';
echo '';
printf('',$entry['format']);
printf('',$ldapserver->server_id);
echo '
';
if ($entry['predefined'])
$selected_q_number = intval($entry['predefined']);
else
$selected_q_number = null;
printf('%s |
',_('Predefined Searches'));
$ss = $_SESSION[APPCONFIG]->isCommandAvailable('search', 'simple_search');
$as = $_SESSION[APPCONFIG]->isCommandAvailable('search', 'advanced_search');
if ($ss | $as) {
echo '(';
if ($ss) {
printf('%s', $ldapserver->server_id,_('Simple Search Form'));
if ($as) echo ' | ';
}
if ($as) {
printf('%s', $ldapserver->server_id,_('Advanced Search Form'));
}
echo ') |
';
}
echo ' |
';
if (! isset($_SESSION[APPCONFIG]->queries) || ! is_array($_SESSION[APPCONFIG]->queries) || count($_SESSION[APPCONFIG]->queries) == 0) {
printf('%s |
',_('No queries have been defined in config.php.'));
} else {
echo '';
printf('%s: | ',_('Select a predefined search'));
echo '';
echo '';
echo ' |
';
echo ' |
';
printf(' |
',_('Search'));
}
echo '
';
?>