29927b28df05e55da16bb7c6efa4d9c874e659de484f6e4dd23b3e7a00573c14.php 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. <?php
  2. /* table/structure/table_structure_row.twig */
  3. class __TwigTemplate_5d52be568ac9f75f6af94c751c0f15866fc009fe42c0cc9fc558ae5c407043e4 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=\"center print_ignore\">
  16. <input type=\"checkbox\" class=\"checkall\" name=\"selected_fld[]\" value=\"";
  17. // line 2
  18. echo twig_escape_filter($this->env, $this->getAttribute(($context["row"] ?? null), "Field", [], "array"), "html", null, true);
  19. echo "\" id=\"checkbox_row_";
  20. echo twig_escape_filter($this->env, ($context["rownum"] ?? null), "html", null, true);
  21. echo "\"/>
  22. </td>
  23. <td class=\"right\">";
  24. // line 4
  25. echo twig_escape_filter($this->env, ($context["rownum"] ?? null), "html", null, true);
  26. echo "</td>
  27. <th class=\"nowrap\">
  28. <label for=\"checkbox_row_";
  29. // line 6
  30. echo twig_escape_filter($this->env, ($context["rownum"] ?? null), "html", null, true);
  31. echo "\">
  32. ";
  33. // line 7
  34. echo ($context["displayed_field_name"] ?? null);
  35. echo "
  36. </label>
  37. </th>
  38. <td ";
  39. // line 10
  40. echo twig_escape_filter($this->env, ($context["type_nowrap"] ?? null), "html", null, true);
  41. echo ">
  42. <bdo dir=\"ltr\" lang=\"en\">
  43. ";
  44. // line 12
  45. echo $this->getAttribute(($context["extracted_columnspec"] ?? null), "displayed_type", [], "array");
  46. echo "
  47. ";
  48. // line 13
  49. if ((((($context["relation_commwork"] ?? null) && ($context["relation_mimework"] ?? null)) && ($context["browse_mime"] ?? null)) && $this->getAttribute($this->getAttribute( // line 14
  50. ($context["mime_map"] ?? null), $this->getAttribute(($context["row"] ?? null), "Field", [], "array"), [], "array", false, true), "mimetype", [], "array", true, true))) {
  51. // line 15
  52. echo " <br />MIME: ";
  53. echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_replace_filter($this->getAttribute($this->getAttribute(($context["mime_map"] ?? null), $this->getAttribute(($context["row"] ?? null), "Field", [], "array"), [], "array"), "mimetype", [], "array"), ["_" => "/"])), "html", null, true);
  54. echo "
  55. ";
  56. }
  57. // line 17
  58. echo " </bdo>
  59. </td>
  60. <td>
  61. ";
  62. // line 20
  63. if ( !twig_test_empty(($context["field_charset"] ?? null))) {
  64. // line 21
  65. echo " <dfn title=\"";
  66. echo twig_escape_filter($this->env, PhpMyAdmin\Charsets::getCollationDescr(($context["field_charset"] ?? null)), "html", null, true);
  67. echo "\">";
  68. echo twig_escape_filter($this->env, ($context["field_charset"] ?? null), "html", null, true);
  69. echo "</dfn>
  70. ";
  71. }
  72. // line 23
  73. echo "</td>
  74. <td class=\"column_attribute nowrap\">";
  75. // line 24
  76. echo twig_escape_filter($this->env, ($context["attribute"] ?? null), "html", null, true);
  77. echo "</td>
  78. <td>";
  79. // line 25
  80. echo twig_escape_filter($this->env, ((($this->getAttribute(($context["row"] ?? null), "Null", [], "array") == "YES")) ? (_gettext("Yes")) : (_gettext("No"))), "html", null, true);
  81. echo "</td>
  82. <td class=\"nowrap\">
  83. ";
  84. // line 27
  85. if ( !(null === $this->getAttribute(($context["row"] ?? null), "Default", [], "array"))) {
  86. // line 28
  87. echo " ";
  88. if (($this->getAttribute(($context["extracted_columnspec"] ?? null), "type", [], "array") == "bit")) {
  89. // line 29
  90. echo " ";
  91. echo twig_escape_filter($this->env, PhpMyAdmin\Util::convertBitDefaultValue($this->getAttribute(($context["row"] ?? null), "Default", [], "array")), "html", null, true);
  92. echo "
  93. ";
  94. } else {
  95. // line 31
  96. echo " ";
  97. echo $this->getAttribute(($context["row"] ?? null), "Default", [], "array");
  98. echo "
  99. ";
  100. }
  101. // line 33
  102. echo " ";
  103. } else {
  104. // line 34
  105. echo " <em>";
  106. echo _pgettext( "None for default", "None");
  107. echo "</em>
  108. ";
  109. }
  110. // line 36
  111. echo "</td>
  112. ";
  113. // line 37
  114. if (($context["show_column_comments"] ?? null)) {
  115. // line 38
  116. echo " <td>
  117. ";
  118. // line 39
  119. echo twig_escape_filter($this->env, ($context["comments"] ?? null), "html", null, true);
  120. echo "
  121. </td>
  122. ";
  123. }
  124. // line 42
  125. echo "<td class=\"nowrap\">";
  126. echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->getAttribute(($context["row"] ?? null), "Extra", [], "array")), "html", null, true);
  127. echo "</td>
  128. ";
  129. // line 43
  130. if (( !($context["tbl_is_view"] ?? null) && !($context["db_is_system_schema"] ?? null))) {
  131. // line 44
  132. echo " <td class=\"edit center print_ignore\">
  133. <a class=\"change_column_anchor ajax\" href=\"tbl_structure.php";
  134. // line 46
  135. echo twig_escape_filter($this->env, ($context["url_query"] ?? null), "html", null, true);
  136. echo "&amp;field=";
  137. echo twig_escape_filter($this->env, twig_urlencode_filter($this->getAttribute(($context["row"] ?? null), "Field", [], "array")), "html", null, true);
  138. echo "&amp;change_column=1\">
  139. ";
  140. // line 47
  141. echo $this->getAttribute(($context["titles"] ?? null), "Change", [], "array");
  142. echo "
  143. </a>
  144. </td>
  145. <td class=\"drop center print_ignore\">
  146. <a class=\"drop_column_anchor ajax\" href=\"sql.php\" data-post=\"";
  147. // line 51
  148. echo twig_escape_filter($this->env, ($context["url_query"] ?? null), "html", null, true);
  149. echo "&amp;sql_query=";
  150. // line 52
  151. echo twig_escape_filter($this->env, twig_urlencode_filter((((("ALTER TABLE " . PhpMyAdmin\Util::backquote(($context["table"] ?? null))) . " DROP ") . PhpMyAdmin\Util::backquote($this->getAttribute( // line 53
  152. ($context["row"] ?? null), "Field", [], "array"))) . ";")), "html", null, true);
  153. // line 54
  154. echo "&amp;dropped_column=";
  155. echo twig_escape_filter($this->env, twig_urlencode_filter($this->getAttribute(($context["row"] ?? null), "Field", [], "array")), "html", null, true);
  156. echo "&amp;purge=1&amp;message_to_show=";
  157. // line 55
  158. echo twig_escape_filter($this->env, twig_urlencode_filter(sprintf(_gettext("Column %s has been dropped."), twig_escape_filter($this->env, $this->getAttribute(($context["row"] ?? null), "Field", [], "array")))), "html", null, true);
  159. echo "\">
  160. ";
  161. // line 56
  162. echo $this->getAttribute(($context["titles"] ?? null), "Drop", [], "array");
  163. echo "
  164. </a>
  165. </td>
  166. ";
  167. }
  168. }
  169. public function getTemplateName()
  170. {
  171. return "table/structure/table_structure_row.twig";
  172. }
  173. public function isTraitable()
  174. {
  175. return false;
  176. }
  177. public function getDebugInfo()
  178. {
  179. return array ( 166 => 56, 162 => 55, 158 => 54, 156 => 53, 155 => 52, 152 => 51, 145 => 47, 139 => 46, 136 => 44, 134 => 43, 129 => 42, 123 => 39, 120 => 38, 118 => 37, 115 => 36, 109 => 34, 106 => 33, 100 => 31, 94 => 29, 91 => 28, 89 => 27, 84 => 25, 80 => 24, 77 => 23, 69 => 21, 67 => 20, 62 => 17, 56 => 15, 54 => 14, 53 => 13, 49 => 12, 44 => 10, 38 => 7, 34 => 6, 29 => 4, 22 => 2, 19 => 1,);
  180. }
  181. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  182. public function getSource()
  183. {
  184. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  185. return $this->getSourceContext()->getCode();
  186. }
  187. public function getSourceContext()
  188. {
  189. return new Twig_Source("", "table/structure/table_structure_row.twig", "D:\\PHP_www\\phpMyAdmin4.8.5\\templates\\table\\structure\\table_structure_row.twig");
  190. }
  191. }