# # # # # build_login_page() # # # # include "templates.util.base_util"; include "templates.util.encoding"; include "templates.util.user_agent"; include "templates.util.html"; include "templates.util.linked_files.linked_files_util"; include "templates.util.product_bar"; subroutine(build_login_page( bool is_auto_login, string username, string password), ( # This page contains the login form and a change password form for cases when a password expired. # username and password only have values if is_auto_login is true. debug_message("\n\n#### build_login_page() START \n\n"); # string origin_url_search_string = if (?("volatile.sys.origin_url_search_string")) then (volatile.sys.origin_url_search_string) else (""); # debug_message("\n" . node_as_string("volatile.licensing") . "\n"); # bool is_trial = if (?("volatile.licensing.features.trial")) then (@("volatile.licensing.features.trial")) else (false); node misc_file_map = "templates.util.linked_files.file_maps.misc_file_map"; bool is_msie_v6 = get_is_msie_v6(); set_doctype(); '\n'; '\n'; '' . lang_admin.authentication.login_title . '\n'; set_meta_content(); # # # css files # # add_css_files(misc_file_map, "login"); # # # javascript links # # add_js_files(misc_file_map, "login"); '\n'; '\n'; '\n'; '\n'; # # # Product bar # # '
'; build_simple_dynamic_product_bar(); '
 

'; '
\n'; # product-bar-bg '
\n'; # # # Logging in info # # string loggin_in_info_display_style = if (!is_auto_login) then ("none") else ("block"); '
\n'; lang_stats.general.loggin_in_info; '
'; # # # Login form # # string form_section_display_style = if (!is_auto_login) then ("block") else ("none"); '
\n'; # body-div '
'; # DIV I '\n'; # DISABLED because volatile.licensing is not available # if (is_trial) then ( # volatile.param1 = @("volatile.licensing.days_left_until_expiration"); # string trial_info = expand(lang_admin.trial.days_left_info); # '

' . trial_info . '

\n'; # ); '\n'; ''; # Round corner box table '\n'; ''; ''; ''; ''; ''; ''; ''; ''; ''; ''; ''; ''; ''; ''; ''; '
 
 '; # # NESTED TABLE # '\n'; # # Username/Password # ''; '\n'; '\n'; '\n'; '\n'; '\n'; '\n'; '\n'; '\n'; ''; # # New Password section, used upon expired password # ''; '\n'; '\n'; '\n'; '\n'; '\n'; '\n'; '\n'; '\n'; ''; '
' . lang_admin.authentication.username . ':'; ''; '
'; '
' . lang_admin.authentication.password . ':'; ''; '
'; '
\n'; '\n'; '\n'; '\n'; '\n'; '
'; ''; '
\n'; '
 
 
\n'; '' . lang_stats.general.forgot_your_password . ''; '
'; # DIV I ''; '
\n'; # body-div '
\n'; '\n'; '\n'; debug_message("\n\n#### build_login_page() END \n\n"); ));