82ae572822fb926d2c0aee7946b00f48983c4590f9c1e2d11ccdf1f996731df9.php 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <?php
  2. /* table/structure/display_table_stats.twig */
  3. class __TwigTemplate_43801ec0157f7cd750ec4cbce9e297ac01958d9db73212b91e3175d0ee8350e6 extends Twig_Template
  4. {
  5. public function __construct(Twig_Environment $env)
  6. {
  7. parent::__construct($env);
  8. $this->parent = false;
  9. $this->blocks = [
  10. ];
  11. }
  12. protected function doDisplay(array $context, array $blocks = [])
  13. {
  14. // line 1
  15. echo "<div id=\"tablestatistics\">
  16. <fieldset>
  17. <legend>";
  18. // line 3
  19. echo _gettext("Information");
  20. echo "</legend>
  21. ";
  22. // line 4
  23. if ($this->getAttribute(($context["showtable"] ?? null), "TABLE_COMMENT", [], "array")) {
  24. // line 5
  25. echo " <p>
  26. <strong>";
  27. // line 6
  28. echo _gettext("Table comments:");
  29. echo "</strong>
  30. ";
  31. // line 7
  32. echo twig_escape_filter($this->env, $this->getAttribute(($context["showtable"] ?? null), "TABLE_COMMENT", [], "array"), "html", null, true);
  33. echo "
  34. </p>
  35. ";
  36. }
  37. // line 10
  38. echo " <a id=\"showusage\"></a>
  39. ";
  40. // line 12
  41. if (( !($context["tbl_is_view"] ?? null) && !($context["db_is_system_schema"] ?? null))) {
  42. // line 13
  43. echo " <table id=\"tablespaceusage\" class=\"width100 data\">
  44. <caption class=\"tblHeaders\">";
  45. // line 14
  46. echo _gettext("Space usage");
  47. echo "</caption>
  48. <tbody>
  49. <tr>
  50. <th class=\"name\">";
  51. // line 17
  52. echo _gettext("Data");
  53. echo "</th>
  54. <td class=\"value\">";
  55. // line 18
  56. echo twig_escape_filter($this->env, ($context["data_size"] ?? null), "html", null, true);
  57. echo "</td>
  58. <td class=\"unit\">";
  59. // line 19
  60. echo twig_escape_filter($this->env, ($context["data_unit"] ?? null), "html", null, true);
  61. echo "</td>
  62. </tr>
  63. ";
  64. // line 22
  65. if ((isset($context["index_size"]) || array_key_exists("index_size", $context))) {
  66. // line 23
  67. echo " <tr>
  68. <th class=\"name\">";
  69. // line 24
  70. echo _gettext("Index");
  71. echo "</th>
  72. <td class=\"value\">";
  73. // line 25
  74. echo twig_escape_filter($this->env, ($context["index_size"] ?? null), "html", null, true);
  75. echo "</td>
  76. <td class=\"unit\">";
  77. // line 26
  78. echo twig_escape_filter($this->env, ($context["index_unit"] ?? null), "html", null, true);
  79. echo "</td>
  80. </tr>
  81. ";
  82. }
  83. // line 29
  84. echo "
  85. ";
  86. // line 30
  87. if ((isset($context["free_size"]) || array_key_exists("free_size", $context))) {
  88. // line 31
  89. echo " <tr>
  90. <th class=\"name\">";
  91. // line 32
  92. echo _gettext("Overhead");
  93. echo "</th>
  94. <td class=\"value\">";
  95. // line 33
  96. echo twig_escape_filter($this->env, ($context["free_size"] ?? null), "html", null, true);
  97. echo "</td>
  98. <td class=\"unit\">";
  99. // line 34
  100. echo twig_escape_filter($this->env, ($context["free_unit"] ?? null), "html", null, true);
  101. echo "</td>
  102. </tr>
  103. <tr>
  104. <th class=\"name\">";
  105. // line 37
  106. echo _gettext("Effective");
  107. echo "</th>
  108. <td class=\"value\">";
  109. // line 38
  110. echo twig_escape_filter($this->env, ($context["effect_size"] ?? null), "html", null, true);
  111. echo "</td>
  112. <td class=\"unit\">";
  113. // line 39
  114. echo twig_escape_filter($this->env, ($context["effect_unit"] ?? null), "html", null, true);
  115. echo "</td>
  116. </tr>
  117. ";
  118. }
  119. // line 42
  120. echo "
  121. ";
  122. // line 43
  123. if (((isset($context["tot_size"]) || array_key_exists("tot_size", $context)) && (($context["mergetable"] ?? null) == false))) {
  124. // line 44
  125. echo " <tr>
  126. <th class=\"name\">";
  127. // line 45
  128. echo _gettext("Total");
  129. echo "</th>
  130. <td class=\"value\">";
  131. // line 46
  132. echo twig_escape_filter($this->env, ($context["tot_size"] ?? null), "html", null, true);
  133. echo "</td>
  134. <td class=\"unit\">";
  135. // line 47
  136. echo twig_escape_filter($this->env, ($context["tot_unit"] ?? null), "html", null, true);
  137. echo "</td>
  138. </tr>
  139. ";
  140. }
  141. // line 50
  142. echo "
  143. ";
  144. // line 52
  145. echo " ";
  146. if (((isset($context["free_size"]) || array_key_exists("free_size", $context)) && (((( // line 53
  147. ($context["tbl_storage_engine"] ?? null) == "MYISAM") || ( // line 54
  148. ($context["tbl_storage_engine"] ?? null) == "ARIA")) || ( // line 55
  149. ($context["tbl_storage_engine"] ?? null) == "MARIA")) || ( // line 56
  150. ($context["tbl_storage_engine"] ?? null) == "BDB")))) {
  151. // line 57
  152. echo " <tr class=\"tblFooters print_ignore\">
  153. <td colspan=\"3\" class=\"center\">
  154. <a href=\"sql.php\" data-post=\"";
  155. // line 59
  156. echo twig_escape_filter($this->env, ($context["url_query"] ?? null), "html", null, true);
  157. echo "&amp;pos=0&amp;sql_query=";
  158. // line 60
  159. echo twig_escape_filter($this->env, twig_urlencode_filter(("OPTIMIZE TABLE " . PhpMyAdmin\Util::backquote(($context["table"] ?? null)))), "html", null, true);
  160. echo "\">
  161. ";
  162. // line 61
  163. echo PhpMyAdmin\Util::getIcon("b_tbloptimize", _gettext("Optimize table"));
  164. echo "
  165. </a>
  166. </td>
  167. </tr>
  168. ";
  169. }
  170. // line 66
  171. echo " </tbody>
  172. </table>
  173. ";
  174. }
  175. // line 69
  176. echo "
  177. ";
  178. // line 70
  179. $this->loadTemplate("table/structure/row_stats_table.twig", "table/structure/display_table_stats.twig", 70)->display(["showtable" => // line 71
  180. ($context["showtable"] ?? null), "tbl_collation" => // line 72
  181. ($context["tbl_collation"] ?? null), "is_innodb" => // line 73
  182. ($context["is_innodb"] ?? null), "mergetable" => // line 74
  183. ($context["mergetable"] ?? null), "avg_size" => (( // line 75
  184. (isset($context["avg_size"]) || array_key_exists("avg_size", $context))) ? (($context["avg_size"] ?? null)) : (null)), "avg_unit" => (( // line 76
  185. (isset($context["avg_unit"]) || array_key_exists("avg_unit", $context))) ? (($context["avg_unit"] ?? null)) : (null))]);
  186. // line 78
  187. echo " </fieldset>
  188. </div>
  189. ";
  190. }
  191. public function getTemplateName()
  192. {
  193. return "table/structure/display_table_stats.twig";
  194. }
  195. public function isTraitable()
  196. {
  197. return false;
  198. }
  199. public function getDebugInfo()
  200. {
  201. return array ( 193 => 78, 191 => 76, 190 => 75, 189 => 74, 188 => 73, 187 => 72, 186 => 71, 185 => 70, 182 => 69, 177 => 66, 169 => 61, 165 => 60, 162 => 59, 158 => 57, 156 => 56, 155 => 55, 154 => 54, 153 => 53, 151 => 52, 148 => 50, 142 => 47, 138 => 46, 134 => 45, 131 => 44, 129 => 43, 126 => 42, 120 => 39, 116 => 38, 112 => 37, 106 => 34, 102 => 33, 98 => 32, 95 => 31, 93 => 30, 90 => 29, 84 => 26, 80 => 25, 76 => 24, 73 => 23, 71 => 22, 65 => 19, 61 => 18, 57 => 17, 51 => 14, 48 => 13, 46 => 12, 42 => 10, 36 => 7, 32 => 6, 29 => 5, 27 => 4, 23 => 3, 19 => 1,);
  202. }
  203. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  204. public function getSource()
  205. {
  206. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  207. return $this->getSourceContext()->getCode();
  208. }
  209. public function getSourceContext()
  210. {
  211. return new Twig_Source("", "table/structure/display_table_stats.twig", "D:\\PHP_www\\phpMyAdmin4.8.5\\templates\\table\\structure\\display_table_stats.twig");
  212. }
  213. }