table_header.twig 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <form method="post" action="db_structure.php" name="tablesForm" id="tablesForm">
  2. {{ Url_getHiddenInputs(db) }}
  3. <div class="responsivetable">
  4. <table id="structureTable" class="data">
  5. <thead>
  6. <tr>
  7. <th class="print_ignore"></th>
  8. <th>{{ Util_sortableTableHeader('Table'|trans, 'table') }}</th>
  9. {% if replication %}
  10. <th>{% trans 'Replication' %}</th>
  11. {% endif %}
  12. {% if db_is_system_schema %}
  13. {% set action_colspan = 3 %}
  14. {% else %}
  15. {% set action_colspan = 6 %}
  16. {% endif %}
  17. {% if num_favorite_tables > 0 %}
  18. {% set action_colspan = action_colspan + 1 %}
  19. {% endif %}
  20. <th colspan="{{ action_colspan }}" class="print_ignore">
  21. {% trans 'Action' %}
  22. </th>
  23. {# larger values are more interesting so default sort order is DESC #}
  24. <th>
  25. {{ Util_sortableTableHeader('Rows'|trans, 'records', 'DESC') }}
  26. {{ Util_showHint(Sanitize_sanitize(
  27. 'May be approximate. Click on the number to get the exact count. See [doc@faq3-11]FAQ 3.11[/doc].'|trans
  28. )) }}
  29. </th>
  30. {% if not (properties_num_columns > 1) %}
  31. <th>{{ Util_sortableTableHeader('Type'|trans, 'type') }}</th>
  32. <th>{{ Util_sortableTableHeader('Collation'|trans, 'collation') }}</th>
  33. {% endif %}
  34. {% if is_show_stats %}
  35. {# larger values are more interesting so default sort order is DESC #}
  36. <th>{{ Util_sortableTableHeader('Size'|trans, 'size', 'DESC') }}</th>
  37. {# larger values are more interesting so default sort order is DESC #}
  38. <th>{{ Util_sortableTableHeader('Overhead'|trans, 'overhead', 'DESC') }}</th>
  39. {% endif %}
  40. {% if show_charset %}
  41. <th>{{ Util_sortableTableHeader('Charset'|trans, 'charset') }}</th>
  42. {% endif %}
  43. {% if show_comment %}
  44. <th>{{ Util_sortableTableHeader('Comment'|trans, 'comment') }}</th>
  45. {% endif %}
  46. {% if show_creation %}
  47. {# newer values are more interesting so default sort order is DESC #}
  48. <th>{{ Util_sortableTableHeader('Creation'|trans, 'creation', 'DESC') }}</th>
  49. {% endif %}
  50. {% if show_last_update %}
  51. {# newer values are more interesting so default sort order is DESC #}
  52. <th>{{ Util_sortableTableHeader('Last update'|trans, 'last_update', 'DESC') }}</th>
  53. {% endif %}
  54. {% if show_last_check %}
  55. {# newer values are more interesting so default sort order is DESC #}
  56. <th>{{ Util_sortableTableHeader('Last check'|trans, 'last_check', 'DESC') }}</th>
  57. {% endif %}
  58. </tr>
  59. </thead>
  60. <tbody>
  61. {% for structure_table_row in structure_table_rows %}
  62. {% include 'database/structure/structure_table_row.twig' with structure_table_row only %}
  63. {% endfor %}
  64. </tbody>
  65. {% if body_for_table_summary %}
  66. {% include 'database/structure/body_for_table_summary.twig' with body_for_table_summary only %}
  67. {% endif %}
  68. </table>
  69. </div>
  70. {% if check_all_tables %}
  71. {% include 'database/structure/check_all_tables.twig' with check_all_tables only %}
  72. {% endif %}
  73. </form>