protected function drawTemplateChoice() { if (DEBUGTMP) { printf('<font size=-2>%s</font><br />', __METHOD__); } $server = $this->getServer(); $this->drawTitle(_('Search')); $this->drawSubTitle(); echo "\n"; $baseDNs = $server->getBaseDN(); printf('<script type="text/javascript" src="%sdnChooserPopup.js"></script>', JSDIR); echo '<form action="cmd.php" id="advanced_search_form">'; echo '<div>'; echo '<input type="hidden" name="cmd" value="query_engine" />'; printf('<input type="hidden" name="server_id" value="%s" />', $server->getIndex()); echo '</div>'; echo '<table class="forminput" border="0" style="margin-left: auto; margin-right: auto;">'; echo '<tr><td colspan="2"> </td></tr>'; $templates = $this->getTemplates(); if (count($templates->getTemplates())) { echo '<tr>'; printf('<td><acronym title="%s">%s</acronym></td>', _('Run a predefined query'), _('Predefined Query')); echo '<td>'; echo '<select name="query">'; if ($this->haveDefaultTemplate()) { printf('<option value="%s" %s>%s</option>', 'none', '', _('Custom Query')); } foreach ($templates->getTemplates() as $template) { printf('<option value="%s" %s>%s</option>', $template->getID(), $this->template_id == $template->getID() ? 'selected="selected"' : '', $template->getDescription()); } echo '</select>'; echo '</td>'; echo '</tr>'; } echo '<tr>'; printf('<td><acronym title="%s">%s</acronym></td>', _('The format to show the query results'), _('Display Format')); echo '<td>'; echo '<select name="format" style="width: 200px">'; printf('<option value="list" %s>%s</option>', $_SESSION[APPCONFIG]->getValue('search', 'display') == 'list' ? 'selected="selected"' : '', _('list')); printf('<option value="table" %s>%s</option>', $_SESSION[APPCONFIG]->getValue('search', 'display') == 'table' ? 'selected="selected"' : '', _('table')); echo '</select>'; echo '</td>'; echo '</tr>'; echo '<tr>'; printf('<td><acronym title="%s">%s</acronym></td>', _('Entries to show per page'), _('Show Results')); echo '<td>'; echo '<select name="showresults" style="width: 200px">'; printf('<option value="na" %s>%s</option>', '', 'NA'); echo '</select>'; echo '</td>'; echo '</tr>'; echo '<tr>'; echo '<td colspan="2">'; printf('<div id="customquery" style="display: %s">', 'block'); echo '<br/>'; echo '<fieldset>'; printf('<legend>%s</legend>', _('Custom Query')); echo '<table border="0"><tr>'; printf('<td>%s</td>', _('Base DN')); printf('<td><input type="text" name="base" value="%s" style="width: 200px" id="base" />', count($baseDNs) == 1 ? $baseDNs[0] : ''); draw_chooser_link('advanced_search_form', 'base'); echo '</td>'; echo '</tr>'; echo '<tr>'; printf('<td><acronym title="%s">%s</acronym></td>', _('The scope in which to search'), _('Search Scope')); echo '<td>'; echo '<select name="scope" style="width: 200px">'; printf('<option value="sub" %s>%s</option>', '', _('Sub (entire subtree)')); printf('<option value="one" %s>%s</option>', '', _('One (one level beneath base)')); printf('<option value="base" %s>%s</option>', '', _('Base (base dn only)')); echo '</select>'; echo '</td>'; echo '</tr>'; echo '<tr>'; printf('<td><acronym title="%s">%s</acronym></td>', htmlspecialchars(_('Standard LDAP search filter. Example: (&(sn=Smith)(givenName=David))')), _('Search Filter')); printf('<td><input type="text" name="filter" id="filter" style="width: 200px" value="%s" /></td>', 'objectClass=*'); echo '</tr>'; echo '<tr>'; printf('<td><acronym title="%s">%s</acronym></td>', _('A list of attributes to display in the results (comma-separated)'), _('Show Attributes')); printf('<td><input type="text" name="display_attrs" style="width: 200px" value="%s" /></td>', implode(', ', $_SESSION[APPCONFIG]->getValue('search', 'result_attributes'))); echo '</tr>'; echo '<tr>'; printf('<td><acronym title="%s">%s</acronym></td>', _('Order by'), _('Order by')); printf('<td><input type="text" name="orderby" id="orderby" style="width: 200px" value="%s" /></td>', ''); echo '</tr>'; echo '<tr>'; printf('<td><acronym title="%s">%s</acronym></td>', _('Set the search results to 0 to retrieve all available records'), _('Search Results')); printf('<td><input type="text" name="size_limit" id="size_limit" style="width: 200px" value="%s" /></td>', $_SESSION[APPCONFIG]->getValue('search', 'size_limit')); echo '</tr>'; echo '</table>'; echo '</fieldset>'; echo '</div>'; echo '</td>'; echo '</tr>'; printf('<tr><td colspan="2" style="text-align: center;"><br /><input type="submit" name="search" value="%s" /></td></tr>', _('Search')); echo '</table>'; echo '</form>'; }
</tr> <tr class="spacer"><td colspan="3"></tr> <tr> <td></td> <td class="heading">Container:</td> <td><input type="text" name="container" size="40" value="<?php if (isset($container)) { echo htmlspecialchars($container); } else { echo htmlspecialchars($default_container . ',' . $servers[$server_id]['base']); } ?> " /> <?php draw_chooser_link('address_form.container'); ?> </td> </td> </tr> <tr> <td colspan="3"><center><br /><input type="submit" value="Proceed >>" /></td> </tr> </table> </center> <?php } elseif ($step == 2) { $common_name = trim($_POST['common_name']); $first_name = trim($_POST['first_name']); $last_name = trim($_POST['last_name']);
?> </td> </tr> <tr> <td><small><?php echo _('Base DN'); ?> </small></td> <td><input type="text" name="base_dn" value="<?php echo count($base_dns) == 1 ? $base_dns[0] : ''; ?> " style="width: 200px" id="base_dn" /> <?php draw_chooser_link('advanced_search_form.base_dn'); if (isset($base_dn_is_invalid) && $base_dn_is_invalid) { echo "<small style=\"color:red; white-space: nowrap\">" . _('This is not a valid DN.') . "</small>"; } if (isset($base_dn_does_not_exist) && $base_dn_does_not_exist) { echo "<small style=\"color:red; white-space: nowrap\">" . _('This entry does not exist.') . "</small>"; } ?> </td> </tr> <tr> <td><small><acronym title="<?php echo _('The scope in which to search'); ?>
echo $input_id; ?> " value="<?php echo htmlspecialchars($val); ?> " /> <?php } else { echo htmlspecialchars($val); } } // draw a link for popping up the entry browser if this is the type of attribute // that houses DNs. if ($ldapserver->isDNAttr($attr)) { draw_chooser_link("edit_form.{$input_id}", false); } ?> <br /> <?php } ?> </td> <?php } /* end foreach value */ ?>
echo 'enctype="multipart/form-data"'; } printf('<input type="hidden" name="server_id" value="%s" />', $ldapserver->server_id); printf('<input type="hidden" name="dn" value="%s" />', $encoded_dn); printf('<input type="hidden" name="attr" value="%s" />', $encoded_attr); if ($ldapserver->isAttrBinary($attr)) { echo '<input type="file" name="new_value" />'; echo '<input type="hidden" name="binary" value="true" />'; } else { if ($ldapserver->isMultiLineAttr($attr)) { echo '<textarea name="new_value" rows="3" cols="30"></textarea>'; } else { printf('<input type="text"%s name="new_value" size="40" value="" />', $schema_attr->getMaxLength() ? sprintf(' maxlength="%s"', $schema_attr->getMaxLength()) : ''); # draw the "browse" button next to this input box if this attr houses DNs: if ($ldapserver->isDNAttr($attr)) { draw_chooser_link("new_value_form.new_value", false); } } } printf('<input type="submit" name="submit" value="%s" />', _('Add New Value')); echo '<br />'; if ($schema_attr->getDescription()) { printf('<small><b>%s:</b> %s</small><br />', _('Description'), $schema_attr->getDescription()); } if ($schema_attr->getType()) { printf('<small><b>%s:</b> %s</small><br />', _('Syntax'), $schema_attr->getType()); } if ($schema_attr->getMaxLength()) { printf('<small><b>%s:</b> %s %s</small><br />', _('Maximum Length'), number_format($schema_attr->getMaxLength()), _('characters')); } echo '</form>';
echo '<form id="export_form" action="cmd.php" method="post">'; echo '<div>'; echo '<input type="hidden" name="cmd" value="export" />'; printf('<input type="hidden" name="server_id" value="%s" />', $app['server']->getIndex()); echo '<table class="forminput" style="margin-left: auto; margin-right: auto;">'; echo '<tr>'; echo '<td>'; echo '<fieldset>'; printf('<legend>%s</legend>', _('Export')); echo '<table>'; printf('<tr><td>%s</td><td>%s</td></tr>', _('Server'), $app['server']->getName()); echo '<tr>'; printf('<td style="white-space:nowrap">%s</td>', _('Base DN')); echo '<td><span style="white-space: nowrap;">'; printf('<input type="text" name="dn" id="dn" style="width:230px" value="%s" /> ', htmlspecialchars($request['dn'])); draw_chooser_link('export_form', 'dn'); echo '</span></td>'; echo '</tr>'; echo '<tr>'; printf('<td><span style="white-space: nowrap">%s</span></td>', _('Search Scope')); echo '<td>'; foreach ($available_scopes as $id => $desc) { printf('<input type="radio" name="scope" value="%s" id="%s"%s /><label for="%s">%s</label><br />', htmlspecialchars($id), $id, $id == $request['scope'] ? 'checked="checked"' : '', htmlspecialchars($id), $desc); } echo '</td>'; echo '</tr>'; printf('<tr><td>%s</td><td><input type="text" name="filter" style="width:300px" value="%s" /></td></tr>', _('Search Filter'), htmlspecialchars($request['filter'])); printf('<tr><td>%s</td><td><input type="text" name="attributes" style="width:300px" value="%s" /></td></tr>', _('Show Attributtes'), htmlspecialchars($request['attr'])); printf('<tr><td> </td><td><input type="checkbox" name="sys_attr" id="sys_attr" %s/> <label for="sys_attr">%s</label></td></tr>', $request['sys_attr'] ? 'checked="checked" ' : '', _('Include system attributes')); printf('<tr><td> </td><td><input type="checkbox" id="save_as_file" name="save_as_file" onclick="export_field_toggle(this)" /> <label for="save_as_file">%s</label></td></tr>', _('Save as file')); printf('<tr><td> </td><td><input type="checkbox" id="compress" name="compress" disabled="disabled" /> <label for="compress">%s</label></td></tr>', _('Compress'));
$request['page']->drawSubTitle(); printf('<script type="text/javascript" language="javascript" src="%sdnChooserPopup.js"></script>', JSDIR); echo '<center>'; printf('%s <b>%s</b> %s:<br /><br />', _('Copy'), get_rdn($request['dn']), _('to a new object')); echo '<form action="cmd.php" method="post" name="copy_form">'; echo '<input type="hidden" name="cmd" value="copy" />'; printf('<input type="hidden" name="server_id" value="%s" />', $app['server']->getIndex()); printf('<input type="hidden" name="server_id_src" value="%s" />', $app['server']->getIndex()); printf('<input type="hidden" name="dn_src" value="%s" />', htmlspecialchars($request['dn'])); echo "\n"; echo '<table style="border-spacing: 10px">'; echo '<tr>'; printf('<td><acronym title="%s">%s</acronym>:</td>', _('The full DN of the new entry to be created when copying the source entry'), _('Destination DN')); echo '<td>'; printf('<input type="text" name="dn_dst" size="45" value="%s" />', htmlspecialchars($request['dn'])); draw_chooser_link('copy_form.dn_dst', 'true', get_rdn($request['dn'])); echo '</td>'; echo '</tr>'; echo "\n"; printf('<tr><td>%s:</td><td>%s</td></tr>', _('Destination Server'), server_select_list($app['server']->getIndex(), true, 'server_id_dst')); echo "\n"; # We search all children, not only the visible children in the tree $request['children'] = $app['server']->getContainerContents($request['dn']); if (count($request['children']) > 0) { echo '<tr>'; printf('<td><label for="recursive">%s</label>:</td>', _('Recursive copy')); echo '<td><input type="checkbox" id="recursive" name="recursive" onClick="copy_field_toggle(this)" />'; printf('<small>(%s)</small></td>', _('Recursively copy all children of this object as well.')); echo '</tr>'; echo "\n"; echo '<tr>';
<?php } echo '<body>'; printf('<h3 class="title">%s %s</h3>', _('Copy '), $rdn); printf('<h3 class="subtitle">%s: <b>%s</b> %s: <b>%s</b></h3>', _('Server'), $ldapserver->name, _('Distinguished Name'), $dn); echo '<center>'; printf('%s <b>%s</b> %s:<br /><br />', _('Copy '), htmlspecialchars($rdn), _('to a new object')); echo '<form action="copy.php" method="post" name="copy_form">'; printf('<input type="hidden" name="old_dn" value="%s" />', $dn); printf('<input type="hidden" name="server_id" value="%s" />', $ldapserver->server_id); echo '<table style="border-spacing: 10px">'; echo '<tr>'; printf('<td><acronym title="%s">%s</acronym>:</td>', _('The full DN of the new entry to be created when copying the source entry'), _('Destination DN')); printf('<td><input type="text" name="new_dn" size="45" value="%s" />', htmlspecialchars($dn)); draw_chooser_link('copy_form.new_dn', 'true', $rdn); echo '</td></tr>'; printf('<tr><td>%s</td><td>%s</td></tr>', _('Destination Server'), $select_server_html); if (is_array($children) && count($children) > 0) { echo '<tr>'; printf('<td><label for="recursive">%s</label>:</td>', _('Recursive copy')); echo '<td><input type="checkbox" id="recursive" name="recursive" onClick="toggle_disable_filter_field(this)" />'; printf('<small>(%s)</small></td>', _('Recursively copy all children of this object as well.')); echo '</tr><tr>'; printf('<td><acronym title="%s">%s</acronym>:</td>', _('When performing a recursive copy, only copy those entries which match this filter'), _('Filter')); echo '<td><input type="text" name="filter" value="(objectClass=*)" size="45" disabled />'; echo '</tr><tr>'; printf('<td>%s</td>', _('Delete after copy (move):')); echo '<td><input type="checkbox" name="remove" value="yes"/ disabled>'; printf('<small>(%s)</small)</td>', _('Make sure your filter (above) will select all child records.')); echo '</tr>';
<center> <table class="confirm"> <tr> <td></td> <td class="heading"><acronym title="Organizational Unit">OU</acronym> Name:</td> <td><input type="text" name="ou_name" value="" /> <small>(hint: don't include "ou=")</small></td> </tr> <tr> <td></td> <td class="heading">Container <acronym title="Distinguished Name">DN</acronym>:</td> <td><input type="text" name="container" size="40" value="<?php echo htmlspecialchars($container); ?> " /> <?php draw_chooser_link('ou_form.container'); ?> </td> </td> </tr> <tr> <td colspan="3"><center><br /><input type="submit" value="Proceed >>" /></td> </tr> </table> </center> <?php } elseif ($step == 2) { $ou_name = trim($_POST['ou_name']); $container = trim($_POST['container']); dn_exists($server_id, $container) or pla_error("The container you specified (" . htmlspecialchars($container) . ") does not exist. " . "Please go back and try again.");
?> " /> <table class="create"> <tr> <td class="heading"><acronym title="Relative Distinguished Name">RDN</acronym>:</td> <td><input type="text" name="rdn" value="" size="20" /> (example: cn=MyNewObject)</td> </tr> <tr> <td class="heading">Container:</td> <td><input type="text" name="container" size="40" value="<?php echo htmlspecialchars($container); ?> " /> <?php draw_chooser_link('creation_form.container'); ?> </td> </tr> <tr> <td class="heading">ObjectClass(es):</td> <td> <select name="object_classes[]" multiple size="15"> <?php foreach ($oclasses as $oclass => $attrs) { ?> <option value="<?php echo htmlspecialchars($oclass); ?> "> <?php
/** * Container Chooser */ protected function drawContainerChooser($default_container) { if (DEBUGTMP) { printf('<font size=-2>%s</font><br />', __METHOD__); } echo '<tr>'; printf('<td class="heading">%s</td>', _('Container')); echo '<td>'; if (get_request('create_base')) { printf('%s<input type="hidden" name="container" size="40" value="%s" />', $default_container, htmlspecialchars($default_container)); } else { printf('<input type="text" name="container" size="40" value="%s" />', htmlspecialchars($default_container)); draw_chooser_link('entry_form', 'container'); } echo '</td>'; echo '</tr>'; }
echo '<body>'; printf('<h3 class="title">%s</h3>', _('Export')); echo '<br />'; echo '<center>'; echo '<form name="export_form" action="export.php" method="post">'; echo '<table class="export_form">'; echo '<tr>'; echo '<td>'; echo '<fieldset>'; printf('<legend>%s</legend>', _('Export')); echo '<table>'; printf('<tr><td>%s</td><td>%s</td></tr>', _('Server'), server_select_list()); echo '<tr>'; printf('<td style="white-space:nowrap">%s</td>', _('Base DN')); printf('<td><nobr><input type="text" name="dn" id="dn" style="width:230px" value="%s" /> ', htmlspecialchars($dn)); draw_chooser_link('export_form.dn'); echo '</nobr></td>'; echo '</tr>'; echo '<tr>'; printf('<td><span style="white-space: nowrap">%s</span></td>', _('Search Scope')); echo '<td>'; foreach ($available_scopes as $id => $desc) { printf('<input type="radio" name="scope" value="%s" id="%s"%s /><label for="%s">%s</label><br />', htmlspecialchars($id), htmlspecialchars($id), $id == $scope ? 'checked="true"' : '', htmlspecialchars($id), htmlspecialchars($desc)); } echo '</td>'; echo '</tr>'; printf('<tr><td>%s</td><td><input type="text" name="filter" style="width:300px" value="%s" /></td></tr>', _('Search Filter'), htmlspecialchars($filter)); printf('<tr><td>%s</td><td><input type="text" name="attributes" style="width:300px" value="%s" /></td></tr>', _('Show Attributtes'), htmlspecialchars($attributes)); printf('<tr><td> </td><td><input type="checkbox" name="sys_attr" id="sys_attr" %s/> <label for="sys_attr">%s</label></td></tr>', $sys_attr ? 'checked="true" ' : '', _('Include system attributes')); printf('<tr><td> </td><td><input type="checkbox" id="save_as_file" name="save_as_file" onclick="toggle_disable_field_saveas(this)" /> <label for="save_as_file">%s</label></td></tr>', _('Save as file')); printf('<tr><td> </td><td><input type="checkbox" id="compress" name="compress" disabled /> <label for="compress">%s</label></td></tr>', _('Compress'));
<td><input type="text" name="posix_group_name" value="" /> <small>(example: MyGroup, do not include "cn=")</small></td> </tr> <tr> <td></td> <td class="heading"><acronym title="Group Identification">GID</acronym> Number:</td> <td><input type="text" name="gid_number" value="" /> <small>(example: 2000)</small></td> </tr> <tr> <td></td> <td class="heading">Container <acronym title="Distinguished Name">DN</acronym>:</td> <td><input type="text" name="container" size="40" value="<?php echo htmlspecialchars($container); ?> " /> <?php draw_chooser_link('posix_group_form.container'); ?> </td> </td> </tr> <tr> <td></td> <td class="heading">Users:</td> <td><input type="text" name="member_uids[]" value="" /> <small>(example: dsmith)</small><br /> <?php for ($i = 1; $i < $default_number_of_users; $i++) { ?> <input type="text" name="member_uids[]" value="" /><br /> <?php } ?>
protected function drawFormReadWriteValueDnAttribute($attribute, $i) { if (DEBUGTMP) { printf('<font size=-2>%s</font><br />', __METHOD__); } $val = $attribute->getValue($i); if ($attribute->getHelper()) { echo '<table cellspacing="0" cellpadding="0"><tr><td valign="top">'; } $input_name = sprintf('new_values[%s][%s]', htmlspecialchars($attribute->getName()), $i); $id = sprintf('new_values_%s_%s', htmlspecialchars($attribute->getName()), $i); printf('<span style="white-space: nowrap;"><input type="text" class="value" name="%s" id="%s" value="%s" %s%s %s %s/> ', $input_name, $id, htmlspecialchars($val), $attribute->needJS('focus') ? sprintf('onfocus="focus_%s(this);" ', $attribute->getName()) : '', $attribute->needJS('blur') ? sprintf('onblur="blur_%s(this);" ', $attribute->getName()) : '', $attribute->getSize() > 0 ? 'size="' . $attribute->getSize() . '"' : '', $attribute->getMaxLength() > 0 ? 'maxlength="' . $attribute->getMaxLength() . '"' : ''); # Draw a link for popping up the entry browser if this is the type of attribute that houses DNs. draw_chooser_link('entry_form', $id, false); echo '</span>'; if ($attribute->getHelper()) { echo '</td><td valign="top">'; $this->draw('Helper', $attribute, $i); echo '</td></tr></table>'; } echo "\n"; }
function EvaluateDefault(&$ldapserver, $value, $container, $counter = '', $default = null) { if (DEBUG_ENABLED) { debug_log('%s::EvaluateDefault(): Entered with (%s,%s,%s,%s)', 5, get_class($this), $ldapserver->server_id, $value, $container, $counter); } global $ldapservers; if (preg_match('/^=php\\.(\\w+)\\((.*)\\)$/', $value, $matches)) { $args = preg_split('/,/', $matches[2]); switch ($matches[1]) { case 'GetNextNumber': if ($args[0] == '$') { $args[0] = $ldapservers->GetValue($ldapserver->server_id, 'auto_number', 'search_base'); } $container = $ldapserver->getContainerParent($container, $args[0]); $detail['value'] = get_next_number($ldapserver, $container, $args[1]); break; case 'PickList': $container = $ldapserver->getContainerParent($container, $args[0]); preg_match_all('/%(\\w+)(\\|.+)?(\\/[lU])?%/U', $args[3], $matchall); //print_r($matchall); // -1 = highlevel match, 1 = attr, 2 = subst, 3 = mod $ldap_attrs = $matchall[1]; array_push($ldap_attrs, $args[2]); $picklistvalues = return_ldap_hash($ldapserver, $container, $args[1], $args[2], $ldap_attrs); $detail['value'] = sprintf('<select name="form[%s]" id="%%s" %%s %%s>', isset($args[4]) ? $args[4] : $args[2]); $counter = 0; foreach ($picklistvalues as $key => $values) { $display = $args[3]; foreach ($matchall[1] as $arg) { $display = preg_replace('/%(' . $arg . ')(\\|.+)?(\\/[lU])?%/U', $values[$arg], $display); } if (!isset($picklist[$display])) { $detail['value'] .= sprintf('<option id="%s%s" value="%s" %s>%s</option>', isset($args[4]) ? $args[4] : $args[2], ++$counter, $values[$args[2]], $default == $display ? 'selected' : '', $display); $picklist[$display] = true; } } $detail['value'] .= '</select>'; break; case 'RandomPassword': $detail['value'] = password_generate(); printf('<script type="text/javascript" language="javascript">alert(\'%s:\\n%s\')</script>', _('A random password was generated for you'), $detail['value']); break; case 'DrawChooserLink': $detail['value'] = draw_chooser_link(sprintf('template_form.%s%s', $args[0], $counter), $args[1]); break; case 'Function': # Capture the function name and remove function name from $args $function_name = array_shift($args); $function_args = array(); foreach ($args as $arg) { if (preg_match('/^%(\\w+)(\\|.+)?(\\/[lU])?%/U', $arg, $matches)) { $varname = $matches[1]; if (isset($_POST['form'][$varname])) { $function_args[] = $_POST['form'][$varname]; } else { pla_error(sprintf(_('Your template calls php.Function for a default value, however (%s) is NOT available in the POST FORM variables. The following variables are available [%s].'), $varname, isset($_POST['form']) ? implode('|', array_keys($_POST['form'])) : 'NONE')); } } else { $function_args[] = $arg; } } # Call the PHP function if exists (PHP 4 >= 4.0.4, PHP 5) if (function_exists($function_name)) { $detail['value'] = call_user_func_array($function_name, $function_args); } break; default: $detail['value'] = 'UNKNOWN'; } $return = $detail['value']; } else { $return = $value; } if (DEBUG_ENABLED) { debug_log('%s::EvaluateDefault(): Returning (%s)', 5, get_class($this), $return); } return $return; }
<?php } ?> </tr> <tr> <td><acronym title="<?php echo _('Compare this DN with another'); ?> "><?php echo _('Destination DN'); ?> </acronym>:</td> <td> <input type="text" name="dn_dst" size="45" value="" /> <?php draw_chooser_link('compare_form.dn_dst', 'true', ''); ?> </td> </td> </tr> <tr> <td><?php echo _('Destination Server'); ?> :</td> <td><?php echo $select_server_html; ?> </td> </tr>
<td><input type="text" name="machine_name" value="" /> <small>(hint: don't include "$" at the end)</small></td> </tr> <tr> <td></td> <td class="heading">UID Number:</td> <td><input type="text" name="uid_number" value="" /></td> </tr> <tr> <td></td> <td class="heading">Container:</td> <td><input type="text" size="40" name="container" value="<?php echo htmlspecialchars($container); ?> " /> <?php draw_chooser_link('machine_form.container'); ?> </td> </td> </tr> <tr> <td colspan="3"><center><br /><input type="submit" value="Proceed >>" /> <br /><br /><br /><br /><br /><br /></td> </tr> <tr class="spacer"><td colspan="3"></td></tr> <tr> <td colspan="3"> This will create a new NT machine with:<br /> <small>
<td><input type="text" name="dc_name" value="" /> <small>(hint: don't include "dc=")</small></td> </tr> <tr> <td></td> <td class="heading">Associated Domain:</td> <td><input type="text" name="associateddomain" value="" /></td> <tr> <tr> <td></td> <td class="heading">Container <acronym title="Distinguished Name">DN</acronym>:</td> <td><input type="text" name="container" size="40" value="<?php echo htmlspecialchars($container); ?> " /> <?php draw_chooser_link('dns_form.container'); ?> </td> </td> </tr> <tr> <td colspan="3"><center><br /><input type="submit" value="Proceed >>" /></td> </tr> </table> </center> <?php } elseif ($step == 2) { $dc_name = trim($_POST['dc_name']); $container = trim($_POST['container']); $associateddomain = trim($_POST['associateddomain']);
" /> <input type="hidden" name="server_id" value="<?php echo $server_id; ?> " /> <table> <tr> <td>Destination DN:</td> <td> <input type="text" name="new_dn" size="45" value="<?php echo htmlspecialchars(utf8_decode($dn)); ?> " /> <?php draw_chooser_link('copy_form.new_dn'); ?> </td> </td> </tr> <tr> <td>Destination Server:</td> <td><select name="dest_server_id"><?php echo $select_server_html; ?> </select></td> </tr> <tr> <td colspan="2"><small>Note: Copying between different servers only works if there are no schema violations</small></td> </tr>