<?php

/* table/search/input_box.twig */
class __TwigTemplate_4315197e81d825e858f42892b117e8e82dae45bc371a4b90a99eec91284823aa extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 2
        if ((($context["foreigners"] ?? null) && call_user_func_array($this->env->getFunction('Relation_searchColumnInForeigners')->getCallable(), array(($context["foreigners"] ?? null), ($context["column_name"] ?? null))))) {
            // line 3
            echo "    ";
            if (twig_test_iterable($this->getAttribute(($context["foreign_data"] ?? null), "disp_row", array(), "array"))) {
                // line 4
                echo "        <select name=\"criteriaValues[";
                echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
                echo "]\"
            id=\"";
                // line 5
                echo twig_escape_filter($this->env, ($context["column_id"] ?? null), "html", null, true);
                echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
                echo "\">
            ";
                // line 6
                echo call_user_func_array($this->env->getFunction('Relation_foreignDropdown')->getCallable(), array($this->getAttribute(                // line 7
($context["foreign_data"] ?? null), "disp_row", array(), "array"), $this->getAttribute(                // line 8
($context["foreign_data"] ?? null), "foreign_field", array(), "array"), $this->getAttribute(                // line 9
($context["foreign_data"] ?? null), "foreign_display", array(), "array"), "",                 // line 11
($context["foreign_max_limit"] ?? null)));
                // line 12
                echo "
        </select>
    ";
            } elseif (($this->getAttribute(            // line 14
($context["foreign_data"] ?? null), "foreign_link", array(), "array") == true)) {
                // line 15
                echo "        <input type=\"text\"
            id=\"";
                // line 16
                echo twig_escape_filter($this->env, ($context["column_id"] ?? null), "html", null, true);
                echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
                echo "\"
            name=\"criteriaValues[";
                // line 17
                echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
                echo "]\"
            id=\"field_";
                // line 18
                echo twig_escape_filter($this->env, ($context["column_name_hash"] ?? null), "html", null, true);
                echo "[";
                echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
                echo "]\"
            class=\"textfield\"
            ";
                // line 20
                if ($this->getAttribute(($context["criteria_values"] ?? null), ($context["column_index"] ?? null), array(), "array", true, true)) {
                    // line 21
                    echo "                value=\"";
                    echo twig_escape_filter($this->env, $this->getAttribute(($context["criteria_values"] ?? null), ($context["column_index"] ?? null), array(), "array"), "html", null, true);
                    echo "\"
            ";
                }
                // line 22
                echo " />
        <a class=\"ajax browse_foreign\"
            href=\"browse_foreigners.php";
                // line 25
                echo PhpMyAdmin\Url::getCommon(array("db" => ($context["db"] ?? null), "table" => ($context["table"] ?? null)));
                // line 26
                echo "&amp;field=";
                echo twig_escape_filter($this->env, twig_urlencode_filter(($context["column_name"] ?? null)), "html", null, true);
                echo "&amp;fieldkey=";
                // line 27
                echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
                echo "&amp;fromsearch=1\">
            ";
                // line 28
                echo twig_replace_filter($this->getAttribute(($context["titles"] ?? null), "Browse", array(), "array"), array("'" => "\\'"));
                echo "
        </a>
    ";
            }
        } elseif (twig_in_filter(        // line 31
($context["column_type"] ?? null), PhpMyAdmin\Util::getGISDatatypes())) {
            // line 32
            echo "    <input type=\"text\"
        name=\"criteriaValues[";
            // line 33
            echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
            echo "]\"
        size=\"40\"
        class=\"textfield\"
        id=\"field_";
            // line 36
            echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
            echo "\" />
    ";
            // line 37
            if (($context["in_fbs"] ?? null)) {
                // line 38
                echo "        ";
                $context["edit_url"] = ("gis_data_editor.php" . PhpMyAdmin\Url::getCommon());
                // line 39
                echo "        ";
                $context["edit_str"] = PhpMyAdmin\Util::getIcon("b_edit", _gettext("Edit/Insert"));
                // line 40
                echo "        <span class=\"open_search_gis_editor\">
            ";
                // line 41
                echo PhpMyAdmin\Util::linkOrButton(($context["edit_url"] ?? null), ($context["edit_str"] ?? null), array(), "_blank");
                echo "
        </span>
    ";
            }
        } elseif (((is_string($__internal_7cd7461123377b8c9c1b6a01f46c7bbd94bd12e59266005df5e93029ddbc0ec5 =         // line 44
($context["column_type"] ?? null)) && is_string($__internal_3e28b7f596c58d7729642bcf2acc6efc894803703bf5fa7e74cd8d2aa1f8c68a = "enum") && ('' === $__internal_3e28b7f596c58d7729642bcf2acc6efc894803703bf5fa7e74cd8d2aa1f8c68a || 0 === strpos($__internal_7cd7461123377b8c9c1b6a01f46c7bbd94bd12e59266005df5e93029ddbc0ec5, $__internal_3e28b7f596c58d7729642bcf2acc6efc894803703bf5fa7e74cd8d2aa1f8c68a))) || ((is_string($__internal_b0b3d6199cdf4d15a08b3fb98fe017ecb01164300193d18d78027218d843fc57 =         // line 45
($context["column_type"] ?? null)) && is_string($__internal_81ccf322d0988ca0aa9ae9943d772c435c5ff01fb50b956278e245e40ae66ab9 = "set") && ('' === $__internal_81ccf322d0988ca0aa9ae9943d772c435c5ff01fb50b956278e245e40ae66ab9 || 0 === strpos($__internal_b0b3d6199cdf4d15a08b3fb98fe017ecb01164300193d18d78027218d843fc57, $__internal_81ccf322d0988ca0aa9ae9943d772c435c5ff01fb50b956278e245e40ae66ab9))) && ($context["in_zoom_search_edit"] ?? null)))) {
            // line 46
            echo "    ";
            $context["in_zoom_search_edit"] = false;
            // line 47
            echo "    ";
            $context["value"] = twig_split_filter($this->env, twig_replace_filter(twig_slice($this->env, twig_escape_filter($this->env, ($context["column_type"] ?? null)), 5,  -1), array("&#039;" => "")), ", ");
            // line 48
            echo "    ";
            $context["cnt_value"] = twig_length_filter($this->env, ($context["value"] ?? null));
            // line 49
            echo "    ";
            // line 55
            echo "    ";
            if ((((is_string($__internal_add9db1f328aaed12ef1a33890510da978cc9cf3e50f6769d368473a9c90c217 = ($context["column_type"] ?? null)) && is_string($__internal_128c19eb75d89ae9acc1294da2e091b433005202cb9b9351ea0c5dd5f69ee105 = "enum") && ('' === $__internal_128c19eb75d89ae9acc1294da2e091b433005202cb9b9351ea0c5dd5f69ee105 || 0 === strpos($__internal_add9db1f328aaed12ef1a33890510da978cc9cf3e50f6769d368473a9c90c217, $__internal_128c19eb75d89ae9acc1294da2e091b433005202cb9b9351ea0c5dd5f69ee105))) &&  !($context["in_zoom_search_edit"] ?? null)) || ((is_string($__internal_921de08f973aabd87ecb31654784e2efda7404f12bd27e8e56991608c76e7779 =             // line 56
($context["column_type"] ?? null)) && is_string($__internal_3e040fa9f9bcf48a8b054d0953f4fffdaf331dc44bc1d96f1bb45abb085e61d1 = "set") && ('' === $__internal_3e040fa9f9bcf48a8b054d0953f4fffdaf331dc44bc1d96f1bb45abb085e61d1 || 0 === strpos($__internal_921de08f973aabd87ecb31654784e2efda7404f12bd27e8e56991608c76e7779, $__internal_3e040fa9f9bcf48a8b054d0953f4fffdaf331dc44bc1d96f1bb45abb085e61d1))) && ($context["in_zoom_search_edit"] ?? null)))) {
                // line 57
                echo "        <select name=\"criteriaValues[";
                echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
                echo "]\"
            id=\"";
                // line 58
                echo twig_escape_filter($this->env, ($context["column_id"] ?? null), "html", null, true);
                echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
                echo "\">
    ";
            } else {
                // line 60
                echo "        <select name=\"criteriaValues[";
                echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
                echo "]\"
            id=\"";
                // line 61
                echo twig_escape_filter($this->env, ($context["column_id"] ?? null), "html", null, true);
                echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
                echo "\"
            multiple=\"multiple\"
            size=\"";
                // line 63
                echo twig_escape_filter($this->env, min(3, ($context["cnt_value"] ?? null)), "html", null, true);
                echo "\">
    ";
            }
            // line 65
            echo "    ";
            // line 66
            echo "    <option value=\"\"></option>
    ";
            // line 67
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable(range(0, (($context["cnt_value"] ?? null) - 1)));
            foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                // line 68
                echo "        ";
                if ((($this->getAttribute(($context["criteria_values"] ?? null), ($context["column_index"] ?? null), array(), "array", true, true) && twig_test_iterable($this->getAttribute(                // line 69
($context["criteria_values"] ?? null), ($context["column_index"] ?? null), array(), "array"))) && twig_in_filter($this->getAttribute(                // line 70
($context["value"] ?? null), $context["i"], array(), "array"), $this->getAttribute(($context["criteria_values"] ?? null), ($context["column_index"] ?? null), array(), "array")))) {
                    // line 71
                    echo "            <option value=\"";
                    echo $this->getAttribute(($context["value"] ?? null), $context["i"], array(), "array");
                    echo "\" selected>
                ";
                    // line 72
                    echo $this->getAttribute(($context["value"] ?? null), $context["i"], array(), "array");
                    echo "
            </option>
        ";
                } else {
                    // line 75
                    echo "            <option value=\"";
                    echo $this->getAttribute(($context["value"] ?? null), $context["i"], array(), "array");
                    echo "\">
                ";
                    // line 76
                    echo $this->getAttribute(($context["value"] ?? null), $context["i"], array(), "array");
                    echo "
            </option>
        ";
                }
                // line 79
                echo "    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 80
            echo "    </select>
";
        } else {
            // line 82
            echo "    ";
            $context["the_class"] = "textfield";
            // line 83
            echo "    ";
            if ((($context["column_type"] ?? null) == "date")) {
                // line 84
                echo "        ";
                $context["the_class"] = (($context["the_class"] ?? null) . " datefield");
                // line 85
                echo "    ";
            } elseif (((($context["column_type"] ?? null) == "datetime") || (is_string($__internal_bd1cf16c37e30917ff4f54b7320429bcc2bb63615cd8a735bfe06a3f1b5c82a0 = ($context["column_type"] ?? null)) && is_string($__internal_602f93ae9072ac758dc9cd47ca50516bbc1210f73d2a40b01287f102c3c40866 = "timestamp") && ('' === $__internal_602f93ae9072ac758dc9cd47ca50516bbc1210f73d2a40b01287f102c3c40866 || 0 === strpos($__internal_bd1cf16c37e30917ff4f54b7320429bcc2bb63615cd8a735bfe06a3f1b5c82a0, $__internal_602f93ae9072ac758dc9cd47ca50516bbc1210f73d2a40b01287f102c3c40866))))) {
                // line 86
                echo "        ";
                $context["the_class"] = (($context["the_class"] ?? null) . " datetimefield");
                // line 87
                echo "    ";
            } elseif ((is_string($__internal_de222b1ef20cf829a938a4545cbb79f4996337944397dd43b1919bce7726ae2f = ($context["column_type"] ?? null)) && is_string($__internal_517751e212021442e58cf8c5cde586337a42455f06659ad64a123ef99fab52e7 = "bit") && ('' === $__internal_517751e212021442e58cf8c5cde586337a42455f06659ad64a123ef99fab52e7 || 0 === strpos($__internal_de222b1ef20cf829a938a4545cbb79f4996337944397dd43b1919bce7726ae2f, $__internal_517751e212021442e58cf8c5cde586337a42455f06659ad64a123ef99fab52e7)))) {
                // line 88
                echo "        ";
                $context["the_class"] = (($context["the_class"] ?? null) . " bit");
                // line 89
                echo "    ";
            }
            // line 90
            echo "    <input type=\"text\"
        name=\"criteriaValues[";
            // line 91
            echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
            echo "]\"
        size=\"40\"
        class=\"";
            // line 93
            echo twig_escape_filter($this->env, ($context["the_class"] ?? null), "html", null, true);
            echo "\"
        id=\"";
            // line 94
            echo twig_escape_filter($this->env, ($context["column_id"] ?? null), "html", null, true);
            echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
            echo "\"
        ";
            // line 95
            if ($this->getAttribute(($context["criteria_values"] ?? null), ($context["column_index"] ?? null), array(), "array", true, true)) {
                // line 96
                echo "           value=\"";
                echo twig_escape_filter($this->env, $this->getAttribute(($context["criteria_values"] ?? null), ($context["column_index"] ?? null), array(), "array"), "html", null, true);
                echo "\"";
            }
            // line 97
            echo " />
";
        }
    }

    public function getTemplateName()
    {
        return "table/search/input_box.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  264 => 97,  259 => 96,  257 => 95,  252 => 94,  248 => 93,  243 => 91,  240 => 90,  237 => 89,  234 => 88,  231 => 87,  228 => 86,  225 => 85,  222 => 84,  219 => 83,  216 => 82,  212 => 80,  206 => 79,  200 => 76,  195 => 75,  189 => 72,  184 => 71,  182 => 70,  181 => 69,  179 => 68,  175 => 67,  172 => 66,  170 => 65,  165 => 63,  159 => 61,  154 => 60,  148 => 58,  143 => 57,  141 => 56,  139 => 55,  137 => 49,  134 => 48,  131 => 47,  128 => 46,  126 => 45,  125 => 44,  119 => 41,  116 => 40,  113 => 39,  110 => 38,  108 => 37,  104 => 36,  98 => 33,  95 => 32,  93 => 31,  87 => 28,  83 => 27,  79 => 26,  77 => 25,  73 => 22,  67 => 21,  65 => 20,  58 => 18,  54 => 17,  49 => 16,  46 => 15,  44 => 14,  40 => 12,  38 => 11,  37 => 9,  36 => 8,  35 => 7,  34 => 6,  29 => 5,  24 => 4,  21 => 3,  19 => 2,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Twig_Source("", "table/search/input_box.twig", "/usr/local/cpanel/base/3rdparty/phpMyAdmin/templates/table/search/input_box.twig");
    }
}
