31e253aff80194b3a325a3b61ecc884a33f8a81659464127457d584baec42420.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?php
  2. /* table/structure/add_column.twig */
  3. class __TwigTemplate_c733fabb48866c7e4c38e7eb97fcfe88a753e64f9cd840671314277abb396fde 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 "<form method=\"post\" action=\"tbl_addfield.php\" id=\"addColumns\" name=\"addColumns\">
  16. ";
  17. // line 2
  18. echo PhpMyAdmin\Url::getHiddenInputs(($context["db"] ?? null), ($context["table"] ?? null));
  19. echo "
  20. ";
  21. // line 3
  22. if (PhpMyAdmin\Util::showIcons("ActionLinksMode")) {
  23. // line 4
  24. echo " ";
  25. echo PhpMyAdmin\Util::getImage("b_insrow", _gettext("Add column"));
  26. echo "&nbsp;
  27. ";
  28. }
  29. // line 6
  30. echo " ";
  31. $context["num_fields"] = ('' === $tmp = "<input type=\"number\" name=\"num_fields\" value=\"1\" onfocus=\"this.select()\" min=\"1\" required />") ? '' : new Twig_Markup($tmp, $this->env->getCharset());
  32. // line 9
  33. echo " ";
  34. echo sprintf(_gettext("Add %s column(s)"), ($context["num_fields"] ?? null));
  35. echo "
  36. <input type=\"hidden\" name=\"field_where\" value=\"after\"/>&nbsp;
  37. ";
  38. // line 12
  39. echo " <select name=\"after_field\">
  40. <option value=\"first\" data-pos=\"first\">
  41. ";
  42. // line 14
  43. echo _gettext("at beginning of table");
  44. // line 15
  45. echo " </option>
  46. ";
  47. // line 16
  48. $context['_parent'] = $context;
  49. $context['_seq'] = twig_ensure_traversable(($context["columns_list"] ?? null));
  50. $context['loop'] = [
  51. 'parent' => $context['_parent'],
  52. 'index0' => 0,
  53. 'index' => 1,
  54. 'first' => true,
  55. ];
  56. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) {
  57. $length = count($context['_seq']);
  58. $context['loop']['revindex0'] = $length - 1;
  59. $context['loop']['revindex'] = $length;
  60. $context['loop']['length'] = $length;
  61. $context['loop']['last'] = 1 === $length;
  62. }
  63. foreach ($context['_seq'] as $context["_key"] => $context["one_column_name"]) {
  64. // line 17
  65. echo " <option value=\"";
  66. echo twig_escape_filter($this->env, $context["one_column_name"], "html", null, true);
  67. echo "\"";
  68. // line 18
  69. echo ((($this->getAttribute($context["loop"], "revindex0", []) == 0)) ? (" selected=\"selected\"") : (""));
  70. echo ">
  71. ";
  72. // line 19
  73. echo twig_escape_filter($this->env, sprintf(_gettext("after %s"), twig_escape_filter($this->env, $context["one_column_name"])), "html", null, true);
  74. echo "
  75. </option>
  76. ";
  77. ++$context['loop']['index0'];
  78. ++$context['loop']['index'];
  79. $context['loop']['first'] = false;
  80. if (isset($context['loop']['length'])) {
  81. --$context['loop']['revindex0'];
  82. --$context['loop']['revindex'];
  83. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  84. }
  85. }
  86. $_parent = $context['_parent'];
  87. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['one_column_name'], $context['_parent'], $context['loop']);
  88. $context = array_intersect_key($context, $_parent) + $_parent;
  89. // line 22
  90. echo " </select>
  91. <input type=\"submit\" value=\"";
  92. // line 23
  93. echo _gettext("Go");
  94. echo "\" />
  95. </form>
  96. ";
  97. }
  98. public function getTemplateName()
  99. {
  100. return "table/structure/add_column.twig";
  101. }
  102. public function isTraitable()
  103. {
  104. return false;
  105. }
  106. public function getDebugInfo()
  107. {
  108. return array ( 97 => 23, 94 => 22, 77 => 19, 73 => 18, 69 => 17, 52 => 16, 49 => 15, 47 => 14, 43 => 12, 37 => 9, 34 => 6, 28 => 4, 26 => 3, 22 => 2, 19 => 1,);
  109. }
  110. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  111. public function getSource()
  112. {
  113. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  114. return $this->getSourceContext()->getCode();
  115. }
  116. public function getSourceContext()
  117. {
  118. return new Twig_Source("", "table/structure/add_column.twig", "D:\\PHP_www\\phpMyAdmin4.8.5\\templates\\table\\structure\\add_column.twig");
  119. }
  120. }