/home/desid573/tmp/pma_template_compiles_desid573/twig/e9
Edit: /home/desid573/tmp/pma_template_compiles_desid573/twig/e9/e97fca19ceb020b45c69288b92ddfc23.php (42506B)
source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
echo "
";
// line 3
echo PhpMyAdmin\Html\Generator::getIcon("s_db", ((($context["has_statistics"] ?? null)) ? (_gettext("Databases statistics")) : (_gettext("Databases"))));
echo "
";
// line 6
if (($context["is_create_database_shown"] ?? null)) {
// line 7
echo "
";
// line 13
if (($context["has_create_database_privileges"] ?? null)) {
// line 14
echo "
";
// line 15
echo PhpMyAdmin\Url::getHiddenInputs("", "");
echo "
";
// line 17
if (($context["has_statistics"] ?? null)) {
// line 18
echo "
";
}
// line 20
echo "
env, ($context["database_to_create"] ?? null), "html", null, true);
echo "\" id=\"text_create_db\" placeholder=\"";
echo _gettext("Database name");
// line 24
echo "\" aria-label=\"";
echo _gettext("Database name");
echo "\" required>
";
// line 27
if ( !twig_test_empty(($context["charsets"] ?? null))) {
// line 28
echo "
";
echo _gettext("Collation");
// line 30
echo "
";
// line 32
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["charsets"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["charset"]) {
// line 33
echo " env, twig_get_attribute($this->env, $this->source, $context["charset"], "name", [], "any", false, false, false, 33), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["charset"], "description", [], "any", false, false, false, 33), "html", null, true);
echo "\">
";
// line 34
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["charset"], "collations", [], "any", false, false, false, 34));
foreach ($context['_seq'] as $context["_key"] => $context["collation"]) {
// line 35
echo " env, twig_get_attribute($this->env, $this->source, $context["collation"], "name", [], "any", false, false, false, 35), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["collation"], "description", [], "any", false, false, false, 35), "html", null, true);
echo "\"";
echo ((twig_get_attribute($this->env, $this->source, $context["collation"], "is_selected", [], "any", false, false, false, 35)) ? (" selected") : (""));
echo ">";
// line 36
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["collation"], "name", [], "any", false, false, false, 36), "html", null, true);
// line 37
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['collation'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 39
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['charset'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 41
echo "
";
}
// line 44
echo "
";
} else {
// line 50
echo "
";
echo PhpMyAdmin\Html\Generator::getIcon("s_error", _gettext("No privileges to create databases"));
echo "
";
}
// line 52
echo "
";
}
// line 55
echo "
";
// line 56
if ((($context["database_count"] ?? null) > 0)) {
// line 57
echo "
";
// line 58
if (($context["is_drop_allowed"] ?? null)) {
// line 59
echo "
";
}
// line 73
echo "
";
// line 82
echo PhpMyAdmin\Html\Generator::getListNavigator( // line 83
($context["database_count"] ?? null), // line 84
($context["pos"] ?? null), // line 85
($context["url_params"] ?? null), PhpMyAdmin\Url::getFromRoute("/server/databases"), "frame_content", // line 88
($context["max_db_list"] ?? null));
// line 89
echo "
";
// line 92
echo PhpMyAdmin\Url::getHiddenInputs(($context["url_params"] ?? null));
echo "
";
// line 97
if (($context["is_drop_allowed"] ?? null)) {
// line 98
echo "
";
}
// line 100
echo "
"SCHEMA_NAME", "sort_order" => ((((twig_get_attribute($this->env, $this->source, // line 103
($context["url_params"] ?? null), "sort_by", [], "any", false, false, false, 103) == "SCHEMA_NAME") && (twig_get_attribute($this->env, $this->source, // line 104
($context["url_params"] ?? null), "sort_order", [], "any", false, false, false, 104) == "asc"))) ? ("desc") : ("asc"))]));
// line 105
echo "\">
";
echo _gettext("Database");
// line 107
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["url_params"] ?? null), "sort_by", [], "any", false, false, false, 107) == "SCHEMA_NAME")) {
// line 108
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["url_params"] ?? null), "sort_order", [], "any", false, false, false, 108) == "asc")) {
// line 109
echo " ";
echo PhpMyAdmin\Html\Generator::getImage("s_asc", _gettext("Ascending"));
echo "
";
} else {
// line 111
echo " ";
echo PhpMyAdmin\Html\Generator::getImage("s_desc", _gettext("Descending"));
echo "
";
}
// line 113
echo " ";
}
// line 114
echo "
"DEFAULT_COLLATION_NAME", "sort_order" => ((((twig_get_attribute($this->env, $this->source, // line 120
($context["url_params"] ?? null), "sort_by", [], "any", false, false, false, 120) == "DEFAULT_COLLATION_NAME") && (twig_get_attribute($this->env, $this->source, // line 121
($context["url_params"] ?? null), "sort_order", [], "any", false, false, false, 121) == "asc"))) ? ("desc") : ("asc"))]));
// line 122
echo "\">
";
echo _gettext("Collation");
// line 124
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["url_params"] ?? null), "sort_by", [], "any", false, false, false, 124) == "DEFAULT_COLLATION_NAME")) {
// line 125
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["url_params"] ?? null), "sort_order", [], "any", false, false, false, 125) == "asc")) {
// line 126
echo " ";
echo PhpMyAdmin\Html\Generator::getImage("s_asc", _gettext("Ascending"));
echo "
";
} else {
// line 128
echo " ";
echo PhpMyAdmin\Html\Generator::getImage("s_desc", _gettext("Descending"));
echo "
";
}
// line 130
echo " ";
}
// line 131
echo "
";
// line 134
if (($context["has_statistics"] ?? null)) {
// line 135
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["header_statistics"] ?? null));
foreach ($context['_seq'] as $context["name"] => $context["statistic"]) {
// line 136
echo " env, $this->source, $context["statistic"], "format", [], "any", false, false, false, 136) == "byte")) ? (" colspan=\"2\"") : (""));
echo ">
// line 138
$context["name"], "sort_order" => ((((twig_get_attribute($this->env, $this->source, // line 139
($context["url_params"] ?? null), "sort_by", [], "any", false, false, false, 139) == $context["name"]) && (twig_get_attribute($this->env, $this->source, // line 140
($context["url_params"] ?? null), "sort_order", [], "any", false, false, false, 140) == "asc"))) ? ("desc") : ("asc"))]));
// line 141
echo "\">
";
// line 142
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["statistic"], "title", [], "any", false, false, false, 142), "html", null, true);
echo "
";
// line 143
if ((twig_get_attribute($this->env, $this->source, ($context["url_params"] ?? null), "sort_by", [], "any", false, false, false, 143) == $context["name"])) {
// line 144
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["url_params"] ?? null), "sort_order", [], "any", false, false, false, 144) == "asc")) {
// line 145
echo " ";
echo PhpMyAdmin\Html\Generator::getImage("s_asc", _gettext("Ascending"));
echo "
";
} else {
// line 147
echo " ";
echo PhpMyAdmin\Html\Generator::getImage("s_desc", _gettext("Descending"));
echo "
";
}
// line 149
echo " ";
}
// line 150
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 153
echo " ";
}
// line 154
echo "
";
// line 155
if (($context["has_primary_replication"] ?? null)) {
// line 156
echo " ";
echo _gettext("Primary replication");
echo "
";
}
// line 158
echo "
";
// line 159
if (($context["has_replica_replication"] ?? null)) {
// line 160
echo " ";
echo _gettext("Replica replication");
echo "
";
}
// line 162
echo "
";
echo _gettext("Action");
// line 163
echo "
";
// line 168
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["databases"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["database"]) {
// line 169
echo " env, $this->source, $context["database"], "is_system_schema", [], "any", false, false, false, 169) || twig_get_attribute($this->env, $this->source, $context["database"], "is_pmadb", [], "any", false, false, false, 169))) ? (" 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, 169)), "html", null, true);
echo "\">
";
// line 170
if (($context["is_drop_allowed"] ?? null)) {
// line 171
echo "
env, twig_get_attribute($this->env, $this->source, $context["database"], "name", [], "any", false, false, false, 173), "html", null, true);
echo "\" value=\"";
// line 174
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["database"], "name", [], "any", false, false, false, 174), "html", null, true);
echo "\"";
// line 175
echo (((twig_get_attribute($this->env, $this->source, $context["database"], "is_system_schema", [], "any", false, false, false, 175) || twig_get_attribute($this->env, $this->source, $context["database"], "is_pmadb", [], "any", false, false, false, 175))) ? (" disabled") : (""));
echo ">
";
}
// line 178
echo "
env, twig_get_attribute($this->env, $this->source, $context["database"], "url", [], "any", false, false, false, 180), "html", null, true);
echo "\" title=\"";
// line 181
echo twig_escape_filter($this->env, twig_sprintf(_gettext("Jump to database '%s'"), twig_get_attribute($this->env, $this->source, $context["database"], "name", [], "any", false, false, false, 181)), "html", null, true);
echo "\">
";
// line 182
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["database"], "name", [], "any", false, false, false, 182), "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, 187), "description", [], "any", false, false, false, 187), "html", null, true);
echo "\">
";
// line 188
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, 188), "name", [], "any", false, false, false, 188), "html", null, true);
echo "
";
// line 192
if (($context["has_statistics"] ?? null)) {
// line 193
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["database"], "statistics", [], "any", false, false, false, 193));
foreach ($context['_seq'] as $context["_key"] => $context["statistic"]) {
// line 194
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["statistic"], "format", [], "any", false, false, false, 194) === "byte")) {
// line 195
echo " ";
$context["value"] = PhpMyAdmin\Util::formatByteDown(twig_get_attribute($this->env, $this->source, $context["statistic"], "raw", [], "any", false, false, false, 195), 3, 1);
// line 196
echo "
env, twig_get_attribute($this->env, $this->source, $context["statistic"], "raw", [], "any", false, false, false, 197), "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, 197), "html", null, true);
echo "\">
";
// line 198
echo twig_escape_filter($this->env, (($__internal_compile_0 = ($context["value"] ?? null)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0[0] ?? null) : null), "html", null, true);
echo "
";
// line 201
echo twig_escape_filter($this->env, (($__internal_compile_1 = ($context["value"] ?? null)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1[1] ?? null) : null), "html", null, true);
echo "
";
} else {
// line 203
echo "
env, twig_get_attribute($this->env, $this->source, $context["statistic"], "raw", [], "any", false, false, false, 204), "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, 204), "html", null, true);
echo "\">
";
// line 205
echo twig_escape_filter($this->env, PhpMyAdmin\Util::formatNumber(twig_get_attribute($this->env, $this->source, $context["statistic"], "raw", [], "any", false, false, false, 205), 0), "html", null, true);
echo "
";
}
// line 209
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 210
echo " ";
}
// line 211
echo "
";
// line 212
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, 212), "primary", [], "any", false, false, false, 212), "status", [], "any", false, false, false, 212)) {
// line 213
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, 213), "primary", [], "any", false, false, false, 213), "is_replicated", [], "any", false, false, false, 213)) {
// line 214
echo "
";
// line 215
echo PhpMyAdmin\Html\Generator::getIcon("s_success", _gettext("Replicated"));
echo "
";
} else {
// line 218
echo "
";
// line 219
echo PhpMyAdmin\Html\Generator::getIcon("s_cancel", _gettext("Not replicated"));
echo "
";
}
// line 222
echo " ";
}
// line 223
echo "
";
// line 224
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, 224), "replica", [], "any", false, false, false, 224), "status", [], "any", false, false, false, 224)) {
// line 225
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, 225), "replica", [], "any", false, false, false, 225), "is_replicated", [], "any", false, false, false, 225)) {
// line 226
echo "
";
// line 227
echo PhpMyAdmin\Html\Generator::getIcon("s_success", _gettext("Replicated"));
echo "
";
} else {
// line 230
echo "
";
// line 231
echo PhpMyAdmin\Html\Generator::getIcon("s_cancel", _gettext("Not replicated"));
echo "
";
}
// line 234
echo " ";
}
// line 235
echo "
env, twig_get_attribute($this->env, $this->source, $context["database"], "name", [], "any", false, false, false, 238), "html", null, true);
echo "\" href=\"";
echo PhpMyAdmin\Url::getFromRoute("/server/privileges", ["db" => twig_get_attribute($this->env, $this->source, // line 239
$context["database"], "name", [], "any", false, false, false, 239), "checkprivsdb" => twig_get_attribute($this->env, $this->source, // line 240
$context["database"], "name", [], "any", false, false, false, 240)]);
// line 241
echo "\" title=\"";
// line 242
echo twig_escape_filter($this->env, twig_sprintf(_gettext("Check privileges for database \"%s\"."), twig_get_attribute($this->env, $this->source, $context["database"], "name", [], "any", false, false, false, 242)), "html", null, true);
echo "\">
";
// line 243
echo PhpMyAdmin\Html\Generator::getIcon("s_rights", _gettext("Check privileges"));
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 248
echo "
";
echo _gettext("Total:");
// line 254
echo " ";
// line 255
echo twig_escape_filter($this->env, ($context["database_count"] ?? null), "html", null, true);
// line 256
echo "
";
// line 259
if (($context["has_statistics"] ?? null)) {
// line 260
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["total_statistics"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["statistic"]) {
// line 261
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["statistic"], "format", [], "any", false, false, false, 261) === "byte")) {
// line 262
echo " ";
$context["value"] = PhpMyAdmin\Util::formatByteDown(twig_get_attribute($this->env, $this->source, $context["statistic"], "raw", [], "any", false, false, false, 262), 3, 1);
// line 263
echo "
env, twig_get_attribute($this->env, $this->source, $context["statistic"], "raw", [], "any", false, false, false, 264), "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, 264), "html", null, true);
echo "\">
";
// line 265
echo twig_escape_filter($this->env, (($__internal_compile_2 = ($context["value"] ?? null)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2[0] ?? null) : null), "html", null, true);
echo "
";
// line 268
echo twig_escape_filter($this->env, (($__internal_compile_3 = ($context["value"] ?? null)) && is_array($__internal_compile_3) || $__internal_compile_3 instanceof ArrayAccess ? ($__internal_compile_3[1] ?? null) : null), "html", null, true);
echo "
";
} else {
// line 270
echo "
env, twig_get_attribute($this->env, $this->source, $context["statistic"], "raw", [], "any", false, false, false, 271), "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, 271), "html", null, true);
echo "\">
";
// line 272
echo twig_escape_filter($this->env, PhpMyAdmin\Util::formatNumber(twig_get_attribute($this->env, $this->source, $context["statistic"], "raw", [], "any", false, false, false, 272), 0), "html", null, true);
echo "
";
}
// line 276
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 277
echo " ";
}
// line 278
echo "
";
// line 279
if (($context["has_primary_replication"] ?? null)) {
// line 280
echo "
";
}
// line 282
echo "
";
// line 283
if (($context["has_replica_replication"] ?? null)) {
// line 284
echo "
";
}
// line 286
echo "
";
// line 294
if ( !($context["has_statistics"] ?? null)) {
// line 295
echo "
";
}
// line 306
echo " ";
} else {
// line 307
echo "
";
// line 308
echo PhpMyAdmin\Html\Generator::getIcon("s_notice", _gettext("No databases"));
echo "
";
}
// line 311
echo "
";
// line 313
if (($context["is_drop_allowed"] ?? null)) {
// line 314
echo "
";
}
}
public function getTemplateName()
{
return "server/databases/index.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 792 => 324, 788 => 323, 781 => 319, 777 => 318, 770 => 314, 768 => 313, 764 => 311, 758 => 308, 755 => 307, 752 => 306, 746 => 302, 737 => 300, 732 => 298, 727 => 295, 725 => 294, 715 => 286, 711 => 284, 709 => 283, 706 => 282, 702 => 280, 700 => 279, 697 => 278, 694 => 277, 688 => 276, 681 => 272, 675 => 271, 672 => 270, 667 => 268, 661 => 265, 655 => 264, 652 => 263, 649 => 262, 646 => 261, 641 => 260, 639 => 259, 634 => 256, 632 => 255, 630 => 254, 625 => 252, 619 => 248, 608 => 243, 604 => 242, 602 => 241, 600 => 240, 599 => 239, 596 => 238, 592 => 235, 589 => 234, 583 => 231, 580 => 230, 574 => 227, 571 => 226, 568 => 225, 566 => 224, 563 => 223, 560 => 222, 554 => 219, 551 => 218, 545 => 215, 542 => 214, 539 => 213, 537 => 212, 534 => 211, 531 => 210, 525 => 209, 518 => 205, 512 => 204, 509 => 203, 504 => 201, 498 => 198, 492 => 197, 489 => 196, 486 => 195, 483 => 194, 478 => 193, 476 => 192, 469 => 188, 465 => 187, 457 => 182, 453 => 181, 450 => 180, 446 => 178, 440 => 175, 437 => 174, 434 => 173, 431 => 171, 429 => 170, 422 => 169, 418 => 168, 411 => 163, 407 => 162, 401 => 160, 399 => 159, 396 => 158, 390 => 156, 388 => 155, 385 => 154, 382 => 153, 374 => 150, 371 => 149, 365 => 147, 359 => 145, 356 => 144, 354 => 143, 350 => 142, 347 => 141, 345 => 140, 344 => 139, 343 => 138, 342 => 137, 337 => 136, 332 => 135, 330 => 134, 325 => 131, 322 => 130, 316 => 128, 310 => 126, 307 => 125, 304 => 124, 300 => 122, 298 => 121, 297 => 120, 296 => 118, 290 => 114, 287 => 113, 281 => 111, 275 => 109, 272 => 108, 269 => 107, 265 => 105, 263 => 104, 262 => 103, 261 => 101, 258 => 100, 254 => 98, 252 => 97, 244 => 92, 240 => 91, 236 => 89, 234 => 88, 233 => 85, 232 => 84, 231 => 83, 230 => 82, 221 => 77, 216 => 76, 211 => 73, 203 => 68, 200 => 67, 194 => 64, 186 => 59, 184 => 58, 181 => 57, 179 => 56, 176 => 55, 171 => 52, 165 => 50, 159 => 46, 154 => 44, 149 => 41, 142 => 39, 135 => 37, 133 => 36, 125 => 35, 121 => 34, 114 => 33, 110 => 32, 106 => 30, 102 => 29, 98 => 28, 96 => 27, 89 => 24, 85 => 23, 81 => 20, 77 => 18, 75 => 17, 70 => 15, 65 => 14, 63 => 13, 57 => 10, 53 => 9, 49 => 7, 47 => 6, 41 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "server/databases/index.twig", "/usr/local/cpanel/base/3rdparty/phpMyAdmin/templates/server/databases/index.twig");
}
}