implemented admin or bm approval functionality

This commit is contained in:
ns77@siliconpin.com
2025-09-10 13:57:41 +00:00
parent 4a1128066d
commit 5a12de1c64
8 changed files with 2293 additions and 65 deletions

View File

@@ -0,0 +1,502 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
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_87c8d6a9bb025f5a957415bc8c9b04bd extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
$context["partition_options"] = [0 => "", 1 => "HASH", 2 => "LINEAR HASH", 3 => "KEY", 4 => "LINEAR KEY", 5 => "RANGE", 6 => "RANGE COLUMNS", 7 => "LIST", 8 => "LIST COLUMNS"];
// line 12
$context["sub_partition_options"] = [0 => "", 1 => "HASH", 2 => "LINEAR HASH", 3 => "KEY", 4 => "LINEAR KEY"];
// line 13
$context["value_type_options"] = [0 => "", 1 => "LESS THAN", 2 => "LESS THAN MAXVALUE", 3 => "IN"];
// line 14
echo "
<table class=\"table table-borderless w-auto align-middle mb-0\" id=\"partition_table\">
<tr class=\"align-middle\">
<td><label for=\"partition_by\">";
echo _gettext("Partition by:");
// line 17
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", null, true);
echo "\"";
// line 22
if (((($__internal_compile_0 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["partition_by"] ?? null) : null) == $context["option"])) {
// line 23
echo " selected=\"selected\"";
}
// line 24
echo ">
";
// line 25
echo twig_escape_filter($this->env, $context["option"], "html", null, true);
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=\"";
echo _gettext("Expression or column list");
// line 32
echo "\"
value=\"";
// line 33
echo twig_escape_filter($this->env, (($__internal_compile_1 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1["partition_expr"] ?? null) : null), "html", null, true);
echo "\">)
</td>
</tr>
<tr class=\"align-middle\">
<td><label for=\"partition_count\">";
echo _gettext("Partitions:");
// line 37
echo "</label></td>
<td colspan=\"2\">
<input name=\"partition_count\" type=\"number\" min=\"2\"
value=\"";
// line 40
(((($__internal_compile_2 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2["partition_count"] ?? null) : null)) ? (print (twig_escape_filter($this->env, (($__internal_compile_3 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3["partition_count"] ?? null) : null), "html", null, true))) : (print ("")));
echo "\">
</td>
</tr>
";
// line 43
if ((($__internal_compile_4 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_4) || $__internal_compile_4 instanceof ArrayAccess ? ($__internal_compile_4["can_have_subpartitions"] ?? null) : null)) {
// line 44
echo " <tr class=\"align-middle\">
<td><label for=\"subpartition_by\">";
echo _gettext("Subpartition by:");
// line 45
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", null, true);
echo "\"";
// line 50
if (((($__internal_compile_5 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_5) || $__internal_compile_5 instanceof ArrayAccess ? ($__internal_compile_5["subpartition_by"] ?? null) : null) == $context["option"])) {
// line 51
echo " selected=\"selected\"";
}
// line 52
echo ">
";
// line 53
echo twig_escape_filter($this->env, $context["option"], "html", null, true);
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=\"";
echo _gettext("Expression or column list");
// line 60
echo "\"
value=\"";
// line 61
echo twig_escape_filter($this->env, (($__internal_compile_6 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_6) || $__internal_compile_6 instanceof ArrayAccess ? ($__internal_compile_6["subpartition_expr"] ?? null) : null), "html", null, true);
echo "\">)
</td>
</tr>
<tr class=\"align-middle\">
<td><label for=\"subpartition_count\">";
echo _gettext("Subpartitions:");
// line 65
echo "</label></td>
<td colspan=\"2\">
<input name=\"subpartition_count\" type=\"number\" min=\"2\"
value=\"";
// line 68
(((($__internal_compile_7 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_7) || $__internal_compile_7 instanceof ArrayAccess ? ($__internal_compile_7["subpartition_count"] ?? null) : null)) ? (print (twig_escape_filter($this->env, (($__internal_compile_8 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_8) || $__internal_compile_8 instanceof ArrayAccess ? ($__internal_compile_8["subpartition_count"] ?? null) : null), "html", null, true))) : (print ("")));
echo "\">
</td>
</tr>
";
}
// line 72
echo "</table>
";
// line 73
if (((($__internal_compile_9 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_9) || $__internal_compile_9 instanceof ArrayAccess ? ($__internal_compile_9["partition_count"] ?? null) : null) > 1)) {
// line 74
echo " <table class=\"table align-middle\" id=\"partition_definition_table\">
<thead><tr>
<th>";
echo _gettext("Partition");
// line 76
echo "</th>
";
// line 77
if ((($__internal_compile_10 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_10) || $__internal_compile_10 instanceof ArrayAccess ? ($__internal_compile_10["value_enabled"] ?? null) : null)) {
// line 78
echo " <th>";
echo _gettext("Values");
echo "</th>
";
}
// line 80
echo " ";
if (((($__internal_compile_11 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_11) || $__internal_compile_11 instanceof ArrayAccess ? ($__internal_compile_11["can_have_subpartitions"] ?? null) : null) && ((($__internal_compile_12 = // line 81
($context["partition_details"] ?? null)) && is_array($__internal_compile_12) || $__internal_compile_12 instanceof ArrayAccess ? ($__internal_compile_12["subpartition_count"] ?? null) : null) > 1))) {
// line 82
echo " <th>";
echo _gettext("Subpartition");
echo "</th>
";
}
// line 84
echo " <th>";
echo _gettext("Engine");
echo "</th>
<th>";
echo _gettext("Comment");
// line 85
echo "</th>
<th>";
echo _gettext("Data directory");
// line 86
echo "</th>
<th>";
echo _gettext("Index directory");
// line 87
echo "</th>
<th>";
echo _gettext("Max rows");
// line 88
echo "</th>
<th>";
echo _gettext("Min rows");
// line 89
echo "</th>
<th>";
echo _gettext("Table space");
// line 90
echo "</th>
<th>";
echo _gettext("Node group");
// line 91
echo "</th>
</tr></thead>
";
// line 93
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((($__internal_compile_13 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_13) || $__internal_compile_13 instanceof ArrayAccess ? ($__internal_compile_13["partitions"] ?? null) : null));
foreach ($context['_seq'] as $context["_key"] => $context["partition"]) {
// line 94
echo " ";
$context["rowspan"] = (( !twig_test_empty((($__internal_compile_14 = $context["partition"]) && is_array($__internal_compile_14) || $__internal_compile_14 instanceof ArrayAccess ? ($__internal_compile_14["subpartition_count"] ?? null) : null))) ? (((($__internal_compile_15 = // line 95
$context["partition"]) && is_array($__internal_compile_15) || $__internal_compile_15 instanceof ArrayAccess ? ($__internal_compile_15["subpartition_count"] ?? null) : null) + 1)) : (2));
// line 96
echo " <tr>
<td rowspan=\"";
// line 97
echo twig_escape_filter($this->env, ($context["rowspan"] ?? null), "html", null, true);
echo "\">
<input type=\"text\" name=\"";
// line 98
echo twig_escape_filter($this->env, (($__internal_compile_16 = $context["partition"]) && is_array($__internal_compile_16) || $__internal_compile_16 instanceof ArrayAccess ? ($__internal_compile_16["prefix"] ?? null) : null), "html", null, true);
echo "[name]\"
value=\"";
// line 99
echo twig_escape_filter($this->env, (($__internal_compile_17 = $context["partition"]) && is_array($__internal_compile_17) || $__internal_compile_17 instanceof ArrayAccess ? ($__internal_compile_17["name"] ?? null) : null), "html", null, true);
echo "\">
</td>
";
// line 101
if ((($__internal_compile_18 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_18) || $__internal_compile_18 instanceof ArrayAccess ? ($__internal_compile_18["value_enabled"] ?? null) : null)) {
// line 102
echo " <td rowspan=\"";
echo twig_escape_filter($this->env, ($context["rowspan"] ?? null), "html", null, true);
echo "\" class=\"align-middle\">
<select class=\"partition_value\"
name=\"";
// line 104
echo twig_escape_filter($this->env, (($__internal_compile_19 = $context["partition"]) && is_array($__internal_compile_19) || $__internal_compile_19 instanceof ArrayAccess ? ($__internal_compile_19["prefix"] ?? null) : null), "html", null, true);
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", null, true);
echo "\"";
// line 107
if (((($__internal_compile_20 = $context["partition"]) && is_array($__internal_compile_20) || $__internal_compile_20 instanceof ArrayAccess ? ($__internal_compile_20["value_type"] ?? null) : null) == $context["option"])) {
// line 108
echo " selected=\"selected\"";
}
// line 109
echo ">
";
// line 110
echo twig_escape_filter($this->env, $context["option"], "html", null, true);
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, (($__internal_compile_21 = $context["partition"]) && is_array($__internal_compile_21) || $__internal_compile_21 instanceof ArrayAccess ? ($__internal_compile_21["prefix"] ?? null) : null), "html", null, true);
echo "[value]\"
value=\"";
// line 116
echo twig_escape_filter($this->env, (($__internal_compile_22 = $context["partition"]) && is_array($__internal_compile_22) || $__internal_compile_22 instanceof ArrayAccess ? ($__internal_compile_22["value"] ?? null) : null), "html", null, true);
echo "\">
</td>
";
}
// line 119
echo " </tr>
";
// line 121
if (twig_get_attribute($this->env, $this->source, $context["partition"], "subpartitions", [], "array", true, true, false, 121)) {
// line 122
echo " ";
$context["subpartitions"] = (($__internal_compile_23 = $context["partition"]) && is_array($__internal_compile_23) || $__internal_compile_23 instanceof ArrayAccess ? ($__internal_compile_23["subpartitions"] ?? null) : null);
// line 123
echo " ";
} else {
// line 124
echo " ";
$context["subpartitions"] = [0 => $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 (((($__internal_compile_24 = ($context["partition_details"] ?? null)) && is_array($__internal_compile_24) || $__internal_compile_24 instanceof ArrayAccess ? ($__internal_compile_24["can_have_subpartitions"] ?? null) : null) && ((($__internal_compile_25 = // line 130
($context["partition_details"] ?? null)) && is_array($__internal_compile_25) || $__internal_compile_25 instanceof ArrayAccess ? ($__internal_compile_25["subpartition_count"] ?? null) : null) > 1))) {
// line 131
echo " <td>
<input type=\"text\" name=\"";
// line 132
echo twig_escape_filter($this->env, (($__internal_compile_26 = $context["subpartition"]) && is_array($__internal_compile_26) || $__internal_compile_26 instanceof ArrayAccess ? ($__internal_compile_26["prefix"] ?? null) : null), "html", null, true);
echo "[name]\"
value=\"";
// line 133
echo twig_escape_filter($this->env, (($__internal_compile_27 = $context["subpartition"]) && is_array($__internal_compile_27) || $__internal_compile_27 instanceof ArrayAccess ? ($__internal_compile_27["name"] ?? null) : null), "html", null, true);
echo "\">
</td>
";
}
// line 136
echo " <td>
<select name=\"";
// line 137
echo twig_escape_filter($this->env, (($__internal_compile_28 = $context["subpartition"]) && is_array($__internal_compile_28) || $__internal_compile_28 instanceof ArrayAccess ? ($__internal_compile_28["prefix"] ?? null) : null), "html", null, true);
echo "[engine]\" aria-label=\"";
echo _gettext("Storage engine");
echo "\">
<option value=\"\"></option>
";
// line 139
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["storage_engines"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["engine"]) {
// line 140
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["engine"], "name", [], "any", false, false, false, 140), "html", null, true);
echo "\"";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["engine"], "comment", [], "any", false, false, false, 140))) {
echo " title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["engine"], "comment", [], "any", false, false, false, 140), "html", null, true);
echo "\"";
}
// line 141
echo (((twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, $context["engine"], "name", [], "any", false, false, false, 141)) == twig_lower_filter($this->env, (($__internal_compile_29 = $context["subpartition"]) && is_array($__internal_compile_29) || $__internal_compile_29 instanceof ArrayAccess ? ($__internal_compile_29["engine"] ?? null) : null)))) ? (" selected") : (""));
echo ">";
// line 142
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["engine"], "name", [], "any", false, false, false, 142), "html", null, true);
// line 143
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['engine'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 145
echo " </select>
</td>
<td>
<textarea name=\"";
// line 148
echo twig_escape_filter($this->env, (($__internal_compile_30 = $context["subpartition"]) && is_array($__internal_compile_30) || $__internal_compile_30 instanceof ArrayAccess ? ($__internal_compile_30["prefix"] ?? null) : null), "html", null, true);
echo "[comment]\">";
// line 149
echo twig_escape_filter($this->env, (($__internal_compile_31 = $context["subpartition"]) && is_array($__internal_compile_31) || $__internal_compile_31 instanceof ArrayAccess ? ($__internal_compile_31["comment"] ?? null) : null), "html", null, true);
// line 150
echo "</textarea>
</td>
<td>
<input type=\"text\" name=\"";
// line 153
echo twig_escape_filter($this->env, (($__internal_compile_32 = $context["subpartition"]) && is_array($__internal_compile_32) || $__internal_compile_32 instanceof ArrayAccess ? ($__internal_compile_32["prefix"] ?? null) : null), "html", null, true);
echo "[data_directory]\"
value=\"";
// line 154
echo twig_escape_filter($this->env, (($__internal_compile_33 = $context["subpartition"]) && is_array($__internal_compile_33) || $__internal_compile_33 instanceof ArrayAccess ? ($__internal_compile_33["data_directory"] ?? null) : null), "html", null, true);
echo "\">
</td>
<td>
<input type=\"text\" name=\"";
// line 157
echo twig_escape_filter($this->env, (($__internal_compile_34 = $context["subpartition"]) && is_array($__internal_compile_34) || $__internal_compile_34 instanceof ArrayAccess ? ($__internal_compile_34["prefix"] ?? null) : null), "html", null, true);
echo "[index_directory]\"
value=\"";
// line 158
echo twig_escape_filter($this->env, (($__internal_compile_35 = $context["subpartition"]) && is_array($__internal_compile_35) || $__internal_compile_35 instanceof ArrayAccess ? ($__internal_compile_35["index_directory"] ?? null) : null), "html", null, true);
echo "\">
</td>
<td>
<input type=\"number\" name=\"";
// line 161
echo twig_escape_filter($this->env, (($__internal_compile_36 = $context["subpartition"]) && is_array($__internal_compile_36) || $__internal_compile_36 instanceof ArrayAccess ? ($__internal_compile_36["prefix"] ?? null) : null), "html", null, true);
echo "[max_rows]\"
value=\"";
// line 162
echo twig_escape_filter($this->env, (($__internal_compile_37 = $context["subpartition"]) && is_array($__internal_compile_37) || $__internal_compile_37 instanceof ArrayAccess ? ($__internal_compile_37["max_rows"] ?? null) : null), "html", null, true);
echo "\">
</td>
<td>
<input type=\"number\" min=\"0\" name=\"";
// line 165
echo twig_escape_filter($this->env, (($__internal_compile_38 = $context["subpartition"]) && is_array($__internal_compile_38) || $__internal_compile_38 instanceof ArrayAccess ? ($__internal_compile_38["prefix"] ?? null) : null), "html", null, true);
echo "[min_rows]\"
value=\"";
// line 166
echo twig_escape_filter($this->env, (($__internal_compile_39 = $context["subpartition"]) && is_array($__internal_compile_39) || $__internal_compile_39 instanceof ArrayAccess ? ($__internal_compile_39["min_rows"] ?? null) : null), "html", null, true);
echo "\">
</td>
<td>
<input type=\"text\" min=\"0\" name=\"";
// line 169
echo twig_escape_filter($this->env, (($__internal_compile_40 = $context["subpartition"]) && is_array($__internal_compile_40) || $__internal_compile_40 instanceof ArrayAccess ? ($__internal_compile_40["prefix"] ?? null) : null), "html", null, true);
echo "[tablespace]\"
value=\"";
// line 170
echo twig_escape_filter($this->env, (($__internal_compile_41 = $context["subpartition"]) && is_array($__internal_compile_41) || $__internal_compile_41 instanceof ArrayAccess ? ($__internal_compile_41["tablespace"] ?? null) : null), "html", null, true);
echo "\">
</td>
<td>
<input type=\"text\" name=\"";
// line 173
echo twig_escape_filter($this->env, (($__internal_compile_42 = $context["subpartition"]) && is_array($__internal_compile_42) || $__internal_compile_42 instanceof ArrayAccess ? ($__internal_compile_42["prefix"] ?? null) : null), "html", null, true);
echo "[node_group]\"
value=\"";
// line 174
echo twig_escape_filter($this->env, (($__internal_compile_43 = $context["subpartition"]) && is_array($__internal_compile_43) || $__internal_compile_43 instanceof ArrayAccess ? ($__internal_compile_43["node_group"] ?? null) : null), "html", null, true);
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 ( 478 => 179, 472 => 178, 462 => 174, 458 => 173, 452 => 170, 448 => 169, 442 => 166, 438 => 165, 432 => 162, 428 => 161, 422 => 158, 418 => 157, 412 => 154, 408 => 153, 403 => 150, 401 => 149, 398 => 148, 393 => 145, 386 => 143, 384 => 142, 381 => 141, 372 => 140, 368 => 139, 361 => 137, 358 => 136, 352 => 133, 348 => 132, 345 => 131, 343 => 130, 342 => 129, 339 => 128, 335 => 127, 332 => 126, 329 => 125, 326 => 124, 323 => 123, 320 => 122, 318 => 121, 314 => 119, 308 => 116, 304 => 115, 300 => 113, 291 => 110, 288 => 109, 285 => 108, 283 => 107, 279 => 106, 275 => 105, 271 => 104, 265 => 102, 263 => 101, 258 => 99, 254 => 98, 250 => 97, 247 => 96, 245 => 95, 243 => 94, 239 => 93, 235 => 91, 231 => 90, 227 => 89, 223 => 88, 219 => 87, 215 => 86, 211 => 85, 205 => 84, 199 => 82, 197 => 81, 195 => 80, 189 => 78, 187 => 77, 184 => 76, 179 => 74, 177 => 73, 174 => 72, 167 => 68, 162 => 65, 154 => 61, 151 => 60, 144 => 56, 135 => 53, 132 => 52, 129 => 51, 127 => 50, 123 => 49, 119 => 48, 114 => 45, 110 => 44, 108 => 43, 102 => 40, 97 => 37, 89 => 33, 86 => 32, 79 => 28, 70 => 25, 67 => 24, 64 => 23, 62 => 22, 58 => 21, 54 => 20, 49 => 17, 43 => 14, 41 => 13, 39 => 12, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "columns_definitions/partitions.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/columns_definitions/partitions.twig");
}
}

