def create_index_html(reportfolderbase, time_in_secs, time_HMS, extraction_type, image_input_path, nav_list_data):
    'Write out the index.html page to the report folder'
    content = '<br />'
    content += '\n    <div class="card bg-white" style="padding: 20px;">\n        <h2 class="card-title">Case Information</h2>\n    '
    case_list = [['Extraction location', image_input_path], ['Extraction type', extraction_type], ['Report directory', reportfolderbase], ['Processing time', f'{time_HMS} (Total {time_in_secs} seconds)']]
    tab1_content = (generate_key_val_table_without_headings('', case_list) + '         <p class="note note-primary mb-4">\n                    All dates and times are in UTC unless noted otherwise!\n                </p>\n    ')
    devinfo_files_path = os.path.join(reportfolderbase, 'Script Logs', 'DeviceInfo.html')
    tab2_content = get_file_content(devinfo_files_path)
    script_log_path = os.path.join(reportfolderbase, 'Script Logs', 'Screen Output.html')
    tab3_content = get_file_content(script_log_path)
    processed_files_path = os.path.join(reportfolderbase, 'Script Logs', 'ProcessedFilesLog.html')
    tab4_content = get_file_content(processed_files_path)
    content += tabs_code.format(tab1_content, tab2_content, tab3_content, tab4_content)
    content += '</div>'
    authors_data = generate_authors_table_code(aleapp_contributors)
    credits_code = credits_block.format(authors_data)
    filename = 'index.html'
    page_title = 'iLEAPP Report'
    body_heading = 'iOS Logs Events And Protobuf Parser'
    body_description = 'iLEAPP is an open source project that aims to parse every known iOS artifact for the purpose of forensic analysis.'
    active_nav_list_data = (mark_item_active(nav_list_data, filename) + nav_bar_script)
    f = open(os.path.join(reportfolderbase, filename), 'w', encoding='utf8')
    f.write(page_header.format(page_title))
    f.write(body_start.format(f'iLEAPP {aleapp_version}'))
    f.write(((body_sidebar_setup + active_nav_list_data) + body_sidebar_trailer))
    f.write((body_main_header + body_main_data_title.format(body_heading, body_description)))
    f.write(content)
    f.write(thank_you_note)
    f.write(credits_code)
    f.write((((body_main_trailer + body_end) + nav_bar_script_footer) + page_footer))
    f.close()
Write out the index.html page to the report folder
def create_index_html(reportfolderbase, time_in_secs, time_HMS, extraction_type, image_input_path, nav_list_data):
    
    content = '<br />'
    content += '\n    <div class="card bg-white" style="padding: 20px;">\n        <h2 class="card-title">Case Information</h2>\n    '
    case_list = [['Extraction location', image_input_path], ['Extraction type', extraction_type], ['Report directory', reportfolderbase], ['Processing time', f'{time_HMS} (Total {time_in_secs} seconds)']]
    tab1_content = (generate_key_val_table_without_headings(, case_list) + '         <p class="note note-primary mb-4">\n                    All dates and times are in UTC unless noted otherwise!\n                </p>\n    ')
    devinfo_files_path = os.path.join(reportfolderbase, 'Script Logs', 'DeviceInfo.html')
    tab2_content = get_file_content(devinfo_files_path)
    script_log_path = os.path.join(reportfolderbase, 'Script Logs', 'Screen Output.html')
    tab3_content = get_file_content(script_log_path)
    processed_files_path = os.path.join(reportfolderbase, 'Script Logs', 'ProcessedFilesLog.html')
    tab4_content = get_file_content(processed_files_path)
    content += tabs_code.format(tab1_content, tab2_content, tab3_content, tab4_content)
    content += '</div>'
    authors_data = generate_authors_table_code(aleapp_contributors)
    credits_code = credits_block.format(authors_data)
    filename = 'index.html'
    page_title = 'iLEAPP Report'
    body_heading = 'iOS Logs Events And Protobuf Parser'
    body_description = 'iLEAPP is an open source project that aims to parse every known iOS artifact for the purpose of forensic analysis.'
    active_nav_list_data = (mark_item_active(nav_list_data, filename) + nav_bar_script)
    f = open(os.path.join(reportfolderbase, filename), 'w', encoding='utf8')
    f.write(page_header.format(page_title))
    f.write(body_start.format(f'iLEAPP {aleapp_version}'))
    f.write(((body_sidebar_setup + active_nav_list_data) + body_sidebar_trailer))
    f.write((body_main_header + body_main_data_title.format(body_heading, body_description)))
    f.write(content)
    f.write(thank_you_note)
    f.write(credits_code)
    f.write((((body_main_trailer + body_end) + nav_bar_script_footer) + page_footer))
    f.close()