merged one part of the feature #465550 - faster use of keyboard with javascript

This commit is contained in:
Loïc Chapeaux
2001-12-09 22:49:43 +00:00
parent 99b1532c15
commit d369f419c1
5 changed files with 17 additions and 14 deletions

View File

@@ -18,6 +18,9 @@ $Source$
add new authentication modes;
- started merging patch #463127 - Cookie based authentication, thanks to
Piotr Roszatycki <d3xter at users.sourceforge.net> and Dan Wilson.
* db_details.php3; tbl_indexes.php3; tbl_properties.php3;
libraries/display_tbl.lib.php3: merged one part of the feature
#465550 - faster use of keyboard with javascript.
2001-12-08 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* libraries/left.js, lines 234-240: fixed a js bug with empty databases.

View File

@@ -471,7 +471,7 @@ if ($num_tables > 0) {
<input type="hidden" name="prev_sql_query" value="<?php echo ((!empty($query_to_display)) ? urlencode($query_to_display) : ''); ?>" />
<?php echo sprintf($strRunSQLQuery, $db) . ' ' . PMA_showDocu('manual_Reference.html#SELECT'); ?>&nbsp;:<br />
<div style="margin-bottom: 5px">
<textarea name="sql_query" cols="<?php echo $cfgTextareaCols; ?>" rows="<?php echo $cfgTextareaRows; ?>" wrap="virtual">
<textarea name="sql_query" cols="<?php echo $cfgTextareaCols; ?>" rows="<?php echo $cfgTextareaRows; ?>" wrap="virtual" onfocus="this.select()">
<?php echo ((!empty($query_to_display)) ? htmlspecialchars($query_to_display) : ''); ?>
</textarea><br />
<input type="checkbox" name="show_query" value="y" checked="checked" />&nbsp;

View File

@@ -261,9 +261,9 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
<input type="hidden" name="goto" value="<?php echo $goto; ?>" />
<input type="hidden" name="dontlimitchars" value="<?php echo $dontlimitchars; ?>" />
<input type="submit" name="navig" value="<?php echo $GLOBALS['strShow']; ?>&nbsp;:" />
<input type="text" name="session_max_rows" size="3" value="<?php echo (($session_max_rows != 'all') ? $session_max_rows : $GLOBALS['cfgMaxRows']); ?>" />
<input type="text" name="session_max_rows" size="3" value="<?php echo (($session_max_rows != 'all') ? $session_max_rows : $GLOBALS['cfgMaxRows']); ?>" onfocus="this.select()" />
<?php echo $GLOBALS['strRowsFrom'] . "\n"; ?>
<input type="text" name="pos" size="3" value="<?php echo (($pos_next >= $unlim_num_rows) ? 0 : $pos_next); ?>" />
<input type="text" name="pos" size="3" value="<?php echo (($pos_next >= $unlim_num_rows) ? 0 : $pos_next); ?>" onfocus="this.select()" />
</form>
</td>
<td>

View File

@@ -307,7 +307,7 @@ else if (!defined('PMA_IDX_INCLUDED')
<tr>
<td><?php echo $strIndexName; ?>&nbsp;</td>
<td>
<input type="text" name="index" value="<?php echo htmlspecialchars($index); ?>" />
<input type="text" name="index" value="<?php echo htmlspecialchars($index); ?>" onfocus="this.select()" />
&nbsp;<?php echo $strPrimaryKeyWarning . "\n"; ?>
</td>
</tr>
@@ -375,7 +375,7 @@ else if (!defined('PMA_IDX_INCLUDED')
</select>
</td>
<td bgcolor="<?php echo $bgcolor; ?>">
<input type="text" size="5" name="sub_part[]"<?php echo $sub_part; ?> />
<input type="text" size="5" name="sub_part[]"<?php echo $sub_part; ?> onfocus="this.select()" />
</td>
</tr>
<?php
@@ -396,7 +396,7 @@ else if (!defined('PMA_IDX_INCLUDED')
echo ' <input type="hidden" name="idx_num_fields" value="' . $idx_num_fields . '" />' . "\n";
}
echo ' <hr /><br />' . "\n";
echo ' ' . sprintf($strAddToIndex, '<input type="text" name="added_fields" size="4" value="1" />') . "\n";
echo ' ' . sprintf($strAddToIndex, '<input type="text" name="added_fields" size="4" value="1" onfocus="this.select()" />') . "\n";
echo ' &nbsp;<input type="submit" name="add_fields" value="' . $strGo . '" onclick="return checkFormElementInRange(this.form, \'added_fields\', 1)" />' . "\n";
} else {

View File

@@ -705,7 +705,7 @@ echo "\n";
<input type="hidden" name="prev_sql_query" value="<?php echo ((!empty($query_to_display)) ? urlencode($query_to_display) : ''); ?>" />
<?php echo sprintf($strRunSQLQuery, htmlspecialchars($db)) . ' ' . PMA_showDocu('manual_Reference.html#SELECT'); ?>&nbsp;:<br />
<div style="margin-bottom: 5px">
<textarea name="sql_query" rows="<?php echo $cfgTextareaRows; ?>" cols="<?php echo $cfgTextareaCols; ?>" wrap="virtual">
<textarea name="sql_query" rows="<?php echo $cfgTextareaRows; ?>" cols="<?php echo $cfgTextareaCols; ?>" wrap="virtual" onfocus="this.select()">
<?php echo ((!empty($query_to_display)) ? htmlspecialchars($query_to_display) : 'SELECT * FROM ' . PMA_backquote($table) . ' WHERE 1'); ?>
</textarea><br />
<input type="checkbox" name="show_query" value="y" checked="checked" />&nbsp;
@@ -758,7 +758,7 @@ if ($cfgBookmark['db'] && $cfgBookmark['table']) {
<input type="hidden" name="db" value="<?php echo $db; ?>" />
<input type="hidden" name="table" value="<?php echo $table; ?>" />
<?php echo $strAddNewField; ?>&nbsp;:
<input name="num_fields" size="2" maxlength="2" value="1" style="vertical-align: middle" />
<input type="text" name="num_fields" size="2" maxlength="2" value="1" style="vertical-align: middle" onfocus="this.select()" />
<select name="after_field" style="vertical-align: middle">
<option value="--end--"><?php echo $strAtEndOfTable; ?></option>
<option value="--first--"><?php echo $strAtBeginningOfTable; ?></option>
@@ -892,9 +892,9 @@ echo "\n";
<tr>
<td colspan="2">
&nbsp;<?php echo $strStartingRecord; ?>&nbsp;
<input type="text" name="limit_from" value="0" size="5" style="vertical-align: middle" />
<input type="text" name="limit_from" value="0" size="5" style="vertical-align: middle" onfocus="this.select()" />
&nbsp;--&nbsp;<?php echo $strNbRecords; ?>&nbsp;
<input type="text" name="limit_to" size="5" value="<?php echo PMA_countRecords($db, $table, TRUE); ?>" style="vertical-align: middle" />
<input type="text" name="limit_to" size="5" value="<?php echo PMA_countRecords($db, $table, TRUE); ?>" style="vertical-align: middle" onfocus="this.select()" />
</td>
</tr>
<tr>
@@ -917,7 +917,7 @@ echo "\n";
<input type="hidden" name="table" value="<?php echo $table; ?>" />
<input type="hidden" name="reload" value="1" />
<?php echo $strRenameTable; ?>&nbsp;:
<input type="text" size="20" name="new_name" value="<?php echo htmlspecialchars($table); ?>" />&nbsp;
<input type="text" size="20" name="new_name" value="<?php echo htmlspecialchars($table); ?>" onfocus="this.select()" />&nbsp;
<input type="submit" value="<?php echo $strGo; ?>" />
</form>
</div>
@@ -958,7 +958,7 @@ for ($i = 0; $i < $num_dbs; $i++) {
?>
</select>
&nbsp;<b>.</b>&nbsp;
<input type="text" size="20" name="new_name" value="<?php echo $table; ?>" />
<input type="text" size="20" name="new_name" value="<?php echo $table; ?>" onfocus="this.select()" />
</td>
</tr>
<tr>
@@ -1000,7 +1000,7 @@ for ($i = 0; $i < $num_dbs; $i++) {
?>
</select>
&nbsp;<b>.</b>&nbsp;
<input type="text" size="20" name="new_name" />
<input type="text" size="20" name="new_name" onfocus="this.select()" />
</td>
</tr>
<tr>
@@ -1101,7 +1101,7 @@ if (PMA_MYSQL_INT_VERSION >= 32322) {
<input type="hidden" name="table" value="<?php echo $table; ?>" />
<?php echo $strTableComments; ?>&nbsp;:&nbsp;
<input type="hidden" name="prev_comment" value="<?php echo urlencode($show_comment); ?>" />&nbsp;
<input type="text" name="comment" maxlength="60" size="30" value="<?php echo str_replace('"', '&quot;', $show_comment); ?>" style="vertical-align: middle" />&nbsp;
<input type="text" name="comment" maxlength="60" size="30" value="<?php echo str_replace('"', '&quot;', $show_comment); ?>" style="vertical-align: middle" onfocus="this.select()" />&nbsp;
<input type="submit" name="submitcomment" value="<?php echo $strGo; ?>" style="vertical-align: middle" />
</form>
</li>