/home/csiway/tmp/pma_template_compiles_csiway/twig/3d/3d244f24ed57e8d55af617d0fc5293ec25b526d02b734580e3ac7e771f4a384a.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
<?php

use Twig\Environment;
use 
Twig\Error\LoaderError;
use 
Twig\Error\RuntimeError;
use 
Twig\Markup;
use 
Twig\Sandbox\SecurityError;
use 
Twig\Sandbox\SecurityNotAllowedTagError;
use 
Twig\Sandbox\SecurityNotAllowedFilterError;
use 
Twig\Sandbox\SecurityNotAllowedFunctionError;
use 
Twig\Source;
use 
Twig\Template;

/* columns_definitions/partitions.twig */
class __TwigTemplate_663df52855aeb54404686cf11e253493d6c643de885eb4d44b23fb024849634d extends \Twig\Template
{
    public function 
__construct(Environment $env)
    {
        
parent::__construct($env);

        
$this->parent false;

        
$this->blocks = [
        ];
    }

    protected function 
doDisplay(array $context, array $blocks = [])
    {
        
// line 1
        
$context["partition_options"] = [=> ""=> "HASH"=> "LINEAR HASH"=> "KEY"=> "LINEAR KEY"=> "RANGE"=> "RANGE COLUMNS"=> "LIST"=> "LIST COLUMNS"];
        
// line 12
        
$context["sub_partition_options"] = [=> ""=> "HASH"=> "LINEAR HASH"=> "KEY"=> "LINEAR KEY"];
        
// line 13
        
$context["value_type_options"] = [=> ""=> "LESS THAN"=> "LESS THAN MAXVALUE"=> "IN"];
        
// line 14
        
echo "
<table id=\"partition_table\">
    <tr class=\"vmiddle\">
        <td><label for=\"partition_by\">"
;
        
// line 17
        
echo _gettext("Partition by:");
        echo 
"</label></td>
        <td>
            <select name=\"partition_by\" id=\"partition_by\">
                "
;
        
// line 20
        
$context['_parent'] = $context;
        
$context['_seq'] = twig_ensure_traversable(($context["partition_options"] ?? null));
        foreach (
$context['_seq'] as $context["_key"] => $context["option"]) {
            
// line 21
            
echo "                    <option value=\"";
            echo 
twig_escape_filter($this->env$context["option"], "html"nulltrue);
            echo 
"\"";
            
// line 22
            
if (($this->getAttribute(($context["partition_details"] ?? null), "partition_by", [], "array") == $context["option"])) {
                
// line 23
                
echo "                            selected=\"selected\"";
            }
            
// line 24
            
echo ">
                        "
;
            
// line 25
            
echo twig_escape_filter($this->env$context["option"], "html"nulltrue);
            echo 
"
                    </option>
                "
;
        }
        
$_parent $context['_parent'];
        unset(
$context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
        
$context array_intersect_key($context$_parent) + $_parent;
        
// line 28
        
echo "            </select>
        </td>
        <td>
            (<input name=\"partition_expr\" type=\"text\"
                placeholder=\""
;
        
// line 32
        
echo _gettext("Expression or column list");
        echo 
"\"
                value=\""
;
        
// line 33
        
echo twig_escape_filter($this->env$this->getAttribute(($context["partition_details"] ?? null), "partition_expr", [], "array"), "html"nulltrue);
        echo 
"\" />)
        </td>
    </tr>
    <tr class=\"vmiddle\">
        <td><label for=\"partition_count\">"
;
        
// line 37
        
echo _gettext("Partitions:");
        echo 
"</label></td>
        <td colspan=\"2\">
            <input name=\"partition_count\" type=\"number\" min=\"2\"
                value=\""
;
        
// line 40
        
echo twig_escape_filter($this->env$this->getAttribute(($context["partition_details"] ?? null), "partition_count", [], "array"), "html"nulltrue);
        echo 
"\" />
        </td>
    </tr>
    "
;
        
// line 43
        
if ($this->getAttribute(($context["partition_details"] ?? null), "can_have_subpartitions", [], "array")) {
            
// line 44
            
echo "        <tr class=\"vmiddle\">
            <td><label for=\"subpartition_by\">"
;
            
// line 45
            
echo _gettext("Subpartition by:");
            echo 
"</label></td>
            <td>
                <select name=\"subpartition_by\" id=\"subpartition_by\">
                    "
;
            
// line 48
            
$context['_parent'] = $context;
            
$context['_seq'] = twig_ensure_traversable(($context["sub_partition_options"] ?? null));
            foreach (
$context['_seq'] as $context["_key"] => $context["option"]) {
                
// line 49
                
echo "                    <option value=\"";
                echo 
twig_escape_filter($this->env$context["option"], "html"nulltrue);
                echo 
"\"";
                
// line 50
                
if (($this->getAttribute(($context["partition_details"] ?? null), "subpartition_by", [], "array") == $context["option"])) {
                    
// line 51
                    
echo "                            selected=\"selected\"";
                }
                
// line 52
                
echo ">
                        "
;
                
// line 53
                
echo twig_escape_filter($this->env$context["option"], "html"nulltrue);
                echo 
"
                    </option>
                "
;
            }
            
$_parent $context['_parent'];
            unset(
$context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
            
$context array_intersect_key($context$_parent) + $_parent;
            
// line 56
            
echo "                </select>
            </td>
            <td>
                (<input name=\"subpartition_expr\" type=\"text\"
                    placeholder=\""
;
            
// line 60
            
echo _gettext("Expression or column list");
            echo 
"\"
                    value=\""
;
            
// line 61
            
echo twig_escape_filter($this->env$this->getAttribute(($context["partition_details"] ?? null), "subpartition_expr", [], "array"), "html"nulltrue);
            echo 
"\" />)
            </td>
        </tr>
        <tr class=\"vmiddle\">
            <td><label for=\"subpartition_count\">"
;
            
// line 65
            
echo _gettext("Subpartitions:");
            echo 
"</label></td>
            <td colspan=\"2\">
                <input name=\"subpartition_count\" type=\"number\" min=\"2\"
                       value=\""
;
            
// line 68
            
echo twig_escape_filter($this->env$this->getAttribute(($context["partition_details"] ?? null), "subpartition_count", [], "array"), "html"nulltrue);
            echo 
"\" />
            </td>
        </tr>
    "
;
        }
        
// line 72
        
echo "</table>
"
;
        
// line 73
        
if (($this->getAttribute(($context["partition_details"] ?? null), "partition_count", [], "array") > 1)) {
            
// line 74
            
echo "    <table id=\"partition_definition_table\">
        <thead><tr>
            <th>"
;
            
// line 76
            
echo _gettext("Partition");
            echo 
"</th>
            "
;
            
// line 77
            
if ($this->getAttribute(($context["partition_details"] ?? null), "value_enabled", [], "array")) {
                
// line 78
                
echo "                <th>";
                echo 
_gettext("Values");
                echo 
"</th>
            "
;
            }
            
// line 80
            
echo "            ";
            if ((
$this->getAttribute(($context["partition_details"] ?? null), "can_have_subpartitions", [], "array") && ($this->getAttribute(            // line 81
($context["partition_details"] ?? null), "subpartition_count", [], "array") > 1))) {
                
// line 82
                
echo "                <th>";
                echo 
_gettext("Subpartition");
                echo 
"</th>
            "
;
            }
            
// line 84
            
echo "            <th>";
            echo 
_gettext("Engine");
            echo 
"</th>
            <th>"
;
            
// line 85
            
echo _gettext("Comment");
            echo 
"</th>
            <th>"
;
            
// line 86
            
echo _gettext("Data directory");
            echo 
"</th>
            <th>"
;
            
// line 87
            
echo _gettext("Index directory");
            echo 
"</th>
            <th>"
;
            
// line 88
            
echo _gettext("Max rows");
            echo 
"</th>
            <th>"
;
            
// line 89
            
echo _gettext("Min rows");
            echo 
"</th>
            <th>"
;
            
// line 90
            
echo _gettext("Table space");
            echo 
"</th>
            <th>"
;
            
// line 91
            
echo _gettext("Node group");
            echo 
"</th>
        </tr></thead>
        "
;
            
// line 93
            
$context['_parent'] = $context;
            
$context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["partition_details"] ?? null), "partitions", [], "array"));
            foreach (
$context['_seq'] as $context["_key"] => $context["partition"]) {
                
// line 94
                
echo "            ";
                
$context["rowspan"] = (( !twig_test_empty($this->getAttribute($context["partition"], "subpartition_count", [], "array"))) ? (($this->getAttribute(                // line 95
$context["partition"], "subpartition_count", [], "array") + 1)) : (2));
                
// line 96
                
echo "            <tr>
                <td rowspan=\""
;
                
// line 97
                
echo twig_escape_filter($this->env, ($context["rowspan"] ?? null), "html"nulltrue);
                echo 
"\">
                    <input type=\"text\" name=\""
;
                
// line 98
                
echo twig_escape_filter($this->env$this->getAttribute($context["partition"], "prefix", [], "array"), "html"nulltrue);
                echo 
"[name]\"
                        value=\""
;
                
// line 99
                
echo twig_escape_filter($this->env$this->getAttribute($context["partition"], "name", [], "array"), "html"nulltrue);
                echo 
"\" />
                </td>
                "
;
                
// line 101
                
if ($this->getAttribute(($context["partition_details"] ?? null), "value_enabled", [], "array")) {
                    
// line 102
                    
echo "                    <td rowspan=\"";
                    echo 
twig_escape_filter($this->env, ($context["rowspan"] ?? null), "html"nulltrue);
                    echo 
"\" class=\"vmiddle\">
                        <select class=\"partition_value\"
                            name=\""
;
                    
// line 104
                    
echo twig_escape_filter($this->env$this->getAttribute($context["partition"], "prefix", [], "array"), "html"nulltrue);
                    echo 
"[value_type]\">
                            "
;
                    
// line 105
                    
$context['_parent'] = $context;
                    
$context['_seq'] = twig_ensure_traversable(($context["value_type_options"] ?? null));
                    foreach (
$context['_seq'] as $context["_key"] => $context["option"]) {
                        
// line 106
                        
echo "                                <option value=\"";
                        echo 
twig_escape_filter($this->env$context["option"], "html"nulltrue);
                        echo 
"\"";
                        
// line 107
                        
if (($this->getAttribute($context["partition"], "value_type", [], "array") == $context["option"])) {
                            
// line 108
                            
echo "                                        selected=\"selected\"";
                        }
                        
// line 109
                        
echo ">
                                    "
;
                        
// line 110
                        
echo twig_escape_filter($this->env$context["option"], "html"nulltrue);
                        echo 
"
                                </option>
                            "
;
                    }
                    
$_parent $context['_parent'];
                    unset(
$context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
                    
$context array_intersect_key($context$_parent) + $_parent;
                    
// line 113
                    
echo "                        </select>
                        <input type=\"text\" class=\"partition_value\"
                            name=\""
;
                    
// line 115
                    
echo twig_escape_filter($this->env$this->getAttribute($context["partition"], "prefix", [], "array"), "html"nulltrue);
                    echo 
"[value]\"
                            value=\""
;
                    
// line 116
                    
echo twig_escape_filter($this->env$this->getAttribute($context["partition"], "value", [], "array"), "html"nulltrue);
                    echo 
"\" />
                    </td>
                "
;
                }
                
// line 119
                
echo "            </tr>

            "
;
                
// line 121
                
if ($this->getAttribute($context["partition"], "subpartitions", [], "array"truetrue)) {
                    
// line 122
                    
echo "                ";
                    
$context["subpartitions"] = $this->getAttribute($context["partition"], "subpartitions", [], "array");
                    
// line 123
                    
echo "            ";
                } else {
                    
// line 124
                    
echo "                ";
                    
$context["subpartitions"] = [=> $context["partition"]];
                    
// line 125
                    
echo "            ";
                }
                
// line 126
                
echo "
            "
;
                
// line 127
                
$context['_parent'] = $context;
                
$context['_seq'] = twig_ensure_traversable(($context["subpartitions"] ?? null));
                foreach (
$context['_seq'] as $context["_key"] => $context["subpartition"]) {
                    
// line 128
                    
echo "                <tr>
                    "
;
                    
// line 129
                    
if (($this->getAttribute(($context["partition_details"] ?? null), "can_have_subpartitions", [], "array") && ($this->getAttribute(                    // line 130
($context["partition_details"] ?? null), "subpartition_count", [], "array") > 1))) {
                        
// line 131
                        
echo "                        <td>
                            <input type=\"text\" name=\""
;
                        
// line 132
                        
echo twig_escape_filter($this->env$this->getAttribute($context["subpartition"], "prefix", [], "array"), "html"nulltrue);
                        echo 
"[name]\"
                                value=\""
;
                        
// line 133
                        
echo twig_escape_filter($this->env$this->getAttribute($context["subpartition"], "name", [], "array"), "html"nulltrue);
                        echo 
"\" />
                        </td>
                    "
;
                    }
                    
// line 136
                    
echo "                    <td>
                        "
;
                    
// line 137
                    
echo PhpMyAdmin\StorageEngine::getHtmlSelect(($this->getAttribute(                    // line 138
$context["subpartition"], "prefix", [], "array") . "[engine]"), null$this->getAttribute(                    // line 140
$context["subpartition"], "engine", [], "array"), falsetrue);
                    
// line 143
                    
echo "
                    </td>
                    <td>
                        "
;
                    
// line 146
                    
ob_start(function () { return ''; });
                    
// line 147
                    
echo "                        <textarea name=\"";
                    echo 
twig_escape_filter($this->env$this->getAttribute($context["subpartition"], "prefix", [], "array"), "html"nulltrue);
                    echo 
"[comment]\">
                            "
;
                    
// line 148
                    
echo twig_escape_filter($this->env$this->getAttribute($context["subpartition"], "comment", [], "array"), "html"nulltrue);
                    echo 
"
                        </textarea>
                        "
;
                    
$___internal_6ef743cbf295f1387fa0ec371b1bb9623f89d0a00c79754b50a93bd11aa7a350_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
                    
// line 146
                    
echo twig_spaceless($___internal_6ef743cbf295f1387fa0ec371b1bb9623f89d0a00c79754b50a93bd11aa7a350_);
                    
// line 151
                    
echo "                    </td>
                    <td>
                        <input type=\"text\" name=\""
;
                    
// line 153
                    
echo twig_escape_filter($this->env$this->getAttribute($context["subpartition"], "prefix", [], "array"), "html"nulltrue);
                    echo 
"[data_directory]\"
                            value=\""
;
                    
// line 154
                    
echo twig_escape_filter($this->env$this->getAttribute($context["subpartition"], "data_directory", [], "array"), "html"nulltrue);
                    echo 
"\" />
                    </td>
                    <td>
                        <input type=\"text\" name=\""
;
                    
// line 157
                    
echo twig_escape_filter($this->env$this->getAttribute($context["subpartition"], "prefix", [], "array"), "html"nulltrue);
                    echo 
"[index_directory]\"
                            value=\""
;
                    
// line 158
                    
echo twig_escape_filter($this->env$this->getAttribute($context["subpartition"], "index_directory", [], "array"), "html"nulltrue);
                    echo 
"\" />
                    </td>
                    <td>
                        <input type=\"number\" name=\""
;
                    
// line 161
                    
echo twig_escape_filter($this->env$this->getAttribute($context["subpartition"], "prefix", [], "array"), "html"nulltrue);
                    echo 
"[max_rows]\"
                            value=\""
;
                    
// line 162
                    
echo twig_escape_filter($this->env$this->getAttribute($context["subpartition"], "max_rows", [], "array"), "html"nulltrue);
                    echo 
"\" />
                    </td>
                    <td>
                        <input type=\"number\" min=\"0\" name=\""
;
                    
// line 165
                    
echo twig_escape_filter($this->env$this->getAttribute($context["subpartition"], "prefix", [], "array"), "html"nulltrue);
                    echo 
"[min_rows]\"
                            value=\""
;
                    
// line 166
                    
echo twig_escape_filter($this->env$this->getAttribute($context["subpartition"], "min_rows", [], "array"), "html"nulltrue);
                    echo 
"\" />
                    </td>
                    <td>
                        <input type=\"text\" min=\"0\" name=\""
;
                    
// line 169
                    
echo twig_escape_filter($this->env$this->getAttribute($context["subpartition"], "prefix", [], "array"), "html"nulltrue);
                    echo 
"[tablespace]\"
                            value=\""
;
                    
// line 170
                    
echo twig_escape_filter($this->env$this->getAttribute($context["subpartition"], "tablespace", [], "array"), "html"nulltrue);
                    echo 
"\" />
                    </td>
                    <td>
                        <input type=\"text\" name=\""
;
                    
// line 173
                    
echo twig_escape_filter($this->env$this->getAttribute($context["subpartition"], "prefix", [], "array"), "html"nulltrue);
                    echo 
"[node_group]\"
                            value=\""
;
                    
// line 174
                    
echo twig_escape_filter($this->env$this->getAttribute($context["subpartition"], "node_group", [], "array"), "html"nulltrue);
                    echo 
"\" />
                    </td>
                </tr>
            "
;
                }
                
$_parent $context['_parent'];
                unset(
$context['_seq'], $context['_iterated'], $context['_key'], $context['subpartition'], $context['_parent'], $context['loop']);
                
$context array_intersect_key($context$_parent) + $_parent;
                
// line 178
                
echo "        ";
            }
            
$_parent $context['_parent'];
            unset(
$context['_seq'], $context['_iterated'], $context['_key'], $context['partition'], $context['_parent'], $context['loop']);
            
$context array_intersect_key($context$_parent) + $_parent;
            
// line 179
            
echo "    </table>
"
;
        }
    }

    public function 
getTemplateName()
    {
        return 
"columns_definitions/partitions.twig";
    }

    public function 
isTraitable()
    {
        return 
false;
    }

    public function 
getDebugInfo()
    {
        return array (  
452 => 179,  446 => 178,  436 => 174,  432 => 173,  426 => 170,  422 => 169,  416 => 166,  412 => 165,  406 => 162,  402 => 161,  396 => 158,  392 => 157,  386 => 154,  382 => 153,  378 => 151,  376 => 146,  370 => 148,  365 => 147,  363 => 146,  358 => 143,  356 => 140,  355 => 138,  354 => 137,  351 => 136,  345 => 133,  341 => 132,  338 => 131,  336 => 130,  335 => 129,  332 => 128,  328 => 127,  325 => 126,  322 => 125,  319 => 124,  316 => 123,  313 => 122,  311 => 121,  307 => 119,  301 => 116,  297 => 115,  293 => 113,  284 => 110,  281 => 109,  278 => 108,  276 => 107,  272 => 106,  268 => 105,  264 => 104,  258 => 102,  256 => 101,  251 => 99,  247 => 98,  243 => 97,  240 => 96,  238 => 95,  236 => 94,  232 => 93,  227 => 91,  223 => 90,  219 => 89,  215 => 88,  211 => 87,  207 => 86,  203 => 85,  198 => 84,  192 => 82,  190 => 81,  188 => 80,  182 => 78,  180 => 77,  176 => 76,  172 => 74,  170 => 73,  167 => 72,  160 => 68,  154 => 65,  147 => 61,  143 => 60,  137 => 56,  128 => 53,  125 => 52,  122 => 51,  120 => 50,  116 => 49,  112 => 48,  106 => 45,  103 => 44,  101 => 43,  95 => 40,  89 => 37,  82 => 33,  78 => 32,  72 => 28,  63 => 25,  60 => 24,  57 => 23,  55 => 22,  51 => 21,  47 => 20,  41 => 17,  36 => 14,  34 => 13,  32 => 12,  30 => 1,);
    }

    
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    
public function getSource()
    {
        @
trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.'E_USER_DEPRECATED);

        return 
$this->getSourceContext()->getCode();
    }

    public function 
getSourceContext()
    {
        return new 
Source("""columns_definitions/partitions.twig""/usr/local/cpanel/base/3rdparty/phpMyAdmin/templates/columns_definitions/partitions.twig");
    }
}