diff --git a/libraries/classes/Controllers/Server/ServerBinlogController.php b/libraries/classes/Controllers/Server/ServerBinlogController.php
index 6d68e80c93..5ca17cb480 100644
--- a/libraries/classes/Controllers/Server/ServerBinlogController.php
+++ b/libraries/classes/Controllers/Server/ServerBinlogController.php
@@ -85,6 +85,7 @@ class ServerBinlogController extends Controller
array(
'url_params' => $url_params,
'binary_logs' => $this->binary_logs,
+ 'log' => $_REQUEST['log'],
)
);
}
diff --git a/libraries/classes/Controllers/Table/TableSearchController.php b/libraries/classes/Controllers/Table/TableSearchController.php
index ba3b09a93e..5b01feb490 100644
--- a/libraries/classes/Controllers/Table/TableSearchController.php
+++ b/libraries/classes/Controllers/Table/TableSearchController.php
@@ -498,21 +498,25 @@ class TableSearchController extends TableController
)
);
$this->response->addHTML(
- Template::get('table/search/selection_form')
- ->render(
- array(
- 'searchType' => $this->_searchType,
- 'db' => $this->db,
- 'table' => $this->table,
- 'goto' => $goto,
- 'self' => $this,
- 'geomColumnFlag' => $this->_geomColumnFlag,
- 'columnNames' => $this->_columnNames,
- 'columnTypes' => $this->_columnTypes,
- 'columnCollations' => $this->_columnCollations,
- 'dataLabel' => $dataLabel,
- )
- )
+ Template::get('table/search/selection_form')->render(array(
+ 'search_type' => $this->_searchType,
+ 'db' => $this->db,
+ 'table' => $this->table,
+ 'goto' => $goto,
+ 'self' => $this,
+ 'geom_column_flag' => $this->_geomColumnFlag,
+ 'column_names' => $this->_columnNames,
+ 'column_types' => $this->_columnTypes,
+ 'column_collations' => $this->_columnCollations,
+ 'data_label' => $dataLabel,
+ 'criteria_column_names' => $_POST['criteriaColumnNames'],
+ 'criteria_column_types' => $_POST['criteriaColumnTypes'],
+ 'sql_types' => $GLOBALS['PMA_Types'],
+ 'max_rows' => intval($GLOBALS['cfg']['MaxRows']),
+ 'max_plot_limit' => ((! empty($_POST['maxPlotLimit']))
+ ? intval($_POST['maxPlotLimit'])
+ : intval($GLOBALS['cfg']['maxRowPlotLimit'])),
+ ))
);
}
diff --git a/templates/server/binlog/log_selector.phtml b/templates/server/binlog/log_selector.phtml
deleted file mode 100644
index 1f97e12a28..0000000000
--- a/templates/server/binlog/log_selector.phtml
+++ /dev/null
@@ -1,27 +0,0 @@
-
diff --git a/templates/server/binlog/log_selector.twig b/templates/server/binlog/log_selector.twig
new file mode 100644
index 0000000000..f9fa558440
--- /dev/null
+++ b/templates/server/binlog/log_selector.twig
@@ -0,0 +1,29 @@
+
diff --git a/templates/table/search/selection_form.phtml b/templates/table/search/selection_form.phtml
deleted file mode 100644
index b2e95861bd..0000000000
--- a/templates/table/search/selection_form.phtml
+++ /dev/null
@@ -1,111 +0,0 @@
-
-= PhpMyAdmin\Template::get('table/search/form_tag')
- ->render(array(
- 'script_name' => $scriptName,
- 'form_id' => $formId,
- 'db' => $db,
- 'table' => $table,
- 'goto' => $goto
- )) ?>
-
-
-
-
-
-
-
- = PhpMyAdmin\Template::get('table/search/fields_table')
- ->render(array(
- 'self' => $self,
- 'search_type' => $searchType,
- 'geom_column_flag' => $geomColumnFlag,
- 'column_names' => $columnNames,
- 'column_types' => $columnTypes,
- 'column_collations' => $columnCollations,
- 'criteria_column_names' => $_POST['criteriaColumnNames'],
- 'criteria_column_types' => $_POST['criteriaColumnTypes'],
- )); ?>
-
-
-
-
-
- = PhpMyAdmin\Template::get('table/search/options')
- ->render(array(
- 'column_names' => $columnNames,
- 'max_rows' => intval($GLOBALS['cfg']['MaxRows'])
- )); ?>
-
-
-
-
-
- = PhpMyAdmin\Template::get('table/search/search_and_replace')
- ->render(array(
- 'column_names' => $columnNames,
- 'column_types' => $columnTypes,
- 'sql_types' => $GLOBALS['PMA_Types'],
- )); ?>
-
-
-
-
-
-
-
-
diff --git a/templates/table/search/selection_form.twig b/templates/table/search/selection_form.twig
new file mode 100644
index 0000000000..64d99dc827
--- /dev/null
+++ b/templates/table/search/selection_form.twig
@@ -0,0 +1,102 @@
+{% if search_type == 'zoom' %}
+ {% include 'table/search/form_tag.twig' with {
+ 'script_name': 'tbl_zoom_select.php',
+ 'form_id': 'zoom_search_form',
+ 'db': db,
+ 'table': table,
+ 'goto': goto
+ } only %}
+
+
+
+ {% include 'table/search/fields_table.twig' with {
+ 'self': self,
+ 'search_type': search_type,
+ 'geom_column_flag': geom_column_flag,
+ 'column_names': column_names,
+ 'column_types': column_types,
+ 'column_collations': column_collations,
+ 'criteria_column_names': criteria_column_names,
+ 'criteria_column_types': criteria_column_types
+ } only %}
+ {% include 'table/search/options_zoom.twig' with {
+ 'data_label': data_label,
+ 'column_names': column_names,
+ 'max_plot_limit': max_plot_limit
+ } only %}
+
+
+{% elseif search_type == 'normal' %}
+ {% include 'table/search/form_tag.twig' with {
+ 'script_name': 'tbl_select.php',
+ 'form_id': 'tbl_search_form',
+ 'db': db,
+ 'table': table,
+ 'goto': goto
+ } only %}
+
+
+
+
+ {% include 'table/search/fields_table.twig' with {
+ 'self': self,
+ 'search_type': search_type,
+ 'geom_column_flag': geom_column_flag,
+ 'column_names': column_names,
+ 'column_types': column_types,
+ 'column_collations': column_collations,
+ 'criteria_column_names': criteria_column_names,
+ 'criteria_column_types': criteria_column_types
+ } only %}
+
+
+
+
+ {% include 'table/search/options.twig' with {
+ 'column_names': column_names,
+ 'max_rows': max_rows
+ } only %}
+
+{% elseif search_type == 'replace' %}
+ {% include 'table/search/form_tag.twig' with {
+ 'script_name': 'tbl_find_replace.php',
+ 'form_id': 'find_replace_form',
+ 'db': db,
+ 'table': table,
+ 'goto': goto
+ } only %}
+
+
+
+ {% include 'table/search/search_and_replace.twig' with {
+ 'column_names': column_names,
+ 'column_types': column_types,
+ 'sql_types': sql_types
+ } only %}
+
+
+{% else %}
+ {% include 'table/search/form_tag.twig' with {
+ 'script_name': '',
+ 'form_id': '',
+ 'db': db,
+ 'table': table,
+ 'goto': goto
+ } only %}
+{% endif %}
+
+{# Displays selection form's footer elements #}
+
+
+