8167eb489afef019fa6cd5128d759c57f86efbc70ce43b756ab18d65c3535e8e.php 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <?php
  2. /* table/structure/action_row_in_structure_table.twig */
  3. class __TwigTemplate_5beb029e23e8626bc3f31b4c0e4c068474984edc4526a81c7c769a1cae59d0ab 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 "<li class=\"";
  16. echo twig_escape_filter($this->env, ($context["class"] ?? null), "html", null, true);
  17. echo "\">
  18. ";
  19. // line 2
  20. if (((((($context["type"] ?? null) == "text") || ( // line 3
  21. ($context["type"] ?? null) == "blob")) || ( // line 4
  22. ($context["tbl_storage_engine"] ?? null) == "ARCHIVE")) || // line 5
  23. ($context["has_field"] ?? null))) {
  24. // line 6
  25. echo " ";
  26. echo $this->getAttribute(($context["titles"] ?? null), ("No" . ($context["action"] ?? null)), [], "array");
  27. echo "
  28. ";
  29. } else {
  30. // line 8
  31. echo " <a rel=\"samepage\" class=\"ajax add_key print_ignore";
  32. // line 9
  33. if (($context["has_link_class"] ?? null)) {
  34. // line 10
  35. echo " add_primary_key_anchor";
  36. } elseif (( // line 11
  37. ($context["action"] ?? null) == "Index")) {
  38. // line 12
  39. echo " add_index_anchor";
  40. } elseif (( // line 13
  41. ($context["action"] ?? null) == "Unique")) {
  42. // line 14
  43. echo " add_unique_anchor";
  44. } elseif (( // line 15
  45. ($context["action"] ?? null) == "Spatial")) {
  46. // line 16
  47. echo " add_spatial_anchor";
  48. }
  49. // line 17
  50. echo "\" href=\"tbl_structure.php\" data-post=\"";
  51. echo ($context["url_query"] ?? null);
  52. // line 18
  53. echo "&amp;add_key=1&amp;sql_query=";
  54. // line 19
  55. echo twig_escape_filter($this->env, twig_urlencode_filter(((((((("ALTER TABLE " . PhpMyAdmin\Util::backquote( // line 20
  56. ($context["table"] ?? null))) . (( // line 21
  57. ($context["is_primary"] ?? null)) ? (((($context["primary"] ?? null)) ? (" DROP PRIMARY KEY,") : (""))) : (""))) . " ") . // line 23
  58. ($context["syntax"] ?? null)) . "(") . PhpMyAdmin\Util::backquote($this->getAttribute( // line 25
  59. ($context["row"] ?? null), "Field", [], "array"))) . ");")), "html", null, true);
  60. // line 27
  61. echo "&amp;message_to_show=";
  62. echo twig_escape_filter($this->env, twig_urlencode_filter(sprintf(($context["message"] ?? null), twig_escape_filter($this->env, $this->getAttribute(($context["row"] ?? null), "Field", [], "array")))), "html", null, true);
  63. echo "\">
  64. ";
  65. // line 28
  66. echo $this->getAttribute(($context["titles"] ?? null), ($context["action"] ?? null), [], "array");
  67. echo "
  68. </a>
  69. ";
  70. }
  71. // line 31
  72. echo "</li>
  73. ";
  74. }
  75. public function getTemplateName()
  76. {
  77. return "table/structure/action_row_in_structure_table.twig";
  78. }
  79. public function isTraitable()
  80. {
  81. return false;
  82. }
  83. public function getDebugInfo()
  84. {
  85. return array ( 76 => 31, 70 => 28, 65 => 27, 63 => 25, 62 => 23, 61 => 21, 60 => 20, 59 => 19, 57 => 18, 54 => 17, 51 => 16, 49 => 15, 47 => 14, 45 => 13, 43 => 12, 41 => 11, 39 => 10, 37 => 9, 35 => 8, 29 => 6, 27 => 5, 26 => 4, 25 => 3, 24 => 2, 19 => 1,);
  86. }
  87. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  88. public function getSource()
  89. {
  90. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  91. return $this->getSourceContext()->getCode();
  92. }
  93. public function getSourceContext()
  94. {
  95. return new Twig_Source("", "table/structure/action_row_in_structure_table.twig", "D:\\PHP_www\\phpMyAdmin4.8.5\\templates\\table\\structure\\action_row_in_structure_table.twig");
  96. }
  97. }