From f5d15946f3d02156d86f50a63fd521de746d0bea Mon Sep 17 00:00:00 2001 From: Atul Pratap Singh Date: Fri, 6 Jul 2012 00:00:12 +0530 Subject: [PATCH] Form function to display tables select list --- db_qbe.php | 59 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 34 insertions(+), 25 deletions(-) diff --git a/db_qbe.php b/db_qbe.php index efe1ab29d0..6e8d9b6823 100644 --- a/db_qbe.php +++ b/db_qbe.php @@ -454,6 +454,39 @@ function PMA_dbQbeGetTableFooters() return $html_output; } +/** + * Provides a select list of database tables + * + * @param array $table_names Names of all the tables + * + * @return HTML for table select list + */ +function PMA_dbQbeGetTablesList($table_names) +{ + $html_output = '
'; + $html_output .= '
'; + $html_output .= '' . __('Use Tables') . ''; + // Build the options list for each table name + $options = ''; + $numTableListOptions = 0; + foreach ($table_names as $key => $val) { + $options .= ''; + $numTableListOptions++; + } + $html_output .= ''; + $html_output .= '
'; + $html_output .= '
'; + $html_output .= ''; + $html_output .= '
'; + $html_output .= '
'; + return $html_output; +} + if ($cfgRelation['designerwork']) { $url = 'pmd_general.php' . PMA_generate_common_url( array_merge( @@ -720,8 +753,6 @@ for ($x = 0; $x < $col; $x++) { ?> - - -
-
- - $val) { - $options .= ' '; - $options .= '' . "\n"; - $numTableListOptions++; -} -?> - -
-
- -
-
-
%s:'), $common_functions->getDbLink($db)); ?>