e3f61408e0a1163dcd6a9629660436e8ded9b5cb450cd9f9308b9ec93614d83d.php 14 KB

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