{% include 'header.html' %}
Đang tải file...
🏠 Trang chủ 📁 File của tôi {% if user_info and user_info.role == 'admin' %} ⚙️ Quản trị {% endif %}
{% if not session_mode and page_name == 'admin' %}
🔧 Cài đặt chung 👥 Người dùng & Đơn vị 📂 Tất cả File 📊 Thống kê
{% endif %} {% if message %}
{{ message.text }}
{% endif %} {% if (show_report_builder or session_mode) and files_info %}

{% if session_mode %}📁 File của tôi{% else %}📊 Tất cả File kết quả{% endif %}

{% if show_report_builder %}{% endif %} {% for info in files_info %} {% if show_report_builder %} {% endif %} {% endfor %}
Tên máy chủ Hệ điều hành Địa chỉ IP Tỉ lệ đạt Bắt buộc Đơn vị Người upload Ngày tạo Tải vềXóa
{{ info.hostname or info.filename }} {{ info.os_name or '-' }} {{ info.ip_address or '-' }} {{ info.compliance_percentage }}% {% if info.mandatory_failed > 0 %} {% if info.mandatory_failed > 3 %}❌{% else %}⚠️{% endif %} {{ info.mandatory_passed }}/{{ info.mandatory_total }} {% else %} ✅ {{ info.mandatory_passed }}/{{ info.mandatory_total }} {% endif %} {{ info.unit_name or '-' }} {% if show_report_builder %} {% endif %} {{ info.uploaded_by or '-' }} {{ info.file_date }}
{% if info.filename and not info.filename.endswith('.txt') %} 📊 Excel {% endif %} {% if info.has_txt and info.txt_filename %} 📄 Text {% elif info.filename and info.filename.endswith('.txt') %} 📄 Text {% endif %}
🔍

Không tìm thấy file nào phù hợp.

{% elif output_files and output_files|length > 0 and not session_mode and not show_report_builder %}

Xử lý hoàn tất!

Báo cáo của bạn đã sẵn sàng để tải xuống

{% if system_info_list and system_info_list|length > 0 %}

📋 Bảng tổng hợp kết quả

{% for system_info in system_info_list %} {% endfor %} {% if system_info_list|length > 1 %} {% endif %}
STT 🖥️ Tên máy chủ 🌐 Địa chỉ IP 📊 Tỉ lệ đạt 🔒 Bắt buộc đạt 📝 Ghi chú
{{ loop.index }} {{ system_info.hostname or 'N/A' }} {% if system_info.os_name %}
{{ system_info.os_name }}
{% endif %}
{{ system_info.ip_address or 'N/A' }} {{ system_info.compliance_percentage }}%
{{ system_info.passed_count }}/{{ system_info.total_checks }} tiêu chí
{{ system_info.mandatory_passed }}/{{ system_info.mandatory_total }} {% if system_info.mandatory_total > 0 %}
{{ system_info.mandatory_percentage }}%
{% endif %}
{% if system_info.mandatory_failed > 0 and system_info.compliance_percentage < 80 %}
❌ Còn {{ system_info.mandatory_failed }} tiêu chí bắt buộc chưa đạt
⚠️ Tỉ lệ đạt chỉ {{ system_info.compliance_percentage }}% (yêu cầu ≥80%)
{% elif system_info.mandatory_failed > 0 %}
⚠️ Còn {{ system_info.mandatory_failed }} tiêu chí bắt buộc chưa đạt
{% elif system_info.compliance_percentage < 80 %}
⚠️ Tỉ lệ đạt chỉ {{ system_info.compliance_percentage }}% (yêu cầu ≥80%)
{% elif system_info.mandatory_total > 0 %}
✅ Đạt yêu cầu
{% else %} Không có dữ liệu {% endif %}
📈 Tổng hợp ({{ system_info_list|length }} máy chủ): {% set ns = namespace(total_passed=0, total_checks=0) %} {% for si in system_info_list %} {% set ns.total_passed = ns.total_passed + si.passed_count %} {% set ns.total_checks = ns.total_checks + si.total_checks %} {% endfor %} {% if ns.total_checks > 0 %} {% set avg_pct = (ns.total_passed / ns.total_checks * 100)|round(1) %} {% else %} {% set avg_pct = 0 %} {% endif %} {{ avg_pct }}% {% set ns2 = namespace(total_mp=0, total_mt=0) %} {% for si in system_info_list %} {% set ns2.total_mp = ns2.total_mp + si.mandatory_passed %} {% set ns2.total_mt = ns2.total_mt + si.mandatory_total %} {% endfor %} {{ ns2.total_mp }}/{{ ns2.total_mt }} {% set ns3 = namespace(total_mf=0) %} {% for si in system_info_list %} {% set ns3.total_mf = ns3.total_mf + si.mandatory_failed %} {% endfor %} {% if ns3.total_mf > 0 %} ⚠️ Tổng {{ ns3.total_mf }} tiêu chí bắt buộc chưa đạt {% else %} ✅ Tất cả đạt {% endif %}
🖥️ Thông tin chi tiết hệ thống {{ system_info_list|length }} máy chủ
{% for system_info in system_info_list %}

{{ system_info.hostname or 'Unknown Host' }}

{{ system_info.os_name }}

{{ system_info.audit_time }} {% if system_info.script_version %} 🏷️ Script v{{ system_info.script_version }} {% endif %}

📋 Thông tin cơ bản

{% if system_info.ip_address %}
IP Address: {{ system_info.ip_address }}
{% endif %} {% if system_info.kernel_version %}
Kernel: {{ system_info.kernel_version }}
{% endif %} {% if system_info.architecture %}
Architecture: {{ system_info.architecture }}
{% endif %} {% if system_info.uptime %}
Uptime: {{ system_info.uptime }}
{% endif %} {% if system_info.timezone %}
Timezone: {{ system_info.timezone }}
{% endif %}

⚙️ Phần cứng

{% if system_info.cpu_model %}
CPU: {{ system_info.cpu_model }}
{% endif %} {% if system_info.cpu_cores %}
CPU Cores: {{ system_info.cpu_cores }}
{% endif %} {% if system_info.total_memory %}
Total Memory: {{ system_info.total_memory }}
{% endif %} {% if system_info.used_memory %}
Used Memory: {{ system_info.used_memory }}
{% endif %} {% if system_info.free_memory %}
Free Memory: {{ system_info.free_memory }}
{% endif %}

🌐 Mạng

{% if system_info.primary_interface %}
Interface: {{ system_info.primary_interface }}
{% endif %} {% if system_info.mac_address %}
MAC: {{ system_info.mac_address }}
{% endif %} {% if system_info.default_gateway %}
Gateway: {{ system_info.default_gateway }}
{% endif %} {% if system_info.dns_servers %}
DNS: {{ system_info.dns_servers }}
{% endif %}

📊 Tỉ lệ tuân thủ

{{ system_info.compliance_percentage }}%
🔒 Bắt buộc đạt
{{ system_info.mandatory_passed }}/{{ system_info.mandatory_total }}
📋 Tuỳ chọn đạt
{{ system_info.optional_passed }}/{{ system_info.optional_total }}
Tổng số: {{ system_info.total_checks }} tiêu chí
{% endfor %}
{% endif %} {% if output_files|length > 1 %}
{% endif %} {% else %}
📁

Không có file kết quả

Không tìm thấy file đã xử lý trong thư mục output

{% endif %} {% if session_mode %}
🔙 Xử lý thêm File 🔒 Xem tất cả File
{% else %} 🔙 Xử lý thêm File {% endif %}