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 @@ -
- -
- - - - - - - 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 @@ +
+ {{ Url_getHiddenInputs(url_params) }} +
+ + {% trans 'Select binary log to view' %} + + {% set full_size = 0 %} + + {{ binary_logs|length }} + {% trans 'Files' %}, + {% if full_size > 0 %} + {{ Util_formatByteDown(full_size)|join(' ') }} + {% endif %} +
+
+ +
+
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 @@ - -render(array( - 'script_name' => $scriptName, - 'form_id' => $formId, - 'db' => $db, - 'table' => $table, - 'goto' => $goto - )) ?> - - - - - -
-
- - - - render(array( - 'column_names' => $columnNames, - 'column_types' => $columnTypes, - 'sql_types' => $GLOBALS['PMA_Types'], - )); ?> -
-
- - - -
- - id="inputFormSubmitId" - - value="" /> -
- -
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 %} + +{% 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 %} + +{% 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 %} +
+
+ + {% trans 'Find and replace' %} + + {% 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 #} +
+ +
+ +