%s',_('Predefined Searches')); echo '
'; echo '
'; 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; $ss = $_SESSION[APPCONFIG]->isCommandAvailable('search', 'simple_search'); $as = $_SESSION[APPCONFIG]->isCommandAvailable('search', 'advanced_search'); if ($ss | $as) { echo ''; } echo ''; if (! isset($_SESSION[APPCONFIG]->queries) || ! is_array($_SESSION[APPCONFIG]->queries) || count($_SESSION[APPCONFIG]->queries) == 0) { printf('',_('No queries have been defined in config.php.')); } else { echo ''; printf('',_('Select a predefined search')); echo ''; echo ''; printf('',_('Search')); } 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 ')
 
%s
%s:'; echo ''; echo '
 
'; ?>