View File

@@ -0,0 +1,81 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
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;
/* sql/enum_column_dropdown.twig */
class __TwigTemplate_fe9ccad84ec94f5ed3dbc0e98a30bd23 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "<select>
<option value=\"\">&nbsp;</option>
";
// line 3
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["values"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["value"]) {
// line 4
echo " <option value=\"";
echo $context["value"];
echo "\"";
echo ((twig_in_filter($context["value"], ($context["selected_values"] ?? null))) ? (" selected") : (""));
echo ">";
echo $context["value"];
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 6
echo "</select>
";
}
public function getTemplateName()
{
return "sql/enum_column_dropdown.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 58 => 6, 45 => 4, 41 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "sql/enum_column_dropdown.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/sql/enum_column_dropdown.twig");
}
}

View File

@@ -0,0 +1,517 @@
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
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;
/* table/index_form.twig */
class __TwigTemplate_0a7062f57794a5824975cb8d2f846971 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "<form action=\"";
echo PhpMyAdmin\Url::getFromRoute("/table/indexes");
echo "\"
method=\"post\"
name=\"index_frm\"
id=\"index_frm\"
class=\"ajax\">
";
// line 7
echo PhpMyAdmin\Url::getHiddenInputs(($context["form_params"] ?? null));
echo "
";
// line 8
if (($context["is_from_nav"] ?? null)) {
// line 9
echo " <input type=\"hidden\" name=\"do_save_data\" value=\"1\">
";
}
// line 11
echo "
<fieldset class=\"pma-fieldset\" id=\"index_edit_fields\">
<div class=\"index_info\">
<div>
<div class=\"label\">
<strong>
<label for=\"input_index_name\">
";
echo _gettext("Index name:");
// line 19
echo " ";
echo PhpMyAdmin\Html\Generator::showHint(_gettext("\"PRIMARY\" <b>must</b> be the name of and <b>only of</b> a primary key!"));
echo "
</label>
</strong>
</div>
<input type=\"text\"
name=\"index[Key_name]\"
id=\"input_index_name\"
size=\"25\"
maxlength=\"64\"
value=\"";
// line 29
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["index"] ?? null), "getName", [], "method", false, false, false, 29), "html", null, true);
echo "\"
onfocus=\"this.select()\">
</div>
<div>
<div class=\"label\">
<strong>
<label for=\"select_index_choice\">
";
echo _gettext("Index choice:");
// line 38
echo " ";
echo PhpMyAdmin\Html\MySQLDocumentation::show("ALTER_TABLE");
echo "
</label>
</strong>
</div>
<select name=\"index[Index_choice]\" id=\"select_index_choice\"";
// line 43
echo ((($context["create_edit_table"] ?? null)) ? (" disabled") : (""));
echo ">
";
// line 44
if (((twig_get_attribute($this->env, $this->source, ($context["index"] ?? null), "getChoice", [], "method", false, false, false, 44) == "PRIMARY") || !twig_get_attribute($this->env, $this->source, ($context["index"] ?? null), "hasPrimary", [], "method", false, false, false, 44))) {
// line 45
echo " <option value=\"PRIMARY\"";
echo (((twig_get_attribute($this->env, $this->source, ($context["index"] ?? null), "getChoice", [], "method", false, false, false, 45) == "PRIMARY")) ? (" selected") : (""));
echo ">PRIMARY</option>
";
}
// line 47
echo " <option value=\"INDEX\"";
echo (((twig_get_attribute($this->env, $this->source, ($context["index"] ?? null), "getChoice", [], "method", false, false, false, 47) == "INDEX")) ? (" selected") : (""));
echo ">INDEX</option>
<option value=\"UNIQUE\"";
// line 48
echo (((twig_get_attribute($this->env, $this->source, ($context["index"] ?? null), "getChoice", [], "method", false, false, false, 48) == "UNIQUE")) ? (" selected") : (""));
echo ">UNIQUE</option>
<option value=\"SPATIAL\"";
// line 49
echo (((twig_get_attribute($this->env, $this->source, ($context["index"] ?? null), "getChoice", [], "method", false, false, false, 49) == "SPATIAL")) ? (" selected") : (""));
echo ">SPATIAL</option>
<option value=\"FULLTEXT\"";
// line 50
echo (((twig_get_attribute($this->env, $this->source, ($context["index"] ?? null), "getChoice", [], "method", false, false, false, 50) == "FULLTEXT")) ? (" selected") : (""));
echo ">FULLTEXT</option>
</select>
</div>
";
// line 54
if ((($context["default_sliders_state"] ?? null) != "disabled")) {
// line 55
echo " <div class=\"mb-3\">
<button class=\"btn btn-sm btn-secondary\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#advancedOptions\" aria-expanded=\"";
// line 56
echo (((($context["default_sliders_state"] ?? null) == "open")) ? ("true") : ("false"));
echo "\" aria-controls=\"advancedOptions\">
";
echo _gettext("Advanced options");
// line 58
echo " </button>
</div>
<div class=\"collapse mb-3";
// line 60
echo (((($context["default_sliders_state"] ?? null) == "open")) ? (" show") : (""));
echo "\" id=\"advancedOptions\">
";
}
// line 62
echo "
<div>
<div class=\"label\">
<strong>
<label for=\"input_key_block_size\">
";
echo _gettext("Key block size:");
// line 68
echo " </label>
</strong>
</div>
<input type=\"text\"
name=\"index[Key_block_size]\"
id=\"input_key_block_size\"
size=\"30\"
value=\"";
// line 76
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["index"] ?? null), "getKeyBlockSize", [], "method", false, false, false, 76), "html", null, true);
echo "\">
</div>
<div>
<div class=\"label\">
<strong>
<label for=\"select_index_type\">
";
echo _gettext("Index type:");
// line 85
echo " ";
echo PhpMyAdmin\Html\MySQLDocumentation::show("ALTER_TABLE");
echo "
</label>
</strong>
</div>
<select name=\"index[Index_type]\" id=\"select_index_type\">
";
// line 91
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable([0 => "", 1 => "BTREE", 2 => "HASH"]);
foreach ($context['_seq'] as $context["_key"] => $context["index_type"]) {
// line 92
echo " <option value=\"";
echo twig_escape_filter($this->env, $context["index_type"], "html", null, true);
echo "\"";
echo (((twig_get_attribute($this->env, $this->source, ($context["index"] ?? null), "getType", [], "method", false, false, false, 92) == $context["index_type"])) ? (" selected") : (""));
echo ">";
echo twig_escape_filter($this->env, $context["index_type"], "html", null, true);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['index_type'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 94
echo " </select>
</div>
<div>
<div class=\"label\">
<strong>
<label for=\"input_parser\">
";
echo _gettext("Parser:");
// line 102
echo " </label>
</strong>
</div>
<input type=\"text\"
name=\"index[Parser]\"
id=\"input_parse\"
size=\"30\"
value=\"";
// line 110
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["index"] ?? null), "getParser", [], "method", false, false, false, 110), "html", null, true);
echo "\">
</div>
<div>
<div class=\"label\">
<strong>
<label for=\"input_index_comment\">
";
echo _gettext("Comment:");
// line 118
echo " </label>
</strong>
</div>
<input type=\"text\"
name=\"index[Index_comment]\"
id=\"input_index_comment\"
size=\"30\"
maxlength=\"1024\"
value=\"";
// line 127
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["index"] ?? null), "getComment", [], "method", false, false, false, 127), "html", null, true);
echo "\">
</div>
";
// line 130
if ((($context["default_sliders_state"] ?? null) != "disabled")) {
// line 131
echo " </div>
";
}
// line 133
echo "
<div class=\"clearfloat\"></div>
<table class=\"table align-middle\" id=\"index_columns\">
<thead>
<tr>
<th></th>
<th>
";
echo _gettext("Column");
// line 142
echo " </th>
<th>
";
echo _gettext("Size");
// line 145
echo " </th>
</tr>
</thead>
";
// line 148
$context["spatial_types"] = [0 => "geometry", 1 => "point", 2 => "linestring", 3 => "polygon", 4 => "multipoint", 5 => "multilinestring", 6 => "multipolygon", 7 => "geomtrycollection"];
// line 158
echo " <tbody>
";
// line 159
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["index"] ?? null), "getColumns", [], "method", false, false, false, 159));
foreach ($context['_seq'] as $context["_key"] => $context["column"]) {
// line 160
echo " <tr class=\"noclick\">
<td>
<span class=\"drag_icon\" title=\"";
echo _gettext("Drag to reorder");
// line 162
echo "\"></span>
</td>
<td>
<select name=\"index[columns][names][]\">
<option value=\"\">
-- ";
echo _gettext("Ignore");
// line 167
echo " --
</option>
";
// line 169
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["fields"] ?? null));
foreach ($context['_seq'] as $context["field_name"] => $context["field_type"]) {
// line 170
echo " ";
if ((((twig_get_attribute($this->env, $this->source, ($context["index"] ?? null), "getChoice", [], "method", false, false, false, 170) != "FULLTEXT") || twig_matches("/(char|text)/i", // line 171
$context["field_type"])) && ((twig_get_attribute($this->env, $this->source, // line 172
($context["index"] ?? null), "getChoice", [], "method", false, false, false, 172) != "SPATIAL") || twig_in_filter( // line 173
$context["field_type"], ($context["spatial_types"] ?? null))))) {
// line 174
echo "
<option value=\"";
// line 175
echo twig_escape_filter($this->env, $context["field_name"], "html", null, true);
echo "\"";
// line 176
if (($context["field_name"] == twig_get_attribute($this->env, $this->source, $context["column"], "getName", [], "method", false, false, false, 176))) {
// line 177
echo " selected=\"selected\"";
}
// line 178
echo ">
";
// line 179
echo twig_escape_filter($this->env, $context["field_name"], "html", null, true);
echo " [";
echo twig_escape_filter($this->env, $context["field_type"], "html", null, true);
echo "]
</option>
";
}
// line 182
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['field_name'], $context['field_type'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 183
echo " </select>
</td>
<td>
<input type=\"text\"
size=\"5\"
onfocus=\"this.select()\"
name=\"index[columns][sub_parts][]\"
value=\"";
// line 191
(((twig_get_attribute($this->env, $this->source, // line 190
($context["index"] ?? null), "getChoice", [], "method", false, false, false, 190) != "SPATIAL")) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, // line 191
$context["column"], "getSubPart", [], "method", false, false, false, 191), "html", null, true))) : (print ("")));
echo "\">
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['column'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 195
echo " ";
if ((($context["add_fields"] ?? null) > 0)) {
// line 196
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(range(1, ($context["add_fields"] ?? null)));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 197
echo " <tr class=\"noclick\">
<td>
<span class=\"drag_icon\" title=\"";
echo _gettext("Drag to reorder");
// line 199
echo "\"></span>
</td>
<td>
<select name=\"index[columns][names][]\">
<option value=\"\">-- ";
echo _gettext("Ignore");
// line 203
echo " --</option>
";
// line 204
$context["j"] = 0;
// line 205
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["fields"] ?? null));
foreach ($context['_seq'] as $context["field_name"] => $context["field_type"]) {
// line 206
echo " ";
if (($context["create_edit_table"] ?? null)) {
// line 207
echo " ";
$context["col_index"] = (($__internal_compile_0 = $context["field_type"]) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[1] ?? null) : null);
// line 208
echo " ";
$context["field_type"] = (($__internal_compile_1 = $context["field_type"]) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1[0] ?? null) : null);
// line 209
echo " ";
}
// line 210
echo " ";
$context["j"] = (($context["j"] ?? null) + 1);
// line 211
echo " <option value=\"";
echo twig_escape_filter($this->env, ((array_key_exists("col_index", $context)) ? ( // line 212
($context["col_index"] ?? null)) : ($context["field_name"])), "html", null, true);
echo "\"";
// line 213
echo (((($context["j"] ?? null) == $context["i"])) ? (" selected=\"selected\"") : (""));
echo ">
";
// line 214
echo twig_escape_filter($this->env, $context["field_name"], "html", null, true);
echo " [";
echo twig_escape_filter($this->env, $context["field_type"], "html", null, true);
echo "]
</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['field_name'], $context['field_type'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 217
echo " </select>
</td>
<td>
<input type=\"text\"
size=\"5\"
onfocus=\"this.select()\"
name=\"index[columns][sub_parts][]\"
value=\"\">
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 228
echo " ";
}
// line 229
echo " </tbody>
</table>
<div class=\"add_more\">
<div class=\"slider\"></div>
<div class=\"add_fields hide\">
<input class=\"btn btn-secondary\" type=\"submit\"
id=\"add_fields\"
value=\"";
// line 237
echo twig_escape_filter($this->env, twig_sprintf(_gettext("Add %s column(s) to index"), 1), "html", null, true);
echo "\">
</div>
</div>
</div>
</fieldset>
";
// line 243
if ( !($context["create_edit_table"] ?? null)) {
// line 244
echo "<fieldset class=\"pma-fieldset tblFooters\">
<button class=\"btn btn-primary\" type=\"submit\">";
echo _gettext("Go");
// line 245
echo "</button>
<button class=\"btn btn-secondary\" type=\"submit\" id=\"preview_index_frm\">";
echo _gettext("Preview SQL");
// line 246
echo "</button>
</fieldset>";
}
// line 249
echo "</form>
";
// line 250
if (($context["is_from_nav"] ?? null)) {
// line 251
echo " ";
echo twig_include($this->env, $context, "modals/preview_sql_modal.twig");
echo "
";
}
}
public function getTemplateName()
{
return "table/index_form.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 491 => 251, 489 => 250, 486 => 249, 482 => 246, 478 => 245, 474 => 244, 472 => 243, 464 => 237, 454 => 229, 451 => 228, 435 => 217, 424 => 214, 420 => 213, 417 => 212, 415 => 211, 412 => 210, 409 => 209, 406 => 208, 403 => 207, 400 => 206, 395 => 205, 393 => 204, 390 => 203, 383 => 199, 378 => 197, 373 => 196, 370 => 195, 360 => 191, 359 => 190, 358 => 191, 349 => 183, 343 => 182, 335 => 179, 332 => 178, 329 => 177, 327 => 176, 324 => 175, 321 => 174, 319 => 173, 318 => 172, 317 => 171, 315 => 170, 311 => 169, 307 => 167, 299 => 162, 294 => 160, 290 => 159, 287 => 158, 285 => 148, 280 => 145, 275 => 142, 264 => 133, 260 => 131, 258 => 130, 252 => 127, 241 => 118, 230 => 110, 220 => 102, 210 => 94, 197 => 92, 193 => 91, 183 => 85, 171 => 76, 161 => 68, 153 => 62, 148 => 60, 144 => 58, 139 => 56, 136 => 55, 134 => 54, 127 => 50, 123 => 49, 119 => 48, 114 => 47, 108 => 45, 106 => 44, 102 => 43, 93 => 38, 81 => 29, 67 => 19, 57 => 11, 53 => 9, 51 => 8, 47 => 7, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "table/index_form.twig", "/home/suvo/web/graffin.ns77.siliconpin.com/public_html/pma/templates/table/index_form.twig");
}
}