diff --git a/templates/columns_definitions/column_comment.phtml b/templates/columns_definitions/column_comment.phtml
index 52ab5886de..6008a74e68 100644
--- a/templates/columns_definitions/column_comment.phtml
+++ b/templates/columns_definitions/column_comment.phtml
@@ -3,8 +3,8 @@
name="field_comments[= $columnNumber; ?>]"
size="12"
maxlength="= PMA_MYSQL_INT_VERSION >= 50503 ? 1024 : 255; ?>"
- value=""
+ value="= (isset($columnMeta['Field']) && is_array($comments_map) && isset($comments_map[$columnMeta['Field']])) ?
+ htmlspecialchars($comments_map[$columnMeta['Field']])
+ : ''
+ ?>"
class="textfield" />
diff --git a/templates/columns_definitions/column_definitions_form.phtml b/templates/columns_definitions/column_definitions_form.phtml
index 22a1aece13..737ddb67a0 100644
--- a/templates/columns_definitions/column_definitions_form.phtml
+++ b/templates/columns_definitions/column_definitions_form.phtml
@@ -7,35 +7,39 @@ use PMA\libraries\StorageEngine;
action="= $action; ?>"
class="= ($action == 'tbl_create.php' ? 'create_table' : 'append_fields'); ?>_form ajax lock-page">
= PMA_URL_getHiddenInputs($form_params); ?>
+
+
+
+ value="= (! empty($_REQUEST['primary_indexes'])) ?
+ htmlspecialchars($_REQUEST['primary_indexes'])
+ : '[]'
+ ?>">
+ value="= (! empty($_REQUEST['unique_indexes'])) ?
+ htmlspecialchars($_REQUEST['unique_indexes'])
+ : '[]'
+ ?>">
+ value="= (! empty($_REQUEST['indexes'])) ?
+ htmlspecialchars($_REQUEST['indexes'])
+ : '[]'
+ ?>">
+ value="= (! empty($_REQUEST['fulltext_indexes'])) ?
+ htmlspecialchars($_REQUEST['fulltext_indexes'])
+ : '[]'
+ ?>">
+ value="= (! empty($_REQUEST['spatial_indexes'])) ?
+ htmlspecialchars($_REQUEST['spatial_indexes'])
+ : '[]'
+ ?>">
@@ -46,7 +50,7 @@ use PMA\libraries\StorageEngine;
name="table"
size="40"
maxlength="64"
- value="= (isset($_REQUEST['table']) ? htmlspecialchars($_REQUEST['table']) : ''); ?>"
+ value="= (isset($_REQUEST['table']) ? htmlspecialchars($_REQUEST['table']) : '') ?>"
class="textfield" autofocus required />
diff --git a/templates/columns_definitions/column_name.phtml b/templates/columns_definitions/column_name.phtml
index aa077ec8a1..b5cc26ba5b 100644
--- a/templates/columns_definitions/column_name.phtml
+++ b/templates/columns_definitions/column_name.phtml
@@ -29,8 +29,7 @@ if (empty($title)) {
class="textfield"
title="= $title; ?>"
size="10"
- value="" />
+ value="= isset($columnMeta['Field'])? htmlspecialchars($columnMeta['Field']) : '' ?>" />
]"
id="field_= $columnNumber; ?>_= ($ci - $ci_offset); ?>"
- >
+
+ disabled="disabled"
+ >
= PMA\libraries\Util::getSupportedDatatypes(true, $type_upper); ?>
diff --git a/templates/columns_definitions/transformation_option.phtml b/templates/columns_definitions/transformation_option.phtml
index b046d12c07..598f0e6472 100644
--- a/templates/columns_definitions/transformation_option.phtml
+++ b/templates/columns_definitions/transformation_option.phtml
@@ -4,9 +4,6 @@
name="field_= $options_key; ?>[= $columnNumber; ?>]"
size="16"
class="textfield"
- value="" />
+ value="= (isset($columnMeta['Field']) && isset($mime_map[$columnMeta['Field']][$options_key])) ?
+ htmlspecialchars($mime_map[$columnMeta['Field']], [$options_key])
+ : '' ?>" />
diff --git a/templates/database/structure/show_create.phtml b/templates/database/structure/show_create.phtml
index 5dd5d1d166..c14d3467cd 100644
--- a/templates/database/structure/show_create.phtml
+++ b/templates/database/structure/show_create.phtml
@@ -12,28 +12,24 @@
}
?>
- render(
- array(
- 'db' => $db,
- 'title' => __('Tables'),
- 'raw_title' => 'Table',
- 'db_objects' => $tables
- )
- );
- ?>
+ = PMA\libraries\Template::get('database/structure/show_create_row')->render(
+ array(
+ 'db' => $db,
+ 'title' => __('Tables'),
+ 'raw_title' => 'Table',
+ 'db_objects' => $tables
+ )
+ ) ?>
- render(
+ = PMA\libraries\Template::get('database/structure/show_create_row')->render(
array(
'db' => $db,
'title' => __('Views'),
'raw_title' => 'View',
'db_objects' => $views
)
- );
- ?>
+ ) ?>
diff --git a/templates/database/structure/structure_table_row.phtml b/templates/database/structure/structure_table_row.phtml
index 409cd1ee7c..aec7e78e2e 100644
--- a/templates/database/structure/structure_table_row.phtml
+++ b/templates/database/structure/structure_table_row.phtml
@@ -1,4 +1,4 @@
- |
|
| = $empty_table; ?> |
-
= $titles['Drop']; ?>
diff --git a/templates/list/item.phtml b/templates/list/item.phtml
index 863bf20ec7..54b66edb82 100644
--- a/templates/list/item.phtml
+++ b/templates/list/item.phtml
@@ -12,38 +12,30 @@
* - title - optional string - Title of link
*/
?>
->
-
+
+ = !empty($class) ? ' class="' . $class . '"' : null ?>>
+
+
-
= !empty($url['id']) ? ' id="' . $url['id'] . '"' : null; ?>
-
- >
-
+
+ = $content ?>
+
-
+
+
+ = PMA\libraries\Util::showMySQLDocu($mysql_help_page) ?>
+
diff --git a/templates/list/unordered.phtml b/templates/list/unordered.phtml
index 32198c7ce5..9f71914154 100644
--- a/templates/list/unordered.phtml
+++ b/templates/list/unordered.phtml
@@ -9,21 +9,19 @@
* $content - mandatory string - Content to display if $item is empty
*/
?>
->
- $item);
- }
- echo PMA\libraries\Template::get('list/item')
- ->render($item);
- endforeach;
- elseif (!empty($content)) :
- echo $content;
- endif;
- ?>
-
\ No newline at end of file
+
+ = !empty($id) ? ' id="' . $id . '"' : null ?>>
+
+
+
+
+ $item) ?>
+
+ = PMA\libraries\Template::get('list/item')
+ ->render($item)
+ ?>
+
+
+ = $content ?>
+
+
diff --git a/templates/prefs_autoload.phtml b/templates/prefs_autoload.phtml
index 860bdd3d40..2308b1668c 100644
--- a/templates/prefs_autoload.phtml
+++ b/templates/prefs_autoload.phtml
@@ -4,12 +4,10 @@
-
+ ) ?>
= __('Yes') ?>
/ = __('No') ?>
diff --git a/templates/server/variables/link_template.phtml b/templates/server/variables/link_template.phtml
index 306d22434a..73b8774c7b 100644
--- a/templates/server/variables/link_template.phtml
+++ b/templates/server/variables/link_template.phtml
@@ -4,10 +4,8 @@
= \PMA\libraries\Util::getIcon('b_close.png', __('Cancel')); ?>
- 'display:none', 'id' => 'docImage')
-);
-?>
+) ?>
diff --git a/templates/server/variables/variable_row.phtml b/templates/server/variables/variable_row.phtml
index a6d7e4bfb0..064e42d37d 100644
--- a/templates/server/variables/variable_row.phtml
+++ b/templates/server/variables/variable_row.phtml
@@ -11,10 +11,9 @@
|
- ';
+ = \PMA\libraries\Util::showMySQLDocu($docLink[1], false, $docLink[2] . '_' . $docLink[0], true)
+ , htmlspecialchars(str_replace('_', ' ', $name))
+ , ''
?>
diff --git a/templates/table/chart/tbl_chart.phtml b/templates/table/chart/tbl_chart.phtml
index e00f01bbed..c01b9c0efe 100644
--- a/templates/table/chart/tbl_chart.phtml
+++ b/templates/table/chart/tbl_chart.phtml
@@ -83,19 +83,20 @@
-
-
@@ -120,10 +121,12 @@
diff --git a/templates/table/gis_visualization/gis_visualization.phtml b/templates/table/gis_visualization/gis_visualization.phtml
index 5663374444..36c358b10d 100644
--- a/templates/table/gis_visualization/gis_visualization.phtml
+++ b/templates/table/gis_visualization/gis_visualization.phtml
@@ -32,7 +32,9 @@
/>
+
+ checked="checked"
+ />
diff --git a/templates/table/index_form.phtml b/templates/table/index_form.phtml
index bf9ddf9a92..90c4ecef28 100644
--- a/templates/table/index_form.phtml
+++ b/templates/table/index_form.phtml
@@ -162,7 +162,9 @@
|| in_array($field_type, $spatial_types))): ?>
@@ -174,7 +176,10 @@
+ value="= ($index->getChoice() != 'SPATIAL') ?
+ $column->getSubPart()
+ : ''
+ ?>" />
|
@@ -202,7 +207,7 @@
} ?>
= "\n";
diff --git a/templates/table/relation/common_form.phtml b/templates/table/relation/common_form.phtml
index 4f53947c31..ef048f9bb2 100644
--- a/templates/table/relation/common_form.phtml
+++ b/templates/table/relation/common_form.phtml
@@ -8,11 +8,10 @@
| = __('Actions'); ?> |
= __('Constraint properties'); ?> |
-
+ | = __('Column') , PMA\libraries\Util::showHint(__(
+ 'Only columns with index will be displayed. You can define an'
+ . ' index below.'
+ )) ?>
|
= __('Foreign key constraint'); ?> (= $tbl_storage_engine; ?>)
diff --git a/templates/table/relation/foreign_key_row.phtml b/templates/table/relation/foreign_key_row.phtml
index 3623359cf3..f777e301a7 100644
--- a/templates/table/relation/foreign_key_row.phtml
+++ b/templates/table/relation/foreign_key_row.phtml
@@ -79,8 +79,10 @@ if ($foreign_db) {
|
diff --git a/templates/table/search/fields_table.phtml b/templates/table/search/fields_table.phtml
index 69903422c7..a5f725b74e 100644
--- a/templates/table/search/fields_table.phtml
+++ b/templates/table/search/fields_table.phtml
@@ -1,4 +1,6 @@
->
+
+ id="tableFieldsId"
+ >
= PMA\libraries\Template::get('table/search/table_header')
->render(array(
'geomColumnFlag' => $geomColumnFlag
@@ -9,7 +11,7 @@
->render(array(
'self' => $self,
'columnNames' => $columnNames
- )); ?>
+ )) ?>
= PMA\libraries\Template::get('table/search/rows_normal')
->render(array(
@@ -18,7 +20,7 @@
'columnNames' => $columnNames,
'columnTypes' => $columnTypes,
'columnCollations' => $columnCollations
- )); ?>
+ )) ?>
diff --git a/templates/table/search/input_box.phtml b/templates/table/search/input_box.phtml
index 26f4602e1e..1503472697 100644
--- a/templates/table/search/input_box.phtml
+++ b/templates/table/search/input_box.phtml
@@ -5,11 +5,11 @@ if ($_foreigners
&& PMA_searchColumnInForeigners($_foreigners, $column_name)): ?>
/>
+ href="= ('browse_foreigners.php') , PMA_URL_getCommon(array('db' => $db, 'table' => $table))
+ , ('&field=') , urlencode($column_name)
+ , ('&fieldkey=') , $column_index
+ , ('&fromsearch=1')
+ ?>">
+
= str_replace("'", "\\'", $titles['Browse']); ?>
diff --git a/templates/table/search/selection_form.phtml b/templates/table/search/selection_form.phtml
index cf8ba5c224..e33556015d 100644
--- a/templates/table/search/selection_form.phtml
+++ b/templates/table/search/selection_form.phtml
@@ -19,12 +19,13 @@
'columnNames' => $columnNames,
'columnTypes' => $columnTypes,
'columnCollations' => $columnCollations
- ));
- echo PMA\libraries\Template::get('table/search/options_zoom')
+ ))
+ ?>
+ = PMA\libraries\Template::get('table/search/options_zoom')
->render(array(
'dataLabel' => $dataLabel,
'columnNames' => $columnNames
- )); ?>
+ )) ?>
@@ -71,7 +72,9 @@
diff --git a/templates/table/search/zoom_result_form.phtml b/templates/table/search/zoom_result_form.phtml
index a6d17f2cbc..a6580f351d 100644
--- a/templates/table/search/zoom_result_form.phtml
+++ b/templates/table/search/zoom_result_form.phtml
@@ -73,8 +73,7 @@
- render(array(
+ = PMA\libraries\Template::get('table/search/input_box')->render(array(
'str' => '',
'column_type' => $_columnTypes[$column_index],
'column_id' => ($_columnTypes[$column_index]) ? 'edit_fieldID_' : 'fieldID_',
diff --git a/templates/table/structure/actions_in_table_structure.phtml b/templates/table/structure/actions_in_table_structure.phtml
index f8bff5365f..89e970f974 100644
--- a/templates/table/structure/actions_in_table_structure.phtml
+++ b/templates/table/structure/actions_in_table_structure.phtml
@@ -1,9 +1,8 @@
| |
- render(
+ = PMA\libraries\Template::get('table/structure/row_stats_table')->render(
array(
'showtable' => $showtable,
'tbl_collation' => $tbl_collation,
@@ -74,7 +73,7 @@
'avg_size' => (isset ($avg_size) ? $avg_size : ''),
'avg_unit' => (isset ($avg_unit) ? $avg_unit : '')
)
- );
+ )
?>
diff --git a/templates/table/structure/table_structure_header.phtml b/templates/table/structure/table_structure_header.phtml
index fbec6dced8..e5c41dde4d 100644
--- a/templates/table/structure/table_structure_header.phtml
+++ b/templates/table/structure/table_structure_header.phtml
@@ -2,9 +2,9 @@
|
|
# |
-
- echo __('Name'); ?> |
+ = __('Name'); ?>
= __('Type'); ?> |
= __('Collation'); ?> |
= __('Attributes'); ?> |