diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-01-09 10:55:03 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-01-09 13:09:38 +0100 |
| commit | 04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa (patch) | |
| tree | 5c691241355c943a3c68ddb06b8cf8c60aa11319 /srcs/phpmyadmin/templates/database/structure/table_header.twig | |
| parent | 7e0d85db834d6351ed85d01e5126ac31dc510b86 (diff) | |
| download | ft_server-04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa.tar.gz ft_server-04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa.tar.bz2 ft_server-04d6d5ca99ebfd1cebb8ce06618fb3811fc1a8aa.zip | |
phpmyadmin working
Diffstat (limited to 'srcs/phpmyadmin/templates/database/structure/table_header.twig')
| -rw-r--r-- | srcs/phpmyadmin/templates/database/structure/table_header.twig | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/srcs/phpmyadmin/templates/database/structure/table_header.twig b/srcs/phpmyadmin/templates/database/structure/table_header.twig new file mode 100644 index 0000000..e479f5e --- /dev/null +++ b/srcs/phpmyadmin/templates/database/structure/table_header.twig @@ -0,0 +1,78 @@ +<form method="post" action="db_structure.php" name="tablesForm" id="tablesForm"> +{{ get_hidden_inputs(db) }} +<div class="responsivetable"> +<table id="structureTable" class="data"> + <thead> + <tr> + <th class="print_ignore"></th> + <th>{{ sortable_table_header('Table'|trans, 'table') }}</th> + {% if replication %} + <th>{% trans 'Replication' %}</th> + {% endif %} + + {% if db_is_system_schema %} + {% set action_colspan = 3 %} + {% else %} + {% set action_colspan = 6 %} + {% endif %} + {% if num_favorite_tables > 0 %} + {% set action_colspan = action_colspan + 1 %} + {% endif %} + <th colspan="{{ action_colspan }}" class="print_ignore"> + {% trans 'Action' %} + </th> + {# larger values are more interesting so default sort order is DESC #} + <th> + {{ sortable_table_header('Rows'|trans, 'records', 'DESC') }} + {{ show_hint('May be approximate. Click on the number to get the exact count. See [doc@faq3-11]FAQ 3.11[/doc].'|trans|sanitize) }} + </th> + {% if not (properties_num_columns > 1) %} + <th>{{ sortable_table_header('Type'|trans, 'type') }}</th> + <th>{{ sortable_table_header('Collation'|trans, 'collation') }}</th> + {% endif %} + + {% if is_show_stats %} + {# larger values are more interesting so default sort order is DESC #} + <th>{{ sortable_table_header('Size'|trans, 'size', 'DESC') }}</th> + {# larger values are more interesting so default sort order is DESC #} + <th>{{ sortable_table_header('Overhead'|trans, 'overhead', 'DESC') }}</th> + {% endif %} + + {% if show_charset %} + <th>{{ sortable_table_header('Charset'|trans, 'charset') }}</th> + {% endif %} + + {% if show_comment %} + <th>{{ sortable_table_header('Comment'|trans, 'comment') }}</th> + {% endif %} + + {% if show_creation %} + {# newer values are more interesting so default sort order is DESC #} + <th>{{ sortable_table_header('Creation'|trans, 'creation', 'DESC') }}</th> + {% endif %} + + {% if show_last_update %} + {# newer values are more interesting so default sort order is DESC #} + <th>{{ sortable_table_header('Last update'|trans, 'last_update', 'DESC') }}</th> + {% endif %} + + {% if show_last_check %} + {# newer values are more interesting so default sort order is DESC #} + <th>{{ sortable_table_header('Last check'|trans, 'last_check', 'DESC') }}</th> + {% endif %} + </tr> + </thead> + <tbody> + {% for structure_table_row in structure_table_rows %} + {% include 'database/structure/structure_table_row.twig' with structure_table_row only %} + {% endfor %} + </tbody> + {% if body_for_table_summary %} + {% include 'database/structure/body_for_table_summary.twig' with body_for_table_summary only %} + {% endif %} +</table> +</div> +{% if check_all_tables %} + {% include 'database/structure/check_all_tables.twig' with check_all_tables only %} +{% endif %} +</form> |
