Your IP : 3.148.145.219
<?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;
/* columns_definitions/column_definitions_form.twig */
class __TwigTemplate_e5dfff06f91a106740e53146df36fa61 extends 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 method=\"post\" action=\"";
echo twig_escape_filter($this->env, ($context["action"] ?? null), "html", null, true);
echo "\" class=\"";
// line 2
echo (((($context["action"] ?? null) == PhpMyAdmin\Url::getFromRoute("/table/create"))) ? ("create_table") : ("append_fields"));
// line 3
echo "_form ajax lock-page\">
";
// line 4
echo PhpMyAdmin\Url::getHiddenInputs(($context["form_params"] ?? null));
echo "
";
// line 6
echo " ";
// line 7
echo " ";
// line 8
echo " <input type=\"hidden\" name=\"primary_indexes\" value=\"";
// line 9
(( !twig_test_empty(($context["primary_indexes"] ?? null))) ? (print (twig_escape_filter($this->env, ($context["primary_indexes"] ?? null), "html", null, true))) : (print ("[]")));
echo "\">
<input type=\"hidden\" name=\"unique_indexes\" value=\"";
// line 11
(( !twig_test_empty(($context["unique_indexes"] ?? null))) ? (print (twig_escape_filter($this->env, ($context["unique_indexes"] ?? null), "html", null, true))) : (print ("[]")));
echo "\">
<input type=\"hidden\" name=\"indexes\" value=\"";
// line 13
(( !twig_test_empty(($context["indexes"] ?? null))) ? (print (twig_escape_filter($this->env, ($context["indexes"] ?? null), "html", null, true))) : (print ("[]")));
echo "\">
<input type=\"hidden\" name=\"fulltext_indexes\" value=\"";
// line 15
(( !twig_test_empty(($context["fulltext_indexes"] ?? null))) ? (print (twig_escape_filter($this->env, ($context["fulltext_indexes"] ?? null), "html", null, true))) : (print ("[]")));
echo "\">
<input type=\"hidden\" name=\"spatial_indexes\" value=\"";
// line 17
(( !twig_test_empty(($context["spatial_indexes"] ?? null))) ? (print (twig_escape_filter($this->env, ($context["spatial_indexes"] ?? null), "html", null, true))) : (print ("[]")));
echo "\">
";
// line 19
if ((($context["action"] ?? null) == PhpMyAdmin\Url::getFromRoute("/table/create"))) {
// line 20
echo " <div id=\"table_name_col_no_outer\">
<table id=\"table_name_col_no\" class=\"table table-borderless tdblock\">
<tr class=\"align-middle float-start\">
<td>";
echo _gettext("Table name");
// line 23
echo ":
<input type=\"text\"
name=\"table\"
size=\"40\"
maxlength=\"64\"
value=\"";
// line 28
((array_key_exists("table", $context)) ? (print (twig_escape_filter($this->env, ($context["table"] ?? null), "html", null, true))) : (print ("")));
echo "\"
class=\"textfield\" autofocus required>
</td>
<td>
";
echo _gettext("Add");
// line 33
echo " <input type=\"number\"
id=\"added_fields\"
name=\"added_fields\"
size=\"2\"
value=\"1\"
min=\"1\"
onfocus=\"this.select()\">
";
echo _gettext("column(s)");
// line 41
echo " <input class=\"btn btn-secondary\" type=\"button\"
name=\"submit_num_fields\"
value=\"";
echo _gettext("Go");
// line 43
echo "\">
</td>
</tr>
</table>
</div>
";
}
// line 49
echo " ";
if (twig_test_iterable(($context["content_cells"] ?? null))) {
// line 50
echo " ";
$this->loadTemplate("columns_definitions/table_fields_definitions.twig", "columns_definitions/column_definitions_form.twig", 50)->display(twig_to_array(["is_backup" => // line 51
($context["is_backup"] ?? null), "fields_meta" => // line 52
($context["fields_meta"] ?? null), "relation_parameters" => // line 53
($context["relation_parameters"] ?? null), "content_cells" => // line 54
($context["content_cells"] ?? null), "change_column" => // line 55
($context["change_column"] ?? null), "is_virtual_columns_supported" => // line 56
($context["is_virtual_columns_supported"] ?? null), "server_version" => // line 57
($context["server_version"] ?? null), "browse_mime" => // line 58
($context["browse_mime"] ?? null), "supports_stored_keyword" => // line 59
($context["supports_stored_keyword"] ?? null), "max_rows" => // line 60
($context["max_rows"] ?? null), "char_editing" => // line 61
($context["char_editing"] ?? null), "attribute_types" => // line 62
($context["attribute_types"] ?? null), "privs_available" => // line 63
($context["privs_available"] ?? null), "max_length" => // line 64
($context["max_length"] ?? null), "charsets" => // line 65
($context["charsets"] ?? null)]));
// line 67
echo " ";
}
// line 68
echo " ";
if ((($context["action"] ?? null) == PhpMyAdmin\Url::getFromRoute("/table/create"))) {
// line 69
echo " <div class=\"responsivetable\">
<table class=\"table table-borderless w-auto align-middle mb-0\">
<tr class=\"align-top\">
<th>";
echo _gettext("Table comments:");
// line 72
echo "</th>
<td width=\"25\"> </td>
<th>";
echo _gettext("Collation:");
// line 74
echo "</th>
<td width=\"25\"> </td>
<th>
";
echo _gettext("Storage Engine:");
// line 78
echo " ";
echo PhpMyAdmin\Html\MySQLDocumentation::show("Storage_engines");
echo "
</th>
<td width=\"25\"> </td>
<th id=\"storage-engine-connection\">
";
echo _gettext("Connection:");
// line 83
echo " ";
echo PhpMyAdmin\Html\MySQLDocumentation::show("federated-create-connection");
echo "
</th>
</tr>
<tr>
<td>
<input type=\"text\"
name=\"comment\"
size=\"40\"
maxlength=\"60\"
value=\"";
// line 92
((array_key_exists("comment", $context)) ? (print (twig_escape_filter($this->env, ($context["comment"] ?? null), "html", null, true))) : (print ("")));
echo "\"
class=\"textfield\">
</td>
<td width=\"25\"> </td>
<td>
<select lang=\"en\" dir=\"ltr\" name=\"tbl_collation\">
<option value=\"\"></option>
";
// line 99
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["charsets"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["charset"]) {
// line 100
echo " <optgroup label=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["charset"], "name", [], "any", false, false, false, 100), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["charset"], "description", [], "any", false, false, false, 100), "html", null, true);
echo "\">
";
// line 101
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["charset"], "collations", [], "any", false, false, false, 101));
foreach ($context['_seq'] as $context["_key"] => $context["collation"]) {
// line 102
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["collation"], "name", [], "any", false, false, false, 102), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["collation"], "description", [], "any", false, false, false, 102), "html", null, true);
echo "\"";
// line 103
echo (((twig_get_attribute($this->env, $this->source, $context["collation"], "name", [], "any", false, false, false, 103) == ($context["tbl_collation"] ?? null))) ? (" selected") : (""));
echo ">";
// line 104
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["collation"], "name", [], "any", false, false, false, 104), "html", null, true);
// line 105
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 107
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 109
echo " </select>
</td>
<td width=\"25\"> </td>
<td>
<select class=\"form-select\" name=\"tbl_storage_engine\" aria-label=\"";
echo _gettext("Storage engine");
// line 113
echo "\">
";
// line 114
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["storage_engines"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["engine"]) {
// line 115
echo " <option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["engine"], "name", [], "any", false, false, false, 115), "html", null, true);
echo "\"";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["engine"], "comment", [], "any", false, false, false, 115))) {
echo " title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["engine"], "comment", [], "any", false, false, false, 115), "html", null, true);
echo "\"";
}
// line 116
echo ((((twig_lower_filter($this->env, twig_get_attribute($this->env, $this->source, $context["engine"], "name", [], "any", false, false, false, 116)) == twig_lower_filter($this->env, ($context["tbl_storage_engine"] ?? null))) || (twig_test_empty(($context["tbl_storage_engine"] ?? null)) && twig_get_attribute($this->env, $this->source, $context["engine"], "is_default", [], "any", false, false, false, 116)))) ? (" selected") : (""));
echo ">";
// line 117
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["engine"], "name", [], "any", false, false, false, 117), "html", null, true);
// line 118
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['engine'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 120
echo " </select>
</td>
<td width=\"25\"> </td>
<td>
<input type=\"text\"
name=\"connection\"
size=\"40\"
value=\"";
// line 127
((array_key_exists("connection", $context)) ? (print (twig_escape_filter($this->env, ($context["connection"] ?? null), "html", null, true))) : (print ("")));
echo "\"
placeholder=\"scheme://user_name[:password]@host_name[:port_num]/db_name/tbl_name\"
class=\"textfield\"
required=\"required\">
</td>
</tr>
";
// line 133
if (($context["have_partitioning"] ?? null)) {
// line 134
echo " <tr class=\"align-top\">
<th colspan=\"5\">
";
echo _gettext("PARTITION definition:");
// line 137
echo " ";
echo PhpMyAdmin\Html\MySQLDocumentation::show("Partitioning");
echo "
</th>
</tr>
<tr>
<td colspan=\"5\">
";
// line 142
$this->loadTemplate("columns_definitions/partitions.twig", "columns_definitions/column_definitions_form.twig", 142)->display(twig_to_array(["partition_details" => // line 143
($context["partition_details"] ?? null), "storage_engines" => // line 144
($context["storage_engines"] ?? null)]));
// line 146
echo " </td>
</tr>
";
}
// line 149
echo " </table>
</div>
";
}
// line 152
echo " <fieldset class=\"pma-fieldset tblFooters\">
";
// line 153
if (((($context["action"] ?? null) == PhpMyAdmin\Url::getFromRoute("/table/add-field")) || (($context["action"] ?? null) == PhpMyAdmin\Url::getFromRoute("/table/structure/save")))) {
// line 154
echo " <input type=\"checkbox\" name=\"online_transaction\" value=\"ONLINE_TRANSACTION_ENABLED\" />";
echo _pgettext("Online transaction part of the SQL DDL for InnoDB", "Online transaction");
echo PhpMyAdmin\Html\MySQLDocumentation::show("innodb-online-ddl");
echo "
";
}
// line 156
echo " <input class=\"btn btn-secondary preview_sql\" type=\"button\"
value=\"";
echo _gettext("Preview SQL");
// line 157
echo "\">
<input class=\"btn btn-primary\" type=\"submit\"
name=\"do_save_data\"
value=\"";
echo _gettext("Save");
// line 160
echo "\">
</fieldset>
<div id=\"properties_message\"></div>
";
// line 163
if (($context["is_integers_length_restricted"] ?? null)) {
// line 164
echo " <div class=\"alert alert-primary\" id=\"length_not_allowed\" role=\"alert\">
";
// line 165
echo PhpMyAdmin\Html\Generator::getImage("s_notice");
echo "
";
echo _gettext("The column width of integer types is ignored in your MySQL version unless defining a TINYINT(1) column");
// line 167
echo " ";
echo PhpMyAdmin\Html\MySQLDocumentation::show("", false, "https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-19.html");
echo "
</div>
";
}
// line 170
echo "</form>
<div class=\"modal fade\" id=\"previewSqlModal\" tabindex=\"-1\" aria-labelledby=\"previewSqlModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog\">
<div class=\"modal-content\">
<div class=\"modal-header\">
<h5 class=\"modal-title\" id=\"previewSqlModalLabel\">";
echo _gettext("Loading");
// line 175
echo "</h5>
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"";
echo _gettext("Close");
// line 176
echo "\"></button>
</div>
<div class=\"modal-body\">
</div>
<div class=\"modal-footer\">
<button type=\"button\" class=\"btn btn-secondary\" id=\"previewSQLCloseButton\" data-bs-dismiss=\"modal\">";
echo _gettext("Close");
// line 181
echo "</button>
</div>
</div>
</div>
</div>
";
// line 188
echo twig_include($this->env, $context, "modals/enum_set_editor.twig");
echo "
";
}
public function getTemplateName()
{
return "columns_definitions/column_definitions_form.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 394 => 188, 386 => 181, 378 => 176, 374 => 175, 366 => 170, 359 => 167, 354 => 165, 351 => 164, 349 => 163, 344 => 160, 338 => 157, 334 => 156, 327 => 154, 325 => 153, 322 => 152, 317 => 149, 312 => 146, 310 => 144, 309 => 143, 308 => 142, 299 => 137, 294 => 134, 292 => 133, 283 => 127, 274 => 120, 267 => 118, 265 => 117, 262 => 116, 253 => 115, 249 => 114, 246 => 113, 239 => 109, 232 => 107, 225 => 105, 223 => 104, 220 => 103, 214 => 102, 210 => 101, 203 => 100, 199 => 99, 189 => 92, 176 => 83, 167 => 78, 161 => 74, 156 => 72, 150 => 69, 147 => 68, 144 => 67, 142 => 65, 141 => 64, 140 => 63, 139 => 62, 138 => 61, 137 => 60, 136 => 59, 135 => 58, 134 => 57, 133 => 56, 132 => 55, 131 => 54, 130 => 53, 129 => 52, 128 => 51, 126 => 50, 123 => 49, 115 => 43, 110 => 41, 100 => 33, 92 => 28, 85 => 23, 79 => 20, 77 => 19, 72 => 17, 68 => 15, 64 => 13, 60 => 11, 56 => 9, 54 => 8, 52 => 7, 50 => 6, 46 => 4, 43 => 3, 41 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "columns_definitions/column_definitions_form.twig", "/usr/local/cpanel/base/3rdparty/phpMyAdmin/templates/columns_definitions/column_definitions_form.twig");
}
}