source = $this->getSourceContext(); $this->parent = false; $this->blocks = [ ]; } protected function doDisplay(array $context, array $blocks = []) { $macros = $this->macros; // line 1 echo "
"; // line 2 echo PhpMyAdmin\Url::getHiddenInputs(($context["db"] ?? null)); echo "
"; // line 6 echo _gettext("Events"); // line 7 echo " "; echo \PhpMyAdmin\Html\MySQLDocumentation::show("EVENTS"); echo "
"; // line 11 echo _gettext("There are no events to display."); // line 12 echo "
"; // line 25 $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 27 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["items"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["event"]) { // line 28 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 81 echo "
"; // line 18 echo _gettext("Name"); echo " "; // line 19 echo _gettext("Status"); echo " "; // line 20 echo _gettext("Action"); echo " "; // line 21 echo _gettext("Type"); echo "
env, twig_get_attribute($this->env, $this->source, $context["event"], "name", [], "any", false, false, false, 30), "html", null, true); echo "\"> "; // line 33 echo twig_escape_filter($this->env, sprintf("DROP EVENT IF EXISTS %s", PhpMyAdmin\Util::backquote(twig_get_attribute($this->env, $this->source, $context["event"], "name", [], "any", false, false, false, 33))), "html", null, true); echo " "; // line 34 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["event"], "name", [], "any", false, false, false, 34), "html", null, true); echo " "; // line 37 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["event"], "status", [], "any", false, false, false, 37), "html", null, true); echo " "; // line 40 if (($context["has_privilege"] ?? null)) { // line 41 echo " // line 42 ($context["db"] ?? null), "edit_item" => true, "item_name" => twig_get_attribute($this->env, $this->source, // line 44 $context["event"], "name", [], "any", false, false, false, 44)]); // line 45 echo "\"> "; // line 46 echo \PhpMyAdmin\Html\Generator::getIcon("b_edit", _gettext("Edit")); echo " "; } else { // line 49 echo " "; echo \PhpMyAdmin\Html\Generator::getIcon("bd_edit", _gettext("Edit")); echo " "; } // line 51 echo " // line 54 ($context["db"] ?? null), "export_item" => true, "item_name" => twig_get_attribute($this->env, $this->source, // line 56 $context["event"], "name", [], "any", false, false, false, 56)]); // line 57 echo "\"> "; // line 58 echo \PhpMyAdmin\Html\Generator::getIcon("b_export", _gettext("Export")); echo " "; // line 62 if (($context["has_privilege"] ?? null)) { // line 63 echo " "; echo PhpMyAdmin\Html\Generator::linkOrButton(PhpMyAdmin\Url::getFromRoute("/sql", ["db" => // line 65 ($context["db"] ?? null), "sql_query" => sprintf("DROP EVENT IF EXISTS %s", PhpMyAdmin\Util::backquote(twig_get_attribute($this->env, $this->source, // line 66 $context["event"], "name", [], "any", false, false, false, 66))), "goto" => PhpMyAdmin\Url::getFromRoute("/database/events", ["db" => // line 67 ($context["db"] ?? null)])]), \PhpMyAdmin\Html\Generator::getIcon("b_drop", _gettext("Drop")), ["class" => "ajax drop_anchor"]); // line 71 echo " "; } else { // line 73 echo " "; echo \PhpMyAdmin\Html\Generator::getIcon("bd_drop", _gettext("Drop")); echo " "; } // line 75 echo " "; // line 77 echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["event"], "type", [], "any", false, false, false, 77), "html", null, true); echo "
"; // line 84 if ( !twig_test_empty(($context["items"] ?? null))) { // line 85 echo "
env, ($context["select_all_arrow_src"] ?? null), "html", null, true); echo "\" width=\"38\" height=\"22\" alt=\""; echo _gettext("With selected:"); echo "\"> "; // line 89 echo _gettext("With selected:"); echo "
"; } // line 99 echo "
"; // line 104 echo _pgettext( "Create new event", "New"); echo "
"; // line 106 if (($context["has_privilege"] ?? null)) { // line 107 echo " ($context["db"] ?? null), "add_item" => true]); echo "\"> "; // line 108 echo \PhpMyAdmin\Html\Generator::getIcon("b_event_add"); echo " "; // line 109 echo _gettext("Add event"); // line 110 echo " "; } else { // line 112 echo " "; echo \PhpMyAdmin\Html\Generator::getIcon("bd_event_add"); echo " "; // line 113 echo _gettext("Add event"); // line 114 echo " "; } // line 115 echo " "; echo \PhpMyAdmin\Html\MySQLDocumentation::show("CREATE_EVENT"); echo "
"; // line 120 echo _gettext("Event scheduler status"); echo "
env, ($context["theme_image_path"] ?? null), "html", null, true); echo "toggle-"; echo twig_escape_filter($this->env, ($context["text_dir"] ?? null), "html", null, true); echo ".png\">
"; // line 131 echo PhpMyAdmin\Url::getFromRoute("/sql", ["db" => // line 132 ($context["db"] ?? null), "goto" => PhpMyAdmin\Url::getFromRoute("/database/events", ["db" => // line 133 ($context["db"] ?? null)]), "sql_query" => "SET GLOBAL event_scheduler=\"ON\""]); // line 136 echo "
"; // line 137 echo _gettext("ON"); echo "
 
"; // line 142 echo PhpMyAdmin\Url::getFromRoute("/sql", ["db" => // line 143 ($context["db"] ?? null), "goto" => PhpMyAdmin\Url::getFromRoute("/database/events", ["db" => // line 144 ($context["db"] ?? null)]), "sql_query" => "SET GLOBAL event_scheduler=\"OFF\""]); // line 147 echo "
"; // line 148 echo _gettext("OFF"); echo "
Functions.slidingMessage(data.sql_query); "; // line 154 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 ( 360 => 154, 351 => 148, 348 => 147, 346 => 144, 345 => 143, 344 => 142, 337 => 137, 334 => 136, 332 => 133, 331 => 132, 330 => 131, 320 => 125, 314 => 124, 307 => 120, 298 => 115, 295 => 114, 293 => 113, 288 => 112, 284 => 110, 282 => 109, 278 => 108, 273 => 107, 271 => 106, 266 => 104, 259 => 99, 252 => 95, 248 => 94, 243 => 92, 239 => 91, 234 => 89, 230 => 88, 226 => 87, 220 => 86, 217 => 85, 215 => 84, 210 => 81, 200 => 77, 196 => 75, 190 => 73, 186 => 71, 184 => 67, 183 => 66, 182 => 65, 180 => 63, 178 => 62, 171 => 58, 168 => 57, 166 => 56, 165 => 54, 164 => 53, 160 => 51, 154 => 49, 148 => 46, 145 => 45, 143 => 44, 142 => 42, 140 => 41, 138 => 40, 132 => 37, 126 => 34, 122 => 33, 116 => 30, 110 => 28, 106 => 27, 94 => 25, 87 => 21, 83 => 20, 79 => 19, 75 => 18, 68 => 14, 64 => 12, 62 => 11, 58 => 10, 51 => 7, 49 => 6, 42 => 2, 37 => 1,); } public function getSourceContext() { return new Source("", "database/events/index.twig", "/var/www/localhost/htdocs/phpmyadmin/templates/database/events/index.twig"); } }