applied patch #443230 (Display order in tbl_select.php3)
This commit is contained in:
@@ -13,6 +13,8 @@ $Source$
|
|||||||
* lib.inc.php3:
|
* lib.inc.php3:
|
||||||
- line 947: fix a bug when primary key values contain slashes.
|
- line 947: fix a bug when primary key values contain slashes.
|
||||||
- merged patch #443393.
|
- merged patch #443393.
|
||||||
|
* tbl_select.php3, lang/*: applied patch #443230 (Display order in
|
||||||
|
tbl_select.php3).
|
||||||
|
|
||||||
2001-08-08 Steve Alberty <alberty@neptunlabs.de>
|
2001-08-08 Steve Alberty <alberty@neptunlabs.de>
|
||||||
* tbl_replace.php3: remove warning in a new row if a 'set' field is not
|
* tbl_replace.php3: remove warning in a new row if a 'set' field is not
|
||||||
|
@@ -281,6 +281,7 @@ $strGzip = '"gzipped"'; //to translate
|
|||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
$strAffectedRows = 'Affected rows:';
|
$strAffectedRows = 'Affected rows:';
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
$strNbRecords = 'no. of records';
|
$strNbRecords = 'no. of records';
|
||||||
|
@@ -281,6 +281,7 @@ $strGzip = '"gzipped"'; //to translate
|
|||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
$strAffectedRows = 'Affected rows:';
|
$strAffectedRows = 'Affected rows:';
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
$strNbRecords = 'no. of records';
|
$strNbRecords = 'no. of records';
|
||||||
|
@@ -279,6 +279,7 @@ $strYes = 'Si';
|
|||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
$strAffectedRows = 'Affected rows:';
|
$strAffectedRows = 'Affected rows:';
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
$strQueryOnDb = 'SQL-query on database ';
|
$strQueryOnDb = 'SQL-query on database ';
|
||||||
|
@@ -281,6 +281,7 @@ $strYes = '
|
|||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
$strAffectedRows = ' Rows affected: '; //to translate
|
$strAffectedRows = ' Rows affected: '; //to translate
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
$strQueryOnDb = ' SQL-query on database '; //to translate
|
$strQueryOnDb = ' SQL-query on database '; //to translate
|
||||||
|
@@ -281,6 +281,7 @@ $strGzip = '"gzipped"'; //to translate
|
|||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
$strAffectedRows = 'Affected rows:';
|
$strAffectedRows = 'Affected rows:';
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
$strNbRecords = 'no. of records';
|
$strNbRecords = 'no. of records';
|
||||||
|
@@ -280,6 +280,7 @@ $strYes = 'Ano';
|
|||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
$strAffectedRows = 'Affected rows:';
|
$strAffectedRows = 'Affected rows:';
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
$strQueryOnDb = 'SQL-query on database ';
|
$strQueryOnDb = 'SQL-query on database ';
|
||||||
|
@@ -280,6 +280,7 @@ $strYes = 'Ano';
|
|||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
$strAffectedRows = 'Affected rows:';
|
$strAffectedRows = 'Affected rows:';
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
$strQueryOnDb = 'SQL-query on database ';
|
$strQueryOnDb = 'SQL-query on database ';
|
||||||
|
@@ -280,6 +280,7 @@ $strYes = 'Ja';
|
|||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
$strAffectedRows = 'Affected rows:';
|
$strAffectedRows = 'Affected rows:';
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
$strQueryOnDb = 'SQL-query on database ';
|
$strQueryOnDb = 'SQL-query on database ';
|
||||||
|
@@ -281,6 +281,7 @@ $strGzip = '"gzipped"'; //to translate
|
|||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
$strAffectedRows = 'Affected rows:';
|
$strAffectedRows = 'Affected rows:';
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
$strNbRecords = 'no. of records';
|
$strNbRecords = 'no. of records';
|
||||||
|
@@ -81,6 +81,7 @@ $strDelPassMessage = 'You have deleted the password for';
|
|||||||
$strDescending = 'Desending';
|
$strDescending = 'Desending';
|
||||||
$strDisableMagicQuotes = '<b>Warning:</b> You have enabled magic_quotes_gpc in your PHP configuration. This version of PhpMyAdmin cannot work properly with it. Please have a look at the configuration section of the PHP manual for information on how to disable it.';
|
$strDisableMagicQuotes = '<b>Warning:</b> You have enabled magic_quotes_gpc in your PHP configuration. This version of PhpMyAdmin cannot work properly with it. Please have a look at the configuration section of the PHP manual for information on how to disable it.';
|
||||||
$strDisplay = 'Display';
|
$strDisplay = 'Display';
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strDoAQuery = 'Do a "query by example" (wildcard: "%")';
|
$strDoAQuery = 'Do a "query by example" (wildcard: "%")';
|
||||||
$strDocu = 'Documentation';
|
$strDocu = 'Documentation';
|
||||||
$strDoYouReally = 'Do you really want to ';
|
$strDoYouReally = 'Do you really want to ';
|
||||||
|
@@ -81,6 +81,7 @@ $strDelPassMessage = 'Vous avez effac
|
|||||||
$strDescending = 'D<>croissant';
|
$strDescending = 'D<>croissant';
|
||||||
$strDisableMagicQuotes = '<b>Attention:</b> Vous avez positionn<6E> magic_quotes_gpc dans la configuration de PHP. Cette version de PhpMyAdmin ne peut fonctionner correctement avec. Veuillez vous r<>f<EFBFBD>rer au paragraphe traitant de la configration dans la documentation de PHP pour positionner cette variable <20> off.';
|
$strDisableMagicQuotes = '<b>Attention:</b> Vous avez positionn<6E> magic_quotes_gpc dans la configuration de PHP. Cette version de PhpMyAdmin ne peut fonctionner correctement avec. Veuillez vous r<>f<EFBFBD>rer au paragraphe traitant de la configration dans la documentation de PHP pour positionner cette variable <20> off.';
|
||||||
$strDisplay = 'Montrer';
|
$strDisplay = 'Montrer';
|
||||||
|
$strDisplayOrder = 'Ordre d\'affichage :';
|
||||||
$strDoAQuery = 'Recherche par valeur (passepartout: "%")';
|
$strDoAQuery = 'Recherche par valeur (passepartout: "%")';
|
||||||
$strDocu = 'Documentation';
|
$strDocu = 'Documentation';
|
||||||
$strDoYouReally = 'Voulez-vous vraiment effectuer ';
|
$strDoYouReally = 'Voulez-vous vraiment effectuer ';
|
||||||
|
@@ -283,5 +283,6 @@ $strWrongUser = 'Falscher Benutzername/Passwort. Zugriff verweigert.';
|
|||||||
$strYes = 'Ja';
|
$strYes = 'Ja';
|
||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
?>
|
?>
|
||||||
|
@@ -281,6 +281,7 @@ $strYes = ' Si ';
|
|||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
$strAffectedRows = 'Affected rows:';
|
$strAffectedRows = 'Affected rows:';
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
$strQueryOnDb = 'SQL-query on database ';
|
$strQueryOnDb = 'SQL-query on database ';
|
||||||
|
@@ -281,6 +281,7 @@ $strGzip = '"gzipped"'; //to translate
|
|||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
$strAffectedRows = 'Affected rows:';
|
$strAffectedRows = 'Affected rows:';
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
$strNbRecords = 'no. of records';
|
$strNbRecords = 'no. of records';
|
||||||
|
@@ -281,6 +281,7 @@ $strGzip = '"gzipped"'; //to translate
|
|||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
$strAffectedRows = 'Affected rows:';
|
$strAffectedRows = 'Affected rows:';
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
$strNbRecords = 'no. of records';
|
$strNbRecords = 'no. of records';
|
||||||
|
@@ -281,6 +281,7 @@ $strGzip = '"gzipped"'; //to translate
|
|||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
$strAffectedRows = 'Affected rows:';
|
$strAffectedRows = 'Affected rows:';
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
$strNbRecords = 'no. of records';
|
$strNbRecords = 'no. of records';
|
||||||
|
@@ -280,6 +280,7 @@ $strYes = 'Tak';
|
|||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
$strAffectedRows = 'Affected rows:';
|
$strAffectedRows = 'Affected rows:';
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
$strQueryOnDb = 'SQL-query on database ';
|
$strQueryOnDb = 'SQL-query on database ';
|
||||||
|
@@ -281,6 +281,7 @@ $strGzip = '"gzipped"'; //to translate
|
|||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
$strAffectedRows = 'Affected rows:';
|
$strAffectedRows = 'Affected rows:';
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
$strNbRecords = 'no. of records';
|
$strNbRecords = 'no. of records';
|
||||||
|
@@ -281,6 +281,7 @@ $strGzip = '"gzipped"'; //to translate
|
|||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
$strAffectedRows = 'Affected rows:';
|
$strAffectedRows = 'Affected rows:';
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
$strNbRecords = 'no. of records';
|
$strNbRecords = 'no. of records';
|
||||||
|
@@ -281,6 +281,7 @@ $strGzip = '"gzipped"'; //to translate
|
|||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
$strAffectedRows = 'Affected rows:';
|
$strAffectedRows = 'Affected rows:';
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
$strNbRecords = 'no. of records';
|
$strNbRecords = 'no. of records';
|
||||||
|
@@ -280,6 +280,7 @@ $strYes = '
|
|||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
$strAffectedRows = ' Rows affected: '; //to translate
|
$strAffectedRows = ' Rows affected: '; //to translate
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
$strQueryOnDb = ' SQL-query on database '; //to translate
|
$strQueryOnDb = ' SQL-query on database '; //to translate
|
||||||
|
@@ -283,6 +283,7 @@ $strGzip = '"gzipped"'; //to translate
|
|||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
$strAffectedRows = 'Rows affected: ';
|
$strAffectedRows = 'Rows affected: ';
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
$strOffSet = 'offset';
|
$strOffSet = 'offset';
|
||||||
|
@@ -281,6 +281,7 @@ $strGzip = '"gzipped"'; //to translate
|
|||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
$strAffectedRows = 'Affected rows:';
|
$strAffectedRows = 'Affected rows:';
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
$strNbRecords = 'no. of records';
|
$strNbRecords = 'no. of records';
|
||||||
|
@@ -281,6 +281,7 @@ $strGzip = '"gzipped"'; //to translate
|
|||||||
|
|
||||||
// To translate
|
// To translate
|
||||||
$strAffectedRows = 'Affected rows:';
|
$strAffectedRows = 'Affected rows:';
|
||||||
|
$strDisplayOrder = 'Display order:';
|
||||||
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
$strFieldsEmpty = ' The field count is empty! '; //to translate
|
||||||
$strFormEmpty = 'Missing value in the form !';
|
$strFormEmpty = 'Missing value in the form !';
|
||||||
$strNbRecords = 'no. of records';
|
$strNbRecords = 'no. of records';
|
||||||
|
@@ -53,14 +53,11 @@ if (!isset($param) || $param[0] == '') {
|
|||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<div style="margin-bottom: 10px">
|
|
||||||
<?php echo $strAddSearchConditions; ?><br />
|
<?php echo $strAddSearchConditions; ?><br />
|
||||||
<input type="text" name="where" />
|
<input type="text" name="where" />
|
||||||
<?php print show_docu("manual_Reference.html#Functions") . "\n"; ?>
|
<?php print show_docu("manual_Reference.html#Functions") . "\n"; ?>
|
||||||
</div>
|
<br /><br />
|
||||||
</li>
|
<?php echo '<i>' . $strOr . '</i> ' . $strDoAQuery; ?><br />
|
||||||
<li>
|
|
||||||
<?php echo $strDoAQuery; ?><br />
|
|
||||||
<table border="<?php echo $cfgBorder; ?>">
|
<table border="<?php echo $cfgBorder; ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<th><?php echo $strField; ?></th>
|
<th><?php echo $strField; ?></th>
|
||||||
@@ -88,6 +85,24 @@ if (!isset($param) || $param[0] == '') {
|
|||||||
?>
|
?>
|
||||||
</table><br />
|
</table><br />
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<?php echo $strDisplayOrder; ?><br />
|
||||||
|
<select name="orderField" style="vertical-align: middle">
|
||||||
|
<option value="--nil--"></option>
|
||||||
|
<?php
|
||||||
|
echo "\n";
|
||||||
|
for ($i = 0; $i < mysql_num_fields($result); $i++) {
|
||||||
|
$field = mysql_field_name($result, $i);
|
||||||
|
echo ' ';
|
||||||
|
echo '<option value="' . urlencode($field) . '">' . htmlspecialchars($field) . '</option>' . "\n";
|
||||||
|
} // end for
|
||||||
|
?>
|
||||||
|
</select>
|
||||||
|
<input type="radio" name="order" value="ASC" checked="checked" />
|
||||||
|
<?php echo $strAscending; ?>
|
||||||
|
<input type="radio" name="order" value="DESC" />
|
||||||
|
<?php echo $strDescending; ?><br /><br />
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
@@ -151,6 +166,9 @@ else {
|
|||||||
} // end if
|
} // end if
|
||||||
} // end for
|
} // end for
|
||||||
} // end if
|
} // end if
|
||||||
|
if ($orderField != '--nil--') {
|
||||||
|
$sql_query .= ' ORDER BY ' . backquote(urldecode($orderField)) . ' ' . $order;
|
||||||
|
} // end if
|
||||||
|
|
||||||
$url_query = 'lang=' . $lang
|
$url_query = 'lang=' . $lang
|
||||||
. '&server=' . urlencode($server)
|
. '&server=' . urlencode($server)
|
||||||
|
Reference in New Issue
Block a user