save
This commit is contained in:
@@ -0,0 +1,313 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Twig\Environment;
|
||||||
|
use Twig\Error\LoaderError;
|
||||||
|
use Twig\Error\RuntimeError;
|
||||||
|
use Twig\Extension\SandboxExtension;
|
||||||
|
use Twig\Markup;
|
||||||
|
use Twig\Sandbox\SecurityError;
|
||||||
|
use Twig\Sandbox\SecurityNotAllowedTagError;
|
||||||
|
use Twig\Sandbox\SecurityNotAllowedFilterError;
|
||||||
|
use Twig\Sandbox\SecurityNotAllowedFunctionError;
|
||||||
|
use Twig\Source;
|
||||||
|
use Twig\Template;
|
||||||
|
|
||||||
|
/* table/search/input_box.twig */
|
||||||
|
class __TwigTemplate_35d7053810359b2724e0742a0548c94dabd4dbc1c7a53756699c7f9454cf8589 extends \Twig\Template
|
||||||
|
{
|
||||||
|
private $source;
|
||||||
|
private $macros = [];
|
||||||
|
|
||||||
|
public function __construct(Environment $env)
|
||||||
|
{
|
||||||
|
parent::__construct($env);
|
||||||
|
|
||||||
|
$this->source = $this->getSourceContext();
|
||||||
|
|
||||||
|
$this->parent = false;
|
||||||
|
|
||||||
|
$this->blocks = [
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function doDisplay(array $context, array $blocks = [])
|
||||||
|
{
|
||||||
|
$macros = $this->macros;
|
||||||
|
// line 2
|
||||||
|
if ((($context["foreigners"] ?? null) && call_user_func_array($this->env->getFunction('search_column_in_foreigners')->getCallable(), [($context["foreigners"] ?? null), ($context["column_name"] ?? null)]))) {
|
||||||
|
// line 3
|
||||||
|
echo " ";
|
||||||
|
if (twig_test_iterable((($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = ($context["foreign_data"] ?? null)) && is_array($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4) || $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 instanceof ArrayAccess ? ($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4["disp_row"] ?? null) : null))) {
|
||||||
|
// 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('foreign_dropdown')->getCallable(), [(($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 = // line 7
|
||||||
|
($context["foreign_data"] ?? null)) && is_array($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144) || $__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 instanceof ArrayAccess ? ($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144["disp_row"] ?? null) : null), (($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b = // line 8
|
||||||
|
($context["foreign_data"] ?? null)) && is_array($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b) || $__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b instanceof ArrayAccess ? ($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b["foreign_field"] ?? null) : null), (($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 = // line 9
|
||||||
|
($context["foreign_data"] ?? null)) && is_array($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002) || $__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 instanceof ArrayAccess ? ($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002["foreign_display"] ?? null) : null), "", // line 11
|
||||||
|
($context["foreign_max_limit"] ?? null)]);
|
||||||
|
// line 12
|
||||||
|
echo "
|
||||||
|
</select>
|
||||||
|
";
|
||||||
|
} elseif (((($__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4 = // line 14
|
||||||
|
($context["foreign_data"] ?? null)) && is_array($__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4) || $__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4 instanceof ArrayAccess ? ($__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4["foreign_link"] ?? null) : null) == 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 (twig_get_attribute($this->env, $this->source, ($context["criteria_values"] ?? null), ($context["column_index"] ?? null), [], "array", true, true, false, 20)) {
|
||||||
|
// line 21
|
||||||
|
echo " value=\"";
|
||||||
|
echo twig_escape_filter($this->env, (($__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666 = ($context["criteria_values"] ?? null)) && is_array($__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666) || $__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666 instanceof ArrayAccess ? ($__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666[($context["column_index"] ?? null)] ?? null) : null), "html", null, true);
|
||||||
|
echo "\"
|
||||||
|
";
|
||||||
|
}
|
||||||
|
// line 22
|
||||||
|
echo ">
|
||||||
|
<a class=\"ajax browse_foreign\" href=\"";
|
||||||
|
// line 23
|
||||||
|
echo PhpMyAdmin\Url::getFromRoute("/browse-foreigners");
|
||||||
|
echo "\" data-post=\"";
|
||||||
|
// line 24
|
||||||
|
echo PhpMyAdmin\Url::getCommon(["db" => ($context["db"] ?? null), "table" => ($context["table"] ?? null)], "");
|
||||||
|
// line 25
|
||||||
|
echo "&field=";
|
||||||
|
echo twig_escape_filter($this->env, twig_urlencode_filter(($context["column_name"] ?? null)), "html", null, true);
|
||||||
|
echo "&fieldkey=";
|
||||||
|
// line 26
|
||||||
|
echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
|
||||||
|
echo "&fromsearch=1\">
|
||||||
|
";
|
||||||
|
// line 27
|
||||||
|
echo \PhpMyAdmin\Html\Generator::getIcon("b_browse", _gettext("Browse foreign values"));
|
||||||
|
echo "
|
||||||
|
</a>
|
||||||
|
";
|
||||||
|
}
|
||||||
|
} elseif (twig_in_filter( // line 30
|
||||||
|
($context["column_type"] ?? null), PhpMyAdmin\Util::getGISDatatypes())) {
|
||||||
|
// line 31
|
||||||
|
echo " <input type=\"text\"
|
||||||
|
name=\"criteriaValues[";
|
||||||
|
// line 32
|
||||||
|
echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
|
||||||
|
echo "]\"
|
||||||
|
size=\"40\"
|
||||||
|
class=\"textfield\"
|
||||||
|
id=\"field_";
|
||||||
|
// line 35
|
||||||
|
echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
|
||||||
|
echo "\">
|
||||||
|
";
|
||||||
|
// line 36
|
||||||
|
if (($context["in_fbs"] ?? null)) {
|
||||||
|
// line 37
|
||||||
|
echo " ";
|
||||||
|
$context["edit_str"] = \PhpMyAdmin\Html\Generator::getIcon("b_edit", _gettext("Edit/Insert"));
|
||||||
|
// line 38
|
||||||
|
echo " <span class=\"open_search_gis_editor\">
|
||||||
|
";
|
||||||
|
// line 39
|
||||||
|
echo PhpMyAdmin\Html\Generator::linkOrButton(PhpMyAdmin\Url::getFromRoute("/gis-data-editor"), ($context["edit_str"] ?? null), [], "_blank");
|
||||||
|
echo "
|
||||||
|
</span>
|
||||||
|
";
|
||||||
|
}
|
||||||
|
} elseif (((is_string($__internal_01c35b74bd85735098add188b3f8372ba465b232ab8298cb582c60f493d3c22e = // line 42
|
||||||
|
($context["column_type"] ?? null)) && is_string($__internal_63ad1f9a2bf4db4af64b010785e9665558fdcac0e8db8b5b413ed986c62dbb52 = "enum") && ('' === $__internal_63ad1f9a2bf4db4af64b010785e9665558fdcac0e8db8b5b413ed986c62dbb52 || 0 === strpos($__internal_01c35b74bd85735098add188b3f8372ba465b232ab8298cb582c60f493d3c22e, $__internal_63ad1f9a2bf4db4af64b010785e9665558fdcac0e8db8b5b413ed986c62dbb52))) || ((is_string($__internal_f10a4cc339617934220127f034125576ed229e948660ebac906a15846d52f136 = // line 43
|
||||||
|
($context["column_type"] ?? null)) && is_string($__internal_887a873a4dc3cf8bd4f99c487b4c7727999c350cc3a772414714e49a195e4386 = "set") && ('' === $__internal_887a873a4dc3cf8bd4f99c487b4c7727999c350cc3a772414714e49a195e4386 || 0 === strpos($__internal_f10a4cc339617934220127f034125576ed229e948660ebac906a15846d52f136, $__internal_887a873a4dc3cf8bd4f99c487b4c7727999c350cc3a772414714e49a195e4386))) && ($context["in_zoom_search_edit"] ?? null)))) {
|
||||||
|
// line 44
|
||||||
|
echo " ";
|
||||||
|
$context["in_zoom_search_edit"] = false;
|
||||||
|
// line 45
|
||||||
|
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), ["'" => ""]), ", ");
|
||||||
|
// line 46
|
||||||
|
echo " ";
|
||||||
|
$context["cnt_value"] = twig_length_filter($this->env, ($context["value"] ?? null));
|
||||||
|
// line 47
|
||||||
|
echo " ";
|
||||||
|
// line 53
|
||||||
|
echo " ";
|
||||||
|
if ((((is_string($__internal_d527c24a729d38501d770b40a0d25e1ce8a7f0bff897cc4f8f449ba71fcff3d9 = ($context["column_type"] ?? null)) && is_string($__internal_f6dde3a1020453fdf35e718e94f93ce8eb8803b28cc77a665308e14bbe8572ae = "enum") && ('' === $__internal_f6dde3a1020453fdf35e718e94f93ce8eb8803b28cc77a665308e14bbe8572ae || 0 === strpos($__internal_d527c24a729d38501d770b40a0d25e1ce8a7f0bff897cc4f8f449ba71fcff3d9, $__internal_f6dde3a1020453fdf35e718e94f93ce8eb8803b28cc77a665308e14bbe8572ae))) && !($context["in_zoom_search_edit"] ?? null)) || ((is_string($__internal_25c0fab8152b8dd6b90603159c0f2e8a936a09ab76edb5e4d7bc95d9a8d2dc8f = // line 54
|
||||||
|
($context["column_type"] ?? null)) && is_string($__internal_f769f712f3484f00110c86425acea59f5af2752239e2e8596bcb6effeb425b40 = "set") && ('' === $__internal_f769f712f3484f00110c86425acea59f5af2752239e2e8596bcb6effeb425b40 || 0 === strpos($__internal_25c0fab8152b8dd6b90603159c0f2e8a936a09ab76edb5e4d7bc95d9a8d2dc8f, $__internal_f769f712f3484f00110c86425acea59f5af2752239e2e8596bcb6effeb425b40))) && ($context["in_zoom_search_edit"] ?? null)))) {
|
||||||
|
// line 55
|
||||||
|
echo " <select name=\"criteriaValues[";
|
||||||
|
echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
|
||||||
|
echo "]\"
|
||||||
|
id=\"";
|
||||||
|
// line 56
|
||||||
|
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 58
|
||||||
|
echo " <select name=\"criteriaValues[";
|
||||||
|
echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
|
||||||
|
echo "]\"
|
||||||
|
id=\"";
|
||||||
|
// line 59
|
||||||
|
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 61
|
||||||
|
echo twig_escape_filter($this->env, min(3, ($context["cnt_value"] ?? null)), "html", null, true);
|
||||||
|
echo "\">
|
||||||
|
";
|
||||||
|
}
|
||||||
|
// line 63
|
||||||
|
echo " ";
|
||||||
|
// line 64
|
||||||
|
echo " <option value=\"\"></option>
|
||||||
|
";
|
||||||
|
// line 65
|
||||||
|
$context['_parent'] = $context;
|
||||||
|
$context['_seq'] = twig_ensure_traversable(range(0, (($context["cnt_value"] ?? null) - 1)));
|
||||||
|
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
|
||||||
|
// line 66
|
||||||
|
echo " ";
|
||||||
|
if (((twig_get_attribute($this->env, $this->source, ($context["criteria_values"] ?? null), ($context["column_index"] ?? null), [], "array", true, true, false, 66) && twig_test_iterable((($__internal_98e944456c0f58b2585e4aa36e3a7e43f4b7c9038088f0f056004af41f4a007f = // line 67
|
||||||
|
($context["criteria_values"] ?? null)) && is_array($__internal_98e944456c0f58b2585e4aa36e3a7e43f4b7c9038088f0f056004af41f4a007f) || $__internal_98e944456c0f58b2585e4aa36e3a7e43f4b7c9038088f0f056004af41f4a007f instanceof ArrayAccess ? ($__internal_98e944456c0f58b2585e4aa36e3a7e43f4b7c9038088f0f056004af41f4a007f[($context["column_index"] ?? null)] ?? null) : null))) && twig_in_filter((($__internal_a06a70691a7ca361709a372174fa669f5ee1c1e4ed302b3a5b61c10c80c02760 = // line 68
|
||||||
|
($context["value"] ?? null)) && is_array($__internal_a06a70691a7ca361709a372174fa669f5ee1c1e4ed302b3a5b61c10c80c02760) || $__internal_a06a70691a7ca361709a372174fa669f5ee1c1e4ed302b3a5b61c10c80c02760 instanceof ArrayAccess ? ($__internal_a06a70691a7ca361709a372174fa669f5ee1c1e4ed302b3a5b61c10c80c02760[$context["i"]] ?? null) : null), (($__internal_653499042eb14fd8415489ba6fa87c1e85cff03392e9f57b26d0da09b9be82ce = ($context["criteria_values"] ?? null)) && is_array($__internal_653499042eb14fd8415489ba6fa87c1e85cff03392e9f57b26d0da09b9be82ce) || $__internal_653499042eb14fd8415489ba6fa87c1e85cff03392e9f57b26d0da09b9be82ce instanceof ArrayAccess ? ($__internal_653499042eb14fd8415489ba6fa87c1e85cff03392e9f57b26d0da09b9be82ce[($context["column_index"] ?? null)] ?? null) : null)))) {
|
||||||
|
// line 69
|
||||||
|
echo " <option value=\"";
|
||||||
|
echo (($__internal_ba9f0a3bb95c082f61c9fbf892a05514d732703d52edc77b51f2e6284135900b = ($context["value"] ?? null)) && is_array($__internal_ba9f0a3bb95c082f61c9fbf892a05514d732703d52edc77b51f2e6284135900b) || $__internal_ba9f0a3bb95c082f61c9fbf892a05514d732703d52edc77b51f2e6284135900b instanceof ArrayAccess ? ($__internal_ba9f0a3bb95c082f61c9fbf892a05514d732703d52edc77b51f2e6284135900b[$context["i"]] ?? null) : null);
|
||||||
|
echo "\" selected>
|
||||||
|
";
|
||||||
|
// line 70
|
||||||
|
echo (($__internal_73db8eef4d2582468dab79a6b09c77ce3b48675a610afd65a1f325b68804a60c = ($context["value"] ?? null)) && is_array($__internal_73db8eef4d2582468dab79a6b09c77ce3b48675a610afd65a1f325b68804a60c) || $__internal_73db8eef4d2582468dab79a6b09c77ce3b48675a610afd65a1f325b68804a60c instanceof ArrayAccess ? ($__internal_73db8eef4d2582468dab79a6b09c77ce3b48675a610afd65a1f325b68804a60c[$context["i"]] ?? null) : null);
|
||||||
|
echo "
|
||||||
|
</option>
|
||||||
|
";
|
||||||
|
} else {
|
||||||
|
// line 73
|
||||||
|
echo " <option value=\"";
|
||||||
|
echo (($__internal_d8ad5934f1874c52fa2ac9a4dfae52038b39b8b03cfc82eeb53de6151d883972 = ($context["value"] ?? null)) && is_array($__internal_d8ad5934f1874c52fa2ac9a4dfae52038b39b8b03cfc82eeb53de6151d883972) || $__internal_d8ad5934f1874c52fa2ac9a4dfae52038b39b8b03cfc82eeb53de6151d883972 instanceof ArrayAccess ? ($__internal_d8ad5934f1874c52fa2ac9a4dfae52038b39b8b03cfc82eeb53de6151d883972[$context["i"]] ?? null) : null);
|
||||||
|
echo "\">
|
||||||
|
";
|
||||||
|
// line 74
|
||||||
|
echo (($__internal_df39c71428eaf37baa1ea2198679e0077f3699bdd31bb5ba10d084710b9da216 = ($context["value"] ?? null)) && is_array($__internal_df39c71428eaf37baa1ea2198679e0077f3699bdd31bb5ba10d084710b9da216) || $__internal_df39c71428eaf37baa1ea2198679e0077f3699bdd31bb5ba10d084710b9da216 instanceof ArrayAccess ? ($__internal_df39c71428eaf37baa1ea2198679e0077f3699bdd31bb5ba10d084710b9da216[$context["i"]] ?? null) : null);
|
||||||
|
echo "
|
||||||
|
</option>
|
||||||
|
";
|
||||||
|
}
|
||||||
|
// line 77
|
||||||
|
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 78
|
||||||
|
echo " </select>
|
||||||
|
";
|
||||||
|
} else {
|
||||||
|
// line 80
|
||||||
|
echo " ";
|
||||||
|
$context["the_class"] = "textfield";
|
||||||
|
// line 81
|
||||||
|
echo " ";
|
||||||
|
if ((($context["column_type"] ?? null) == "date")) {
|
||||||
|
// line 82
|
||||||
|
echo " ";
|
||||||
|
$context["the_class"] = (($context["the_class"] ?? null) . " datefield");
|
||||||
|
// line 83
|
||||||
|
echo " ";
|
||||||
|
} elseif (((($context["column_type"] ?? null) == "datetime") || (is_string($__internal_bf0e189d688dc2ad611b50a437a32d3692fb6b8be90d2228617cfa6db44e75c0 = ($context["column_type"] ?? null)) && is_string($__internal_674c0abf302105af78b0a38907d86c5dd0028bdc3ee5f24bf52771a16487760c = "timestamp") && ('' === $__internal_674c0abf302105af78b0a38907d86c5dd0028bdc3ee5f24bf52771a16487760c || 0 === strpos($__internal_bf0e189d688dc2ad611b50a437a32d3692fb6b8be90d2228617cfa6db44e75c0, $__internal_674c0abf302105af78b0a38907d86c5dd0028bdc3ee5f24bf52771a16487760c))))) {
|
||||||
|
// line 84
|
||||||
|
echo " ";
|
||||||
|
$context["the_class"] = (($context["the_class"] ?? null) . " datetimefield");
|
||||||
|
// line 85
|
||||||
|
echo " ";
|
||||||
|
} elseif ((is_string($__internal_dd839fbfcab68823c49af471c7df7659a500fe72e71b58d6b80d896bdb55e75f = ($context["column_type"] ?? null)) && is_string($__internal_a7ed47878554bdc32b70e1ba5ccc67d2302196876fbf62b4c853b20cb9e029fc = "bit") && ('' === $__internal_a7ed47878554bdc32b70e1ba5ccc67d2302196876fbf62b4c853b20cb9e029fc || 0 === strpos($__internal_dd839fbfcab68823c49af471c7df7659a500fe72e71b58d6b80d896bdb55e75f, $__internal_a7ed47878554bdc32b70e1ba5ccc67d2302196876fbf62b4c853b20cb9e029fc)))) {
|
||||||
|
// line 86
|
||||||
|
echo " ";
|
||||||
|
$context["the_class"] = (($context["the_class"] ?? null) . " bit");
|
||||||
|
// line 87
|
||||||
|
echo " ";
|
||||||
|
}
|
||||||
|
// line 88
|
||||||
|
echo " <input type=\"text\"
|
||||||
|
name=\"criteriaValues[";
|
||||||
|
// line 89
|
||||||
|
echo twig_escape_filter($this->env, ($context["column_index"] ?? null), "html", null, true);
|
||||||
|
echo "]\"
|
||||||
|
data-type=\"";
|
||||||
|
// line 90
|
||||||
|
echo twig_escape_filter($this->env, ($context["column_data_type"] ?? null), "html", null, true);
|
||||||
|
echo "\"
|
||||||
|
";
|
||||||
|
// line 91
|
||||||
|
echo ($context["html_attributes"] ?? null);
|
||||||
|
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 (twig_get_attribute($this->env, $this->source, ($context["criteria_values"] ?? null), ($context["column_index"] ?? null), [], "array", true, true, false, 95)) {
|
||||||
|
// line 96
|
||||||
|
echo " value=\"";
|
||||||
|
echo twig_escape_filter($this->env, (($__internal_e5d7b41e16b744b68da1e9bb49047b8028ced86c782900009b4b4029b83d4b55 = ($context["criteria_values"] ?? null)) && is_array($__internal_e5d7b41e16b744b68da1e9bb49047b8028ced86c782900009b4b4029b83d4b55) || $__internal_e5d7b41e16b744b68da1e9bb49047b8028ced86c782900009b4b4029b83d4b55 instanceof ArrayAccess ? ($__internal_e5d7b41e16b744b68da1e9bb49047b8028ced86c782900009b4b4029b83d4b55[($context["column_index"] ?? null)] ?? null) : null), "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 ( 289 => 97, 284 => 96, 282 => 95, 277 => 94, 273 => 93, 268 => 91, 264 => 90, 260 => 89, 257 => 88, 254 => 87, 251 => 86, 248 => 85, 245 => 84, 242 => 83, 239 => 82, 236 => 81, 233 => 80, 229 => 78, 223 => 77, 217 => 74, 212 => 73, 206 => 70, 201 => 69, 199 => 68, 198 => 67, 196 => 66, 192 => 65, 189 => 64, 187 => 63, 182 => 61, 176 => 59, 171 => 58, 165 => 56, 160 => 55, 158 => 54, 156 => 53, 154 => 47, 151 => 46, 148 => 45, 145 => 44, 143 => 43, 142 => 42, 136 => 39, 133 => 38, 130 => 37, 128 => 36, 124 => 35, 118 => 32, 115 => 31, 113 => 30, 107 => 27, 103 => 26, 99 => 25, 97 => 24, 94 => 23, 91 => 22, 85 => 21, 83 => 20, 76 => 18, 72 => 17, 67 => 16, 64 => 15, 62 => 14, 58 => 12, 56 => 11, 55 => 9, 54 => 8, 53 => 7, 52 => 6, 47 => 5, 42 => 4, 39 => 3, 37 => 2,);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getSourceContext()
|
||||||
|
{
|
||||||
|
return new Source("", "table/search/input_box.twig", "/app/admin/templates/table/search/input_box.twig");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,77 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Twig\Environment;
|
||||||
|
use Twig\Error\LoaderError;
|
||||||
|
use Twig\Error\RuntimeError;
|
||||||
|
use Twig\Extension\SandboxExtension;
|
||||||
|
use Twig\Markup;
|
||||||
|
use Twig\Sandbox\SecurityError;
|
||||||
|
use Twig\Sandbox\SecurityNotAllowedTagError;
|
||||||
|
use Twig\Sandbox\SecurityNotAllowedFilterError;
|
||||||
|
use Twig\Sandbox\SecurityNotAllowedFunctionError;
|
||||||
|
use Twig\Source;
|
||||||
|
use Twig\Template;
|
||||||
|
|
||||||
|
/* display/results/null_display.twig */
|
||||||
|
class __TwigTemplate_12303b40592b0e636e5ae38ad6103dc5490d8f604b6e200bc6a0689e4e8fe1e3 extends \Twig\Template
|
||||||
|
{
|
||||||
|
private $source;
|
||||||
|
private $macros = [];
|
||||||
|
|
||||||
|
public function __construct(Environment $env)
|
||||||
|
{
|
||||||
|
parent::__construct($env);
|
||||||
|
|
||||||
|
$this->source = $this->getSourceContext();
|
||||||
|
|
||||||
|
$this->parent = false;
|
||||||
|
|
||||||
|
$this->blocks = [
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function doDisplay(array $context, array $blocks = [])
|
||||||
|
{
|
||||||
|
$macros = $this->macros;
|
||||||
|
// line 1
|
||||||
|
echo "<td ";
|
||||||
|
echo twig_escape_filter($this->env, ($context["align"] ?? null), "html", null, true);
|
||||||
|
echo "
|
||||||
|
data-decimals=\"";
|
||||||
|
// line 2
|
||||||
|
((twig_get_attribute($this->env, $this->source, ($context["meta"] ?? null), "decimals", [], "any", true, true, false, 2)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["meta"] ?? null), "decimals", [], "any", false, false, false, 2), "html", null, true))) : (print ("-1")));
|
||||||
|
echo "\"
|
||||||
|
data-type=\"";
|
||||||
|
// line 3
|
||||||
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["meta"] ?? null), "type", [], "any", false, false, false, 3), "html", null, true);
|
||||||
|
echo "\"
|
||||||
|
";
|
||||||
|
// line 5
|
||||||
|
echo " class=\"";
|
||||||
|
echo twig_escape_filter($this->env, ($context["classes"] ?? null), "html", null, true);
|
||||||
|
echo " null\">
|
||||||
|
<em>NULL</em>
|
||||||
|
</td>
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getTemplateName()
|
||||||
|
{
|
||||||
|
return "display/results/null_display.twig";
|
||||||
|
}
|
||||||
|
|
||||||
|
public function isTraitable()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDebugInfo()
|
||||||
|
{
|
||||||
|
return array ( 50 => 5, 46 => 3, 42 => 2, 37 => 1,);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getSourceContext()
|
||||||
|
{
|
||||||
|
return new Source("", "display/results/null_display.twig", "/app/admin/templates/display/results/null_display.twig");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,431 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Twig\Environment;
|
||||||
|
use Twig\Error\LoaderError;
|
||||||
|
use Twig\Error\RuntimeError;
|
||||||
|
use Twig\Extension\SandboxExtension;
|
||||||
|
use Twig\Markup;
|
||||||
|
use Twig\Sandbox\SecurityError;
|
||||||
|
use Twig\Sandbox\SecurityNotAllowedTagError;
|
||||||
|
use Twig\Sandbox\SecurityNotAllowedFilterError;
|
||||||
|
use Twig\Sandbox\SecurityNotAllowedFunctionError;
|
||||||
|
use Twig\Source;
|
||||||
|
use Twig\Template;
|
||||||
|
|
||||||
|
/* table/search/index.twig */
|
||||||
|
class __TwigTemplate_0e925125ff0ea6330b0d37281eafb22c0458e5cb3fccd468a9adc0307fce0ce3 extends \Twig\Template
|
||||||
|
{
|
||||||
|
private $source;
|
||||||
|
private $macros = [];
|
||||||
|
|
||||||
|
public function __construct(Environment $env)
|
||||||
|
{
|
||||||
|
parent::__construct($env);
|
||||||
|
|
||||||
|
$this->source = $this->getSourceContext();
|
||||||
|
|
||||||
|
$this->parent = false;
|
||||||
|
|
||||||
|
$this->blocks = [
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function doDisplay(array $context, array $blocks = [])
|
||||||
|
{
|
||||||
|
$macros = $this->macros;
|
||||||
|
// line 1
|
||||||
|
echo "<ul class=\"nav nav-pills m-2\">
|
||||||
|
<li class=\"nav-item\">
|
||||||
|
<a class=\"nav-link active\" href=\"";
|
||||||
|
// line 3
|
||||||
|
echo PhpMyAdmin\Url::getFromRoute("/table/search", ["db" => ($context["db"] ?? null), "table" => ($context["table"] ?? null), "pos" => 0]);
|
||||||
|
echo "\">
|
||||||
|
";
|
||||||
|
// line 4
|
||||||
|
echo \PhpMyAdmin\Html\Generator::getIcon("b_search", _gettext("Table search"), false, false, "TabsMode");
|
||||||
|
echo "
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class=\"nav-item\">
|
||||||
|
<a class=\"nav-link\" href=\"";
|
||||||
|
// line 9
|
||||||
|
echo PhpMyAdmin\Url::getFromRoute("/table/zoom-search", ["db" => ($context["db"] ?? null), "table" => ($context["table"] ?? null)]);
|
||||||
|
echo "\">
|
||||||
|
";
|
||||||
|
// line 10
|
||||||
|
echo \PhpMyAdmin\Html\Generator::getIcon("b_select", _gettext("Zoom search"), false, false, "TabsMode");
|
||||||
|
echo "
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li class=\"nav-item\">
|
||||||
|
<a class=\"nav-link\" href=\"";
|
||||||
|
// line 15
|
||||||
|
echo PhpMyAdmin\Url::getFromRoute("/table/find-replace", ["db" => ($context["db"] ?? null), "table" => ($context["table"] ?? null)]);
|
||||||
|
echo "\">
|
||||||
|
";
|
||||||
|
// line 16
|
||||||
|
echo \PhpMyAdmin\Html\Generator::getIcon("b_find_replace", _gettext("Find and replace"), false, false, "TabsMode");
|
||||||
|
echo "
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<form method=\"post\" action=\"";
|
||||||
|
// line 21
|
||||||
|
echo PhpMyAdmin\Url::getFromRoute("/table/search");
|
||||||
|
echo "\" name=\"insertForm\" id=\"tbl_search_form\" class=\"ajax lock-page\">
|
||||||
|
";
|
||||||
|
// line 22
|
||||||
|
echo PhpMyAdmin\Url::getHiddenInputs(($context["db"] ?? null), ($context["table"] ?? null));
|
||||||
|
echo "
|
||||||
|
<input type=\"hidden\" name=\"goto\" value=\"";
|
||||||
|
// line 23
|
||||||
|
echo twig_escape_filter($this->env, ($context["goto"] ?? null), "html", null, true);
|
||||||
|
echo "\">
|
||||||
|
<input type=\"hidden\" name=\"back\" value=\"";
|
||||||
|
// line 24
|
||||||
|
echo PhpMyAdmin\Url::getFromRoute("/table/search");
|
||||||
|
echo "\">
|
||||||
|
|
||||||
|
<fieldset id=\"fieldset_table_search\">
|
||||||
|
<fieldset id=\"fieldset_table_qbe\">
|
||||||
|
<legend>
|
||||||
|
";
|
||||||
|
// line 29
|
||||||
|
echo _gettext("Do a \"query by example\" (wildcard: \"%\")");
|
||||||
|
// line 30
|
||||||
|
echo " </legend>
|
||||||
|
<div class=\"table-responsive-md jsresponsive\">
|
||||||
|
<table class=\"table table-light table-striped table-hover table-sm w-auto\">
|
||||||
|
<thead class=\"thead-light\">
|
||||||
|
<tr>
|
||||||
|
";
|
||||||
|
// line 35
|
||||||
|
if (($context["geom_column_flag"] ?? null)) {
|
||||||
|
// line 36
|
||||||
|
echo " <th>";
|
||||||
|
echo _gettext("Function");
|
||||||
|
echo "</th>
|
||||||
|
";
|
||||||
|
}
|
||||||
|
// line 38
|
||||||
|
echo " <th>";
|
||||||
|
echo _gettext("Column");
|
||||||
|
echo "</th>
|
||||||
|
<th>";
|
||||||
|
// line 39
|
||||||
|
echo _gettext("Type");
|
||||||
|
echo "</th>
|
||||||
|
<th>";
|
||||||
|
// line 40
|
||||||
|
echo _gettext("Collation");
|
||||||
|
echo "</th>
|
||||||
|
<th>";
|
||||||
|
// line 41
|
||||||
|
echo _gettext("Operator");
|
||||||
|
echo "</th>
|
||||||
|
<th>";
|
||||||
|
// line 42
|
||||||
|
echo _gettext("Value");
|
||||||
|
echo "</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
";
|
||||||
|
// line 46
|
||||||
|
$context['_parent'] = $context;
|
||||||
|
$context['_seq'] = twig_ensure_traversable(range(0, (twig_length_filter($this->env, ($context["column_names"] ?? null)) - 1)));
|
||||||
|
foreach ($context['_seq'] as $context["_key"] => $context["column_index"]) {
|
||||||
|
// line 47
|
||||||
|
echo " <tr class=\"noclick\">
|
||||||
|
";
|
||||||
|
// line 49
|
||||||
|
echo " ";
|
||||||
|
if (($context["geom_column_flag"] ?? null)) {
|
||||||
|
// line 50
|
||||||
|
echo " ";
|
||||||
|
// line 51
|
||||||
|
echo " <td>
|
||||||
|
";
|
||||||
|
// line 52
|
||||||
|
$context["geom_types"] = PhpMyAdmin\Util::getGISDatatypes();
|
||||||
|
// line 53
|
||||||
|
echo " ";
|
||||||
|
if (twig_in_filter((($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = ($context["column_types"] ?? null)) && is_array($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4) || $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 instanceof ArrayAccess ? ($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4[$context["column_index"]] ?? null) : null), ($context["geom_types"] ?? null))) {
|
||||||
|
// line 54
|
||||||
|
echo " <select class=\"geom_func\" name=\"geom_func[";
|
||||||
|
echo twig_escape_filter($this->env, $context["column_index"], "html", null, true);
|
||||||
|
echo "]\">
|
||||||
|
";
|
||||||
|
// line 56
|
||||||
|
echo " ";
|
||||||
|
$context["funcs"] = PhpMyAdmin\Util::getGISFunctions((($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 = ($context["column_types"] ?? null)) && is_array($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144) || $__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144 instanceof ArrayAccess ? ($__internal_62824350bc4502ee19dbc2e99fc6bdd3bd90e7d8dd6e72f42c35efd048542144[$context["column_index"]] ?? null) : null), true, true);
|
||||||
|
// line 57
|
||||||
|
echo " ";
|
||||||
|
$context['_parent'] = $context;
|
||||||
|
$context['_seq'] = twig_ensure_traversable(($context["funcs"] ?? null));
|
||||||
|
foreach ($context['_seq'] as $context["func_name"] => $context["func"]) {
|
||||||
|
// line 58
|
||||||
|
echo " ";
|
||||||
|
$context["name"] = ((twig_get_attribute($this->env, $this->source, $context["func"], "display", [], "array", true, true, false, 58)) ? ((($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b = $context["func"]) && is_array($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b) || $__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b instanceof ArrayAccess ? ($__internal_1cfccaec8dd2e8578ccb026fbe7f2e7e29ac2ed5deb976639c5fc99a6ea8583b["display"] ?? null) : null)) : ($context["func_name"]));
|
||||||
|
// line 59
|
||||||
|
echo " <option value=\"";
|
||||||
|
echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
|
||||||
|
echo "\">
|
||||||
|
";
|
||||||
|
// line 60
|
||||||
|
echo twig_escape_filter($this->env, ($context["name"] ?? null), "html", null, true);
|
||||||
|
echo "
|
||||||
|
</option>
|
||||||
|
";
|
||||||
|
}
|
||||||
|
$_parent = $context['_parent'];
|
||||||
|
unset($context['_seq'], $context['_iterated'], $context['func_name'], $context['func'], $context['_parent'], $context['loop']);
|
||||||
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||||
|
// line 63
|
||||||
|
echo " </select>
|
||||||
|
";
|
||||||
|
}
|
||||||
|
// line 65
|
||||||
|
echo " </td>
|
||||||
|
";
|
||||||
|
}
|
||||||
|
// line 67
|
||||||
|
echo " ";
|
||||||
|
// line 68
|
||||||
|
echo " <th>";
|
||||||
|
// line 70
|
||||||
|
echo twig_escape_filter($this->env, (($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 = ($context["column_names"] ?? null)) && is_array($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002) || $__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002 instanceof ArrayAccess ? ($__internal_68aa442c1d43d3410ea8f958ba9090f3eaa9a76f8de8fc9be4d6c7389ba28002[$context["column_index"]] ?? null) : null), "html", null, true);
|
||||||
|
// line 71
|
||||||
|
echo "</th>
|
||||||
|
";
|
||||||
|
// line 72
|
||||||
|
$context["properties"] = twig_get_attribute($this->env, $this->source, ($context["self"] ?? null), "getColumnProperties", [0 => $context["column_index"], 1 => $context["column_index"]], "method", false, false, false, 72);
|
||||||
|
// line 73
|
||||||
|
echo " <td dir=\"ltr\">
|
||||||
|
";
|
||||||
|
// line 74
|
||||||
|
echo twig_escape_filter($this->env, (($__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4 = ($context["properties"] ?? null)) && is_array($__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4) || $__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4 instanceof ArrayAccess ? ($__internal_d7fc55f1a54b629533d60b43063289db62e68921ee7a5f8de562bd9d4a2b7ad4["type"] ?? null) : null), "html", null, true);
|
||||||
|
echo "
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
";
|
||||||
|
// line 77
|
||||||
|
echo twig_escape_filter($this->env, (($__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666 = ($context["properties"] ?? null)) && is_array($__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666) || $__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666 instanceof ArrayAccess ? ($__internal_01476f8db28655ee4ee02ea2d17dd5a92599be76304f08cd8bc0e05aced30666["collation"] ?? null) : null), "html", null, true);
|
||||||
|
echo "
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
";
|
||||||
|
// line 80
|
||||||
|
echo (($__internal_01c35b74bd85735098add188b3f8372ba465b232ab8298cb582c60f493d3c22e = ($context["properties"] ?? null)) && is_array($__internal_01c35b74bd85735098add188b3f8372ba465b232ab8298cb582c60f493d3c22e) || $__internal_01c35b74bd85735098add188b3f8372ba465b232ab8298cb582c60f493d3c22e instanceof ArrayAccess ? ($__internal_01c35b74bd85735098add188b3f8372ba465b232ab8298cb582c60f493d3c22e["func"] ?? null) : null);
|
||||||
|
echo "
|
||||||
|
</td>
|
||||||
|
";
|
||||||
|
// line 83
|
||||||
|
echo " <td data-type=\"";
|
||||||
|
echo twig_escape_filter($this->env, (($__internal_63ad1f9a2bf4db4af64b010785e9665558fdcac0e8db8b5b413ed986c62dbb52 = ($context["properties"] ?? null)) && is_array($__internal_63ad1f9a2bf4db4af64b010785e9665558fdcac0e8db8b5b413ed986c62dbb52) || $__internal_63ad1f9a2bf4db4af64b010785e9665558fdcac0e8db8b5b413ed986c62dbb52 instanceof ArrayAccess ? ($__internal_63ad1f9a2bf4db4af64b010785e9665558fdcac0e8db8b5b413ed986c62dbb52["type"] ?? null) : null), "html", null, true);
|
||||||
|
echo "\">
|
||||||
|
";
|
||||||
|
// line 84
|
||||||
|
echo (($__internal_f10a4cc339617934220127f034125576ed229e948660ebac906a15846d52f136 = ($context["properties"] ?? null)) && is_array($__internal_f10a4cc339617934220127f034125576ed229e948660ebac906a15846d52f136) || $__internal_f10a4cc339617934220127f034125576ed229e948660ebac906a15846d52f136 instanceof ArrayAccess ? ($__internal_f10a4cc339617934220127f034125576ed229e948660ebac906a15846d52f136["value"] ?? null) : null);
|
||||||
|
echo "
|
||||||
|
";
|
||||||
|
// line 86
|
||||||
|
echo " <input type=\"hidden\" name=\"criteriaColumnNames[";
|
||||||
|
echo twig_escape_filter($this->env, $context["column_index"], "html", null, true);
|
||||||
|
echo "]\" value=\"";
|
||||||
|
echo twig_escape_filter($this->env, (($__internal_887a873a4dc3cf8bd4f99c487b4c7727999c350cc3a772414714e49a195e4386 = ($context["column_names"] ?? null)) && is_array($__internal_887a873a4dc3cf8bd4f99c487b4c7727999c350cc3a772414714e49a195e4386) || $__internal_887a873a4dc3cf8bd4f99c487b4c7727999c350cc3a772414714e49a195e4386 instanceof ArrayAccess ? ($__internal_887a873a4dc3cf8bd4f99c487b4c7727999c350cc3a772414714e49a195e4386[$context["column_index"]] ?? null) : null), "html", null, true);
|
||||||
|
echo "\">
|
||||||
|
<input type=\"hidden\" name=\"criteriaColumnTypes[";
|
||||||
|
// line 87
|
||||||
|
echo twig_escape_filter($this->env, $context["column_index"], "html", null, true);
|
||||||
|
echo "]\" value=\"";
|
||||||
|
echo twig_escape_filter($this->env, (($__internal_d527c24a729d38501d770b40a0d25e1ce8a7f0bff897cc4f8f449ba71fcff3d9 = ($context["column_types"] ?? null)) && is_array($__internal_d527c24a729d38501d770b40a0d25e1ce8a7f0bff897cc4f8f449ba71fcff3d9) || $__internal_d527c24a729d38501d770b40a0d25e1ce8a7f0bff897cc4f8f449ba71fcff3d9 instanceof ArrayAccess ? ($__internal_d527c24a729d38501d770b40a0d25e1ce8a7f0bff897cc4f8f449ba71fcff3d9[$context["column_index"]] ?? null) : null), "html", null, true);
|
||||||
|
echo "\">
|
||||||
|
<input type=\"hidden\" name=\"criteriaColumnCollations[";
|
||||||
|
// line 88
|
||||||
|
echo twig_escape_filter($this->env, $context["column_index"], "html", null, true);
|
||||||
|
echo "]\" value=\"";
|
||||||
|
echo twig_escape_filter($this->env, (($__internal_f6dde3a1020453fdf35e718e94f93ce8eb8803b28cc77a665308e14bbe8572ae = ($context["column_collations"] ?? null)) && is_array($__internal_f6dde3a1020453fdf35e718e94f93ce8eb8803b28cc77a665308e14bbe8572ae) || $__internal_f6dde3a1020453fdf35e718e94f93ce8eb8803b28cc77a665308e14bbe8572ae instanceof ArrayAccess ? ($__internal_f6dde3a1020453fdf35e718e94f93ce8eb8803b28cc77a665308e14bbe8572ae[$context["column_index"]] ?? null) : null), "html", null, true);
|
||||||
|
echo "\">
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
";
|
||||||
|
}
|
||||||
|
$_parent = $context['_parent'];
|
||||||
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['column_index'], $context['_parent'], $context['loop']);
|
||||||
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||||
|
// line 92
|
||||||
|
echo " </tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
<div id=\"gis_editor\"></div>
|
||||||
|
<div id=\"popup_background\"></div>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
<div id=\"searchoptions\"";
|
||||||
|
// line 99
|
||||||
|
if ((($context["default_sliders_state"] ?? null) != "disabled")) {
|
||||||
|
// line 100
|
||||||
|
echo (((($context["default_sliders_state"] ?? null) == "closed")) ? (" style=\"display: none; overflow:auto;\"") : (""));
|
||||||
|
echo " class=\"pma_auto_slider\" title=\"";
|
||||||
|
echo _gettext("Options");
|
||||||
|
echo "\"";
|
||||||
|
}
|
||||||
|
// line 101
|
||||||
|
echo ">
|
||||||
|
|
||||||
|
";
|
||||||
|
// line 104
|
||||||
|
echo " <fieldset id=\"fieldset_select_fields\">
|
||||||
|
<legend>
|
||||||
|
";
|
||||||
|
// line 106
|
||||||
|
echo _gettext("Select columns (at least one):");
|
||||||
|
// line 107
|
||||||
|
echo " </legend>
|
||||||
|
<select name=\"columnsToDisplay[]\" size=\"";
|
||||||
|
// line 108
|
||||||
|
echo twig_escape_filter($this->env, min(twig_length_filter($this->env, ($context["column_names"] ?? null)), 10), "html", null, true);
|
||||||
|
echo "\" multiple>
|
||||||
|
";
|
||||||
|
// line 109
|
||||||
|
$context['_parent'] = $context;
|
||||||
|
$context['_seq'] = twig_ensure_traversable(($context["column_names"] ?? null));
|
||||||
|
foreach ($context['_seq'] as $context["_key"] => $context["each_field"]) {
|
||||||
|
// line 110
|
||||||
|
echo " <option value=\"";
|
||||||
|
echo twig_escape_filter($this->env, $context["each_field"], "html", null, true);
|
||||||
|
echo "\" selected>
|
||||||
|
";
|
||||||
|
// line 111
|
||||||
|
echo twig_escape_filter($this->env, $context["each_field"], "html", null, true);
|
||||||
|
echo "
|
||||||
|
</option>
|
||||||
|
";
|
||||||
|
}
|
||||||
|
$_parent = $context['_parent'];
|
||||||
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['each_field'], $context['_parent'], $context['loop']);
|
||||||
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||||
|
// line 114
|
||||||
|
echo " </select>
|
||||||
|
<input type=\"checkbox\" name=\"distinct\" value=\"DISTINCT\" id=\"oDistinct\">
|
||||||
|
<label for=\"oDistinct\">DISTINCT</label>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
";
|
||||||
|
// line 120
|
||||||
|
echo " <fieldset id=\"fieldset_search_conditions\">
|
||||||
|
<legend>
|
||||||
|
<em>";
|
||||||
|
// line 122
|
||||||
|
echo _gettext("Or");
|
||||||
|
echo "</em>
|
||||||
|
";
|
||||||
|
// line 123
|
||||||
|
echo _gettext("Add search conditions (body of the \"where\" clause):");
|
||||||
|
// line 124
|
||||||
|
echo " </legend>
|
||||||
|
";
|
||||||
|
// line 125
|
||||||
|
echo \PhpMyAdmin\Html\MySQLDocumentation::show("Functions");
|
||||||
|
echo "
|
||||||
|
<input type=\"text\" name=\"customWhereClause\" class=\"textfield\" size=\"64\">
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
";
|
||||||
|
// line 130
|
||||||
|
echo " <fieldset id=\"fieldset_limit_rows\">
|
||||||
|
<legend>";
|
||||||
|
// line 131
|
||||||
|
echo _gettext("Number of rows per page");
|
||||||
|
echo "</legend>
|
||||||
|
<input type=\"number\" name=\"session_max_rows\" min=\"1\" value=\"";
|
||||||
|
// line 132
|
||||||
|
echo twig_escape_filter($this->env, ($context["max_rows"] ?? null), "html", null, true);
|
||||||
|
echo "\" class=\"textfield\" required>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
";
|
||||||
|
// line 136
|
||||||
|
echo " <fieldset id=\"fieldset_display_order\">
|
||||||
|
<legend>";
|
||||||
|
// line 137
|
||||||
|
echo _gettext("Display order:");
|
||||||
|
echo "</legend>
|
||||||
|
<select name=\"orderByColumn\"><option value=\"--nil--\"></option>
|
||||||
|
";
|
||||||
|
// line 139
|
||||||
|
$context['_parent'] = $context;
|
||||||
|
$context['_seq'] = twig_ensure_traversable(($context["column_names"] ?? null));
|
||||||
|
foreach ($context['_seq'] as $context["_key"] => $context["each_field"]) {
|
||||||
|
// line 140
|
||||||
|
echo " <option value=\"";
|
||||||
|
echo twig_escape_filter($this->env, $context["each_field"], "html", null, true);
|
||||||
|
echo "\">
|
||||||
|
";
|
||||||
|
// line 141
|
||||||
|
echo twig_escape_filter($this->env, $context["each_field"], "html", null, true);
|
||||||
|
echo "
|
||||||
|
</option>
|
||||||
|
";
|
||||||
|
}
|
||||||
|
$_parent = $context['_parent'];
|
||||||
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['each_field'], $context['_parent'], $context['loop']);
|
||||||
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||||
|
// line 144
|
||||||
|
echo " </select>
|
||||||
|
|
||||||
|
<div class=\"formelement\">
|
||||||
|
<input type=\"radio\" name=\"order\" id=\"orderByAscRadio\" value=\"ASC\" checked>
|
||||||
|
<label for=\"orderByAscRadio\">";
|
||||||
|
// line 148
|
||||||
|
echo _gettext("Ascending");
|
||||||
|
echo "</label>
|
||||||
|
</div>
|
||||||
|
<div class=\"formelement\">
|
||||||
|
<input type=\"radio\" name=\"order\" id=\"orderByDescRadio\" value=\"DESC\">
|
||||||
|
<label for=\"orderByDescRadio\">";
|
||||||
|
// line 152
|
||||||
|
echo _gettext("Descending");
|
||||||
|
echo "</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</fieldset>
|
||||||
|
<div class=\"clearfloat\"></div>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
<fieldset class=\"tblFooters\">
|
||||||
|
<input class=\"btn btn-primary\" type=\"submit\" name=\"submit\" value=\"";
|
||||||
|
// line 161
|
||||||
|
echo _gettext("Go");
|
||||||
|
echo "\">
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
<div id=\"sqlqueryresultsouter\"></div>
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getTemplateName()
|
||||||
|
{
|
||||||
|
return "table/search/index.twig";
|
||||||
|
}
|
||||||
|
|
||||||
|
public function isTraitable()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDebugInfo()
|
||||||
|
{
|
||||||
|
return array ( 404 => 161, 392 => 152, 385 => 148, 379 => 144, 370 => 141, 365 => 140, 361 => 139, 356 => 137, 353 => 136, 347 => 132, 343 => 131, 340 => 130, 333 => 125, 330 => 124, 328 => 123, 324 => 122, 320 => 120, 313 => 114, 304 => 111, 299 => 110, 295 => 109, 291 => 108, 288 => 107, 286 => 106, 282 => 104, 278 => 101, 272 => 100, 270 => 99, 261 => 92, 249 => 88, 243 => 87, 236 => 86, 232 => 84, 227 => 83, 222 => 80, 216 => 77, 210 => 74, 207 => 73, 205 => 72, 202 => 71, 200 => 70, 198 => 68, 196 => 67, 192 => 65, 188 => 63, 179 => 60, 174 => 59, 171 => 58, 166 => 57, 163 => 56, 158 => 54, 155 => 53, 153 => 52, 150 => 51, 148 => 50, 145 => 49, 142 => 47, 138 => 46, 131 => 42, 127 => 41, 123 => 40, 119 => 39, 114 => 38, 108 => 36, 106 => 35, 99 => 30, 97 => 29, 89 => 24, 85 => 23, 81 => 22, 77 => 21, 69 => 16, 65 => 15, 57 => 10, 53 => 9, 45 => 4, 41 => 3, 37 => 1,);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getSourceContext()
|
||||||
|
{
|
||||||
|
return new Source("", "table/search/index.twig", "/app/admin/templates/table/search/index.twig");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,69 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Twig\Environment;
|
||||||
|
use Twig\Error\LoaderError;
|
||||||
|
use Twig\Error\RuntimeError;
|
||||||
|
use Twig\Extension\SandboxExtension;
|
||||||
|
use Twig\Markup;
|
||||||
|
use Twig\Sandbox\SecurityError;
|
||||||
|
use Twig\Sandbox\SecurityNotAllowedTagError;
|
||||||
|
use Twig\Sandbox\SecurityNotAllowedFilterError;
|
||||||
|
use Twig\Sandbox\SecurityNotAllowedFunctionError;
|
||||||
|
use Twig\Source;
|
||||||
|
use Twig\Template;
|
||||||
|
|
||||||
|
/* table/search/column_comparison_operators.twig */
|
||||||
|
class __TwigTemplate_5cc5fd0d35f9660205285e697d7f74cf32bd2f6b5431e888985c88941e6dcbe9 extends \Twig\Template
|
||||||
|
{
|
||||||
|
private $source;
|
||||||
|
private $macros = [];
|
||||||
|
|
||||||
|
public function __construct(Environment $env)
|
||||||
|
{
|
||||||
|
parent::__construct($env);
|
||||||
|
|
||||||
|
$this->source = $this->getSourceContext();
|
||||||
|
|
||||||
|
$this->parent = false;
|
||||||
|
|
||||||
|
$this->blocks = [
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function doDisplay(array $context, array $blocks = [])
|
||||||
|
{
|
||||||
|
$macros = $this->macros;
|
||||||
|
// line 1
|
||||||
|
echo "<select class=\"column-operator\" id=\"ColumnOperator";
|
||||||
|
echo twig_escape_filter($this->env, ($context["search_index"] ?? null), "html", null, true);
|
||||||
|
echo "\" name=\"criteriaColumnOperators[";
|
||||||
|
echo twig_escape_filter($this->env, ($context["search_index"] ?? null), "html", null, true);
|
||||||
|
echo "]\">
|
||||||
|
";
|
||||||
|
// line 2
|
||||||
|
echo ($context["type_operators"] ?? null);
|
||||||
|
echo "
|
||||||
|
</select>
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getTemplateName()
|
||||||
|
{
|
||||||
|
return "table/search/column_comparison_operators.twig";
|
||||||
|
}
|
||||||
|
|
||||||
|
public function isTraitable()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDebugInfo()
|
||||||
|
{
|
||||||
|
return array ( 44 => 2, 37 => 1,);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getSourceContext()
|
||||||
|
{
|
||||||
|
return new Source("", "table/search/column_comparison_operators.twig", "/app/admin/templates/table/search/column_comparison_operators.twig");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,92 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Twig\Environment;
|
||||||
|
use Twig\Error\LoaderError;
|
||||||
|
use Twig\Error\RuntimeError;
|
||||||
|
use Twig\Extension\SandboxExtension;
|
||||||
|
use Twig\Markup;
|
||||||
|
use Twig\Sandbox\SecurityError;
|
||||||
|
use Twig\Sandbox\SecurityNotAllowedTagError;
|
||||||
|
use Twig\Sandbox\SecurityNotAllowedFilterError;
|
||||||
|
use Twig\Sandbox\SecurityNotAllowedFunctionError;
|
||||||
|
use Twig\Source;
|
||||||
|
use Twig\Template;
|
||||||
|
|
||||||
|
/* display/results/sort_by_key.twig */
|
||||||
|
class __TwigTemplate_ef6a7271d44967c90b5ada3a3810aa599b3fb71ddfff868dc937d55efb8386df extends \Twig\Template
|
||||||
|
{
|
||||||
|
private $source;
|
||||||
|
private $macros = [];
|
||||||
|
|
||||||
|
public function __construct(Environment $env)
|
||||||
|
{
|
||||||
|
parent::__construct($env);
|
||||||
|
|
||||||
|
$this->source = $this->getSourceContext();
|
||||||
|
|
||||||
|
$this->parent = false;
|
||||||
|
|
||||||
|
$this->blocks = [
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function doDisplay(array $context, array $blocks = [])
|
||||||
|
{
|
||||||
|
$macros = $this->macros;
|
||||||
|
// line 1
|
||||||
|
echo "<form action=\"";
|
||||||
|
echo PhpMyAdmin\Url::getFromRoute("/sql");
|
||||||
|
echo "\" method=\"post\" class=\"print_ignore\">
|
||||||
|
";
|
||||||
|
// line 2
|
||||||
|
echo PhpMyAdmin\Url::getHiddenFields(($context["hidden_fields"] ?? null));
|
||||||
|
echo "
|
||||||
|
";
|
||||||
|
// line 3
|
||||||
|
echo _gettext("Sort by key:");
|
||||||
|
// line 4
|
||||||
|
echo " <select name=\"sql_query\" class=\"autosubmit\">
|
||||||
|
";
|
||||||
|
// line 5
|
||||||
|
$context['_parent'] = $context;
|
||||||
|
$context['_seq'] = twig_ensure_traversable(($context["options"] ?? null));
|
||||||
|
foreach ($context['_seq'] as $context["_key"] => $context["option"]) {
|
||||||
|
// line 6
|
||||||
|
echo " <option value=\"";
|
||||||
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "value", [], "any", false, false, false, 6), "html", null, true);
|
||||||
|
echo "\"";
|
||||||
|
echo ((twig_get_attribute($this->env, $this->source, $context["option"], "is_selected", [], "any", false, false, false, 6)) ? (" selected") : (""));
|
||||||
|
echo ">";
|
||||||
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["option"], "content", [], "any", false, false, false, 6), "html", null, true);
|
||||||
|
echo "</option>
|
||||||
|
";
|
||||||
|
}
|
||||||
|
$_parent = $context['_parent'];
|
||||||
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['option'], $context['_parent'], $context['loop']);
|
||||||
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||||
|
// line 8
|
||||||
|
echo " </select>
|
||||||
|
</form>
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getTemplateName()
|
||||||
|
{
|
||||||
|
return "display/results/sort_by_key.twig";
|
||||||
|
}
|
||||||
|
|
||||||
|
public function isTraitable()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDebugInfo()
|
||||||
|
{
|
||||||
|
return array ( 68 => 8, 55 => 6, 51 => 5, 48 => 4, 46 => 3, 42 => 2, 37 => 1,);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getSourceContext()
|
||||||
|
{
|
||||||
|
return new Source("", "display/results/sort_by_key.twig", "/app/admin/templates/display/results/sort_by_key.twig");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,71 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Twig\Environment;
|
||||||
|
use Twig\Error\LoaderError;
|
||||||
|
use Twig\Error\RuntimeError;
|
||||||
|
use Twig\Extension\SandboxExtension;
|
||||||
|
use Twig\Markup;
|
||||||
|
use Twig\Sandbox\SecurityError;
|
||||||
|
use Twig\Sandbox\SecurityNotAllowedTagError;
|
||||||
|
use Twig\Sandbox\SecurityNotAllowedFilterError;
|
||||||
|
use Twig\Sandbox\SecurityNotAllowedFunctionError;
|
||||||
|
use Twig\Source;
|
||||||
|
use Twig\Template;
|
||||||
|
|
||||||
|
/* server/import/index.twig */
|
||||||
|
class __TwigTemplate_e202b757a190ff402b9bb34af62d5ed9856f7abf3466a09ac6cbb1d036527fe7 extends \Twig\Template
|
||||||
|
{
|
||||||
|
private $source;
|
||||||
|
private $macros = [];
|
||||||
|
|
||||||
|
public function __construct(Environment $env)
|
||||||
|
{
|
||||||
|
parent::__construct($env);
|
||||||
|
|
||||||
|
$this->source = $this->getSourceContext();
|
||||||
|
|
||||||
|
$this->blocks = [
|
||||||
|
'title' => [$this, 'block_title'],
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function doGetParent(array $context)
|
||||||
|
{
|
||||||
|
// line 1
|
||||||
|
return "import.twig";
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function doDisplay(array $context, array $blocks = [])
|
||||||
|
{
|
||||||
|
$macros = $this->macros;
|
||||||
|
$this->parent = $this->loadTemplate("import.twig", "server/import/index.twig", 1);
|
||||||
|
$this->parent->display($context, array_merge($this->blocks, $blocks));
|
||||||
|
}
|
||||||
|
|
||||||
|
// line 3
|
||||||
|
public function block_title($context, array $blocks = [])
|
||||||
|
{
|
||||||
|
$macros = $this->macros;
|
||||||
|
echo _gettext("Importing into the current server");
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getTemplateName()
|
||||||
|
{
|
||||||
|
return "server/import/index.twig";
|
||||||
|
}
|
||||||
|
|
||||||
|
public function isTraitable()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDebugInfo()
|
||||||
|
{
|
||||||
|
return array ( 46 => 3, 35 => 1,);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getSourceContext()
|
||||||
|
{
|
||||||
|
return new Source("", "server/import/index.twig", "/app/admin/templates/server/import/index.twig");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,494 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
use Twig\Environment;
|
||||||
|
use Twig\Error\LoaderError;
|
||||||
|
use Twig\Error\RuntimeError;
|
||||||
|
use Twig\Extension\SandboxExtension;
|
||||||
|
use Twig\Markup;
|
||||||
|
use Twig\Sandbox\SecurityError;
|
||||||
|
use Twig\Sandbox\SecurityNotAllowedTagError;
|
||||||
|
use Twig\Sandbox\SecurityNotAllowedFilterError;
|
||||||
|
use Twig\Sandbox\SecurityNotAllowedFunctionError;
|
||||||
|
use Twig\Source;
|
||||||
|
use Twig\Template;
|
||||||
|
|
||||||
|
/* database/operations/index.twig */
|
||||||
|
class __TwigTemplate_749620ac32c39e6a87ee5f168791f1fd5987eb315517a1769dcc65f7f2d9b733 extends \Twig\Template
|
||||||
|
{
|
||||||
|
private $source;
|
||||||
|
private $macros = [];
|
||||||
|
|
||||||
|
public function __construct(Environment $env)
|
||||||
|
{
|
||||||
|
parent::__construct($env);
|
||||||
|
|
||||||
|
$this->source = $this->getSourceContext();
|
||||||
|
|
||||||
|
$this->parent = false;
|
||||||
|
|
||||||
|
$this->blocks = [
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
protected function doDisplay(array $context, array $blocks = [])
|
||||||
|
{
|
||||||
|
$macros = $this->macros;
|
||||||
|
// line 1
|
||||||
|
echo "<div class=\"container-fluid\">
|
||||||
|
|
||||||
|
";
|
||||||
|
// line 3
|
||||||
|
echo ($context["message"] ?? null);
|
||||||
|
echo "
|
||||||
|
|
||||||
|
";
|
||||||
|
// line 5
|
||||||
|
if (($context["has_comment"] ?? null)) {
|
||||||
|
// line 6
|
||||||
|
echo " <form method=\"post\" action=\"";
|
||||||
|
echo PhpMyAdmin\Url::getFromRoute("/database/operations");
|
||||||
|
echo "\" id=\"formDatabaseComment\">
|
||||||
|
";
|
||||||
|
// line 7
|
||||||
|
echo PhpMyAdmin\Url::getHiddenInputs(($context["db"] ?? null));
|
||||||
|
echo "
|
||||||
|
<div class=\"card mb-2\">
|
||||||
|
<div class=\"card-header\">";
|
||||||
|
// line 9
|
||||||
|
echo \PhpMyAdmin\Html\Generator::getIcon("b_comment", _gettext("Database comment"), true);
|
||||||
|
echo "</div>
|
||||||
|
<div class=\"card-body\">
|
||||||
|
<div class=\"form-row\">
|
||||||
|
<div class=\"col-auto\">
|
||||||
|
<label class=\"sr-only\" for=\"databaseCommentInput\">";
|
||||||
|
// line 13
|
||||||
|
echo _gettext("Database comment");
|
||||||
|
echo "</label>
|
||||||
|
<input class=\"form-control textfield\" id=\"databaseCommentInput\" type=\"text\" name=\"comment\" value=\"";
|
||||||
|
// line 14
|
||||||
|
echo twig_escape_filter($this->env, ($context["db_comment"] ?? null), "html", null, true);
|
||||||
|
echo "\">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class=\"card-footer text-right\">
|
||||||
|
<input class=\"btn btn-primary\" type=\"submit\" value=\"";
|
||||||
|
// line 19
|
||||||
|
echo _gettext("Go");
|
||||||
|
echo "\">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
";
|
||||||
|
}
|
||||||
|
// line 24
|
||||||
|
echo "
|
||||||
|
<form id=\"create_table_form_minimal\" method=\"post\" action=\"";
|
||||||
|
// line 25
|
||||||
|
echo PhpMyAdmin\Url::getFromRoute("/table/create");
|
||||||
|
echo "\" class=\"lock-page\">
|
||||||
|
";
|
||||||
|
// line 26
|
||||||
|
echo PhpMyAdmin\Url::getHiddenInputs(($context["db"] ?? null));
|
||||||
|
echo "
|
||||||
|
|
||||||
|
<div class=\"card mb-2\">
|
||||||
|
<div class=\"card-header\">";
|
||||||
|
// line 29
|
||||||
|
echo \PhpMyAdmin\Html\Generator::getIcon("b_table_add", _gettext("Create table"), true);
|
||||||
|
echo "</div>
|
||||||
|
<div class=\"card-body\">
|
||||||
|
<div class=\"form-row\">
|
||||||
|
<div class=\"col-auto\">
|
||||||
|
<label for=\"exampleInputEmail1\">";
|
||||||
|
// line 33
|
||||||
|
echo _gettext("Name");
|
||||||
|
echo "</label>
|
||||||
|
<input class=\"form-control\" type=\"text\" id=\"exampleInputEmail1\" name=\"table\" required>
|
||||||
|
</div>
|
||||||
|
<div class=\"col-auto\">
|
||||||
|
<label for=\"exampleInputEmail1\">";
|
||||||
|
// line 37
|
||||||
|
echo _gettext("Number of columns");
|
||||||
|
echo "</label>
|
||||||
|
<input class=\"form-control\" type=\"number\" id=\"exampleInputEmail1\" name=\"num_fields\" min=\"1\" value=\"4\" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class=\"card-footer text-right\">
|
||||||
|
<input class=\"btn btn-primary\" type=\"submit\" value=\"";
|
||||||
|
// line 44
|
||||||
|
echo _gettext("Go");
|
||||||
|
echo "\">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
";
|
||||||
|
// line 49
|
||||||
|
if ((($context["db"] ?? null) != "mysql")) {
|
||||||
|
// line 50
|
||||||
|
echo " <form id=\"rename_db_form\" class=\"ajax\" method=\"post\" action=\"";
|
||||||
|
echo PhpMyAdmin\Url::getFromRoute("/database/operations");
|
||||||
|
echo "\">
|
||||||
|
";
|
||||||
|
// line 51
|
||||||
|
echo PhpMyAdmin\Url::getHiddenInputs(($context["db"] ?? null));
|
||||||
|
echo "
|
||||||
|
<input type=\"hidden\" name=\"what\" value=\"data\">
|
||||||
|
<input type=\"hidden\" name=\"db_rename\" value=\"true\">
|
||||||
|
|
||||||
|
";
|
||||||
|
// line 55
|
||||||
|
if ( !twig_test_empty(($context["db_collation"] ?? null))) {
|
||||||
|
// line 56
|
||||||
|
echo " <input type=\"hidden\" name=\"db_collation\" value=\"";
|
||||||
|
echo twig_escape_filter($this->env, ($context["db_collation"] ?? null), "html", null, true);
|
||||||
|
echo "\">
|
||||||
|
";
|
||||||
|
}
|
||||||
|
// line 58
|
||||||
|
echo "
|
||||||
|
<div class=\"card mb-2\">
|
||||||
|
<div class=\"card-header\">";
|
||||||
|
// line 60
|
||||||
|
echo \PhpMyAdmin\Html\Generator::getIcon("b_edit", _gettext("Rename database to"), true);
|
||||||
|
echo "</div>
|
||||||
|
<div class=\"card-body\">
|
||||||
|
<div class=\"form-group form-row\">
|
||||||
|
<div class=\"col-auto\">
|
||||||
|
<label class=\"sr-only\" for=\"new_db_name\">";
|
||||||
|
// line 64
|
||||||
|
echo _gettext("New database name");
|
||||||
|
echo "</label>
|
||||||
|
<input class=\"form-control textfield\" id=\"new_db_name\" type=\"text\" name=\"newname\" maxlength=\"64\" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class=\"form-check\">
|
||||||
|
<input class=\"form-check-input\" type=\"checkbox\" name=\"adjust_privileges\" value=\"1\" id=\"checkbox_adjust_privileges\"";
|
||||||
|
// line 71
|
||||||
|
if (($context["has_adjust_privileges"] ?? null)) {
|
||||||
|
echo " checked";
|
||||||
|
} else {
|
||||||
|
echo " title=\"";
|
||||||
|
// line 72
|
||||||
|
echo _gettext("You don't have sufficient privileges to perform this operation; Please refer to the documentation for more details.");
|
||||||
|
echo "\" disabled";
|
||||||
|
}
|
||||||
|
echo ">
|
||||||
|
<label class=\"form-check-label\" for=\"checkbox_adjust_privileges\">
|
||||||
|
";
|
||||||
|
// line 74
|
||||||
|
echo _gettext("Adjust privileges");
|
||||||
|
// line 75
|
||||||
|
echo " ";
|
||||||
|
echo \PhpMyAdmin\Html\MySQLDocumentation::showDocumentation("faq", "faq6-39");
|
||||||
|
echo "
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class=\"card-footer text-right\">
|
||||||
|
<input class=\"btn btn-primary\" type=\"submit\" value=\"";
|
||||||
|
// line 81
|
||||||
|
echo _gettext("Go");
|
||||||
|
echo "\">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
";
|
||||||
|
}
|
||||||
|
// line 86
|
||||||
|
echo "
|
||||||
|
";
|
||||||
|
// line 87
|
||||||
|
if (($context["is_drop_database_allowed"] ?? null)) {
|
||||||
|
// line 88
|
||||||
|
echo " <div class=\"card mb-2\">
|
||||||
|
<div class=\"card-header\">";
|
||||||
|
// line 89
|
||||||
|
echo \PhpMyAdmin\Html\Generator::getIcon("b_deltbl", _gettext("Remove database"), true);
|
||||||
|
echo "</div>
|
||||||
|
<div class=\"card-body\">
|
||||||
|
<div class=\"card-text\">
|
||||||
|
";
|
||||||
|
// line 92
|
||||||
|
echo PhpMyAdmin\Html\Generator::linkOrButton(PhpMyAdmin\Url::getFromRoute("/sql", ["sql_query" => ("DROP DATABASE " . PhpMyAdmin\Util::backquote( // line 94
|
||||||
|
($context["db"] ?? null))), "back" => PhpMyAdmin\Url::getFromRoute("/database/operations"), "goto" => PhpMyAdmin\Url::getFromRoute("/"), "reload" => true, "purge" => true, "message_to_show" => twig_escape_filter($this->env, sprintf(_gettext("Database %s has been dropped."), PhpMyAdmin\Util::backquote( // line 99
|
||||||
|
($context["db"] ?? null)))), "db" => null]), _gettext("Drop the database (DROP)"), ["id" => "drop_db_anchor", "class" => "ajax text-danger"]);
|
||||||
|
// line 107
|
||||||
|
echo "
|
||||||
|
";
|
||||||
|
// line 108
|
||||||
|
echo \PhpMyAdmin\Html\MySQLDocumentation::show("DROP_DATABASE");
|
||||||
|
echo "
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
";
|
||||||
|
}
|
||||||
|
// line 113
|
||||||
|
echo "
|
||||||
|
<form id=\"copy_db_form\" class=\"ajax\" method=\"post\" action=\"";
|
||||||
|
// line 114
|
||||||
|
echo PhpMyAdmin\Url::getFromRoute("/database/operations");
|
||||||
|
echo "\">
|
||||||
|
";
|
||||||
|
// line 115
|
||||||
|
echo PhpMyAdmin\Url::getHiddenInputs(($context["db"] ?? null));
|
||||||
|
echo "
|
||||||
|
<input type=\"hidden\" name=\"db_copy\" value=\"true\">
|
||||||
|
|
||||||
|
";
|
||||||
|
// line 118
|
||||||
|
if ( !twig_test_empty(($context["db_collation"] ?? null))) {
|
||||||
|
// line 119
|
||||||
|
echo " <input type=\"hidden\" name=\"db_collation\" value=\"";
|
||||||
|
echo twig_escape_filter($this->env, ($context["db_collation"] ?? null), "html", null, true);
|
||||||
|
echo "\">
|
||||||
|
";
|
||||||
|
}
|
||||||
|
// line 121
|
||||||
|
echo "
|
||||||
|
<div class=\"card mb-2\">
|
||||||
|
<div class=\"card-header\">";
|
||||||
|
// line 123
|
||||||
|
echo \PhpMyAdmin\Html\Generator::getIcon("b_edit", _gettext("Copy database to"), true);
|
||||||
|
echo "</div>
|
||||||
|
<div class=\"card-body\">
|
||||||
|
<div class=\"form-group form-row\">
|
||||||
|
<div class=\"col-auto\">
|
||||||
|
<label class=\"sr-only\" for=\"renameDbNameInput\">";
|
||||||
|
// line 127
|
||||||
|
echo _gettext("Database name");
|
||||||
|
echo "</label>
|
||||||
|
<input class=\"form-control textfield\" id=\"renameDbNameInput\" type=\"text\" maxlength=\"64\" name=\"newname\" required>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class=\"form-group\">
|
||||||
|
<div class=\"form-check\">
|
||||||
|
<input class=\"form-check-input\" type=\"radio\" name=\"what\" id=\"whatRadio1\" value=\"structure\">
|
||||||
|
<label class=\"form-check-label\" for=\"whatRadio1\">
|
||||||
|
";
|
||||||
|
// line 136
|
||||||
|
echo _gettext("Structure only");
|
||||||
|
// line 137
|
||||||
|
echo " </label>
|
||||||
|
</div>
|
||||||
|
<div class=\"form-check\">
|
||||||
|
<input class=\"form-check-input\" type=\"radio\" name=\"what\" id=\"whatRadio2\" value=\"data\" checked>
|
||||||
|
<label class=\"form-check-label\" for=\"whatRadio2\">
|
||||||
|
";
|
||||||
|
// line 142
|
||||||
|
echo _gettext("Structure and data");
|
||||||
|
// line 143
|
||||||
|
echo " </label>
|
||||||
|
</div>
|
||||||
|
<div class=\"form-check\">
|
||||||
|
<input class=\"form-check-input\" type=\"radio\" name=\"what\" id=\"whatRadio3\" value=\"dataonly\">
|
||||||
|
<label class=\"form-check-label\" for=\"whatRadio3\">
|
||||||
|
";
|
||||||
|
// line 148
|
||||||
|
echo _gettext("Data only");
|
||||||
|
// line 149
|
||||||
|
echo " </label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class=\"form-check\">
|
||||||
|
<input class=\"form-check-input\" type=\"checkbox\" name=\"create_database_before_copying\" value=\"1\" id=\"checkbox_create_database_before_copying\" checked>
|
||||||
|
<label class=\"form-check-label\" for=\"checkbox_create_database_before_copying\">";
|
||||||
|
// line 155
|
||||||
|
echo _gettext("CREATE DATABASE before copying");
|
||||||
|
echo "</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class=\"form-check\">
|
||||||
|
<input class=\"form-check-input\" type=\"checkbox\" name=\"drop_if_exists\" value=\"true\" id=\"checkbox_drop\">
|
||||||
|
<label class=\"form-check-label\" for=\"checkbox_drop\">";
|
||||||
|
// line 160
|
||||||
|
echo twig_escape_filter($this->env, sprintf(_gettext("Add %s"), "DROP TABLE / DROP VIEW"), "html", null, true);
|
||||||
|
echo "</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class=\"form-check\">
|
||||||
|
<input class=\"form-check-input\" type=\"checkbox\" name=\"sql_auto_increment\" value=\"1\" id=\"checkbox_auto_increment\" checked>
|
||||||
|
<label class=\"form-check-label\" for=\"checkbox_auto_increment\">";
|
||||||
|
// line 165
|
||||||
|
echo _gettext("Add AUTO_INCREMENT value");
|
||||||
|
echo "</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class=\"form-check\">
|
||||||
|
<input class=\"form-check-input\" type=\"checkbox\" name=\"add_constraints\" value=\"1\" id=\"checkbox_constraints\" checked>
|
||||||
|
<label class=\"form-check-label\" for=\"checkbox_constraints\">";
|
||||||
|
// line 170
|
||||||
|
echo _gettext("Add constraints");
|
||||||
|
echo "</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class=\"form-check\">
|
||||||
|
<input class=\"form-check-input\" type=\"checkbox\" name=\"adjust_privileges\" value=\"1\" id=\"checkbox_privileges\"";
|
||||||
|
// line 175
|
||||||
|
if (($context["has_adjust_privileges"] ?? null)) {
|
||||||
|
echo " checked";
|
||||||
|
} else {
|
||||||
|
echo " title=\"";
|
||||||
|
// line 176
|
||||||
|
echo _gettext("You don't have sufficient privileges to perform this operation; Please refer to the documentation for more details.");
|
||||||
|
echo "\" disabled";
|
||||||
|
}
|
||||||
|
echo ">
|
||||||
|
<label class=\"form-check-label\" for=\"checkbox_privileges\">
|
||||||
|
";
|
||||||
|
// line 178
|
||||||
|
echo _gettext("Adjust privileges");
|
||||||
|
// line 179
|
||||||
|
echo " ";
|
||||||
|
echo \PhpMyAdmin\Html\MySQLDocumentation::showDocumentation("faq", "faq6-39");
|
||||||
|
echo "
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class=\"form-check\">
|
||||||
|
<input class=\"form-check-input\" type=\"checkbox\" name=\"switch_to_new\" value=\"true\" id=\"checkbox_switch\"";
|
||||||
|
// line 184
|
||||||
|
echo ((($context["switch_to_new"] ?? null)) ? (" checked") : (""));
|
||||||
|
echo ">
|
||||||
|
<label class=\"form-check-label\" for=\"checkbox_switch\">";
|
||||||
|
// line 185
|
||||||
|
echo _gettext("Switch to copied database");
|
||||||
|
echo "</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class=\"card-footer text-right\">
|
||||||
|
<input class=\"btn btn-primary\" type=\"submit\" name=\"submit_copy\" value=\"";
|
||||||
|
// line 190
|
||||||
|
echo _gettext("Go");
|
||||||
|
echo "\">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<form id=\"change_db_charset_form\" class=\"ajax\" method=\"post\" action=\"";
|
||||||
|
// line 195
|
||||||
|
echo PhpMyAdmin\Url::getFromRoute("/database/operations/collation");
|
||||||
|
echo "\">
|
||||||
|
";
|
||||||
|
// line 196
|
||||||
|
echo PhpMyAdmin\Url::getHiddenInputs(($context["db"] ?? null));
|
||||||
|
echo "
|
||||||
|
|
||||||
|
<div class=\"card mb-2\">
|
||||||
|
<div class=\"card-header\">";
|
||||||
|
// line 199
|
||||||
|
echo \PhpMyAdmin\Html\Generator::getIcon("s_asci", _gettext("Collation"), true);
|
||||||
|
echo "</div>
|
||||||
|
<div class=\"card-body\">
|
||||||
|
<div class=\"form-group form-row\">
|
||||||
|
<div class=\"col-auto\">
|
||||||
|
<label class=\"sr-only\" for=\"select_db_collation\">";
|
||||||
|
// line 203
|
||||||
|
echo _gettext("Collation");
|
||||||
|
echo "</label>
|
||||||
|
<select class=\"form-control\" lang=\"en\" dir=\"ltr\" name=\"db_collation\" id=\"select_db_collation\">
|
||||||
|
<option value=\"\"></option>
|
||||||
|
";
|
||||||
|
// line 206
|
||||||
|
$context['_parent'] = $context;
|
||||||
|
$context['_seq'] = twig_ensure_traversable(($context["charsets"] ?? null));
|
||||||
|
foreach ($context['_seq'] as $context["_key"] => $context["charset"]) {
|
||||||
|
// line 207
|
||||||
|
echo " <optgroup label=\"";
|
||||||
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["charset"], "getName", [], "method", false, false, false, 207), "html", null, true);
|
||||||
|
echo "\" title=\"";
|
||||||
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["charset"], "getDescription", [], "method", false, false, false, 207), "html", null, true);
|
||||||
|
echo "\">
|
||||||
|
";
|
||||||
|
// line 208
|
||||||
|
$context['_parent'] = $context;
|
||||||
|
$context['_seq'] = twig_ensure_traversable((($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 = ($context["collations"] ?? null)) && is_array($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4) || $__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4 instanceof ArrayAccess ? ($__internal_f607aeef2c31a95a7bf963452dff024ffaeb6aafbe4603f9ca3bec57be8633f4[twig_get_attribute($this->env, $this->source, $context["charset"], "getName", [], "method", false, false, false, 208)] ?? null) : null));
|
||||||
|
foreach ($context['_seq'] as $context["_key"] => $context["collation"]) {
|
||||||
|
// line 209
|
||||||
|
echo " <option value=\"";
|
||||||
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["collation"], "getName", [], "method", false, false, false, 209), "html", null, true);
|
||||||
|
echo "\" title=\"";
|
||||||
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["collation"], "getDescription", [], "method", false, false, false, 209), "html", null, true);
|
||||||
|
echo "\"";
|
||||||
|
echo (((($context["db_collation"] ?? null) == twig_get_attribute($this->env, $this->source, $context["collation"], "getName", [], "method", false, false, false, 209))) ? (" selected") : (""));
|
||||||
|
echo ">
|
||||||
|
";
|
||||||
|
// line 210
|
||||||
|
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["collation"], "getName", [], "method", false, false, false, 210), "html", null, true);
|
||||||
|
echo "
|
||||||
|
</option>
|
||||||
|
";
|
||||||
|
}
|
||||||
|
$_parent = $context['_parent'];
|
||||||
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['collation'], $context['_parent'], $context['loop']);
|
||||||
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||||
|
// line 213
|
||||||
|
echo " </optgroup>
|
||||||
|
";
|
||||||
|
}
|
||||||
|
$_parent = $context['_parent'];
|
||||||
|
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['charset'], $context['_parent'], $context['loop']);
|
||||||
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
||||||
|
// line 215
|
||||||
|
echo " </select>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class=\"form-check\">
|
||||||
|
<input class=\"form-check-input\" type=\"checkbox\" name=\"change_all_tables_collations\" id=\"checkbox_change_all_tables_collations\">
|
||||||
|
<label class=\"form-check-label\" for=\"checkbox_change_all_tables_collations\">";
|
||||||
|
// line 221
|
||||||
|
echo _gettext("Change all tables collations");
|
||||||
|
echo "</label>
|
||||||
|
</div>
|
||||||
|
<div class=\"form-check\" id=\"span_change_all_tables_columns_collations\">
|
||||||
|
<input class=\"form-check-input\" type=\"checkbox\" name=\"change_all_tables_columns_collations\" id=\"checkbox_change_all_tables_columns_collations\">
|
||||||
|
<label class=\"form-check-label\" for=\"checkbox_change_all_tables_columns_collations\">";
|
||||||
|
// line 225
|
||||||
|
echo _gettext("Change all tables columns collations");
|
||||||
|
echo "</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class=\"card-footer text-right\">
|
||||||
|
<input class=\"btn btn-primary\" type=\"submit\" value=\"";
|
||||||
|
// line 230
|
||||||
|
echo _gettext("Go");
|
||||||
|
echo "\">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
";
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getTemplateName()
|
||||||
|
{
|
||||||
|
return "database/operations/index.twig";
|
||||||
|
}
|
||||||
|
|
||||||
|
public function isTraitable()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getDebugInfo()
|
||||||
|
{
|
||||||
|
return array ( 465 => 230, 457 => 225, 450 => 221, 442 => 215, 435 => 213, 426 => 210, 417 => 209, 413 => 208, 406 => 207, 402 => 206, 396 => 203, 389 => 199, 383 => 196, 379 => 195, 371 => 190, 363 => 185, 359 => 184, 350 => 179, 348 => 178, 341 => 176, 336 => 175, 329 => 170, 321 => 165, 313 => 160, 305 => 155, 297 => 149, 295 => 148, 288 => 143, 286 => 142, 279 => 137, 277 => 136, 265 => 127, 258 => 123, 254 => 121, 248 => 119, 246 => 118, 240 => 115, 236 => 114, 233 => 113, 225 => 108, 222 => 107, 220 => 99, 219 => 94, 218 => 92, 212 => 89, 209 => 88, 207 => 87, 204 => 86, 196 => 81, 186 => 75, 184 => 74, 177 => 72, 172 => 71, 163 => 64, 156 => 60, 152 => 58, 146 => 56, 144 => 55, 137 => 51, 132 => 50, 130 => 49, 122 => 44, 112 => 37, 105 => 33, 98 => 29, 92 => 26, 88 => 25, 85 => 24, 77 => 19, 69 => 14, 65 => 13, 58 => 9, 53 => 7, 48 => 6, 46 => 5, 41 => 3, 37 => 1,);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getSourceContext()
|
||||||
|
{
|
||||||
|
return new Source("", "database/operations/index.twig", "/app/admin/templates/database/operations/index.twig");
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -16,13 +16,13 @@
|
|||||||
<?php
|
<?php
|
||||||
include '../connect.php';
|
include '../connect.php';
|
||||||
|
|
||||||
$query="select * from Auftrag";
|
$query="select * from auftrag";
|
||||||
$result=$sql->query($query);
|
$result=$sql->query($query);
|
||||||
|
|
||||||
if ($result->num_rows > 0) {
|
if ($result->num_rows > 0) {
|
||||||
// output data of each row
|
// output data of each row
|
||||||
while($row = $result->fetch_assoc()) {
|
while($row = $result->fetch_assoc()) {
|
||||||
$id=$row["AuftragsNr"];
|
$id=$row["Auftragsnummer"];
|
||||||
$datum=$row["Datum"];
|
$datum=$row["Datum"];
|
||||||
$zeit=$row["Zeit"];
|
$zeit=$row["Zeit"];
|
||||||
$price=$row["GesamtPreis"];
|
$price=$row["GesamtPreis"];
|
||||||
|
|||||||
@@ -7,12 +7,142 @@
|
|||||||
?>
|
?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
$query="select a.*,k.Vorname,k.Nachname,k.Kundenummer,f.Mitarbeiternummer from auftrag as a
|
||||||
|
inner join bucht as b on b.Auftragsnummer=a.Auftragsnummer
|
||||||
|
inner join kunde as k on k.Kundenummer=b.Kundenummer
|
||||||
|
left join `führt aus` as f on f.Auftragsnummer=a.Auftragsnummer
|
||||||
|
where a.Auftragsnummer=?
|
||||||
|
";
|
||||||
|
$stmt=$sql->prepare($query);
|
||||||
|
$stmt->bind_param("i",$id);
|
||||||
|
$stmt->execute();
|
||||||
|
$result=$stmt->get_result();
|
||||||
|
if ($result->num_rows != 1) {
|
||||||
|
die("error on request");
|
||||||
|
}
|
||||||
|
$row = $result->fetch_assoc();
|
||||||
|
//echo var_dump($row);
|
||||||
|
$datum=$row["Datum"];
|
||||||
|
$zeit=$row["Zeit"];
|
||||||
|
$vorname=$row["Vorname"];
|
||||||
|
$nachname=$row["Nachname"];
|
||||||
|
$kid=$row["Kundenummer"];
|
||||||
|
$mitarbeiter=$row["Mitarbeiternummer"];
|
||||||
?>
|
?>
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<fieldset>
|
||||||
|
<legend style="border: 1px black solid;margin-left: 1em; padding: 0.2em 0.8em ">Zeitpunkt</legend>
|
||||||
|
<?php
|
||||||
|
echo "Datum: $datum<br/>";
|
||||||
|
echo "Zeit: $zeit<br/>";
|
||||||
|
?>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
<fieldset>
|
||||||
|
<legend style="border: 1px black solid;margin-left: 1em; padding: 0.2em 0.8em ">Kunde</legend>
|
||||||
|
<?php
|
||||||
|
echo "Kundennummer: $kid <br/>";
|
||||||
|
echo "Name: $vorname $nachname <br />";
|
||||||
|
echo "<a href=/view/kunde.php?id=$kid>Detail</a>"
|
||||||
|
?>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
|
||||||
|
<fieldset>
|
||||||
|
<legend style="border: 1px black solid;margin-left: 1em; padding: 0.2em 0.8em ">Bearbeiter</legend>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
echo $id;
|
|
||||||
|
|
||||||
|
if($mitarbeiter==null){
|
||||||
|
$mit=$sql->query("select * from mitarbeiter");
|
||||||
|
}else{
|
||||||
|
$stmt=$sql->prepare("select * from mitarbeiter where not Mitarbeiternummer==?");
|
||||||
|
$stmt->bind_param("i",$mitarbeiter);
|
||||||
|
$stmt->execute();
|
||||||
|
$mit=$stmt->get_result();
|
||||||
|
|
||||||
|
$stmt=$sql->prepare("select * from mitarbeiter where Mitarbeiternummer==?");
|
||||||
|
$stmt->bind_param("i",$mitarbeiter);
|
||||||
|
$stmt->execute();
|
||||||
|
$mits=$stmt->get_result();
|
||||||
|
$mits=$mits->fetch_assoc();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$lines=$mit->fetch_all();
|
||||||
|
|
||||||
|
echo "<form action='auftrag-save-mitarbeiter.php?id=$id' method='post'>
|
||||||
|
|
||||||
|
<label for='mitarbeiter'>Mitarbeiter: </label>
|
||||||
|
<select name='Mitarbeiter' id='mitarbeiter'>";
|
||||||
|
|
||||||
|
|
||||||
|
foreach($lines as $rot){
|
||||||
|
$nr=$rot[0];
|
||||||
|
$name=$rot[1];
|
||||||
|
|
||||||
|
echo "<option value='$nr'>$name</option>";
|
||||||
|
}
|
||||||
|
if($mitarbeiter!=null){
|
||||||
|
$nr=$mits[0];
|
||||||
|
$name=$mits[1];
|
||||||
|
echo "<option value='$nr' selected>$name</option>";
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "
|
||||||
|
<input type='submit' value='Speichern'>
|
||||||
|
</select><br>
|
||||||
|
</form>";
|
||||||
|
|
||||||
|
?>
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
<fieldset>
|
||||||
|
<legend style="border: 1px black solid;margin-left: 1em; padding: 0.2em 0.8em ">Dienste</legend>
|
||||||
|
<table >
|
||||||
|
<tr>
|
||||||
|
<th>NR.</th>
|
||||||
|
<th>Beschreibung</th>
|
||||||
|
<th>Katalog Preis</th>
|
||||||
|
<th>Auftrags Preis</th>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$total=0;
|
||||||
|
$query="select d.*,u.* from umfasst as u
|
||||||
|
inner join dienstleistung as d on d.Dientleistungsnummer=u.Dienstleistungsnummer
|
||||||
|
where u.Auftragsnummer=?
|
||||||
|
";
|
||||||
|
$stmt=$sql->prepare($query);
|
||||||
|
$stmt->bind_param("i",$id);
|
||||||
|
$stmt->execute();
|
||||||
|
$data=$stmt->get_result();
|
||||||
|
$ar=$data->fetch_all();
|
||||||
|
foreach($ar as $row){
|
||||||
|
$nr=$row[2];
|
||||||
|
$desc=$row[1];
|
||||||
|
$catPrice=$row[3];
|
||||||
|
$aufPrice=$row[4];
|
||||||
|
$total=$total+$aufPrice;
|
||||||
|
echo var_dump($row);
|
||||||
|
echo"
|
||||||
|
<td>$nr</td>
|
||||||
|
<td>$desc</td>
|
||||||
|
<td>$catPrice</td>
|
||||||
|
<td>$aufPrice</td>
|
||||||
|
|
||||||
|
</tr>";
|
||||||
|
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</fieldset>
|
||||||
|
|
||||||
|
<?php
|
||||||
include '../tail.php';
|
include '../tail.php';
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -17,21 +17,21 @@ $haarlaenge = $_POST['Haarlaenge'];
|
|||||||
|
|
||||||
$query="
|
$query="
|
||||||
UPDATE
|
UPDATE
|
||||||
Kunde
|
kunde
|
||||||
SET
|
SET
|
||||||
Geschlecht = ?,
|
Geschlecht = ?,
|
||||||
Vorname = ?,
|
Vorname = ?,
|
||||||
Geburstag = ?,
|
Geburstag = ?,
|
||||||
Telefonnr = ?,
|
Telefonnummer = ?,
|
||||||
Nachname = ?,
|
Nachname = ?,
|
||||||
Haarlaenge = ?,
|
Haarlaenge = ?,
|
||||||
Haarstruktur = ?
|
Haarstruktur = ?
|
||||||
WHERE
|
WHERE
|
||||||
Kundenr = ?";
|
Kundenummer = ?";
|
||||||
$stmt=$sql->prepare($query);
|
$stmt=$sql->prepare($query);
|
||||||
|
|
||||||
|
|
||||||
$stmt->bind_param("sssssisi",$gender,$vorname,$geburtstag,$tele,$nachname,$haarlaenge,$haarstruktur,$id);
|
$stmt->bind_param("sssssssi",$gender,$vorname,$geburtstag,$tele,$nachname,$haarlaenge,$haarstruktur,$id);
|
||||||
if ($stmt->execute()){
|
if ($stmt->execute()){
|
||||||
echo '<h1>Kunden Gespeichert</h1>';
|
echo '<h1>Kunden Gespeichert</h1>';
|
||||||
} else{
|
} else{
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ include '../connect.php';
|
|||||||
<?php
|
<?php
|
||||||
echo "<h2>Kunde $id</h2>";
|
echo "<h2>Kunde $id</h2>";
|
||||||
|
|
||||||
$stmp = $sql->prepare("select * from Kunde where Kundenr=?;");
|
$stmp = $sql->prepare("select * from kunde where Kundenummer=?;");
|
||||||
|
|
||||||
$stmp->bind_param('i', $id);
|
$stmp->bind_param('i', $id);
|
||||||
$stmp->execute();
|
$stmp->execute();
|
||||||
@@ -23,7 +23,7 @@ if ($result->num_rows == 1) {
|
|||||||
$vorname = $row['Vorname'];
|
$vorname = $row['Vorname'];
|
||||||
$nachname = $row['Nachname'];
|
$nachname = $row['Nachname'];
|
||||||
$geburtstag = $row['Geburstag'];
|
$geburtstag = $row['Geburstag'];
|
||||||
$tele = $row['Telefonnr'];
|
$tele = $row['Telefonnummer'];
|
||||||
$haarstruktur = $row['Haarstruktur'];
|
$haarstruktur = $row['Haarstruktur'];
|
||||||
$haarlaenge = $row['Haarlaenge'];
|
$haarlaenge = $row['Haarlaenge'];
|
||||||
echo "<form action='kunde-save.php' method='post'>
|
echo "<form action='kunde-save.php' method='post'>
|
||||||
@@ -70,7 +70,28 @@ if ($result->num_rows == 1) {
|
|||||||
value='$tele'>
|
value='$tele'>
|
||||||
<br>
|
<br>
|
||||||
<label for='laenge'>Haarlänge: </lable><br>
|
<label for='laenge'>Haarlänge: </lable><br>
|
||||||
<input name='Haarlaenge' type='number' id='laenge' value='$haarlaenge'><br>
|
<select name='Haarlaenge' id='gender'>
|
||||||
|
";
|
||||||
|
|
||||||
|
switch ($haarlaenge) {
|
||||||
|
case "l":
|
||||||
|
echo "<option value='l' selected>lang</option>";
|
||||||
|
echo "<option value='m' >mittel</option>";
|
||||||
|
echo "<option value='k' >kurz</option>";
|
||||||
|
break;
|
||||||
|
case "m":
|
||||||
|
echo "<option value='l'>lang</option>";
|
||||||
|
echo "<option value='m' selected>mittel</option>";
|
||||||
|
echo "<option value='k' >kurz</option>";
|
||||||
|
break;
|
||||||
|
case "k":
|
||||||
|
echo "<option value='l'>lang</option>";
|
||||||
|
echo "<option value='m' >mittel</option>";
|
||||||
|
echo "<option value='k' selected>kurz</option>";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
echo"
|
||||||
|
</select><br>
|
||||||
<label for='haar'>Haarstruktur: </lable><br>
|
<label for='haar'>Haarstruktur: </lable><br>
|
||||||
<input name='Haarstruktur' type='text' id='haar' value='$haarstruktur'><br>
|
<input name='Haarstruktur' type='text' id='haar' value='$haarstruktur'><br>
|
||||||
<p><input type='submit'/></p>
|
<p><input type='submit'/></p>
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
select * from Auftrag as a
|
//list
|
||||||
inner join bucht as b on b.`Auftragsnr.`=a.AuftragsNr
|
select * from umfasst as u
|
||||||
inner join Kunde as k on k.`Kundenr.`=b.`Auftragsnr.`
|
inner join dienstleistung as d on d.Dientleistungsnummer=u.Dienstleistungsnummer
|
||||||
inner join `führt aus` as f on f.`Auftragsnr.`=a.AuftragsNr
|
where u.Auftragsnummer=?
|
||||||
inner join Mitarbeiter as m on m.Mitarbeiternummer=f.`Mitarbeiternr.`
|
|
||||||
|
|
||||||
|
//fest
|
||||||
|
select * from auftrag as a
|
||||||
|
inner join bucht as b on b.Auftragsnummer=a.Auftragsnummer
|
||||||
|
inner join kunde as k on k.Kundenummer=b.Kundenummer
|
||||||
|
left join `führt aus` as f on f.Auftragsnummer=a.Auftragsnummer
|
||||||
|
left join mitarbeiter as m on m.Mitarbeiternummer=f.Mitarbeiternummer
|
||||||
|
where a.Auftragsnummer=5
|
||||||
|
|||||||
Reference in New Issue
Block a user