'UNIX (Linux, BSD)', 'mac' => 'Macintosh', 'win' => 'Windows' ); $available_scopes = array ( 'base' => _('Base (base dn only)'), 'one' => _('One (one level beneath base)'), 'sub' => _('Sub (entire subtree)') ); printf('

%s

',_('Export')); echo '
'; echo '
'; echo '
'; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo '
'; echo '
'; printf('%s',_('Export')); echo ''; printf('',_('Server'),server_select_list($ldapserver->server_id)); echo ''; printf('',_('Base DN')); printf(''; echo ''; echo ''; printf('',_('Search Scope')); echo ''; echo ''; printf('', _('Search Filter'),htmlspecialchars($entry['filter'])); printf('', _('Show Attributtes'),htmlspecialchars($entry['attr'])); printf('', $entry['sys_attr'] ? 'checked="true" ' : '',_('Include system attributes')); printf('', _('Save as file')); printf('', _('Compress')); echo '
%s%s
%s ',htmlspecialchars($entry['dn'])); draw_chooser_link('export_form.dn'); echo '
%s'; foreach ($available_scopes as $id => $desc) printf('
', htmlspecialchars($id),htmlspecialchars($id),($id == $entry['scope']) ? 'checked="true"' : '', htmlspecialchars($id),htmlspecialchars($desc)); echo '
%s
%s
 
 
 
'; echo '
'; echo '
'; echo ''; echo ''; echo ''; echo '
'; echo '
'; printf('%s',_('Export format')); foreach ($exporters as $index => $exporter) { printf('', htmlspecialchars($index),htmlspecialchars($index),($index==$entry['id']) ? ' checked="true"' : ''); printf('
', htmlspecialchars($index),htmlspecialchars($exporter['desc'])); } echo '
'; echo '
'; echo '
'; printf('%s',_('Line ends')); foreach ($available_formats as $id => $desc) printf('
', htmlspecialchars($id),htmlspecialchars($id),($entry['format']==$id) ? ' checked="true"' : '', htmlspecialchars($id),htmlspecialchars($desc)); echo '
'; echo '
'; echo '
'; printf('
', htmlspecialchars(_('Proceed >>'))); echo '
'; echo '
'; echo '
'; /** * Helper functoin for fetching the line end format. * @return String 'win', 'unix', or 'mac' based on the user's browser.. */ function get_line_end_format() { if (is_browser_os_windows()) return 'win'; elseif (is_browser_os_unix()) return 'unix'; elseif (is_browser_os_mac()) return 'mac'; else return 'unix'; } ?>