dnExists($request['dn'])) error(sprintf(_('The entry (%s) does not exist.'),$request['dn']),'error','index.php'); $request['page'] = new PageRender($app['server']->getIndex(),get_request('template','REQUEST',false,'none')); $request['page']->setDN($request['dn']); $request['page']->accept(); # Render the form $request['page']->drawTitle(sprintf('%s %s',_('Copy'),get_rdn($request['dn']))); $request['page']->drawSubTitle(); printf('',JSDIR); echo '
'; printf('%s %s %s:

',_('Copy'),get_rdn($request['dn']),_('to a new object')); echo '
'; echo '
'; echo '
'; echo ''; printf('',$app['server']->getIndex()); printf('',$app['server']->getIndex()); printf('',htmlspecialchars($request['dn'])); echo '
'; echo "\n"; echo ''; echo ''; printf('', _('The full DN of the new entry to be created when copying the source entry'),_('Destination DN')); echo ''; echo ''; echo "\n"; printf('',_('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 ''; printf('',_('Recursive copy')); echo '',_('Recursively copy all children of this object as well.')); echo ''; echo "\n"; echo ''; printf('', _('When performing a recursive copy, only copy those entries which match this filter'),_('Filter')); echo ''; echo "\n"; echo ''; printf('',_('Delete after copy (move):')); echo ''; echo "\n"; } else { printf('',_('Delete after copy (move):')); } echo "\n"; printf('',_('Copy ')); echo "\n"; echo '
%s:'; printf('',htmlspecialchars($request['dn'])); draw_chooser_link('copy_form','dn_dst','true',get_rdn($request['dn'])); echo '
%s:%s
:'; printf('(%s)
%s:'; echo '
%s'; printf('(%s)',_('Make sure your filter (above) will select all child records.')); echo '
%s
'; echo '
'; if ($_SESSION[APPCONFIG]->getValue('appearance','show_hints')) printf('
Light%s
', IMGDIR,_('Hint: Copying between different servers only works if there are no schema violations')); # Draw the javascrpt to enable/disable the filter field if this may be a recursive copy if (count($request['children']) > 0) printf('',JSDIR); ?>