LDAPAccountManager/lam/templates/3rdParty/pla/htdocs/rename_form.php

41 lines
1.3 KiB
PHP
Raw Permalink Normal View History

2011-06-26 10:44:28 +00:00
<?php
/**
* Displays a form for renaming an LDAP entry.
*
* @package phpLDAPadmin
* @subpackage Page
*/
/**
*/
require './common.php';
# The DN we are working with
$request = array();
$request['dn'] = get_request('dn','GET');
$request['template'] = get_request('template','GET');
$request['page'] = new PageRender($app['server']->getIndex(),get_request('template','REQUEST',false,'none'));
$request['page']->setDN($request['dn']);
$request['page']->accept();
# Render the form
2018-03-12 18:48:56 +00:00
$request['page']->drawTitle(sprintf('%s <b>%s</b>',_('Rename'),htmlspecialchars(get_rdn($request['dn']))));
2011-06-26 10:44:28 +00:00
$request['page']->drawSubTitle();
echo '<center>';
2018-03-12 18:48:56 +00:00
printf(_('Rename <b>%s</b> to a new object.') . '<br /><br />',htmlspecialchars(get_rdn($request['dn'])));
2011-06-26 10:44:28 +00:00
echo '<form action="cmd.php?cmd=rename" method="post" />';
printf('<input type="hidden" name="server_id" value="%s" />',$app['server']->getIndex());
printf('<input type="hidden" name="dn" value="%s" />',rawurlencode($request['dn']));
2018-03-12 18:48:56 +00:00
printf('<input type="hidden" name="template" value="%s" />',htmlspecialchars($request['template']));
printf('<input type="text" name="new_rdn" size="30" value="%s" />',htmlspecialchars(get_rdn($request['dn'])));
2011-06-26 10:44:28 +00:00
printf('<input type="submit" value="%s" />',_('Rename'));
echo '</form>';
echo '</center>';
echo "\n";
?>