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("b_events", _gettext("Events")); echo " "; // line 4 echo PhpMyAdmin\Html\MySQLDocumentation::show("EVENTS"); echo "

"; // line 33 echo PhpMyAdmin\Url::getHiddenInputs(($context["db"] ?? null)); echo "
"; echo _gettext("There are no events to display."); // line 37 echo "
"; // line 50 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(range(0, 6)); foreach ($context['_seq'] as $context["_key"] => $context["i"]) { echo ""; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; echo " "; // line 52 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["items"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["event"]) { // line 53 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['event'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 107 echo "
"; echo _gettext("Name"); // line 43 echo " "; echo _gettext("Status"); // line 44 echo " "; echo _gettext("Type"); // line 45 echo "
env, twig_get_attribute($this->env, $this->source, $context["event"], "name", [], "any", false, false, false, 55), "html", null, true); echo "\"> "; // line 58 echo twig_escape_filter($this->env, twig_sprintf("DROP EVENT IF EXISTS %s", PhpMyAdmin\Util::backquote(twig_get_attribute($this->env, $this->source, $context["event"], "name", [], "any", false, false, false, 58))), "html", null, true); echo " "; // line 59 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["event"], "name", [], "any", false, false, false, 59), "html", null, true); echo " "; // line 62 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["event"], "status", [], "any", false, false, false, 62), "html", null, true); echo " "; // line 65 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["event"], "type", [], "any", false, false, false, 65), "html", null, true); echo " "; // line 68 if (($context["has_privilege"] ?? null)) { // line 69 echo " // line 70 ($context["db"] ?? null), "edit_item" => true, "item_name" => twig_get_attribute($this->env, $this->source, // line 72 $context["event"], "name", [], "any", false, false, false, 72)]); // line 73 echo "\"> "; // line 74 echo PhpMyAdmin\Html\Generator::getIcon("b_edit", _gettext("Edit")); echo " "; } else { // line 77 echo " "; echo PhpMyAdmin\Html\Generator::getIcon("bd_edit", _gettext("Edit")); echo " "; } // line 79 echo " // line 82 ($context["db"] ?? null), "export_item" => true, "item_name" => twig_get_attribute($this->env, $this->source, // line 84 $context["event"], "name", [], "any", false, false, false, 84)]); // line 85 echo "\"> "; // line 86 echo PhpMyAdmin\Html\Generator::getIcon("b_export", _gettext("Export")); echo " "; // line 90 if (($context["has_privilege"] ?? null)) { // line 91 echo " "; echo PhpMyAdmin\Html\Generator::linkOrButton(PhpMyAdmin\Url::getFromRoute("/sql"), ["db" => // line 94 ($context["db"] ?? null), "sql_query" => twig_sprintf("DROP EVENT IF EXISTS %s", PhpMyAdmin\Util::backquote(twig_get_attribute($this->env, $this->source, // line 95 $context["event"], "name", [], "any", false, false, false, 95))), "goto" => PhpMyAdmin\Url::getFromRoute("/database/events", ["db" => // line 96 ($context["db"] ?? null)])], PhpMyAdmin\Html\Generator::getIcon("b_drop", _gettext("Drop")), ["class" => "ajax drop_anchor"]); // line 100 echo " "; } else { // line 102 echo " "; echo PhpMyAdmin\Html\Generator::getIcon("bd_drop", _gettext("Drop")); echo " "; } // line 104 echo "
"; echo _gettext("Event scheduler status"); // line 112 echo "
env, $this->extensions['PhpMyAdmin\Twig\AssetExtension']->getImagePath((("toggle-" . ($context["text_dir"] ?? null)) . ".png")), "html", null, true); echo "\">
"; // line 124 echo PhpMyAdmin\Url::getFromRoute("/sql", ["db" => // line 125 ($context["db"] ?? null), "goto" => PhpMyAdmin\Url::getFromRoute("/database/events", ["db" => // line 126 ($context["db"] ?? null)]), "sql_query" => "SET GLOBAL event_scheduler=\"ON\""]); // line 129 echo "
"; echo _gettext("ON"); // line 130 echo "
 
"; // line 135 echo PhpMyAdmin\Url::getFromRoute("/sql", ["db" => // line 136 ($context["db"] ?? null), "goto" => PhpMyAdmin\Url::getFromRoute("/database/events", ["db" => // line 137 ($context["db"] ?? null)]), "sql_query" => "SET GLOBAL event_scheduler=\"OFF\""]); // line 140 echo "
"; echo _gettext("OFF"); // line 141 echo "
Functions.slidingMessage(data.sql_query); "; // line 147 echo twig_escape_filter($this->env, ($context["text_dir"] ?? null), "html", null, true); echo "
"; } public function getTemplateName() { return "database/events/index.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 317 => 147, 309 => 141, 305 => 140, 303 => 137, 302 => 136, 301 => 135, 295 => 130, 291 => 129, 289 => 126, 288 => 125, 287 => 124, 279 => 118, 274 => 117, 266 => 112, 258 => 107, 250 => 104, 244 => 102, 240 => 100, 238 => 96, 237 => 95, 236 => 94, 234 => 91, 232 => 90, 225 => 86, 222 => 85, 220 => 84, 219 => 82, 218 => 81, 214 => 79, 208 => 77, 202 => 74, 199 => 73, 197 => 72, 196 => 70, 194 => 69, 192 => 68, 186 => 65, 180 => 62, 174 => 59, 170 => 58, 164 => 55, 158 => 53, 154 => 52, 142 => 50, 135 => 45, 131 => 44, 127 => 43, 119 => 39, 115 => 37, 110 => 35, 105 => 33, 101 => 32, 93 => 27, 85 => 26, 76 => 20, 73 => 19, 67 => 17, 64 => 16, 58 => 13, 45 => 4, 41 => 3, 37 => 1,); } public function getSourceContext() { return new Source("", "database/events/index.twig", "/var/www/localhost/htdocs/phpmyadmin/templates/database/events/index.twig"); } }