1e46596304c80fc74d09d3a25d24c9959250c8c2f11ffda29554e017faf2ea80.php 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  1. <?php
  2. /* table/structure/display_partitions.twig */
  3. class __TwigTemplate_ccb4513957810b3ea02c17f8860a34002bdbf070d2b9df0222c096688ea2292d 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=\"partitions\">
  16. <fieldset>
  17. <legend>
  18. ";
  19. // line 4
  20. echo _gettext("Partitions");
  21. // line 5
  22. echo " ";
  23. echo PhpMyAdmin\Util::showMySQLDocu("partitioning");
  24. echo "
  25. </legend>
  26. ";
  27. // line 7
  28. if (twig_test_empty(($context["partitions"] ?? null))) {
  29. // line 8
  30. echo " ";
  31. echo call_user_func_array($this->env->getFunction('Message_notice')->getCallable(), [_gettext("No partitioning defined!")]);
  32. echo "
  33. ";
  34. } else {
  35. // line 10
  36. echo " <p>
  37. ";
  38. // line 11
  39. echo _gettext("Partitioned by:");
  40. // line 12
  41. echo " <code>";
  42. echo twig_escape_filter($this->env, ($context["partition_method"] ?? null), "html", null, true);
  43. echo "(";
  44. echo twig_escape_filter($this->env, ($context["partition_expression"] ?? null), "html", null, true);
  45. echo ")</code>
  46. </p>
  47. ";
  48. // line 14
  49. if (($context["has_sub_partitions"] ?? null)) {
  50. // line 15
  51. echo " <p>
  52. ";
  53. // line 16
  54. echo _gettext("Sub partitioned by:");
  55. // line 17
  56. echo " <code>";
  57. echo twig_escape_filter($this->env, ($context["sub_partition_method"] ?? null), "html", null, true);
  58. echo "(";
  59. echo twig_escape_filter($this->env, ($context["sub_partition_expression"] ?? null), "html", null, true);
  60. echo ")</code>
  61. <p>
  62. ";
  63. }
  64. // line 20
  65. echo " <table>
  66. <thead>
  67. <tr>
  68. <th colspan=\"2\">#</th>
  69. <th>";
  70. // line 24
  71. echo _gettext("Partition");
  72. echo "</th>
  73. ";
  74. // line 25
  75. if (($context["has_description"] ?? null)) {
  76. // line 26
  77. echo " <th>";
  78. echo _gettext("Expression");
  79. echo "</th>
  80. ";
  81. }
  82. // line 28
  83. echo " <th>";
  84. echo _gettext("Rows");
  85. echo "</th>
  86. <th>";
  87. // line 29
  88. echo _gettext("Data length");
  89. echo "</th>
  90. <th>";
  91. // line 30
  92. echo _gettext("Index length");
  93. echo "</th>
  94. <th>";
  95. // line 31
  96. echo _gettext("Comment");
  97. echo "</th>
  98. <th colspan=\"";
  99. // line 32
  100. echo ((($context["range_or_list"] ?? null)) ? ("7") : ("6"));
  101. echo "\">
  102. ";
  103. // line 33
  104. echo _gettext("Action");
  105. // line 34
  106. echo " </th>
  107. </tr>
  108. </thead>
  109. <tbody>
  110. ";
  111. // line 38
  112. $context['_parent'] = $context;
  113. $context['_seq'] = twig_ensure_traversable(($context["partitions"] ?? null));
  114. foreach ($context['_seq'] as $context["_key"] => $context["partition"]) {
  115. // line 39
  116. echo " <tr class=\"noclick";
  117. echo ((($context["has_sub_partitions"] ?? null)) ? (" marked") : (""));
  118. echo "\">
  119. ";
  120. // line 40
  121. if (($context["has_sub_partitions"] ?? null)) {
  122. // line 41
  123. echo " <td>";
  124. echo twig_escape_filter($this->env, $this->getAttribute($context["partition"], "getOrdinal", [], "method"), "html", null, true);
  125. echo "</td>
  126. <td></td>
  127. ";
  128. } else {
  129. // line 44
  130. echo " <td colspan=\"2\">";
  131. echo twig_escape_filter($this->env, $this->getAttribute($context["partition"], "getOrdinal", [], "method"), "html", null, true);
  132. echo "</td>
  133. ";
  134. }
  135. // line 46
  136. echo " <th>";
  137. echo twig_escape_filter($this->env, $this->getAttribute($context["partition"], "getName", [], "method"), "html", null, true);
  138. echo "</th>
  139. ";
  140. // line 47
  141. if (($context["has_description"] ?? null)) {
  142. // line 48
  143. echo " <td>
  144. <code>";
  145. // line 50
  146. echo twig_escape_filter($this->env, $this->getAttribute($context["partition"], "getExpression", [], "method"), "html", null, true);
  147. // line 51
  148. echo ((($this->getAttribute($context["partition"], "getMethod", [], "method") == "LIST")) ? (" IN (") : (" < "));
  149. // line 52
  150. echo twig_escape_filter($this->env, $this->getAttribute($context["partition"], "getDescription", [], "method"), "html", null, true);
  151. // line 53
  152. echo ((($this->getAttribute($context["partition"], "getMethod", [], "method") == "LIST")) ? (")") : (""));
  153. // line 54
  154. echo "</code>
  155. </td>
  156. ";
  157. }
  158. // line 57
  159. echo " <td class=\"value\">";
  160. echo twig_escape_filter($this->env, $this->getAttribute($context["partition"], "getRows", [], "method"), "html", null, true);
  161. echo "</td>
  162. <td class=\"value\">
  163. ";
  164. // line 59
  165. $context["data_length"] = PhpMyAdmin\Util::formatByteDown($this->getAttribute( // line 60
  166. $context["partition"], "getDataLength", [], "method"), 3, 1);
  167. // line 64
  168. echo " <span>";
  169. echo twig_escape_filter($this->env, $this->getAttribute(($context["data_length"] ?? null), 0, [], "array"), "html", null, true);
  170. echo "</span>
  171. <span class=\"unit\">";
  172. // line 65
  173. echo twig_escape_filter($this->env, $this->getAttribute(($context["data_length"] ?? null), 1, [], "array"), "html", null, true);
  174. echo "</span>
  175. </td>
  176. <td class=\"value\">
  177. ";
  178. // line 68
  179. $context["index_length"] = PhpMyAdmin\Util::formatByteDown($this->getAttribute( // line 69
  180. $context["partition"], "getIndexLength", [], "method"), 3, 1);
  181. // line 73
  182. echo " <span>";
  183. echo twig_escape_filter($this->env, $this->getAttribute(($context["index_length"] ?? null), 0, [], "array"), "html", null, true);
  184. echo "</span>
  185. <span class=\"unit\">";
  186. // line 74
  187. echo twig_escape_filter($this->env, $this->getAttribute(($context["index_length"] ?? null), 1, [], "array"), "html", null, true);
  188. echo "</span>
  189. </td>
  190. <td>";
  191. // line 76
  192. echo twig_escape_filter($this->env, $this->getAttribute($context["partition"], "getComment", [], "method"), "html", null, true);
  193. echo "</td>
  194. ";
  195. // line 77
  196. $context['_parent'] = $context;
  197. $context['_seq'] = twig_ensure_traversable(($context["action_icons"] ?? null));
  198. foreach ($context['_seq'] as $context["action"] => $context["icon"]) {
  199. // line 78
  200. echo " <td>
  201. <a href=\"tbl_structure.php\" data-post=\"";
  202. // line 79
  203. echo twig_escape_filter($this->env, ($context["url_query"] ?? null), "html", null, true);
  204. // line 80
  205. echo "&amp;partition_maintenance=1&amp;sql_query=";
  206. // line 81
  207. echo twig_escape_filter($this->env, twig_urlencode_filter(((((("ALTER TABLE " . PhpMyAdmin\Util::backquote(($context["table"] ?? null))) . " ") . $context["action"]) . " PARTITION ") . $this->getAttribute( // line 82
  208. $context["partition"], "getName", [], "method"))), "html", null, true);
  209. echo "\"
  210. id=\"partition_action_";
  211. // line 83
  212. echo twig_escape_filter($this->env, $context["action"], "html", null, true);
  213. echo "\"
  214. name=\"partition_action_";
  215. // line 84
  216. echo twig_escape_filter($this->env, $context["action"], "html", null, true);
  217. echo "\"
  218. class=\"ajax\">
  219. ";
  220. // line 86
  221. echo $context["icon"];
  222. echo "
  223. </a>
  224. </td>
  225. ";
  226. }
  227. $_parent = $context['_parent'];
  228. unset($context['_seq'], $context['_iterated'], $context['action'], $context['icon'], $context['_parent'], $context['loop']);
  229. $context = array_intersect_key($context, $_parent) + $_parent;
  230. // line 90
  231. echo "
  232. ";
  233. // line 91
  234. if (($context["has_sub_partitions"] ?? null)) {
  235. // line 92
  236. echo " ";
  237. $context['_parent'] = $context;
  238. $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["partition"], "getSubPartitions", [], "method"));
  239. foreach ($context['_seq'] as $context["_key"] => $context["sub_partition"]) {
  240. // line 93
  241. echo " <tr class=\"noclick\">
  242. <td></td>
  243. <td>";
  244. // line 95
  245. echo twig_escape_filter($this->env, $this->getAttribute($context["sub_partition"], "getOrdinal", [], "method"), "html", null, true);
  246. echo "</td>
  247. <td>";
  248. // line 96
  249. echo twig_escape_filter($this->env, $this->getAttribute($context["sub_partition"], "getName", [], "method"), "html", null, true);
  250. echo "</td>
  251. ";
  252. // line 97
  253. if (($context["has_description"] ?? null)) {
  254. // line 98
  255. echo " <td></td>
  256. ";
  257. }
  258. // line 100
  259. echo " <td class=\"value\">";
  260. echo twig_escape_filter($this->env, $this->getAttribute($context["sub_partition"], "getRows", [], "method"), "html", null, true);
  261. echo "</td>
  262. <td class=\"value\">
  263. ";
  264. // line 102
  265. $context["data_length"] = PhpMyAdmin\Util::formatByteDown($this->getAttribute( // line 103
  266. $context["sub_partition"], "getDataLength", [], "method"), 3, 1);
  267. // line 107
  268. echo " <span>";
  269. echo twig_escape_filter($this->env, $this->getAttribute(($context["data_length"] ?? null), 0, [], "array"), "html", null, true);
  270. echo "</span>
  271. <span class=\"unit\">";
  272. // line 108
  273. echo twig_escape_filter($this->env, $this->getAttribute(($context["data_length"] ?? null), 1, [], "array"), "html", null, true);
  274. echo "</span>
  275. </td>
  276. <td class=\"value\">
  277. ";
  278. // line 111
  279. $context["index_length"] = PhpMyAdmin\Util::formatByteDown($this->getAttribute( // line 112
  280. $context["sub_partition"], "getIndexLength", [], "method"), 3, 1);
  281. // line 116
  282. echo " <span>";
  283. echo twig_escape_filter($this->env, $this->getAttribute(($context["index_length"] ?? null), 0, [], "array"), "html", null, true);
  284. echo "</span>
  285. <span class=\"unit\">";
  286. // line 117
  287. echo twig_escape_filter($this->env, $this->getAttribute(($context["index_length"] ?? null), 1, [], "array"), "html", null, true);
  288. echo "</span>
  289. </td>
  290. <td>";
  291. // line 119
  292. echo twig_escape_filter($this->env, $this->getAttribute($context["sub_partition"], "getComment", [], "method"), "html", null, true);
  293. echo "</td>
  294. <td colspan=\"";
  295. // line 120
  296. echo ((($context["range_or_list"] ?? null)) ? ("7") : ("6"));
  297. echo "\"></td>
  298. </tr>
  299. ";
  300. }
  301. $_parent = $context['_parent'];
  302. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['sub_partition'], $context['_parent'], $context['loop']);
  303. $context = array_intersect_key($context, $_parent) + $_parent;
  304. // line 123
  305. echo " ";
  306. }
  307. // line 124
  308. echo " </tr>
  309. ";
  310. }
  311. $_parent = $context['_parent'];
  312. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['partition'], $context['_parent'], $context['loop']);
  313. $context = array_intersect_key($context, $_parent) + $_parent;
  314. // line 126
  315. echo " </tbody>
  316. </table>
  317. ";
  318. }
  319. // line 129
  320. echo " </fieldset>
  321. <fieldset class=\"tblFooters print_ignore\">
  322. <form action=\"tbl_structure.php\" method=\"post\">
  323. ";
  324. // line 132
  325. echo PhpMyAdmin\Url::getHiddenInputs(($context["db"] ?? null), ($context["table"] ?? null));
  326. echo "
  327. <input type=\"hidden\" name=\"edit_partitioning\" value=\"true\" />
  328. ";
  329. // line 134
  330. if (twig_test_empty(($context["partitions"] ?? null))) {
  331. // line 135
  332. echo " <input type=\"submit\" name=\"edit_partitioning\" value=\"";
  333. echo _gettext("Partition table");
  334. echo "\" />
  335. ";
  336. } else {
  337. // line 137
  338. echo " ";
  339. echo PhpMyAdmin\Util::linkOrButton(($context["remove_url"] ?? null), _gettext("Remove partitioning"), ["class" => "button ajax", "id" => "remove_partitioning"]);
  340. // line 140
  341. echo "
  342. <input type=\"submit\" name=\"edit_partitioning\" value=\"";
  343. // line 141
  344. echo _gettext("Edit partitioning");
  345. echo "\" />
  346. ";
  347. }
  348. // line 143
  349. echo " </form>
  350. </fieldset>
  351. </div>
  352. ";
  353. }
  354. public function getTemplateName()
  355. {
  356. return "table/structure/display_partitions.twig";
  357. }
  358. public function isTraitable()
  359. {
  360. return false;
  361. }
  362. public function getDebugInfo()
  363. {
  364. return array ( 353 => 143, 348 => 141, 345 => 140, 342 => 137, 336 => 135, 334 => 134, 329 => 132, 324 => 129, 319 => 126, 312 => 124, 309 => 123, 300 => 120, 296 => 119, 291 => 117, 286 => 116, 284 => 112, 283 => 111, 277 => 108, 272 => 107, 270 => 103, 269 => 102, 263 => 100, 259 => 98, 257 => 97, 253 => 96, 249 => 95, 245 => 93, 240 => 92, 238 => 91, 235 => 90, 225 => 86, 220 => 84, 216 => 83, 212 => 82, 211 => 81, 209 => 80, 207 => 79, 204 => 78, 200 => 77, 196 => 76, 191 => 74, 186 => 73, 184 => 69, 183 => 68, 177 => 65, 172 => 64, 170 => 60, 169 => 59, 163 => 57, 158 => 54, 156 => 53, 154 => 52, 152 => 51, 150 => 50, 147 => 48, 145 => 47, 140 => 46, 134 => 44, 127 => 41, 125 => 40, 120 => 39, 116 => 38, 110 => 34, 108 => 33, 104 => 32, 100 => 31, 96 => 30, 92 => 29, 87 => 28, 81 => 26, 79 => 25, 75 => 24, 69 => 20, 60 => 17, 58 => 16, 55 => 15, 53 => 14, 45 => 12, 43 => 11, 40 => 10, 34 => 8, 32 => 7, 26 => 5, 24 => 4, 19 => 1,);
  365. }
  366. /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
  367. public function getSource()
  368. {
  369. @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
  370. return $this->getSourceContext()->getCode();
  371. }
  372. public function getSourceContext()
  373. {
  374. return new Twig_Source("", "table/structure/display_partitions.twig", "D:\\PHP_www\\phpMyAdmin4.8.5\\templates\\table\\structure\\display_partitions.twig");
  375. }
  376. }