phpldapadmin/search_form_simple.php

47 lines
1.5 KiB
PHP
Raw Normal View History

2009-06-30 08:05:37 +00:00
<form action="search.php" method="get" class="search">
<input type="hidden" name="search" value="true" />
<input type="hidden" name="form" value="simple" />
<input type="hidden" name="scope" value="sub" />
<table>
<td>
2009-06-30 08:07:14 +00:00
<center><b><?php echo $lang['simple_search_form_str']; ?></b><br />
<small>(<a href="search.php?server_id=<?php echo $server_id; ?>&amp;form=advanced"><?php echo $lang['advanced_search_form_str']; ?></a>)</small><br />
2009-06-30 08:05:37 +00:00
<br />
</center>
2009-06-30 08:09:20 +00:00
<small><?php echo $lang['server']; ?></small><br /> <?php echo $server_menu_html; ?><br />
2009-06-30 08:05:37 +00:00
<br />
2009-06-30 08:09:20 +00:00
<small><?php echo $lang['search_for_entries_whose']; ?></small><br />
2009-06-30 08:05:37 +00:00
<nobr>
<select name="attribute">
<?php foreach( $search_attributes as $id => $attribute ) { ?>
<option value="<?php echo rawurlencode( $attribute ); ?>"<?php echo $attribute==$attr?' selected':''; ?>>
<?php echo htmlspecialchars($search_attributes_display[$id]); ?>
</option>
<?php } ?>
</select>
<select name="criterion">
2009-06-30 08:07:14 +00:00
<?php
$search_criteria_options = array( "equals", "starts with", "contains", "ends with", "sounds like" );
foreach( $search_criteria_options as $c ) { ?>
2009-06-30 08:05:37 +00:00
<option value="<?php echo $c; ?>"<?php echo $c==$criterion?' selected':''; ?>>
2009-06-30 08:09:20 +00:00
<?php echo htmlspecialchars( $lang[$c] ); ?>
2009-06-30 08:05:37 +00:00
</option>
<?php } ?>
</select>
2009-06-30 08:09:20 +00:00
<input type="text" name="filter" size="20" value="<?php echo htmlspecialchars($filter); ?>" /><br />
2009-06-30 08:05:37 +00:00
<br />
2009-06-30 08:09:20 +00:00
<center><input type="submit" value="<?php echo $lang['Search']; ?>" /></center>
2009-06-30 08:05:37 +00:00
</nobr>
</td>
</table>
</form>