source = $this->getSourceContext(); $this->parent = false; $this->blocks = [ ]; } protected function doDisplay(array $context, array $blocks = []) { $macros = $this->macros; // line 1 echo " "; // line 3 echo " "; // line 4 $context["js_msg"] = ""; // line 5 echo " "; $context["this_params"] = null; // line 6 echo " "; if (twig_get_attribute($this->env, $this->source, ($context["one_key"] ?? null), "constraint", [], "array", true, true, false, 6)) { // line 7 echo " "; $context["drop_fk_query"] = (((((("ALTER TABLE " . PhpMyAdmin\Util::backquote(($context["db"] ?? null))) . ".") . PhpMyAdmin\Util::backquote(($context["table"] ?? null))) . " DROP FOREIGN KEY ") . PhpMyAdmin\Util::backquote((($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = // line 9 ($context["one_key"] ?? null)) && is_array($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4) || $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 instanceof ArrayAccess ? ($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4["constraint"] ?? null) : null))) . ";"); // line 11 echo " "; $context["this_params"] = ($context["url_params"] ?? null); // line 12 echo " "; $context["this_params"] = ["goto" => "tbl_relation.php", "back" => "tbl_relation.php", "sql_query" => // line 15 ($context["drop_fk_query"] ?? null), "message_to_show" => sprintf(_gettext("Foreign key constraint %s has been dropped"), (($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 = // line 17 ($context["one_key"] ?? null)) && is_array($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144) || $__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 instanceof ArrayAccess ? ($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144["constraint"] ?? null) : null))]; // line 20 echo " "; $context["js_msg"] = PhpMyAdmin\Sanitize::jsFormat((((((("ALTER TABLE " . // line 21 ($context["db"] ?? null)) . ".") . ($context["table"] ?? null)) . " DROP FOREIGN KEY ") . (($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b = // line 23 ($context["one_key"] ?? null)) && is_array($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b) || $__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b instanceof ArrayAccess ? ($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b["constraint"] ?? null) : null)) . ";")); // line 25 echo " "; } // line 26 echo " "; if (twig_get_attribute($this->env, $this->source, ($context["one_key"] ?? null), "constraint", [], "array", true, true, false, 26)) { // line 27 echo " env, ($context["js_msg"] ?? null), "html", null, true); echo "\" /> "; // line 29 $context["drop_url"] = ("sql.php" . PhpMyAdmin\Url::getCommon(($context["this_params"] ?? null))); // line 30 echo " "; $context["drop_str"] = PhpMyAdmin\Util::getIcon("b_drop", _gettext("Drop")); // line 31 echo " "; echo PhpMyAdmin\Util::linkOrButton(($context["drop_url"] ?? null), ($context["drop_str"] ?? null), ["class" => "drop_foreign_key_anchor ajax"]); echo " "; } // line 33 echo " env, ($context["i"] ?? null), "html", null, true); echo "]\" value=\""; // line 37 ((twig_get_attribute($this->env, $this->source, ($context["one_key"] ?? null), "constraint", [], "array", true, true, false, 37)) ? (print (twig_escape_filter($this->env, (($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 = ($context["one_key"] ?? null)) && is_array($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002) || $__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 instanceof ArrayAccess ? ($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002["constraint"] ?? null) : null), "html", null, true))) : (print (""))); // line 38 echo "\" placeholder=\""; echo _gettext("Constraint name"); echo "\" maxlength=\"64\" />
"; // line 44 echo " "; $context["on_delete"] = ((twig_get_attribute($this->env, $this->source, ($context["one_key"] ?? null), "on_delete", [], "array", true, true, false, 44)) ? ((($__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4 = // line 45 ($context["one_key"] ?? null)) && is_array($__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4) || $__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4 instanceof ArrayAccess ? ($__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4["on_delete"] ?? null) : null)) : ("RESTRICT")); // line 46 echo " "; $context["on_update"] = ((twig_get_attribute($this->env, $this->source, ($context["one_key"] ?? null), "on_update", [], "array", true, true, false, 46)) ? ((($__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666 = // line 47 ($context["one_key"] ?? null)) && is_array($__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666) || $__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666 instanceof ArrayAccess ? ($__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666["on_update"] ?? null) : null)) : ("RESTRICT")); // line 48 echo " "; // line 49 $this->loadTemplate("table/relation/dropdown_generate.twig", "table/relation/foreign_key_row.twig", 49)->display(twig_to_array(["dropdown_question" => "ON DELETE", "select_name" => (("on_delete[" . // line 51 ($context["i"] ?? null)) . "]"), "choices" => // line 52 ($context["options_array"] ?? null), "selected_value" => // line 53 ($context["on_delete"] ?? null)])); // line 55 echo " "; // line 57 $this->loadTemplate("table/relation/dropdown_generate.twig", "table/relation/foreign_key_row.twig", 57)->display(twig_to_array(["dropdown_question" => "ON UPDATE", "select_name" => (("on_update[" . // line 59 ($context["i"] ?? null)) . "]"), "choices" => // line 60 ($context["options_array"] ?? null), "selected_value" => // line 61 ($context["on_update"] ?? null)])); // line 63 echo "
"; // line 67 if (twig_get_attribute($this->env, $this->source, ($context["one_key"] ?? null), "index_list", [], "array", true, true, false, 67)) { // line 68 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((($__internal_01c35b74bd85735098add188b3f8372ba465b232ab8298cb582c60f493d3c22e = ($context["one_key"] ?? null)) && is_array($__internal_01c35b74bd85735098add188b3f8372ba465b232ab8298cb582c60f493d3c22e) || $__internal_01c35b74bd85735098add188b3f8372ba465b232ab8298cb582c60f493d3c22e instanceof ArrayAccess ? ($__internal_01c35b74bd85735098add188b3f8372ba465b232ab8298cb582c60f493d3c22e["index_list"] ?? null) : null)); foreach ($context['_seq'] as $context["key"] => $context["column"]) { // line 69 echo " "; // line 70 $this->loadTemplate("table/relation/dropdown_generate.twig", "table/relation/foreign_key_row.twig", 70)->display(twig_to_array(["dropdown_question" => "", "select_name" => (("foreign_key_fields_name[" . // line 72 ($context["i"] ?? null)) . "][]"), "choices" => // line 73 ($context["column_array"] ?? null), "selected_value" => // line 74 $context["column"]])); // line 76 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['key'], $context['column'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 78 echo " "; } else { // line 79 echo " "; // line 80 $this->loadTemplate("table/relation/dropdown_generate.twig", "table/relation/foreign_key_row.twig", 80)->display(twig_to_array(["dropdown_question" => "", "select_name" => (("foreign_key_fields_name[" . // line 82 ($context["i"] ?? null)) . "][]"), "choices" => // line 83 ($context["column_array"] ?? null), "selected_value" => ""])); // line 86 echo " "; } // line 88 echo " env, ($context["i"] ?? null), "html", null, true); echo "\" href=\"\"> "; // line 90 echo _gettext("+ Add column"); // line 91 echo " "; // line 93 $context["tables"] = []; // line 94 echo " "; if (($context["foreign_db"] ?? null)) { // line 95 echo " "; $context["tables"] = call_user_func_array($this->env->getFunction('Relation_getTables')->getCallable(), [($context["foreign_db"] ?? null), ($context["tbl_storage_engine"] ?? null)]); // line 96 echo " "; } // line 97 echo " "; // line 99 $this->loadTemplate("table/relation/relational_dropdown.twig", "table/relation/foreign_key_row.twig", 99)->display(twig_to_array(["name" => (("destination_foreign_db[" . // line 100 ($context["i"] ?? null)) . "]"), "title" => _gettext("Database"), "values" => // line 102 ($context["databases"] ?? null), "foreign" => // line 103 ($context["foreign_db"] ?? null)])); // line 105 echo " "; // line 109 $this->loadTemplate("table/relation/relational_dropdown.twig", "table/relation/foreign_key_row.twig", 109)->display(twig_to_array(["name" => (("destination_foreign_table[" . // line 110 ($context["i"] ?? null)) . "]"), "title" => _gettext("Table"), "values" => // line 112 ($context["tables"] ?? null), "foreign" => // line 113 ($context["foreign_table"] ?? null)])); // line 115 echo " "; // line 118 if ((($context["foreign_db"] ?? null) && ($context["foreign_table"] ?? null))) { // line 119 echo " "; $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable((($__internal_63ad1f9a2bf4db4af64b010785e9665558fdcac0e8db8b5b413ed986c62dbb52 = ($context["one_key"] ?? null)) && is_array($__internal_63ad1f9a2bf4db4af64b010785e9665558fdcac0e8db8b5b413ed986c62dbb52) || $__internal_63ad1f9a2bf4db4af64b010785e9665558fdcac0e8db8b5b413ed986c62dbb52 instanceof ArrayAccess ? ($__internal_63ad1f9a2bf4db4af64b010785e9665558fdcac0e8db8b5b413ed986c62dbb52["ref_index_list"] ?? null) : null)); foreach ($context['_seq'] as $context["_key"] => $context["foreign_column"]) { // line 120 echo " "; // line 121 $this->loadTemplate("table/relation/relational_dropdown.twig", "table/relation/foreign_key_row.twig", 121)->display(twig_to_array(["name" => (("destination_foreign_column[" . // line 122 ($context["i"] ?? null)) . "][]"), "title" => _gettext("Column"), "values" => // line 124 ($context["unique_columns"] ?? null), "foreign" => // line 125 $context["foreign_column"]])); // line 127 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['foreign_column'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 129 echo " "; } else { // line 130 echo " "; // line 131 $this->loadTemplate("table/relation/relational_dropdown.twig", "table/relation/foreign_key_row.twig", 131)->display(twig_to_array(["name" => (("destination_foreign_column[" . // line 132 ($context["i"] ?? null)) . "][]"), "title" => _gettext("Column"), "values" => [], "foreign" => ""])); // line 137 echo " "; } // line 139 echo " "; } public function getTemplateName() { return "table/relation/foreign_key_row.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 258 => 139, 254 => 137, 252 => 132, 251 => 131, 248 => 130, 245 => 129, 238 => 127, 236 => 125, 235 => 124, 234 => 122, 233 => 121, 230 => 120, 225 => 119, 223 => 118, 218 => 115, 216 => 113, 215 => 112, 214 => 110, 213 => 109, 207 => 105, 205 => 103, 204 => 102, 203 => 100, 202 => 99, 198 => 97, 195 => 96, 192 => 95, 189 => 94, 187 => 93, 183 => 91, 181 => 90, 177 => 89, 175 => 88, 171 => 86, 169 => 83, 168 => 82, 167 => 80, 164 => 79, 161 => 78, 154 => 76, 152 => 74, 151 => 73, 150 => 72, 149 => 70, 146 => 69, 141 => 68, 139 => 67, 133 => 63, 131 => 61, 130 => 60, 129 => 59, 128 => 57, 124 => 55, 122 => 53, 121 => 52, 120 => 51, 119 => 49, 116 => 48, 114 => 47, 112 => 46, 110 => 45, 108 => 44, 101 => 38, 99 => 37, 96 => 36, 91 => 33, 85 => 31, 82 => 30, 80 => 29, 76 => 28, 74 => 27, 71 => 26, 68 => 25, 66 => 23, 65 => 21, 63 => 20, 61 => 17, 60 => 15, 58 => 12, 55 => 11, 53 => 9, 51 => 7, 48 => 6, 45 => 5, 43 => 4, 40 => 3, 37 => 1,); } public function getSourceContext() { return new Source("", "table/relation/foreign_key_row.twig", "/var/www/localhost/htdocs/phpmyadmin/templates/table/relation/foreign_key_row.twig"); } }