Only show fieldlist, when $table is set.

This commit is contained in:
Garvin Hicking
2003-02-28 19:06:04 +00:00
parent 6003d9e95d
commit 0e6fc61922
2 changed files with 15 additions and 10 deletions

View File

@@ -25,7 +25,7 @@ $Source$
- Made the textarea smaller (*1.25 instead of *2) for the window only. - Made the textarea smaller (*1.25 instead of *2) for the window only.
- Fixed a bug when you changed from a table to a database on the left frame and the - Fixed a bug when you changed from a table to a database on the left frame and the
query window still wants to show the previous table. query window still wants to show the previous table.
* tbl_query_box.php3: Only show fieldlist, when $table is set.
* translators.html: Adjusted to same topmenu as Documentation.html. * translators.html: Adjusted to same topmenu as Documentation.html.
With the new 'Transformations' item the bar was too large to fit With the new 'Transformations' item the bar was too large to fit
on standard 800x600 browser windows. on standard 800x600 browser windows.

View File

@@ -97,7 +97,9 @@ if (!isset($is_inside_querywindow) ||
<!-- Query box and bookmark support --> <!-- Query box and bookmark support -->
<li> <li>
<a name="querybox"></a> <a name="querybox"></a>
<?php echo sprintf($strRunSQLQuery, htmlspecialchars($db)) . $queryframe_db_list . ' ' . PMA_showMySQLDocu('Reference', 'SELECT') . '&nbsp;&nbsp;&nbsp;' . $strFields . ':' . "\n"; ?> <?php echo sprintf($strRunSQLQuery, htmlspecialchars($db)) . $queryframe_db_list . ' ' . PMA_showMySQLDocu('Reference', 'SELECT'); ?>
<?php if (isset($table) && $table > 0) { ?>
&nbsp;&nbsp;&nbsp;<?php echo $strFields; ?>:
<select name="dummy" size="1"> <select name="dummy" size="1">
<?php <?php
echo "\n"; echo "\n";
@@ -108,6 +110,9 @@ if (!isset($is_inside_querywindow) ||
?> ?>
</select> </select>
<input type="button" name="insert" value="<?php echo($strInsert); ?>" onclick="sqlform.sql_query.value = sqlform.sql_query.value + sqlform.dummy.value" /> <input type="button" name="insert" value="<?php echo($strInsert); ?>" onclick="sqlform.sql_query.value = sqlform.sql_query.value + sqlform.dummy.value" />
<?php
}
?>
<br /> <br />
<div style="margin-bottom: 5px"> <div style="margin-bottom: 5px">
<textarea name="sql_query" rows="<?php echo $cfg['TextareaRows']; ?>" cols="<?php echo (isset($is_inside_querywindow) && $is_inside_querywindow == TRUE ? ceil($cfg['TextareaCols'] * 1.25) : $cfg['TextareaCols'] * 2); ?>" wrap="virtual" dir="<?php echo $text_dir; ?>"<?php echo $auto_sel; ?>> <textarea name="sql_query" rows="<?php echo $cfg['TextareaRows']; ?>" cols="<?php echo (isset($is_inside_querywindow) && $is_inside_querywindow == TRUE ? ceil($cfg['TextareaCols'] * 1.25) : $cfg['TextareaCols'] * 2); ?>" wrap="virtual" dir="<?php echo $text_dir; ?>"<?php echo $auto_sel; ?>>