Skip to content

Commit

Permalink
Replaced blind table by CSS-floating <div> in db_qbe
Browse files Browse the repository at this point in the history
  • Loading branch information
mynetx committed Mar 31, 2012
1 parent 2fddabf commit d1dd742
Showing 1 changed file with 27 additions and 30 deletions.
57 changes: 27 additions & 30 deletions db_qbe.php
Expand Up @@ -633,37 +633,36 @@ function showColumnSelectCell($columns, $column_number, $selected = '')
</table>
</fieldset>

<table>
<tr><td>
<fieldset>
<legend><?php echo __('Use Tables'); ?></legend>
<div class="floatleft">
<fieldset>
<legend><?php echo __('Use Tables'); ?></legend>
<?php
$options = '';
$numTableListOptions = 0;
foreach ($tbl_names as $key => $val) {
$options .= ' ';
$options .= ' ';
$options .= '<option value="' . htmlspecialchars($key) . '"' . $val . '>'
. str_replace(' ', '&nbsp;', htmlspecialchars($key)) . '</option>' . "\n";
$numTableListOptions++;
}
?>
<select name="TableList[]" multiple="multiple" id="listTable"
size="<?php echo ($numTableListOptions > 30) ? '15' : '7'; ?>">
<?php echo $options; ?>
</select>
</fieldset>
<fieldset class="tblFooters">
<input type="submit" name="modify" value="<?php echo __('Update Query'); ?>" />
</fieldset>
</td>
<td style="width: 20px">&nbsp;</td>
<td>
<fieldset>
<legend><?php echo sprintf(__('SQL query on database <b>%s</b>:'), PMA_getDbLink($db)); ?>
</legend>
<textarea cols="80" name="sql_query" id="textSqlquery"
rows="<?php echo ($numTableListOptions > 30) ? '15' : '7'; ?>"
dir="<?php echo $text_dir; ?>">
<select name="TableList[]" multiple="multiple" id="listTable"
size="<?php echo ($numTableListOptions > 30) ? '15' : '7'; ?>">
<?php echo $options; ?>
</select>
</fieldset>
<fieldset class="tblFooters">
<input type="submit" name="modify" value="<?php echo __('Update Query'); ?>" />
</fieldset>
</div>

<div class="floatleft">
<fieldset>
<legend><?php echo sprintf(__('SQL query on database <b>%s</b>:'), PMA_getDbLink($db)); ?>
</legend>
<textarea cols="80" name="sql_query" id="textSqlquery"
rows="<?php echo ($numTableListOptions > 30) ? '15' : '7'; ?>"
dir="<?php echo $text_dir; ?>">
<?php
// 1. SELECT
$last_select = 0;
Expand Down Expand Up @@ -949,14 +948,12 @@ function showColumnSelectCell($columns, $column_number, $selected = '')
echo 'ORDER BY ' . htmlspecialchars($qry_orderby) . "\n";
}
?>
</textarea>
</fieldset>
<fieldset class="tblFooters">
<input type="submit" name="submit_sql" value="<?php echo __('Submit Query'); ?>" />
</fieldset>
</td>
</tr>
</table>
</textarea>
</fieldset>
<fieldset class="tblFooters">
<input type="submit" name="submit_sql" value="<?php echo __('Submit Query'); ?>" />
</fieldset>
</div>
</form>
<?php
/**
Expand Down

0 comments on commit d1dd742

Please sign in to comment.