From 04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa Mon Sep 17 00:00:00 2001 From: Charles Date: Thu, 9 Jan 2020 10:55:03 +0100 Subject: phpmyadmin working --- .../table/structure/display_table_stats.twig | 169 +++++++++++++++++++++ 1 file changed, 169 insertions(+) create mode 100644 srcs/phpmyadmin/templates/table/structure/display_table_stats.twig (limited to 'srcs/phpmyadmin/templates/table/structure/display_table_stats.twig') diff --git a/srcs/phpmyadmin/templates/table/structure/display_table_stats.twig b/srcs/phpmyadmin/templates/table/structure/display_table_stats.twig new file mode 100644 index 0000000..01c74ae --- /dev/null +++ b/srcs/phpmyadmin/templates/table/structure/display_table_stats.twig @@ -0,0 +1,169 @@ +
+
+ {% trans 'Information' %} + {% if showtable['TABLE_COMMENT'] %} +

+ {% trans 'Table comments:' %} + {{ showtable['TABLE_COMMENT'] }} +

+ {% endif %} + + + {% if not tbl_is_view and not db_is_system_schema %} + + + + + + + + + + {% if index_size is defined %} + + + + + + {% endif %} + + {% if free_size is defined %} + + + + + + + + + + + {% endif %} + + {% if tot_size is defined and mergetable == false %} + + + + + + {% endif %} + + {# Optimize link if overhead #} + {% if free_size is defined + and (tbl_storage_engine == 'MYISAM' + or tbl_storage_engine == 'ARIA' + or tbl_storage_engine == 'MARIA' + or tbl_storage_engine == 'BDB') + or (tbl_storage_engine == 'INNODB' and innodb_file_per_table == true) %} + + + + {% endif %} + +
{% trans 'Space usage' %}
{% trans 'Data' %}{{ data_size }}{{ data_unit }}
{% trans 'Index' %}{{ index_size }}{{ index_unit }}
{% trans 'Overhead' %}{{ free_size }}{{ free_unit }}
{% trans 'Effective' %}{{ effect_size }}{{ effect_unit }}
{% trans 'Total' %}{{ tot_size }}{{ tot_unit }}
+ {% endif %} + + {% set avg_size = avg_size is defined ? avg_size : null %} + {% set avg_unit = avg_unit is defined ? avg_unit : null %} + + + + {% if showtable['Row_format'] is defined %} + + + {% if showtable['Row_format'] == 'Fixed' %} + + {% elseif showtable['Row_format'] == 'Dynamic' %} + + {% else %} + + {% endif %} + + {% endif %} + + {% if showtable['Create_options'] is not empty %} + + + {% if showtable['Create_options'] == 'partitioned' %} + + {% else %} + + {% endif %} + + {% endif %} + + {% if table_collation is not empty %} + + + + + {% endif %} + + {% if not is_innodb and showtable['Rows'] is defined %} + + + + + {% endif %} + + {% if not is_innodb + and showtable['Avg_row_length'] is defined + and showtable['Avg_row_length'] > 0 %} + + + {% set avg_row_length = format_byte_down(showtable['Avg_row_length'], 6, 1) %} + + + {% endif %} + + {% if not is_innodb + and showtable['Data_length'] is defined + and showtable['Rows'] is defined + and showtable['Rows'] > 0 + and mergetable == false %} + + + + + {% endif %} + + {% if showtable['Auto_increment'] is defined %} + + + + + {% endif %} + + {% if showtable['Create_time'] is defined %} + + + + + {% endif %} + + {% if showtable['Update_time'] is defined %} + + + + + {% endif %} + + {% if showtable['Check_time'] is defined %} + + + + + {% endif %} + +
{% trans 'Row statistics' %}
{% trans 'Format' %}{% trans 'static' %}{% trans 'dynamic' %}{{ showtable['Row_format'] }}
{% trans 'Options' %}{% trans 'partitioned' %}{{ showtable['Create_options'] }}
{% trans 'Collation' %} + + {{ table_collation.name }} + +
{% trans 'Rows' %}{{ format_number(showtable['Rows'], 0) }}
{% trans 'Row length' %}{{ avg_row_length[0] }} {{ avg_row_length[1] }}
{% trans 'Row size' %}{{ avg_size }} {{ avg_unit }}
{% trans 'Next autoindex' %}{{ format_number(showtable['Auto_increment'], 0) }}
{% trans 'Creation' %}{{ localised_date(showtable['Create_time']|date('U')) }}
{% trans 'Last update' %}{{ localised_date(showtable['Update_time']|date('U')) }}
{% trans 'Last check' %}{{ localised_date(showtable['Check_time']|date('U')) }}
+
+
-- cgit