db2c96926c6fbee2def6ca09c67f36a6bff3cd6badbbc16d33c2cdf7d1c85c8f.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <?php
  2. /* table/structure/actions_in_table_structure.twig */
  3. class __TwigTemplate_3ed065e0ce5a8e7fa76de9abaf390a84e5075831920ee5193fd93541b9699b9a 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 "<td class=\"print_ignore\"><ul class=\"table-structure-actions resizable-menu\">
  16. ";
  17. // line 2
  18. if (($context["hide_structure_actions"] ?? null)) {
  19. // line 3
  20. echo " <li class=\"submenu shown\">
  21. <a href=\"#\" class=\"tab nowrap\">";
  22. // line 4
  23. echo PhpMyAdmin\Util::getIcon("b_more", _gettext("More"));
  24. echo "</a>
  25. <ul>
  26. ";
  27. }
  28. // line 7
  29. echo " ";
  30. // line 8
  31. echo " ";
  32. $this->loadTemplate("table/structure/action_row_in_structure_table.twig", "table/structure/actions_in_table_structure.twig", 8)->display(["type" => // line 9
  33. ($context["type"] ?? null), "tbl_storage_engine" => // line 10
  34. ($context["tbl_storage_engine"] ?? null), "class" => "primary nowrap", "has_field" => ( // line 12
  35. ($context["primary"] ?? null) && $this->getAttribute(($context["primary"] ?? null), "hasColumn", [0 => ($context["field_name"] ?? null)], "method")), "has_link_class" => true, "url_query" => // line 14
  36. ($context["url_query"] ?? null), "primary" => // line 15
  37. ($context["primary"] ?? null), "syntax" => "ADD PRIMARY KEY", "message" => _gettext("A primary key has been added on %s."), "action" => "Primary", "titles" => // line 19
  38. ($context["titles"] ?? null), "row" => // line 20
  39. ($context["row"] ?? null), "is_primary" => true, "table" => // line 22
  40. ($context["table"] ?? null)]);
  41. // line 24
  42. echo "
  43. ";
  44. // line 26
  45. echo " ";
  46. $this->loadTemplate("table/structure/action_row_in_structure_table.twig", "table/structure/actions_in_table_structure.twig", 26)->display(["type" => // line 27
  47. ($context["type"] ?? null), "tbl_storage_engine" => // line 28
  48. ($context["tbl_storage_engine"] ?? null), "class" => "add_unique unique nowrap", "has_field" => twig_in_filter( // line 30
  49. ($context["field_name"] ?? null), ($context["columns_with_unique_index"] ?? null)), "has_link_class" => false, "url_query" => // line 32
  50. ($context["url_query"] ?? null), "primary" => // line 33
  51. ($context["primary"] ?? null), "syntax" => "ADD UNIQUE", "message" => _gettext("An index has been added on %s."), "action" => "Unique", "titles" => // line 37
  52. ($context["titles"] ?? null), "row" => // line 38
  53. ($context["row"] ?? null), "is_primary" => false, "table" => // line 40
  54. ($context["table"] ?? null)]);
  55. // line 42
  56. echo "
  57. ";
  58. // line 44
  59. echo " ";
  60. $this->loadTemplate("table/structure/action_row_in_structure_table.twig", "table/structure/actions_in_table_structure.twig", 44)->display(["type" => // line 45
  61. ($context["type"] ?? null), "tbl_storage_engine" => // line 46
  62. ($context["tbl_storage_engine"] ?? null), "class" => "add_index nowrap", "has_field" => false, "has_link_class" => false, "url_query" => // line 50
  63. ($context["url_query"] ?? null), "primary" => // line 51
  64. ($context["primary"] ?? null), "syntax" => "ADD INDEX", "message" => _gettext("An index has been added on %s."), "action" => "Index", "titles" => // line 55
  65. ($context["titles"] ?? null), "row" => // line 56
  66. ($context["row"] ?? null), "is_primary" => false, "table" => // line 58
  67. ($context["table"] ?? null)]);
  68. // line 60
  69. echo "
  70. ";
  71. // line 62
  72. echo " ";
  73. $context["spatial_types"] = [0 => "geometry", 1 => "point", 2 => "linestring", 3 => "polygon", 4 => "multipoint", 5 => "multilinestring", 6 => "multipolygon", 7 => "geomtrycollection"];
  74. // line 72
  75. echo " ";
  76. $this->loadTemplate("table/structure/action_row_in_structure_table.twig", "table/structure/actions_in_table_structure.twig", 72)->display(["type" => // line 73
  77. ($context["type"] ?? null), "tbl_storage_engine" => // line 74
  78. ($context["tbl_storage_engine"] ?? null), "class" => "spatial nowrap", "has_field" => (!twig_in_filter( // line 76
  79. ($context["type"] ?? null), ($context["spatial_types"] ?? null)) && (( // line 77
  80. ($context["tbl_storage_engine"] ?? null) == "MYISAM") || (($context["mysql_int_version"] ?? null) >= 50705))), "has_link_class" => false, "url_query" => // line 79
  81. ($context["url_query"] ?? null), "primary" => // line 80
  82. ($context["primary"] ?? null), "syntax" => "ADD SPATIAL", "message" => _gettext("An index has been added on %s."), "action" => "Spatial", "titles" => // line 84
  83. ($context["titles"] ?? null), "row" => // line 85
  84. ($context["row"] ?? null), "is_primary" => false, "table" => // line 87
  85. ($context["table"] ?? null)]);
  86. // line 89
  87. echo "
  88. ";
  89. // line 91
  90. echo " <li class=\"fulltext nowrap\">
  91. ";
  92. // line 92
  93. if ((( !twig_test_empty(($context["tbl_storage_engine"] ?? null)) && (((( // line 93
  94. ($context["tbl_storage_engine"] ?? null) == "MYISAM") || ( // line 94
  95. ($context["tbl_storage_engine"] ?? null) == "ARIA")) || ( // line 95
  96. ($context["tbl_storage_engine"] ?? null) == "MARIA")) || (( // line 96
  97. ($context["tbl_storage_engine"] ?? null) == "INNODB") && (($context["mysql_int_version"] ?? null) >= 50604)))) && (twig_in_filter("text", // line 97
  98. ($context["type"] ?? null)) || twig_in_filter("char", ($context["type"] ?? null))))) {
  99. // line 98
  100. echo " <a rel=\"samepage\" class=\"ajax add_key add_fulltext_anchor\" href=\"tbl_structure.php\"
  101. data-post=\"";
  102. // line 99
  103. echo ($context["url_query"] ?? null);
  104. echo "&amp;add_key=1&amp;sql_query=";
  105. // line 100
  106. echo twig_escape_filter($this->env, twig_urlencode_filter((((("ALTER TABLE " . PhpMyAdmin\Util::backquote(($context["table"] ?? null))) . " ADD FULLTEXT(") . PhpMyAdmin\Util::backquote($this->getAttribute( // line 101
  107. ($context["row"] ?? null), "Field", [], "array"))) . ");")), "html", null, true);
  108. // line 102
  109. echo "&amp;message_to_show=";
  110. // line 103
  111. echo twig_escape_filter($this->env, twig_urlencode_filter(sprintf(_gettext("An index has been added on %s."), twig_escape_filter($this->env, $this->getAttribute(($context["row"] ?? null), "Field", [], "array")))), "html", null, true);
  112. echo "\">
  113. ";
  114. // line 104
  115. echo $this->getAttribute(($context["titles"] ?? null), "IdxFulltext", [], "array");
  116. echo "
  117. </a>
  118. ";
  119. } else {
  120. // line 107
  121. echo " ";
  122. echo $this->getAttribute(($context["titles"] ?? null), "NoIdxFulltext", [], "array");
  123. echo "
  124. ";
  125. }
  126. // line 109
  127. echo " </li>
  128. ";
  129. // line 112
  130. echo " <li class=\"browse nowrap\">
  131. <a href=\"sql.php\" data-post=\"";
  132. // line 113
  133. echo ($context["url_query"] ?? null);
  134. echo "&amp;sql_query=";
  135. // line 114
  136. echo twig_escape_filter($this->env, twig_urlencode_filter(((((((((("SELECT COUNT(*) AS " . PhpMyAdmin\Util::backquote(_gettext("Rows"))) . ", ") . PhpMyAdmin\Util::backquote($this->getAttribute( // line 115
  137. ($context["row"] ?? null), "Field", [], "array"))) . " FROM ") . PhpMyAdmin\Util::backquote( // line 116
  138. ($context["table"] ?? null))) . " GROUP BY ") . PhpMyAdmin\Util::backquote($this->getAttribute( // line 117
  139. ($context["row"] ?? null), "Field", [], "array"))) . " ORDER BY ") . PhpMyAdmin\Util::backquote($this->getAttribute( // line 118
  140. ($context["row"] ?? null), "Field", [], "array")))), "html", null, true);
  141. // line 119
  142. echo "&amp;is_browse_distinct=1\">
  143. ";
  144. // line 120
  145. echo $this->getAttribute(($context["titles"] ?? null), "DistinctValues", [], "array");
  146. echo "
  147. </a>
  148. </li>
  149. ";
  150. // line 123
  151. if (($context["central_columns_work"] ?? null)) {
  152. // line 124
  153. echo " <li class=\"browse nowrap\">
  154. ";
  155. // line 125
  156. if (($context["is_in_central_columns"] ?? null)) {
  157. // line 126
  158. echo " <a href=\"#\" class=\"central_columns remove_button\">
  159. ";
  160. // line 127
  161. echo PhpMyAdmin\Util::getIcon("centralColumns_delete", _gettext("Remove from central columns"));
  162. echo "
  163. </a>
  164. ";
  165. } else {
  166. // line 130
  167. echo " <a href=\"#\" class=\"central_columns add_button\">
  168. ";
  169. // line 131
  170. echo PhpMyAdmin\Util::getIcon("centralColumns_add", _gettext("Add to central columns"));
  171. echo "
  172. </a>
  173. ";
  174. }
  175. // line 134
  176. echo " </li>
  177. ";
  178. }
  179. // line 136
  180. echo " ";
  181. if (($context["hide_structure_actions"] ?? null)) {
  182. // line 137
  183. echo " </ul>
  184. </li>
  185. ";
  186. }
  187. // line 140
  188. echo "</ul></td>
  189. ";
  190. }
  191. public function getTemplateName()
  192. {
  193. return "table/structure/actions_in_table_structure.twig";
  194. }
  195. public function isTraitable()
  196. {
  197. return false;
  198. }
  199. public function getDebugInfo()
  200. {
  201. return array ( 193 => 140, 188 => 137, 185 => 136, 181 => 134, 175 => 131, 172 => 130, 166 => 127, 163 => 126, 161 => 125, 158 => 124, 156 => 123, 150 => 120, 147 => 119, 145 => 118, 144 => 117, 143 => 116, 142 => 115, 141 => 114, 138 => 113, 135 => 112, 131 => 109, 125 => 107, 119 => 104, 115 => 103, 113 => 102, 111 => 101, 110 => 100, 107 => 99, 104 => 98, 102 => 97, 101 => 96, 100 => 95, 99 => 94, 98 => 93, 97 => 92, 94 => 91, 91 => 89, 89 => 87, 88 => 85, 87 => 84, 86 => 80, 85 => 79, 84 => 77, 83 => 76, 82 => 74, 81 => 73, 79 => 72, 76 => 62, 73 => 60, 71 => 58, 70 => 56, 69 => 55, 68 => 51, 67 => 50, 66 => 46, 65 => 45, 63 => 44, 60 => 42, 58 => 40, 57 => 38, 56 => 37, 55 => 33, 54 => 32, 53 => 30, 52 => 28, 51 => 27, 49 => 26, 46 => 24, 44 => 22, 43 => 20, 42 => 19, 41 => 15, 40 => 14, 39 => 12, 38 => 10, 37 => 9, 35 => 8, 33 => 7, 27 => 4, 24 => 3, 22 => 2, 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/actions_in_table_structure.twig", "D:\\PHP_www\\phpMyAdmin4.8.5\\templates\\table\\structure\\actions_in_table_structure.twig");
  212. }
  213. }