XHTML fixes

This commit is contained in:
Marc Delisle
2007-09-02 19:23:59 +00:00
parent 1aae387785
commit b3f0d21219
8 changed files with 14 additions and 14 deletions

View File

@@ -156,7 +156,7 @@ function showColumnSelectCell($columns, $column_number, $selected = '')
?>
<td align="center">
<select name="Field[<?php echo $column_number; ?>]" size="1">
<option value=""></option>
<option value="">&nbsp;</option>
<?php
foreach ($columns as $column) {
if ($column === $selected) {
@@ -213,7 +213,7 @@ for ($x = 0; $x < $col; $x++) {
?>
<td align="center">
<select style="width: <?php echo $realwidth; ?>" name="Sort[<?php echo $z; ?>]" size="1">
<option value=""></option>
<option value="">&nbsp;</option>
<option value="ASC"><?php echo $strAscending; ?></option>
<option value="DESC"><?php echo $strDescending; ?></option>
</select>
@@ -229,7 +229,7 @@ for ($x = 0; $x < $col; $x++) {
?>
<td align="center">
<select style="width: <?php echo $realwidth; ?>" name="Sort[<?php echo $z; ?>]" size="1">
<option value=""></option>
<option value="">&nbsp;</option>
<?php
echo "\n";

View File

@@ -1276,7 +1276,7 @@ function PMA_profilingCheckbox($sql_query) {
// 5.0.37 has profiling but for example, 5.1.20 does not
// (avoid doing a fetch_value for MySQL before 5.0.37)
if (PMA_MYSQL_INT_VERSION >= 50037 && PMA_DBI_fetch_value("SHOW VARIABLES LIKE 'profiling'")) {
echo '<form action="sql.php" method="post" />' . "\n";
echo '<form action="sql.php" method="post">' . "\n";
echo PMA_generate_common_hidden_inputs($GLOBALS['db'], $GLOBALS['table']);
echo '<input type="hidden" name="sql_query" value="' . $sql_query . '" />' . "\n";
echo '<input type="hidden" name="profiling_form" value="1" />' . "\n";

View File

@@ -80,7 +80,7 @@ if (!empty($cfg['UploadDir'])) {
echo "\n";
echo ' <i>' . $strOr . '</i><br/><label for="select_local_import_file">' . $strWebServerUploadDirectory . '</label>&nbsp;: ' . "\n";
echo ' <select style="margin: 5px" size="1" name="local_import_file" onchange="match_file(this.value)" id="select_local_import_file">' . "\n";
echo ' <option value=""></option>' . "\n";
echo ' <option value="">&nbsp;</option>' . "\n";
echo $files;
echo ' </select>' . "\n";
}

View File

@@ -74,7 +74,7 @@ if (PMA_MYSQL_INT_VERSION >= 40100){
if ($label) {
$return_str .= $spacer . ' <option value="">' . ($type == PMA_CSDROPDOWN_COLLATION ? $GLOBALS['strCollation'] : $GLOBALS['strCharset']) . '</option>' . "\n";
}
$return_str .= $spacer . ' <option value=""></option>' . "\n";
$return_str .= $spacer . ' <option value="">&nbsp;</option>' . "\n";
foreach ($mysql_charsets as $current_charset) {
if (!$mysql_charsets_available[$current_charset]) {
continue;

View File

@@ -972,14 +972,14 @@ function PMA_foreignDropdown($disp_row, $foreign_field, $foreign_display, $data,
}
// beginning of dropdown
$ret = '<option value=""></option>' . "\n";
$ret = '<option value="">&nbsp;</option>' . "\n";
$top_count = count($top);
if ($max == -1 || $top_count < $max) {
$ret .= implode('', $top);
if ($top_count > 0) {
$ret .= ' <option value=""></option>' . "\n";
$ret .= ' <option value=""></option>' . "\n";
$ret .= ' <option value="">&nbsp;</option>' . "\n";
$ret .= ' <option value="">&nbsp;</option>' . "\n";
}
}
$ret .= implode('', $bot);

View File

@@ -424,7 +424,7 @@ function PMA_sqlQueryFormBookmark()
echo $GLOBALS['strBookmarkQuery'] . '</legend>' . "\n";
echo '<div class="formelement">';
echo '<select name="id_bookmark">' . "\n";
echo '<option value=""></option>' . "\n";
echo '<option value="">&nbsp;</option>' . "\n";
foreach ($bookmark_list as $key => $value) {
echo '<option value="' . htmlspecialchars($key) . '">'
.htmlspecialchars($value) . '</option>' . "\n";

View File

@@ -459,12 +459,12 @@ for ($i = 0 ; $i <= $num_fields; $i++) {
if (!isset($row) || empty($row['Extra'])) {
$content_cells[$i][$ci] .= "\n";
$content_cells[$i][$ci] .= '<option value=""></option>' . "\n";
$content_cells[$i][$ci] .= '<option value="">&nbsp;</option>' . "\n";
$content_cells[$i][$ci] .= '<option value="AUTO_INCREMENT">auto_increment</option>' . "\n";
} else {
$content_cells[$i][$ci] .= "\n";
$content_cells[$i][$ci] .= '<option value="AUTO_INCREMENT">auto_increment</option>' . "\n";
$content_cells[$i][$ci] .= '<option value=""></option>' . "\n";
$content_cells[$i][$ci] .= '<option value="">&nbsp;</option>' . "\n";
}
$content_cells[$i][$ci] .= "\n" . '</select>';
@@ -527,7 +527,7 @@ for ($i = 0 ; $i <= $num_fields; $i++) {
// garvin: MIME-types
if ($cfgRelation['mimework'] && $cfg['BrowseMIME'] && $cfgRelation['commwork']) {
$content_cells[$i][$ci] = '<select id="field_' . $i . '_' . ($ci - $ci_offset) . '" size="1" name="field_mimetype[]">' . "\n";
$content_cells[$i][$ci] .= ' <option value=""></option>' . "\n";
$content_cells[$i][$ci] .= ' <option value="">&nbsp;</option>' . "\n";
if (is_array($available_mime['mimetype'])) {
foreach ($available_mime['mimetype'] AS $mimekey => $mimetype) {

View File

@@ -1037,7 +1037,7 @@ if ($insert_mode) {
echo '<input type="hidden" name="primary_key[' . $rowcount . ']" value="' . htmlspecialchars(trim($primary_key)) . '" />'. "\n";
}
}
$tmp = '<select name="insert_rows" id="insert_rows" onchange="this.form.submit();" />' . "\n";
$tmp = '<select name="insert_rows" id="insert_rows" onchange="this.form.submit();" >' . "\n";
$option_values = array(1,2,5,10,15,20,30,40);
foreach ($option_values as $value) {
$tmp .= '<option value="' . $value . '"';