This commit is contained in:
Marc Delisle
2002-09-23 16:02:38 +00:00
parent a4cd759845
commit a1f45b7b78
3 changed files with 24 additions and 23 deletions

View File

@@ -5,8 +5,8 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2002-09-22 Lo<4C>c Chapeaux <lolo@phpheaven.net> 2002-09-23 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* libraries/sqlparser.lib.php3: coding standards * libraries/display_tbl.lib.php3, tbl_change.php3: coding standards
2002-09-23 Michal Cihar <nijel@users.sourceforge.net> 2002-09-23 Michal Cihar <nijel@users.sourceforge.net>
* libraries/sqlparser.lib.php3: fix for #613102 (ALTER TABLE:missing * libraries/sqlparser.lib.php3: fix for #613102 (ALTER TABLE:missing
@@ -14,6 +14,7 @@ $Source$
2002-09-22 Lo<4C>c Chapeaux <lolo@phpheaven.net> 2002-09-22 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* tbl_relation.php3: fix fox #611519 (slash in comment) * tbl_relation.php3: fix fox #611519 (slash in comment)
* libraries/sqlparser.lib.php3: coding standards
2002-09-21 Alexander M. Turek <rabus@users.sourceforge.net> 2002-09-21 Alexander M. Turek <rabus@users.sourceforge.net>
* lang/german-*.inc.php3: Updates. * lang/german-*.inc.php3: Updates.

View File

@@ -719,25 +719,25 @@ if (!defined('PMA_DISPLAY_TBL_LIB_INCLUDED')){
{ {
if (strlen($url) <= 2047) { if (strlen($url) <= 2047) {
$onclick_url = (empty($js_conf) ? '' : ' onclick="return confirmLink(this, \'' . $js_conf . '\')"'); $onclick_url = (empty($js_conf) ? '' : ' onclick="return confirmLink(this, \'' . $js_conf . '\')"');
$linkOrButton = ' <a href="' . $url . '"' . $onclick_url . '>' . "\n" $link_or_button = ' <a href="' . $url . '"' . $onclick_url . '>' . "\n"
. ' ' . $message . '</a>' . "\n"; . ' ' . $message . '</a>' . "\n";
} }
else { else {
$edit_url_parts = parse_url($url); $edit_url_parts = parse_url($url);
$query_parts = explode('&', $edit_url_parts['query']); $query_parts = explode('&', $edit_url_parts['query']);
$linkOrButton = ' <form action="' $link_or_button = ' <form action="'
. $edit_url_parts['path'] . $edit_url_parts['path']
. '" method="post">' . "\n"; . '" method="post">' . "\n";
reset ($query_parts); reset ($query_parts);
while (list(, $query_pair) = each ($query_parts)) { while (list(, $query_pair) = each($query_parts)) {
list($eachvar, $eachval) = explode('=', $query_pair); list($eachvar, $eachval) = explode('=', $query_pair);
$linkOrButton .= ' <input type="hidden" name="' . str_replace('amp;', '', $eachvar) . '" value="' . urldecode($eachval) . '" />' . "\n"; $link_or_button .= ' <input type="hidden" name="' . str_replace('amp;', '', $eachvar) . '" value="' . urldecode($eachval) . '" />' . "\n";
} // end while } // end while
$linkOrButton .= ' <input type="submit" value="' $link_or_button .= ' <input type="submit" value="'
. $message . '" />' . "\n" . '</form>' . "\n"; . $message . '" />' . "\n" . '</form>' . "\n";
} // end if... else... } // end if... else...
return $linkOrButton; return $link_or_button;
} // end of the 'PMA_linkOrButton()' function } // end of the 'PMA_linkOrButton()' function

View File

@@ -223,7 +223,7 @@ for ($i = 0; $i < $fields_cnt; $i++) {
// lem9: but do not put here the current datetime if there is a default // lem9: but do not put here the current datetime if there is a default
// value (the real default value will be set in the // value (the real default value will be set in the
// Default value logic below) // Default value logic below)
if (($row_table_def['Type'] == 'datetime') if ($row_table_def['Type'] == 'datetime'
&& (!isset($row_table_def['Default']))) { && (!isset($row_table_def['Default']))) {
// INSERT case // INSERT case
if ($insert_mode) { if ($insert_mode) {
@@ -434,7 +434,7 @@ for ($i = 0; $i < $fields_cnt; $i++) {
<select name="field_<?php echo md5($field); ?>[]" <?php echo $chg_evt_handler; ?>="return unNullify('<?php echo urlencode($field); ?>')" tabindex="<?php echo $i+1; ?>"> <select name="field_<?php echo md5($field); ?>[]" <?php echo $chg_evt_handler; ?>="return unNullify('<?php echo urlencode($field); ?>')" tabindex="<?php echo $i+1; ?>">
<option value=""></option> <option value=""></option>
<?php <?php
echo "\n";
while ($relrow = @PMA_mysql_fetch_array($disp)) { while ($relrow = @PMA_mysql_fetch_array($disp)) {
$key = $relrow[$foreign_field]; $key = $relrow[$foreign_field];
$value = (($foreign_display != FALSE) ? '&nbsp;-&nbsp;' . htmlspecialchars($relrow[$foreign_display]) : ''); $value = (($foreign_display != FALSE) ? '&nbsp;-&nbsp;' . htmlspecialchars($relrow[$foreign_display]) : '');