source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "
";
// line 129
$this->loadTemplate("table/structure/move_columns_dialog.twig", "table/structure/display_structure.twig", 129)->display(twig_to_array(["db" => // line 130
($context["db"] ?? null), "table" => // line 131
($context["table"] ?? null)]));
// line 134
echo "
";
// line 135
if ((($context["tbl_is_view"] ?? null) && !($context["db_is_system_schema"] ?? null))) {
// line 136
echo " ";
$context["edit_view_url"] = ("view_create.php" . ($context["edit_view_url"] ?? null));
// line 137
echo " ";
echo PhpMyAdmin\Util::linkOrButton( // line 138
($context["edit_view_url"] ?? null), PhpMyAdmin\Util::getIcon("b_edit", _gettext("Edit view"), true));
// line 140
echo "
";
}
// line 142
echo " ";
$this->loadTemplate("table/structure/optional_action_links.twig", "table/structure/display_structure.twig", 142)->display(twig_to_array(["url_query" => // line 143
($context["url_query"] ?? null), "tbl_is_view" => // line 144
($context["tbl_is_view"] ?? null), "db_is_system_schema" => // line 145
($context["db_is_system_schema"] ?? null), "table" => // line 146
($context["table"] ?? null), "is_active" => // line 147
($context["is_active"] ?? null), "mysql_int_version" => // line 148
($context["mysql_int_version"] ?? null), "is_mariadb" => // line 149
($context["is_mariadb"] ?? null)]));
// line 151
echo "
";
// line 152
if (( !($context["tbl_is_view"] ?? null) && !($context["db_is_system_schema"] ?? null))) {
// line 153
echo " ";
$this->loadTemplate("table/structure/add_column.twig", "table/structure/display_structure.twig", 153)->display(twig_to_array(["columns_list" => // line 154
($context["columns_list"] ?? null), "db" => // line 155
($context["db"] ?? null), "table" => // line 156
($context["table"] ?? null)]));
}
// line 159
echo "
";
// line 161
if ((( !($context["tbl_is_view"] ?? null) && !($context["db_is_system_schema"] ?? null)) && ("ARCHIVE" != // line 162
($context["tbl_storage_engine"] ?? null)))) {
// line 163
echo " ";
echo PhpMyAdmin\Index::getHtmlForDisplayIndexes();
echo "
";
}
// line 165
echo "
";
// line 167
if (($context["have_partitioning"] ?? null)) {
// line 168
echo " ";
// line 169
echo " ";
if (( !twig_test_empty(($context["partition_names"] ?? null)) && !(null === (($__internal_73db8eef4d2582468dab79a6b09c77ce3b48675a610afd65a1f325b68804a60c = ($context["partition_names"] ?? null)) && is_array($__internal_73db8eef4d2582468dab79a6b09c77ce3b48675a610afd65a1f325b68804a60c) || $__internal_73db8eef4d2582468dab79a6b09c77ce3b48675a610afd65a1f325b68804a60c instanceof ArrayAccess ? ($__internal_73db8eef4d2582468dab79a6b09c77ce3b48675a610afd65a1f325b68804a60c[0] ?? null) : null)))) {
// line 170
echo " ";
$context["partitions"] = PhpMyAdmin\Partition::getPartitions(($context["db"] ?? null), ($context["table"] ?? null));
// line 171
echo " ";
$context["first_partition"] = (($__internal_d8ad5934f1874c52fa2ac9a4dfae52038b39b8b03cfc82eeb53de6151d883972 = ($context["partitions"] ?? null)) && is_array($__internal_d8ad5934f1874c52fa2ac9a4dfae52038b39b8b03cfc82eeb53de6151d883972) || $__internal_d8ad5934f1874c52fa2ac9a4dfae52038b39b8b03cfc82eeb53de6151d883972 instanceof ArrayAccess ? ($__internal_d8ad5934f1874c52fa2ac9a4dfae52038b39b8b03cfc82eeb53de6151d883972[0] ?? null) : null);
// line 172
echo " ";
$context["range_or_list"] = ((((twig_get_attribute($this->env, $this->source, ($context["first_partition"] ?? null), "getMethod", [], "method", false, false, false, 172) == "RANGE") || (twig_get_attribute($this->env, $this->source, // line 173
($context["first_partition"] ?? null), "getMethod", [], "method", false, false, false, 173) == "RANGE COLUMNS")) || (twig_get_attribute($this->env, $this->source, // line 174
($context["first_partition"] ?? null), "getMethod", [], "method", false, false, false, 174) == "LIST")) || (twig_get_attribute($this->env, $this->source, // line 175
($context["first_partition"] ?? null), "getMethod", [], "method", false, false, false, 175) == "LIST COLUMNS"));
// line 176
echo " ";
$context["sub_partitions"] = twig_get_attribute($this->env, $this->source, ($context["first_partition"] ?? null), "getSubPartitions", [], "method", false, false, false, 176);
// line 177
echo " ";
$context["has_sub_partitions"] = twig_get_attribute($this->env, $this->source, ($context["first_partition"] ?? null), "hasSubPartitions", [], "method", false, false, false, 177);
// line 178
echo " ";
if (($context["has_sub_partitions"] ?? null)) {
// line 179
echo " ";
$context["first_sub_partition"] = (($__internal_df39c71428eaf37baa1ea2198679e0077f3699bdd31bb5ba10d084710b9da216 = ($context["sub_partitions"] ?? null)) && is_array($__internal_df39c71428eaf37baa1ea2198679e0077f3699bdd31bb5ba10d084710b9da216) || $__internal_df39c71428eaf37baa1ea2198679e0077f3699bdd31bb5ba10d084710b9da216 instanceof ArrayAccess ? ($__internal_df39c71428eaf37baa1ea2198679e0077f3699bdd31bb5ba10d084710b9da216[0] ?? null) : null);
// line 180
echo " ";
}
// line 181
echo "
";
// line 182
$context["action_icons"] = ["ANALYZE" => PhpMyAdmin\Util::getIcon("b_search", _gettext("Analyze")), "CHECK" => PhpMyAdmin\Util::getIcon("eye", _gettext("Check")), "OPTIMIZE" => PhpMyAdmin\Util::getIcon("normalize", _gettext("Optimize")), "REBUILD" => PhpMyAdmin\Util::getIcon("s_tbl", _gettext("Rebuild")), "REPAIR" => PhpMyAdmin\Util::getIcon("b_tblops", _gettext("Repair")), "TRUNCATE" => PhpMyAdmin\Util::getIcon("b_empty", _gettext("Truncate"))];
// line 190
echo " ";
if (($context["range_or_list"] ?? null)) {
// line 191
echo " ";
$context["action_icons"] = twig_array_merge(($context["action_icons"] ?? null), ["DROP" => PhpMyAdmin\Util::getIcon("b_drop", _gettext("Drop"))]);
// line 192
echo " ";
}
// line 193
echo "
";
// line 194
echo PhpMyAdmin\Util::getDivForSliderEffect("partitions", _gettext("Partitions"));
echo "
";
// line 196
$context["remove_sql"] = (("ALTER TABLE " . PhpMyAdmin\Util::backquote(($context["table"] ?? null))) . " REMOVE PARTITIONING");
// line 197
echo " ";
$context["remove_url"] = ((("sql.php" . ($context["url_query"] ?? null)) . "&sql_query=") . twig_urlencode_filter(($context["remove_sql"] ?? null)));
// line 198
echo "
";
// line 199
$this->loadTemplate("table/structure/display_partitions.twig", "table/structure/display_structure.twig", 199)->display(twig_to_array(["db" => // line 200
($context["db"] ?? null), "table" => // line 201
($context["table"] ?? null), "url_query" => // line 202
($context["url_query"] ?? null), "partitions" => // line 203
($context["partitions"] ?? null), "partition_method" => twig_get_attribute($this->env, $this->source, // line 204
($context["first_partition"] ?? null), "getMethod", [], "method", false, false, false, 204), "partition_expression" => twig_get_attribute($this->env, $this->source, // line 205
($context["first_partition"] ?? null), "getExpression", [], "method", false, false, false, 205), "has_description" => !twig_test_empty(twig_get_attribute($this->env, $this->source, // line 206
($context["first_partition"] ?? null), "getDescription", [], "method", false, false, false, 206)), "has_sub_partitions" => // line 207
($context["has_sub_partitions"] ?? null), "sub_partition_method" => (( // line 208
($context["has_sub_partitions"] ?? null)) ? (twig_get_attribute($this->env, $this->source, ($context["first_sub_partition"] ?? null), "getMethod", [], "method", false, false, false, 208)) : ("")), "sub_partition_expression" => (( // line 209
($context["has_sub_partitions"] ?? null)) ? (twig_get_attribute($this->env, $this->source, ($context["first_sub_partition"] ?? null), "getExpression", [], "method", false, false, false, 209)) : ("")), "action_icons" => // line 210
($context["action_icons"] ?? null), "range_or_list" => // line 211
($context["range_or_list"] ?? null), "remove_url" => // line 212
($context["remove_url"] ?? null)]));
// line 214
echo " ";
} else {
// line 215
echo " ";
$this->loadTemplate("table/structure/display_partitions.twig", "table/structure/display_structure.twig", 215)->display(twig_to_array(["db" => // line 216
($context["db"] ?? null), "table" => // line 217
($context["table"] ?? null)]));
// line 219
echo " ";
}
// line 220
echo " ";
// line 221
echo "
";
}
// line 223
echo "
";
// line 225
if (($context["show_stats"] ?? null)) {
// line 226
echo " ";
echo ($context["table_stats"] ?? null);
echo "
";
}
// line 228
echo "
";
}
public function getTemplateName()
{
return "table/structure/display_structure.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 428 => 228, 422 => 226, 420 => 225, 417 => 223, 413 => 221, 411 => 220, 408 => 219, 406 => 217, 405 => 216, 403 => 215, 400 => 214, 398 => 212, 397 => 211, 396 => 210, 395 => 209, 394 => 208, 393 => 207, 392 => 206, 391 => 205, 390 => 204, 389 => 203, 388 => 202, 387 => 201, 386 => 200, 385 => 199, 382 => 198, 379 => 197, 377 => 196, 372 => 194, 369 => 193, 366 => 192, 363 => 191, 360 => 190, 358 => 182, 355 => 181, 352 => 180, 349 => 179, 346 => 178, 343 => 177, 340 => 176, 338 => 175, 337 => 174, 336 => 173, 334 => 172, 331 => 171, 328 => 170, 325 => 169, 323 => 168, 321 => 167, 318 => 165, 312 => 163, 310 => 162, 309 => 161, 306 => 159, 303 => 156, 302 => 155, 301 => 154, 299 => 153, 297 => 152, 294 => 151, 292 => 149, 291 => 148, 290 => 147, 289 => 146, 288 => 145, 287 => 144, 286 => 143, 284 => 142, 280 => 140, 278 => 138, 276 => 137, 273 => 136, 271 => 135, 268 => 134, 266 => 131, 265 => 130, 264 => 129, 260 => 127, 258 => 125, 257 => 124, 256 => 123, 255 => 122, 254 => 121, 253 => 120, 252 => 119, 247 => 116, 240 => 114, 237 => 113, 235 => 111, 234 => 110, 233 => 109, 232 => 108, 231 => 107, 230 => 106, 229 => 105, 228 => 104, 227 => 103, 226 => 102, 225 => 101, 224 => 100, 223 => 99, 222 => 98, 221 => 97, 219 => 96, 216 => 95, 214 => 93, 213 => 92, 212 => 91, 211 => 90, 210 => 89, 209 => 88, 208 => 87, 207 => 86, 206 => 85, 205 => 84, 204 => 83, 203 => 82, 202 => 81, 201 => 80, 200 => 79, 199 => 77, 198 => 73, 197 => 72, 196 => 71, 193 => 70, 190 => 69, 187 => 66, 184 => 65, 181 => 64, 178 => 61, 176 => 60, 173 => 59, 170 => 58, 167 => 57, 164 => 55, 162 => 54, 159 => 53, 157 => 52, 154 => 51, 152 => 50, 149 => 49, 147 => 48, 144 => 47, 142 => 46, 139 => 45, 137 => 44, 134 => 43, 131 => 42, 128 => 41, 125 => 40, 122 => 39, 119 => 38, 116 => 37, 114 => 36, 111 => 35, 108 => 34, 105 => 33, 102 => 31, 99 => 30, 97 => 29, 94 => 28, 91 => 27, 88 => 26, 85 => 25, 80 => 24, 77 => 23, 74 => 22, 71 => 20, 69 => 18, 68 => 17, 67 => 16, 65 => 15, 60 => 11, 57 => 10, 54 => 8, 52 => 7, 50 => 6, 48 => 5, 44 => 3, 40 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "table/structure/display_structure.twig", "/var/www/localhost/htdocs/phpmyadmin/templates/table/structure/display_structure.twig");
}
}