phpldapadmin/search_form_advanced.php
2009-06-30 18:09:20 +10:00

70 lines
2.2 KiB
PHP

<script>
<?
$num_server = count($server_info_list);
for($i=0;$i<$num_server;$i++){
?>
addToServersList(new server(<?=$i?>,"<?=$server_info_list[$i]['name']?>","<?=$server_info_list[$i]['base_dn']?>"));
<?
}
?>
</script>
<form action="search.php" method="get" class="search">
<input type="hidden" name="search" value="true" />
<input type="hidden" name="form" value="advanced" />
<center><b><?php echo $lang['advanced_search_form_str']; ?></b></center>
<small>(<a href="search.php?server_id=<?php echo $server_id; ?>&amp;form=simple"><?php echo $lang['simple_search_form_str']; ?></a>)</small><br />
<br />
<table>
<tr>
<td><small><?php echo $lang['server']; ?></small></td>
<td><?php echo $server_menu_html; ?></td>
</tr>
<tr>
<td><small><?php echo $lang['base_dn']; ?></small></td>
<td><input type="text" name="base_dn" value="<?php echo htmlspecialchars($base_dn); ?>" size="30" id="base_dn" /></td>
</tr>
<tr>
<td><small><acronym title="<?php echo $lang['scope_in_which_to_search']; ?>"><?php echo $lang['search_scope']; ?></acronym></small></td>
<td>
<select name="scope">
<option<?php echo $scope=='sub'?' selected':''; ?> value="sub">
<?php echo $lang['scope_sub']; ?>
</option>
<option<?php echo $scope=='one'?' selected':''; ?> value="one">
<?php echo $lang['scope_one']; ?>
</option>
<option<?php echo $scope=='base'?' selected':''; ?> value="base">
<?php echo $lang['scope_base']; ?>
</option>
</select>
</td>
</tr>
<tr>
<td><small><acronym title="<?php echo $lang['standard_ldap_search_filter']; ?>">
<?php echo $lang['search_filter']; ?></acronym></small></td>
<td><input type="text" name="filter" size="30" value="<?php echo $filter ? htmlspecialchars($filter) : 'objectClass=*'; ?>" /></td>
</tr>
<tr>
<td><small><acronym title="<?php echo $lang['list_of_attrs_to_display_in_results']; ?>">
<?php echo $lang['show_attributes']; ?></acronym></small></td>
<td><input type="text" name="display_attrs" size="30" value="<?php
echo isset( $_GET['display_attrs'] ) ?
htmlspecialchars( $_GET['display_attrs'] ) :
$search_result_attributes; ?>" />
<tr>
<td colspan="2"><br /><center><input type="submit" value="<?php echo $lang['Search']; ?>" /></center></td>
</tr>
</table>
</form>