dnExists($request['dn'])) error(sprintf(_('The entry (%s) does not exist.'),htmlspecialchars($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'),htmlspecialchars(get_rdn($request['dn'])))); $request['page']->drawSubTitle(); printf('',JSDIR); echo '
'; printf(_('Copy %s to a new object.') . '

',htmlspecialchars(get_rdn($request['dn']))); 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"; 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 '
:'; printf('(%s)
%s:'; echo '
%s'; printf('(%s)',_('Make sure your filter (above) will select all child records.')); echo '
%s
'; echo '
'; # Draw the javascrpt to enable/disable the filter field if this may be a recursive copy if (count($request['children']) > 0) printf('',JSDIR); ?>