phpldapadmin/search_form_simple.php

67 lines
2.1 KiB
PHP
Raw Normal View History

2009-06-30 09:22:30 +00:00
<?php
2009-06-30 09:29:51 +00:00
// $Header: /cvsroot/phpldapadmin/phpldapadmin/search_form_simple.php,v 1.14 2005/07/16 03:13:54 wurley Exp $
/**
* @package phpLDAPadmin
*/
?>
<script language="javascript">
2009-06-30 09:22:30 +00:00
function focus_filter() {
document.simple_search_form.filter.focus();
}
</script>
<form action="search.php" method="get" class="search" name="simple_search_form">
2009-06-30 08:05:37 +00:00
<input type="hidden" name="search" value="true" />
<input type="hidden" name="form" value="simple" />
<input type="hidden" name="scope" value="sub" />
2009-06-30 09:22:30 +00:00
<input type="hidden" name="format" value="<?php echo $format; ?>" />
2009-06-30 08:05:37 +00:00
<table>
2009-06-30 09:29:51 +00:00
<tr>
<td>
<center><b><?php echo $lang['simple_search_form_str']; ?></b><br />
<small>(<a href="search.php?server_id=<?php echo $ldapserver->server_id; ?>&amp;form=advanced"><?php echo $lang['advanced_search_form_str']; ?></a> |
<a href="search.php?server_id=<?php echo $ldapserver->server_id; ?>&amp;form=predefined"><?php echo $lang['predefined_searches']; ?></a>)</small><br />
</center>
<br />
<small><?php echo $lang['server']; ?></small><br /> <?php echo $server_menu_html; ?><br />
<br />
<small><?php echo $lang['search_for_entries_whose']; ?></small><br />
<nobr>
<select name="attribute">
<?php foreach( $config->GetValue('search','attributes') as $id => $attribute ) { ?>
<option value="<?php echo rawurlencode( $attribute ); ?>"<?php echo $attribute==$attr?' selected="true"':''; ?>>
<?php echo htmlspecialchars(show_friendly_attribute($attribute)); ?>
</option>
<?php } ?>
</select>
<select name="criterion">
<?php
foreach( $config->GetValue('search','criteria_options') as $c ) { ?>
<option value="<?php echo $c; ?>"<?php echo $c==$criterion?' selected="true"':''; ?>>
<?php echo htmlspecialchars( $lang[$c] ); ?>
</option>
<?php } ?>
</select>
<input type="text" name="filter" id="filter" size="20" value="<?php echo htmlspecialchars($filter); ?>" /><br />
<br />
<center><input type="submit" value="<?php echo $lang['Search']; ?>" /></center>
</nobr>
</td>
</tr>
2009-06-30 08:05:37 +00:00
</table>
</form>
2009-06-30 09:29:51 +00:00
2009-06-30 09:22:30 +00:00
<script language="javascript">
// Move the cursor to the filter field
focus_filter();
</script>