# # # # # get_log_source_component.cfv # This returns the log_sourrce HTML table used in new profile wizard # and in config. # # # subroutine(get_log_source_component( bool is_msie_v6, string licensing_tier, bool is_config), ( bool is_lite = (licensing_tier eq "lite"); # build log source options node item; node log_source_types = "templates.util.list_structures.log_source_types"; string log_source_type_options_list; string log_source_type; bool hide_odbc_items; foreach item log_source_types ( log_source_type = node_name(item); hide_odbc_items = ((log_source_type eq "odbc_mssql" or log_source_type eq 'odbc_oracle' or log_source_type eq 'odbc_mysql') and !internal.HAVE_ODBC); if ((!is_lite or @item{"show_in_lite"}) and !hide_odbc_items) then ( if (node_name(item) ne "local") then ( log_source_type_options_list .= ''; ) else ( log_source_type_options_list .= ''; ); ); ); # Handle field samples string local_pathname_field_info; string ftp_pathname_field_info; if (_PLATFORM eq "UNIX") then ( local_pathname_field_info = lang_admin.log_source.type.local.pathname.unix_info; ftp_pathname_field_info = lang_admin.log_source.type.ftp.pathname.unix_info; ) else ( local_pathname_field_info = lang_admin.log_source.type.local.pathname.windows_info; ftp_pathname_field_info = lang_admin.log_source.type.ftp.pathname.windows_info; ); string table_class_name = if (is_config) then ("item-form") else ("field-box"); '
' . lang_admin.log_source.name . ': | '; ''; ''; ''; ' | '; '
---|---|
' . lang_admin.log_source.log_source . ': | '; ''; ''; ' | '; '
'; ' | ' . lang_admin.log_source.type.ftp.hostname.field_sample . ' | '; '
' . lang_admin.log_source.type.ftp.hostname.label . ': | '; ''; ''; ''; ' | '; '
' . lang_admin.log_source.type.ftp.username.label . ': | '; ''; ' |
' . lang_admin.log_source.type.ftp.password.label . ': | '; ''; ' |
'; ' | ' . local_pathname_field_info . ' | '; '
'; ' | ' . ftp_pathname_field_info . ' | '; '
' . lang_admin.log_source.pathname.label . ': | '; ''; ''; option_info_image(is_msie_v6, "lang_admin.log_source.pathname"); ''; ''; ' | '; '
'; # ' | '; # ' |
'; ' | ' . lang_admin.log_source.file_mask_field_sample . ' | '; '
' . lang_options.profile.log.source.file_mask.label . ': | '; ''; ''; option_info_image(is_msie_v6, "profile.log.source.file_mask"); '' . lang_admin.log_source.remove_file_mask . ''; ''; ' | '; '
'; ' | '; ' '; ''; option_info_image(is_msie_v6, "profile.log.source.pattern_is_regular_expression"); ' | '; '
'; ' | '; ' '; ''; option_info_image(is_msie_v6, "profile.log.source.process_subdirectories"); ' | '; '
'; ' | '; ' '; ''; ' | '; '
'; ' | ' . lang_admin.log_source.type.http.hostname.field_sample . ' | '; '
' . lang_admin.log_source.type.http.hostname.label . ': | '; ''; ''; ''; ' | '; '
'; ' | ' . lang_admin.log_source.type.http.pathname.info . ' | '; '
' . lang_admin.log_source.http_pathname.label . ': | '; ''; ''; option_info_image(is_msie_v6, "lang_admin.log_source.http_pathname"); ''; ' | '; '
' . lang_options.profile.log.source.server.dsn.label . ': | '; ''; ''; ''; ' | '; '
' . lang_options.profile.log.source.server.username.label . ': | '; ''; ' |
' . lang_options.profile.log.source.server.password.label . ': | '; ''; ' |
' . lang_options.profile.log.source.server.database_name.label . ': | '; ''; ''; ''; ' | '; '
' . lang_options.profile.log.source.query.label . ': | '; ''; ''; ''; ' | '; '
'; ' | ' . lang_admin.log_source.type.command.command.field_sample . ' | '; '
' . lang_admin.log_source.type.command.command.label . ': | '; ''; ''; option_info_image(is_msie_v6, "profile.log.source.command"); ''; ' | '; '
'; ' | '; ''; ' | '; '