source = $this->getSourceContext(); $this->parent = false; $this->blocks = [ ]; } protected function doDisplay(array $context, array $blocks = []) { $macros = $this->macros; // line 1 echo "

"; // line 4 echo \PhpMyAdmin\Html\Generator::getImage("s_db"); echo " "; // line 5 if (($context["has_statistics"] ?? null)) { // line 6 echo " "; echo _gettext("Databases statistics"); // line 7 echo " "; } else { // line 8 echo " "; echo _gettext("Databases"); // line 9 echo " "; } // line 10 echo "

"; // line 13 if (($context["is_create_database_shown"] ?? null)) { // line 14 echo "
"; } // line 79 echo " "; // line 80 if ((($context["database_count"] ?? null) > 0)) { // line 81 echo " "; $this->loadTemplate("filter.twig", "server/databases/index.twig", 81)->display(twig_to_array(["filter_value" => ""])); // line 82 echo "
"; // line 85 echo \PhpMyAdmin\Html\Generator::getListNavigator( // line 86 ($context["database_count"] ?? null), // line 87 ($context["pos"] ?? null), // line 88 ($context["url_params"] ?? null), PhpMyAdmin\Url::getFromRoute("/server/databases"), "frame_content", // line 91 ($context["max_db_list"] ?? null)); // line 92 echo "
"; // line 95 echo PhpMyAdmin\Url::getHiddenInputs(($context["url_params"] ?? null)); echo "
"; // line 100 if (($context["is_drop_allowed"] ?? null)) { // line 101 echo " "; } // line 103 echo " "; // line 137 if (($context["has_statistics"] ?? null)) { // line 138 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["header_statistics"] ?? null)); foreach ($context['_seq'] as $context["name"] => $context["statistic"]) { // line 139 echo " env, $this->source, $context["statistic"], "format", [], "any", false, false, false, 139) == "byte")) ? (" colspan=\"2\"") : ("")); echo "> // line 141 $context["name"], "sort_order" => ((((twig_get_attribute($this->env, $this->source, // line 142 ($context["url_params"] ?? null), "sort_by", [], "any", false, false, false, 142) == $context["name"]) && (twig_get_attribute($this->env, $this->source, // line 143 ($context["url_params"] ?? null), "sort_order", [], "any", false, false, false, 143) == "asc"))) ? ("desc") : ("asc"))])); // line 144 echo "\"> "; // line 145 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["statistic"], "title", [], "any", false, false, false, 145), "html", null, true); echo " "; // line 146 if ((twig_get_attribute($this->env, $this->source, ($context["url_params"] ?? null), "sort_by", [], "any", false, false, false, 146) == $context["name"])) { // line 147 echo " "; if ((twig_get_attribute($this->env, $this->source, ($context["url_params"] ?? null), "sort_order", [], "any", false, false, false, 147) == "asc")) { // line 148 echo " "; echo \PhpMyAdmin\Html\Generator::getImage("s_asc", _gettext("Ascending")); echo " "; } else { // line 150 echo " "; echo \PhpMyAdmin\Html\Generator::getImage("s_desc", _gettext("Descending")); echo " "; } // line 152 echo " "; } // line 153 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['name'], $context['statistic'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 156 echo " "; } // line 157 echo " "; // line 158 if (($context["has_master_replication"] ?? null)) { // line 159 echo " "; } // line 161 echo " "; // line 162 if (($context["has_slave_replication"] ?? null)) { // line 163 echo " "; } // line 165 echo " "; // line 171 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["databases"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["database"]) { // line 172 echo " env, $this->source, $context["database"], "is_system_schema", [], "any", false, false, false, 172) || twig_get_attribute($this->env, $this->source, $context["database"], "is_pmadb", [], "any", false, false, false, 172))) ? (" noclick") : ("")); echo "\" data-filter-row=\""; echo twig_escape_filter($this->env, twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, $context["database"], "name", [], "any", false, false, false, 172)), "html", null, true); echo "\"> "; // line 173 if (($context["is_drop_allowed"] ?? null)) { // line 174 echo " "; } // line 181 echo " "; // line 195 if (($context["has_statistics"] ?? null)) { // line 196 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["database"], "statistics", [], "any", false, false, false, 196)); foreach ($context['_seq'] as $context["_key"] => $context["statistic"]) { // line 197 echo " "; if ((twig_get_attribute($this->env, $this->source, $context["statistic"], "format", [], "any", false, false, false, 197) === "byte")) { // line 198 echo " "; $context["value"] = PhpMyAdmin\Util::formatByteDown(twig_get_attribute($this->env, $this->source, $context["statistic"], "raw", [], "any", false, false, false, 198), 3, 1); // line 199 echo " "; } else { // line 206 echo " "; } // line 212 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['statistic'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 213 echo " "; } // line 214 echo " "; // line 215 if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["database"], "replication", [], "any", false, false, false, 215), "master", [], "any", false, false, false, 215), "status", [], "any", false, false, false, 215)) { // line 216 echo " "; if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["database"], "replication", [], "any", false, false, false, 216), "master", [], "any", false, false, false, 216), "is_replicated", [], "any", false, false, false, 216)) { // line 217 echo " "; } else { // line 221 echo " "; } // line 225 echo " "; } // line 226 echo " "; // line 227 if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["database"], "replication", [], "any", false, false, false, 227), "slave", [], "any", false, false, false, 227), "status", [], "any", false, false, false, 227)) { // line 228 echo " "; if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["database"], "replication", [], "any", false, false, false, 228), "slave", [], "any", false, false, false, 228), "is_replicated", [], "any", false, false, false, 228)) { // line 229 echo " "; } else { // line 233 echo " "; } // line 237 echo " "; } // line 238 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['database'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 251 echo " "; // line 262 if (($context["has_statistics"] ?? null)) { // line 263 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["total_statistics"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["statistic"]) { // line 264 echo " "; if ((twig_get_attribute($this->env, $this->source, $context["statistic"], "format", [], "any", false, false, false, 264) === "byte")) { // line 265 echo " "; $context["value"] = PhpMyAdmin\Util::formatByteDown(twig_get_attribute($this->env, $this->source, $context["statistic"], "raw", [], "any", false, false, false, 265), 3, 1); // line 266 echo " "; } else { // line 273 echo " "; } // line 279 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['statistic'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 280 echo " "; } // line 281 echo " "; // line 282 if (($context["has_master_replication"] ?? null)) { // line 283 echo " "; } // line 285 echo " "; // line 286 if (($context["has_slave_replication"] ?? null)) { // line 287 echo " "; } // line 289 echo "
"SCHEMA_NAME", "sort_order" => ((((twig_get_attribute($this->env, $this->source, // line 106 ($context["url_params"] ?? null), "sort_by", [], "any", false, false, false, 106) == "SCHEMA_NAME") && (twig_get_attribute($this->env, $this->source, // line 107 ($context["url_params"] ?? null), "sort_order", [], "any", false, false, false, 107) == "asc"))) ? ("desc") : ("asc"))])); // line 108 echo "\"> "; // line 109 echo _gettext("Database"); // line 110 echo " "; if ((twig_get_attribute($this->env, $this->source, ($context["url_params"] ?? null), "sort_by", [], "any", false, false, false, 110) == "SCHEMA_NAME")) { // line 111 echo " "; if ((twig_get_attribute($this->env, $this->source, ($context["url_params"] ?? null), "sort_order", [], "any", false, false, false, 111) == "asc")) { // line 112 echo " "; echo \PhpMyAdmin\Html\Generator::getImage("s_asc", _gettext("Ascending")); echo " "; } else { // line 114 echo " "; echo \PhpMyAdmin\Html\Generator::getImage("s_desc", _gettext("Descending")); echo " "; } // line 116 echo " "; } // line 117 echo " "DEFAULT_COLLATION_NAME", "sort_order" => ((((twig_get_attribute($this->env, $this->source, // line 123 ($context["url_params"] ?? null), "sort_by", [], "any", false, false, false, 123) == "DEFAULT_COLLATION_NAME") && (twig_get_attribute($this->env, $this->source, // line 124 ($context["url_params"] ?? null), "sort_order", [], "any", false, false, false, 124) == "asc"))) ? ("desc") : ("asc"))])); // line 125 echo "\"> "; // line 126 echo _gettext("Collation"); // line 127 echo " "; if ((twig_get_attribute($this->env, $this->source, ($context["url_params"] ?? null), "sort_by", [], "any", false, false, false, 127) == "DEFAULT_COLLATION_NAME")) { // line 128 echo " "; if ((twig_get_attribute($this->env, $this->source, ($context["url_params"] ?? null), "sort_order", [], "any", false, false, false, 128) == "asc")) { // line 129 echo " "; echo \PhpMyAdmin\Html\Generator::getImage("s_asc", _gettext("Ascending")); echo " "; } else { // line 131 echo " "; echo \PhpMyAdmin\Html\Generator::getImage("s_desc", _gettext("Descending")); echo " "; } // line 133 echo " "; } // line 134 echo " "; echo _gettext("Master replication"); echo ""; echo _gettext("Slave replication"); echo ""; // line 166 echo _gettext("Action"); echo "
env, twig_get_attribute($this->env, $this->source, $context["database"], "name", [], "any", false, false, false, 176), "html", null, true); echo "\" value=\""; // line 177 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["database"], "name", [], "any", false, false, false, 177), "html", null, true); echo "\""; // line 178 echo (((twig_get_attribute($this->env, $this->source, $context["database"], "is_system_schema", [], "any", false, false, false, 178) || twig_get_attribute($this->env, $this->source, $context["database"], "is_pmadb", [], "any", false, false, false, 178))) ? (" disabled") : ("")); echo "> env, twig_get_attribute($this->env, $this->source, $context["database"], "url", [], "any", false, false, false, 183), "html", null, true); echo "\" title=\""; // line 184 echo twig_escape_filter($this->env, sprintf(_gettext("Jump to database '%s'"), twig_get_attribute($this->env, $this->source, $context["database"], "name", [], "any", false, false, false, 184)), "html", null, true); echo "\"> "; // line 185 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["database"], "name", [], "any", false, false, false, 185), "html", null, true); echo " env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["database"], "collation", [], "any", false, false, false, 190), "description", [], "any", false, false, false, 190), "html", null, true); echo "\"> "; // line 191 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["database"], "collation", [], "any", false, false, false, 191), "name", [], "any", false, false, false, 191), "html", null, true); echo " env, twig_get_attribute($this->env, $this->source, $context["statistic"], "raw", [], "any", false, false, false, 200), "html", null, true); echo "\" title=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["statistic"], "raw", [], "any", false, false, false, 200), "html", null, true); echo "\"> "; // line 201 echo twig_escape_filter($this->env, (($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = ($context["value"] ?? null)) && is_array($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4) || $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 instanceof ArrayAccess ? ($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4[0] ?? null) : null), "html", null, true); echo " "; // line 204 echo twig_escape_filter($this->env, (($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 = ($context["value"] ?? null)) && is_array($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144) || $__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 instanceof ArrayAccess ? ($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144[1] ?? null) : null), "html", null, true); echo " env, twig_get_attribute($this->env, $this->source, $context["statistic"], "raw", [], "any", false, false, false, 207), "html", null, true); echo "\" title=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["statistic"], "raw", [], "any", false, false, false, 207), "html", null, true); echo "\"> "; // line 208 echo twig_escape_filter($this->env, PhpMyAdmin\Util::formatNumber(twig_get_attribute($this->env, $this->source, $context["statistic"], "raw", [], "any", false, false, false, 208), 0), "html", null, true); echo " "; // line 218 echo \PhpMyAdmin\Html\Generator::getIcon("s_success", _gettext("Replicated")); echo " "; // line 222 echo \PhpMyAdmin\Html\Generator::getIcon("s_cancel", _gettext("Not replicated")); echo " "; // line 230 echo \PhpMyAdmin\Html\Generator::getIcon("s_success", _gettext("Replicated")); echo " "; // line 234 echo \PhpMyAdmin\Html\Generator::getIcon("s_cancel", _gettext("Not replicated")); echo " env, $this->source, $context["database"], "name", [], "any", false, false, false, 241)); echo "\" href=\""; echo PhpMyAdmin\Url::getFromRoute("/server/privileges", ["db" => twig_get_attribute($this->env, $this->source, // line 242 $context["database"], "name", [], "any", false, false, false, 242), "checkprivsdb" => twig_get_attribute($this->env, $this->source, // line 243 $context["database"], "name", [], "any", false, false, false, 243)]); // line 244 echo "\" title=\""; // line 245 echo twig_escape_filter($this->env, sprintf(_gettext("Check privileges for database \"%s\"."), twig_get_attribute($this->env, $this->source, $context["database"], "name", [], "any", false, false, false, 245)), "html", null, true); echo "\"> "; // line 246 echo \PhpMyAdmin\Html\Generator::getIcon("s_rights", _gettext("Check privileges")); echo "
"; // line 256 echo _gettext("Total:"); // line 257 echo " "; // line 258 echo twig_escape_filter($this->env, ($context["database_count"] ?? null), "html", null, true); // line 259 echo " env, twig_get_attribute($this->env, $this->source, $context["statistic"], "raw", [], "any", false, false, false, 267), "html", null, true); echo "\" title=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["statistic"], "raw", [], "any", false, false, false, 267), "html", null, true); echo "\"> "; // line 268 echo twig_escape_filter($this->env, (($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b = ($context["value"] ?? null)) && is_array($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b) || $__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b instanceof ArrayAccess ? ($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b[0] ?? null) : null), "html", null, true); echo " "; // line 271 echo twig_escape_filter($this->env, (($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 = ($context["value"] ?? null)) && is_array($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002) || $__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 instanceof ArrayAccess ? ($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002[1] ?? null) : null), "html", null, true); echo " env, twig_get_attribute($this->env, $this->source, $context["statistic"], "raw", [], "any", false, false, false, 274), "html", null, true); echo "\" title=\""; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["statistic"], "raw", [], "any", false, false, false, 274), "html", null, true); echo "\"> "; // line 275 echo twig_escape_filter($this->env, PhpMyAdmin\Util::formatNumber(twig_get_attribute($this->env, $this->source, $context["statistic"], "raw", [], "any", false, false, false, 275), 0), "html", null, true); echo "
"; // line 297 echo " "; if (($context["is_drop_allowed"] ?? null)) { // line 298 echo " "; $this->loadTemplate("select_all.twig", "server/databases/index.twig", 298)->display(twig_to_array(["theme_image_path" => // line 299 ($context["theme_image_path"] ?? null), "text_dir" => // line 300 ($context["text_dir"] ?? null), "form_name" => "dbStatsForm"])); // line 303 echo " "; } // line 308 echo " "; // line 310 echo " "; if ( !($context["has_statistics"] ?? null)) { // line 311 echo "
"; // line 312 echo call_user_func_array($this->env->getFilter('notice')->getCallable(), [_gettext("Note: Enabling the database statistics here might cause heavy traffic between the web server and the MySQL server.")]); echo "
"; } // line 325 echo "
"; } else { // line 330 echo "

"; echo call_user_func_array($this->env->getFilter('notice')->getCallable(), [_gettext("No databases")]); echo "

"; } } public function getTemplateName() { return "server/databases/index.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 791 => 330, 784 => 325, 775 => 319, 767 => 318, 758 => 312, 755 => 311, 752 => 310, 749 => 308, 743 => 305, 739 => 304, 736 => 303, 734 => 300, 733 => 299, 731 => 298, 728 => 297, 719 => 289, 715 => 287, 713 => 286, 710 => 285, 706 => 283, 704 => 282, 701 => 281, 698 => 280, 692 => 279, 685 => 275, 679 => 274, 676 => 273, 671 => 271, 665 => 268, 659 => 267, 656 => 266, 653 => 265, 650 => 264, 645 => 263, 643 => 262, 638 => 259, 636 => 258, 634 => 257, 632 => 256, 628 => 255, 622 => 251, 611 => 246, 607 => 245, 605 => 244, 603 => 243, 602 => 242, 599 => 241, 595 => 238, 592 => 237, 586 => 234, 583 => 233, 577 => 230, 574 => 229, 571 => 228, 569 => 227, 566 => 226, 563 => 225, 557 => 222, 554 => 221, 548 => 218, 545 => 217, 542 => 216, 540 => 215, 537 => 214, 534 => 213, 528 => 212, 521 => 208, 515 => 207, 512 => 206, 507 => 204, 501 => 201, 495 => 200, 492 => 199, 489 => 198, 486 => 197, 481 => 196, 479 => 195, 472 => 191, 468 => 190, 460 => 185, 456 => 184, 453 => 183, 449 => 181, 443 => 178, 440 => 177, 437 => 176, 434 => 174, 432 => 173, 425 => 172, 421 => 171, 413 => 166, 410 => 165, 404 => 163, 402 => 162, 399 => 161, 393 => 159, 391 => 158, 388 => 157, 385 => 156, 377 => 153, 374 => 152, 368 => 150, 362 => 148, 359 => 147, 357 => 146, 353 => 145, 350 => 144, 348 => 143, 347 => 142, 346 => 141, 345 => 140, 340 => 139, 335 => 138, 333 => 137, 328 => 134, 325 => 133, 319 => 131, 313 => 129, 310 => 128, 307 => 127, 305 => 126, 302 => 125, 300 => 124, 299 => 123, 298 => 121, 292 => 117, 289 => 116, 283 => 114, 277 => 112, 274 => 111, 271 => 110, 269 => 109, 266 => 108, 264 => 107, 263 => 106, 262 => 104, 259 => 103, 255 => 101, 253 => 100, 245 => 95, 241 => 94, 237 => 92, 235 => 91, 234 => 88, 233 => 87, 232 => 86, 231 => 85, 226 => 82, 223 => 81, 221 => 80, 218 => 79, 212 => 75, 208 => 73, 206 => 72, 203 => 71, 201 => 67, 192 => 62, 190 => 61, 186 => 60, 182 => 58, 176 => 55, 173 => 54, 169 => 52, 162 => 50, 155 => 48, 153 => 47, 145 => 46, 141 => 45, 134 => 44, 130 => 43, 125 => 41, 122 => 40, 120 => 39, 115 => 37, 112 => 36, 109 => 34, 105 => 32, 103 => 31, 98 => 29, 91 => 25, 88 => 24, 86 => 23, 82 => 22, 74 => 18, 72 => 17, 67 => 14, 65 => 13, 60 => 10, 57 => 9, 54 => 8, 51 => 7, 48 => 6, 46 => 5, 42 => 4, 37 => 1,); } public function getSourceContext() { return new Source("", "server/databases/index.twig", "/usr/local/www/phpMyAdmin/templates/server/databases/index.twig"); } }