d52220f7879a7c498d2943ebe60f3f3d1f5d1f707f9b17486bb1e818ed820eaf.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Markup;
  6. use Twig\Sandbox\SecurityError;
  7. use Twig\Sandbox\SecurityNotAllowedTagError;
  8. use Twig\Sandbox\SecurityNotAllowedFilterError;
  9. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  10. use Twig\Source;
  11. use Twig\Template;
  12. /* console/display.twig */
  13. class __TwigTemplate_f0e14a5994852499122c1813b5a858030abcd81af6a781e7609ffeaa2e2c36ee extends \Twig\Template
  14. {
  15. public function __construct(Environment $env)
  16. {
  17. parent::__construct($env);
  18. $this->parent = false;
  19. $this->blocks = [
  20. ];
  21. }
  22. protected function doDisplay(array $context, array $blocks = [])
  23. {
  24. // line 1
  25. echo "<div id=\"pma_console_container\">
  26. <div id=\"pma_console\">
  27. ";
  28. // line 4
  29. echo " ";
  30. $this->loadTemplate("console/toolbar.twig", "console/display.twig", 4)->display(twig_to_array(["parent_div_classes" => "collapsed", "content_array" => [0 => [0 => "switch_button console_switch", 1 => _gettext("Console"), "image" => // line 7
  31. ($context["image"] ?? null)], 1 => [0 => "button clear", 1 => _gettext("Clear")], 2 => [0 => "button history", 1 => _gettext("History")], 3 => [0 => "button options", 1 => _gettext("Options")], 4 => (( // line 11
  32. (isset($context["cfg_bookmark"]) || array_key_exists("cfg_bookmark", $context))) ? ([0 => "button bookmarks", 1 => _gettext("Bookmarks")]) : (null)), 5 => [0 => "button debug hide", 1 => _gettext("Debug SQL")]]]));
  33. // line 15
  34. echo " ";
  35. // line 16
  36. echo " <div class=\"content\">
  37. <div class=\"console_message_container\">
  38. <div class=\"message welcome\">
  39. <span id=\"instructions-0\">
  40. ";
  41. // line 20
  42. echo _gettext("Press Ctrl+Enter to execute query");
  43. // line 21
  44. echo " </span>
  45. <span class=\"hide\" id=\"instructions-1\">
  46. ";
  47. // line 23
  48. echo _gettext("Press Enter to execute query");
  49. // line 24
  50. echo " </span>
  51. </div>
  52. ";
  53. // line 26
  54. if ( !twig_test_empty(($context["sql_history"] ?? null))) {
  55. // line 27
  56. echo " ";
  57. $context['_parent'] = $context;
  58. $context['_seq'] = twig_ensure_traversable(twig_reverse_filter($this->env, ($context["sql_history"] ?? null)));
  59. foreach ($context['_seq'] as $context["_key"] => $context["record"]) {
  60. // line 28
  61. echo " <div class=\"message history collapsed hide";
  62. // line 29
  63. echo ((preg_match("@^SELECT[[:space:]]+@i", $this->getAttribute($context["record"], "sqlquery", [], "array"))) ? (" select") : (""));
  64. echo "\"
  65. targetdb=\"";
  66. // line 30
  67. echo twig_escape_filter($this->env, $this->getAttribute($context["record"], "db", [], "array"), "html", null, true);
  68. echo "\" targettable=\"";
  69. echo twig_escape_filter($this->env, $this->getAttribute($context["record"], "table", [], "array"), "html", null, true);
  70. echo "\">
  71. ";
  72. // line 31
  73. $this->loadTemplate("console/query_action.twig", "console/display.twig", 31)->display(twig_to_array(["parent_div_classes" => "action_content", "content_array" => [0 => [0 => "action collapse", 1 => _gettext("Collapse")], 1 => [0 => "action expand", 1 => _gettext("Expand")], 2 => [0 => "action requery", 1 => _gettext("Requery")], 3 => [0 => "action edit", 1 => _gettext("Edit")], 4 => [0 => "action explain", 1 => _gettext("Explain")], 5 => [0 => "action profiling", 1 => _gettext("Profiling")], 6 => (( // line 40
  74. (isset($context["cfg_bookmark"]) || array_key_exists("cfg_bookmark", $context))) ? ([0 => "action bookmark", 1 => _gettext("Bookmark")]) : (null)), 7 => [0 => "text failed", 1 => _gettext("Query failed")], 8 => [0 => "text targetdb", 1 => _gettext("Database"), "extraSpan" => $this->getAttribute( // line 42
  75. $context["record"], "db", [], "array")], 9 => [0 => "text query_time", 1 => _gettext("Queried time"), "extraSpan" => (($this->getAttribute( // line 46
  76. $context["record"], "timevalue", [], "array", true, true)) ? ($this->getAttribute( // line 47
  77. $context["record"], "timevalue", [], "array")) : (_gettext("During current session")))]]]));
  78. // line 51
  79. echo " <span class=\"query\">";
  80. echo twig_escape_filter($this->env, $this->getAttribute($context["record"], "sqlquery", [], "array"), "html", null, true);
  81. echo "</span>
  82. </div>
  83. ";
  84. }
  85. $_parent = $context['_parent'];
  86. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['record'], $context['_parent'], $context['loop']);
  87. $context = array_intersect_key($context, $_parent) + $_parent;
  88. // line 54
  89. echo " ";
  90. }
  91. // line 55
  92. echo " </div><!-- console_message_container -->
  93. <div class=\"query_input\">
  94. <span class=\"console_query_input\"></span>
  95. </div>
  96. </div><!-- message end -->
  97. ";
  98. // line 61
  99. echo " <div class=\"mid_layer\"></div>
  100. ";
  101. // line 63
  102. echo " <div class=\"card\" id=\"debug_console\">
  103. ";
  104. // line 64
  105. $this->loadTemplate("console/toolbar.twig", "console/display.twig", 64)->display(twig_to_array(["parent_div_classes" => "", "content_array" => [0 => [0 => "button order order_asc", 1 => _gettext("ascending")], 1 => [0 => "button order order_desc", 1 => _gettext("descending")], 2 => [0 => "text", 1 => _gettext("Order:")], 3 => [0 => "switch_button", 1 => _gettext("Debug SQL")], 4 => [0 => "button order_by sort_count", 1 => _gettext("Count")], 5 => [0 => "button order_by sort_exec", 1 => _gettext("Execution order")], 6 => [0 => "button order_by sort_time", 1 => _gettext("Time taken")], 7 => [0 => "text", 1 => _gettext("Order by:")], 8 => [0 => "button group_queries", 1 => _gettext("Group queries")], 9 => [0 => "button ungroup_queries", 1 => _gettext("Ungroup queries")]]]));
  106. // line 79
  107. echo " <div class=\"content debug\">
  108. <div class=\"message welcome\"></div>
  109. <div class=\"debugLog\"></div>
  110. </div> <!-- Content -->
  111. <div class=\"templates\">
  112. ";
  113. // line 84
  114. $this->loadTemplate("console/query_action.twig", "console/display.twig", 84)->display(twig_to_array(["parent_div_classes" => "debug_query action_content", "content_array" => [0 => [0 => "action collapse", 1 => _gettext("Collapse")], 1 => [0 => "action expand", 1 => _gettext("Expand")], 2 => [0 => "action dbg_show_trace", 1 => _gettext("Show trace")], 3 => [0 => "action dbg_hide_trace", 1 => _gettext("Hide trace")], 4 => [0 => "text count hide", 1 => _gettext("Count")], 5 => [0 => "text time", 1 => _gettext("Time taken")]]]));
  115. // line 95
  116. echo " </div> <!-- Template -->
  117. </div> <!-- Debug SQL card -->
  118. ";
  119. // line 97
  120. if (($context["cfg_bookmark"] ?? null)) {
  121. // line 98
  122. echo " <div class=\"card\" id=\"pma_bookmarks\">
  123. ";
  124. // line 99
  125. $this->loadTemplate("console/toolbar.twig", "console/display.twig", 99)->display(twig_to_array(["parent_div_classes" => "", "content_array" => [0 => [0 => "switch_button", 1 => _gettext("Bookmarks")], 1 => [0 => "button refresh", 1 => _gettext("Refresh")], 2 => [0 => "button add", 1 => _gettext("Add")]]]));
  126. // line 107
  127. echo " <div class=\"content bookmark\">
  128. ";
  129. // line 108
  130. echo ($context["bookmark_content"] ?? null);
  131. echo "
  132. </div>
  133. <div class=\"mid_layer\"></div>
  134. <div class=\"card add\">
  135. ";
  136. // line 112
  137. $this->loadTemplate("console/toolbar.twig", "console/display.twig", 112)->display(twig_to_array(["parent_div_classes" => "", "content_array" => [0 => [0 => "switch_button", 1 => _gettext("Add bookmark")]]]));
  138. // line 118
  139. echo " <div class=\"content add_bookmark\">
  140. <div class=\"options\">
  141. <label>
  142. ";
  143. // line 121
  144. echo _gettext("Label");
  145. echo ": <input type=\"text\" name=\"label\">
  146. </label>
  147. <label>
  148. ";
  149. // line 124
  150. echo _gettext("Target database");
  151. echo ": <input type=\"text\" name=\"targetdb\">
  152. </label>
  153. <label>
  154. <input type=\"checkbox\" name=\"shared\">";
  155. // line 127
  156. echo _gettext("Share this bookmark");
  157. // line 128
  158. echo " </label>
  159. <button type=\"submit\" name=\"submit\">";
  160. // line 129
  161. echo _gettext("OK");
  162. echo "</button>
  163. </div> <!-- options -->
  164. <div class=\"query_input\">
  165. <span class=\"bookmark_add_input\"></span>
  166. </div>
  167. </div>
  168. </div> <!-- Add bookmark card -->
  169. </div> <!-- Bookmarks card -->
  170. ";
  171. }
  172. // line 138
  173. echo " ";
  174. // line 139
  175. echo " <div class=\"card\" id=\"pma_console_options\">
  176. ";
  177. // line 140
  178. $this->loadTemplate("console/toolbar.twig", "console/display.twig", 140)->display(twig_to_array(["parent_div_classes" => "", "content_array" => [0 => [0 => "switch_button", 1 => _gettext("Options")], 1 => [0 => "button default", 1 => _gettext("Set default")]]]));
  179. // line 147
  180. echo " <div class=\"content\">
  181. <label>
  182. <input type=\"checkbox\" name=\"always_expand\">";
  183. // line 149
  184. echo _gettext("Always expand query messages");
  185. // line 150
  186. echo " </label>
  187. <br>
  188. <label>
  189. <input type=\"checkbox\" name=\"start_history\">";
  190. // line 153
  191. echo _gettext("Show query history at start");
  192. // line 154
  193. echo " </label>
  194. <br>
  195. <label>
  196. <input type=\"checkbox\" name=\"current_query\">";
  197. // line 157
  198. echo _gettext("Show current browsing query");
  199. // line 158
  200. echo " </label>
  201. <br>
  202. <label>
  203. <input type=\"checkbox\" name=\"enter_executes\">
  204. ";
  205. // line 162
  206. echo _gettext("Execute queries on Enter and insert new line with Shift + Enter. To make this permanent, view settings.");
  207. // line 165
  208. echo " </label>
  209. <br>
  210. <label>
  211. <input type=\"checkbox\" name=\"dark_theme\">";
  212. // line 168
  213. echo _gettext("Switch to dark theme");
  214. // line 169
  215. echo " </label>
  216. <br>
  217. </div>
  218. </div> <!-- Options card -->
  219. <div class=\"templates\">
  220. ";
  221. // line 175
  222. echo " ";
  223. $this->loadTemplate("console/query_action.twig", "console/display.twig", 175)->display(twig_to_array(["parent_div_classes" => "query_actions", "content_array" => [0 => [0 => "action collapse", 1 => _gettext("Collapse")], 1 => [0 => "action expand", 1 => _gettext("Expand")], 2 => [0 => "action requery", 1 => _gettext("Requery")], 3 => [0 => "action edit", 1 => _gettext("Edit")], 4 => [0 => "action explain", 1 => _gettext("Explain")], 5 => [0 => "action profiling", 1 => _gettext("Profiling")], 6 => (( // line 184
  224. (isset($context["cfg_bookmark"]) || array_key_exists("cfg_bookmark", $context))) ? ([0 => "action bookmark", 1 => _gettext("Bookmark")]) : (null)), 7 => [0 => "text failed", 1 => _gettext("Query failed")], 8 => [0 => "text targetdb", 1 => _gettext("Database"), "extraSpan" => ""], 9 => [0 => "text query_time", 1 => _gettext("Queried time"), "extraSpan" => ""]]]));
  225. // line 190
  226. echo " </div>
  227. </div> <!-- #console end -->
  228. </div> <!-- #console_container end -->
  229. ";
  230. }
  231. public function getTemplateName()
  232. {
  233. return "console/display.twig";
  234. }
  235. public function isTraitable()
  236. {
  237. return false;
  238. }
  239. public function getDebugInfo()
  240. {
  241. return array ( 231 => 190, 229 => 184, 227 => 175, 220 => 169, 218 => 168, 213 => 165, 211 => 162, 205 => 158, 203 => 157, 198 => 154, 196 => 153, 191 => 150, 189 => 149, 185 => 147, 183 => 140, 180 => 139, 178 => 138, 166 => 129, 163 => 128, 161 => 127, 155 => 124, 149 => 121, 144 => 118, 142 => 112, 135 => 108, 132 => 107, 130 => 99, 127 => 98, 125 => 97, 121 => 95, 119 => 84, 112 => 79, 110 => 64, 107 => 63, 104 => 61, 97 => 55, 94 => 54, 84 => 51, 82 => 47, 81 => 46, 80 => 42, 79 => 40, 78 => 31, 72 => 30, 68 => 29, 66 => 28, 61 => 27, 59 => 26, 55 => 24, 53 => 23, 49 => 21, 47 => 20, 41 => 16, 39 => 15, 37 => 11, 36 => 7, 34 => 4, 30 => 1,);
  242. }
  243. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  244. public function getSource()
  245. {
  246. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  247. return $this->getSourceContext()->getCode();
  248. }
  249. public function getSourceContext()
  250. {
  251. return new Source("", "console/display.twig", "/www/pma/templates/console/display.twig");
  252. }
  253. }