XHTML fixes
This commit is contained in:
@@ -156,7 +156,7 @@ function showColumnSelectCell($columns, $column_number, $selected = '')
|
|||||||
?>
|
?>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<select name="Field[<?php echo $column_number; ?>]" size="1">
|
<select name="Field[<?php echo $column_number; ?>]" size="1">
|
||||||
<option value=""></option>
|
<option value=""> </option>
|
||||||
<?php
|
<?php
|
||||||
foreach ($columns as $column) {
|
foreach ($columns as $column) {
|
||||||
if ($column === $selected) {
|
if ($column === $selected) {
|
||||||
@@ -213,7 +213,7 @@ for ($x = 0; $x < $col; $x++) {
|
|||||||
?>
|
?>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<select style="width: <?php echo $realwidth; ?>" name="Sort[<?php echo $z; ?>]" size="1">
|
<select style="width: <?php echo $realwidth; ?>" name="Sort[<?php echo $z; ?>]" size="1">
|
||||||
<option value=""></option>
|
<option value=""> </option>
|
||||||
<option value="ASC"><?php echo $strAscending; ?></option>
|
<option value="ASC"><?php echo $strAscending; ?></option>
|
||||||
<option value="DESC"><?php echo $strDescending; ?></option>
|
<option value="DESC"><?php echo $strDescending; ?></option>
|
||||||
</select>
|
</select>
|
||||||
@@ -229,7 +229,7 @@ for ($x = 0; $x < $col; $x++) {
|
|||||||
?>
|
?>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
<select style="width: <?php echo $realwidth; ?>" name="Sort[<?php echo $z; ?>]" size="1">
|
<select style="width: <?php echo $realwidth; ?>" name="Sort[<?php echo $z; ?>]" size="1">
|
||||||
<option value=""></option>
|
<option value=""> </option>
|
||||||
<?php
|
<?php
|
||||||
echo "\n";
|
echo "\n";
|
||||||
|
|
||||||
|
@@ -1276,7 +1276,7 @@ function PMA_profilingCheckbox($sql_query) {
|
|||||||
// 5.0.37 has profiling but for example, 5.1.20 does not
|
// 5.0.37 has profiling but for example, 5.1.20 does not
|
||||||
// (avoid doing a fetch_value for MySQL before 5.0.37)
|
// (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'")) {
|
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 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="sql_query" value="' . $sql_query . '" />' . "\n";
|
||||||
echo '<input type="hidden" name="profiling_form" value="1" />' . "\n";
|
echo '<input type="hidden" name="profiling_form" value="1" />' . "\n";
|
||||||
|
@@ -80,7 +80,7 @@ if (!empty($cfg['UploadDir'])) {
|
|||||||
echo "\n";
|
echo "\n";
|
||||||
echo ' <i>' . $strOr . '</i><br/><label for="select_local_import_file">' . $strWebServerUploadDirectory . '</label> : ' . "\n";
|
echo ' <i>' . $strOr . '</i><br/><label for="select_local_import_file">' . $strWebServerUploadDirectory . '</label> : ' . "\n";
|
||||||
echo ' <select style="margin: 5px" size="1" name="local_import_file" onchange="match_file(this.value)" id="select_local_import_file">' . "\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=""> </option>' . "\n";
|
||||||
echo $files;
|
echo $files;
|
||||||
echo ' </select>' . "\n";
|
echo ' </select>' . "\n";
|
||||||
}
|
}
|
||||||
|
@@ -74,7 +74,7 @@ if (PMA_MYSQL_INT_VERSION >= 40100){
|
|||||||
if ($label) {
|
if ($label) {
|
||||||
$return_str .= $spacer . ' <option value="">' . ($type == PMA_CSDROPDOWN_COLLATION ? $GLOBALS['strCollation'] : $GLOBALS['strCharset']) . '</option>' . "\n";
|
$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=""> </option>' . "\n";
|
||||||
foreach ($mysql_charsets as $current_charset) {
|
foreach ($mysql_charsets as $current_charset) {
|
||||||
if (!$mysql_charsets_available[$current_charset]) {
|
if (!$mysql_charsets_available[$current_charset]) {
|
||||||
continue;
|
continue;
|
||||||
|
@@ -972,14 +972,14 @@ function PMA_foreignDropdown($disp_row, $foreign_field, $foreign_display, $data,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// beginning of dropdown
|
// beginning of dropdown
|
||||||
$ret = '<option value=""></option>' . "\n";
|
$ret = '<option value=""> </option>' . "\n";
|
||||||
|
|
||||||
$top_count = count($top);
|
$top_count = count($top);
|
||||||
if ($max == -1 || $top_count < $max) {
|
if ($max == -1 || $top_count < $max) {
|
||||||
$ret .= implode('', $top);
|
$ret .= implode('', $top);
|
||||||
if ($top_count > 0) {
|
if ($top_count > 0) {
|
||||||
$ret .= ' <option value=""></option>' . "\n";
|
$ret .= ' <option value=""> </option>' . "\n";
|
||||||
$ret .= ' <option value=""></option>' . "\n";
|
$ret .= ' <option value=""> </option>' . "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$ret .= implode('', $bot);
|
$ret .= implode('', $bot);
|
||||||
|
@@ -424,7 +424,7 @@ function PMA_sqlQueryFormBookmark()
|
|||||||
echo $GLOBALS['strBookmarkQuery'] . '</legend>' . "\n";
|
echo $GLOBALS['strBookmarkQuery'] . '</legend>' . "\n";
|
||||||
echo '<div class="formelement">';
|
echo '<div class="formelement">';
|
||||||
echo '<select name="id_bookmark">' . "\n";
|
echo '<select name="id_bookmark">' . "\n";
|
||||||
echo '<option value=""></option>' . "\n";
|
echo '<option value=""> </option>' . "\n";
|
||||||
foreach ($bookmark_list as $key => $value) {
|
foreach ($bookmark_list as $key => $value) {
|
||||||
echo '<option value="' . htmlspecialchars($key) . '">'
|
echo '<option value="' . htmlspecialchars($key) . '">'
|
||||||
.htmlspecialchars($value) . '</option>' . "\n";
|
.htmlspecialchars($value) . '</option>' . "\n";
|
||||||
|
@@ -459,12 +459,12 @@ for ($i = 0 ; $i <= $num_fields; $i++) {
|
|||||||
|
|
||||||
if (!isset($row) || empty($row['Extra'])) {
|
if (!isset($row) || empty($row['Extra'])) {
|
||||||
$content_cells[$i][$ci] .= "\n";
|
$content_cells[$i][$ci] .= "\n";
|
||||||
$content_cells[$i][$ci] .= '<option value=""></option>' . "\n";
|
$content_cells[$i][$ci] .= '<option value=""> </option>' . "\n";
|
||||||
$content_cells[$i][$ci] .= '<option value="AUTO_INCREMENT">auto_increment</option>' . "\n";
|
$content_cells[$i][$ci] .= '<option value="AUTO_INCREMENT">auto_increment</option>' . "\n";
|
||||||
} else {
|
} else {
|
||||||
$content_cells[$i][$ci] .= "\n";
|
$content_cells[$i][$ci] .= "\n";
|
||||||
$content_cells[$i][$ci] .= '<option value="AUTO_INCREMENT">auto_increment</option>' . "\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=""> </option>' . "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$content_cells[$i][$ci] .= "\n" . '</select>';
|
$content_cells[$i][$ci] .= "\n" . '</select>';
|
||||||
@@ -527,7 +527,7 @@ for ($i = 0 ; $i <= $num_fields; $i++) {
|
|||||||
// garvin: MIME-types
|
// garvin: MIME-types
|
||||||
if ($cfgRelation['mimework'] && $cfg['BrowseMIME'] && $cfgRelation['commwork']) {
|
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] = '<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=""> </option>' . "\n";
|
||||||
|
|
||||||
if (is_array($available_mime['mimetype'])) {
|
if (is_array($available_mime['mimetype'])) {
|
||||||
foreach ($available_mime['mimetype'] AS $mimekey => $mimetype) {
|
foreach ($available_mime['mimetype'] AS $mimekey => $mimetype) {
|
||||||
|
@@ -1037,7 +1037,7 @@ if ($insert_mode) {
|
|||||||
echo '<input type="hidden" name="primary_key[' . $rowcount . ']" value="' . htmlspecialchars(trim($primary_key)) . '" />'. "\n";
|
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);
|
$option_values = array(1,2,5,10,15,20,30,40);
|
||||||
foreach ($option_values as $value) {
|
foreach ($option_values as $value) {
|
||||||
$tmp .= '<option value="' . $value . '"';
|
$tmp .= '<option value="' . $value . '"';
|
||||||
|
Reference in New Issue
Block a user