aa6b8705b1fcb2f98e80f74668c9309489211db6caf00695fb0334bea5d9a1d2.php 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. <?php
  2. /* view_create.twig */
  3. class __TwigTemplate_a5758d8df503677190fceaa142bf449a691aace520c7a720399f631e2fc94fe6 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 "<!-- CREATE VIEW options -->
  16. <div id=\"div_view_options\">
  17. <form method=\"post\" action=\"view_create.php\">
  18. ";
  19. // line 4
  20. echo PhpMyAdmin\Url::getHiddenInputs(($context["url_params"] ?? null));
  21. echo "
  22. <fieldset>
  23. <legend>
  24. ";
  25. // line 7
  26. if (($context["ajax_dialog"] ?? null)) {
  27. // line 8
  28. echo " ";
  29. echo _gettext("Details");
  30. // line 9
  31. echo " ";
  32. } else {
  33. // line 10
  34. echo " ";
  35. if (($this->getAttribute(($context["view"] ?? null), "operation", [], "array") == "create")) {
  36. // line 11
  37. echo " ";
  38. echo _gettext("Create view");
  39. // line 12
  40. echo " ";
  41. } else {
  42. // line 13
  43. echo " ";
  44. echo _gettext("Edit view");
  45. // line 14
  46. echo " ";
  47. }
  48. // line 15
  49. echo " ";
  50. }
  51. // line 16
  52. echo " </legend>
  53. <table class=\"rte_table\">
  54. ";
  55. // line 18
  56. if (($this->getAttribute(($context["view"] ?? null), "operation", [], "array") == "create")) {
  57. // line 19
  58. echo " <tr>
  59. <td class=\"nowrap\"><label for=\"or_replace\">OR REPLACE</label></td>
  60. <td>
  61. <input type=\"checkbox\" name=\"view[or_replace]\" id=\"or_replace\"
  62. ";
  63. // line 23
  64. if ($this->getAttribute(($context["view"] ?? null), "or_replace", [], "array")) {
  65. echo " checked=\"checked\" ";
  66. }
  67. // line 24
  68. echo " value=\"1\" />
  69. </td>
  70. </tr>
  71. ";
  72. }
  73. // line 28
  74. echo "
  75. <tr>
  76. <td class=\"nowrap\"><label for=\"algorithm\">ALGORITHM</label></td>
  77. <td>
  78. <select name=\"view[algorithm]\" id=\"algorithm\">
  79. ";
  80. // line 33
  81. $context['_parent'] = $context;
  82. $context['_seq'] = twig_ensure_traversable(($context["view_algorithm_options"] ?? null));
  83. foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
  84. // line 34
  85. echo " <option value=\"";
  86. echo twig_escape_filter($this->env, $context["option"], "html", null, true);
  87. echo "\"
  88. ";
  89. // line 35
  90. if (($this->getAttribute(($context["view"] ?? null), "algorithm", [], "array") == $context["option"])) {
  91. // line 36
  92. echo " selected=\"selected\"
  93. ";
  94. }
  95. // line 38
  96. echo " >";
  97. echo twig_escape_filter($this->env, $context["option"], "html", null, true);
  98. echo "</option>
  99. ";
  100. }
  101. $_parent = $context['_parent'];
  102. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
  103. $context = array_intersect_key($context, $_parent) + $_parent;
  104. // line 40
  105. echo " </select>
  106. </td>
  107. </tr>
  108. <tr>
  109. <td class=\"nowrap\">";
  110. // line 45
  111. echo _gettext("Definer");
  112. echo "</td>
  113. <td><input type=\"text\" maxlength=\"100\" size=\"50\" name=\"view[definer]\" value=\"";
  114. // line 46
  115. echo twig_escape_filter($this->env, $this->getAttribute(($context["view"] ?? null), "definer", [], "array"), "html", null, true);
  116. echo "\" /></td>
  117. </tr>
  118. <tr>
  119. <td class=\"nowrap\">SQL SECURITY</td>
  120. <td>
  121. <select name=\"view[sql_security]\">
  122. <option value=\"\"></option>
  123. ";
  124. // line 54
  125. $context['_parent'] = $context;
  126. $context['_seq'] = twig_ensure_traversable(($context["view_security_options"] ?? null));
  127. foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
  128. // line 55
  129. echo " <option value=\"";
  130. echo twig_escape_filter($this->env, $context["option"], "html", null, true);
  131. echo "\"
  132. ";
  133. // line 56
  134. if (($context["option"] == $this->getAttribute(($context["view"] ?? null), "sql_security", [], "array"))) {
  135. echo " selected=\"selected\" ";
  136. }
  137. // line 57
  138. echo " >";
  139. echo twig_escape_filter($this->env, $context["option"], "html", null, true);
  140. echo "</option>
  141. ";
  142. }
  143. $_parent = $context['_parent'];
  144. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
  145. $context = array_intersect_key($context, $_parent) + $_parent;
  146. // line 59
  147. echo " </select>
  148. </td>
  149. </tr>
  150. ";
  151. // line 63
  152. if (($this->getAttribute(($context["view"] ?? null), "operation", [], "array") == "create")) {
  153. // line 64
  154. echo " <tr>
  155. <td class=\"nowrap\">";
  156. // line 65
  157. echo _gettext("VIEW name");
  158. echo "</td>
  159. <td>
  160. <input type=\"text\" size=\"20\" name=\"view[name]\" onfocus=\"this.select()\" maxlength=\"64\" value=\"";
  161. // line 67
  162. echo twig_escape_filter($this->env, $this->getAttribute(($context["view"] ?? null), "name", [], "array"), "html", null, true);
  163. echo "\" />
  164. </td>
  165. </tr>
  166. ";
  167. } else {
  168. // line 71
  169. echo " <tr>
  170. <td>
  171. <input type=\"hidden\" name=\"view[name]\" value=\"";
  172. // line 73
  173. echo twig_escape_filter($this->env, $this->getAttribute(($context["view"] ?? null), "name", [], "array"), "html", null, true);
  174. echo "\" />
  175. </td>
  176. </tr>
  177. ";
  178. }
  179. // line 77
  180. echo "
  181. <tr>
  182. <td class=\"nowrap\">";
  183. // line 79
  184. echo _gettext("Column names");
  185. echo "</td>
  186. <td>
  187. <input type=\"text\" maxlength=\"100\" size=\"50\" name=\"view[column_names]\" onfocus=\"this.select()\" value=\"";
  188. // line 81
  189. echo twig_escape_filter($this->env, $this->getAttribute(($context["view"] ?? null), "column_names", [], "array"), "html", null, true);
  190. echo "\" />
  191. </td>
  192. </tr>
  193. <tr>
  194. <td class=\"nowrap\">AS</td>
  195. <td>
  196. <textarea name=\"view[as]\" rows=\"15\" cols=\"40\" dir=\"";
  197. // line 88
  198. echo twig_escape_filter($this->env, ($context["text_dir"] ?? null), "html", null, true);
  199. echo "\" onclick=\"selectContent(this, sql_box_locked, true)\">";
  200. echo twig_escape_filter($this->env, $this->getAttribute(($context["view"] ?? null), "as", [], "array"), "html", null, true);
  201. echo "</textarea><br/>
  202. <input type=\"button\" value=\"Format\" id=\"format\" class=\"button sqlbutton\">
  203. <span id=\"querymessage\"></span>
  204. </td>
  205. </tr>
  206. <tr>
  207. <td class=\"nowrap\">WITH CHECK OPTION</td>
  208. <td>
  209. <select name=\"view[with]\">
  210. <option value=\"\"></option>
  211. ";
  212. // line 99
  213. $context['_parent'] = $context;
  214. $context['_seq'] = twig_ensure_traversable(($context["view_with_options"] ?? null));
  215. foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
  216. // line 100
  217. echo " <option value=\"";
  218. echo twig_escape_filter($this->env, $context["option"], "html", null, true);
  219. echo "\"
  220. ";
  221. // line 101
  222. if (($context["option"] == $this->getAttribute(($context["view"] ?? null), "with", [], "array"))) {
  223. echo " selected=\"selected\" ";
  224. }
  225. // line 102
  226. echo " >";
  227. echo twig_escape_filter($this->env, $context["option"], "html", null, true);
  228. echo "</option>
  229. ";
  230. }
  231. $_parent = $context['_parent'];
  232. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
  233. $context = array_intersect_key($context, $_parent) + $_parent;
  234. // line 104
  235. echo " </select>
  236. </td>
  237. </tr>
  238. </table>
  239. </fieldset>
  240. ";
  241. // line 111
  242. if (($context["ajax_dialog"] ?? null)) {
  243. // line 112
  244. echo " <fieldset class=\"tblFooters\">
  245. <input type=\"hidden\" name=\"";
  246. // line 113
  247. echo ((($this->getAttribute(($context["view"] ?? null), "operation", [], "array") == "create")) ? ("createview") : ("alterview"));
  248. echo "\" value=\"1\" />
  249. <input type=\"submit\" name=\"\" value=\"";
  250. // line 114
  251. echo _gettext("Go");
  252. echo "\" />
  253. </fieldset>
  254. ";
  255. } else {
  256. // line 117
  257. echo " <input type=\"hidden\" name=\"";
  258. echo ((($this->getAttribute(($context["view"] ?? null), "operation", [], "array") == "create")) ? ("createview") : ("alterview"));
  259. echo "\" value=\"1\" />
  260. <input type=\"hidden\" name=\"ajax_dialog\" value=\"1\" />
  261. <input type=\"hidden\" name=\"ajax_request\" value=\"1\" />
  262. <input type=\"submit\" name=\"\" value=\"";
  263. // line 120
  264. echo _gettext("Go");
  265. echo "\" />
  266. ";
  267. }
  268. // line 122
  269. echo "
  270. </form>
  271. </div>
  272. ";
  273. }
  274. public function getTemplateName()
  275. {
  276. return "view_create.twig";
  277. }
  278. public function isTraitable()
  279. {
  280. return false;
  281. }
  282. public function getDebugInfo()
  283. {
  284. return array ( 280 => 122, 275 => 120, 268 => 117, 262 => 114, 258 => 113, 255 => 112, 253 => 111, 244 => 104, 235 => 102, 231 => 101, 226 => 100, 222 => 99, 206 => 88, 196 => 81, 191 => 79, 187 => 77, 180 => 73, 176 => 71, 169 => 67, 164 => 65, 161 => 64, 159 => 63, 153 => 59, 144 => 57, 140 => 56, 135 => 55, 131 => 54, 120 => 46, 116 => 45, 109 => 40, 100 => 38, 96 => 36, 94 => 35, 89 => 34, 85 => 33, 78 => 28, 72 => 24, 68 => 23, 62 => 19, 60 => 18, 56 => 16, 53 => 15, 50 => 14, 47 => 13, 44 => 12, 41 => 11, 38 => 10, 35 => 9, 32 => 8, 30 => 7, 24 => 4, 19 => 1,);
  285. }
  286. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  287. public function getSource()
  288. {
  289. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  290. return $this->getSourceContext()->getCode();
  291. }
  292. public function getSourceContext()
  293. {
  294. return new Twig_Source("", "view_create.twig", "D:\\PHP_www\\phpMyAdmin4.8.5\\templates\\view_create.twig");
  295. }
  296. }