';
-
- if (!empty($num_tables)) {
echo "\n";
- ?>
-
+ echo '
-
';
- $table_list .= '';
- $table_list .= '
';
- $table_list .= ' ';
- $table_list .= '' . $table . '
' . "\n";
+ $table = mysql_tablename($tables, $j);
+ $table_list .= '
' . "\n";
+ $table_list .= ' ' . "\n";
+ $table_list .= '
' . "\n";
+ $table_list .= ' ' . $table . '
' . "\n";
} // end for $j (tables list)
if (!$table_list) {
- $table_list = "no tables in this db";
+ $table_list = ' ' . $strNoTablesFound . "\n";
}
- $selected = ' SELECTED';
+ $selected = ' selected="selected"';
- $db_name = '';
- $db_name .= '' . $db . ' ';
- $db_name .= '(' . $num_tables_disp . ')';
-
- } else {
- $selected = '';
+ $db_name = '
' . "\n";
+ $db_name .= ' ' . $db . ' ' . "\n";
+ $db_name .= ' (' . $num_tables_disp . ')' . "\n";
+
+ } else {
+ $selected = '';
+ }
+
+ if (!empty($num_tables)) {
+ echo '
' . "\n";
+ } else {
+ echo '
' . "\n";
+ }
+
+ } // if lightMode
+
+ } // end for $i (db list)
+
+ if ($lightMode) {
+ echo ' ' . "\n";
+ echo '
' . "\n";
+ echo ' ' . "\n";
+
+ if (!$table_list) {
+ $table_list = ' ' . $strSelectADb . "\n";
}
- if (!empty($num_tables)) {
- echo "
";
- } else {
- echo "
";
- }
+ // Displays the current database name and the list of tables it
+ // contains
+ echo $db_name;
+ echo '
' . "\n";
+ echo $table_list;
+ echo '
' . "\n";
-} // if lightMode
-
- } // end for $t (db list)
-
-
-if ($lightMode) {
-
- echo '';
- echo '
';
- echo '';
-
- if (!$table_list) {
- $table_list = "please select a db";
- }
-
- echo "$db_name
$table_list
";
-
-} else { // lightmode == 0
-
- ?>
+ } else { // lightmode == 0
+ ?>
- 1)