For Lo�c: xhtml fixes.

This commit is contained in:
Alexander M. Turek
2002-08-08 10:46:29 +00:00
parent a388bb2532
commit 2ef066d141
4 changed files with 51 additions and 44 deletions

View File

@@ -7,7 +7,8 @@ $Source$
2002-08-08 Lo<4C>c Chapeaux <lolo@phpheaven.net> 2002-08-08 Lo<4C>c Chapeaux <lolo@phpheaven.net>
* left.php3: xhtml fixes (id name must start with a letter). * left.php3: xhtml fixes (id name must start with a letter).
* scripts/decode_bug.php3: xhtml fixes. * pdf_pages.php3, tbl_printview.php3, tbl_realtion.php3,
scripts/decode_bug.php3: xhtml fixes.
2002-08-08 Alexander M. Turek <rabus@users.sourceforge.net> 2002-08-08 Alexander M. Turek <rabus@users.sourceforge.net>
* lang/spanish-*.inc.php3: * lang/spanish-*.inc.php3:

View File

@@ -252,7 +252,7 @@ if ($cfgRelation['pdfwork']) {
echo "\n" . ' </tr>'; echo "\n" . ' </tr>';
echo "\n" . ' </table>' . "\n"; echo "\n" . ' </table>' . "\n";
echo "\n" . ' <input type="hidden" name="c_table_rows" value="' . ($i + 1) . '">'; echo "\n" . ' <input type="hidden" name="c_table_rows" value="' . ($i + 1) . '" />';
echo "\n" . ' <input type="submit" value="' . $strGo . '" />'; echo "\n" . ' <input type="submit" value="' . $strGo . '" />';
echo "\n" . '</form>' . "\n\n"; echo "\n" . '</form>' . "\n\n";
} // end if } // end if

View File

@@ -167,7 +167,7 @@ while (list($key, $table) = each($the_tables)) {
} }
} }
else { else {
$have_rel = FALSE; $have_rel = FALSE;
} }
// end if // end if
@@ -194,13 +194,13 @@ while (list($key, $table) = each($the_tables)) {
<th><?php echo ucfirst($strDefault); ?></th> <th><?php echo ucfirst($strDefault); ?></th>
<th><?php echo ucfirst($strExtra); ?></th> <th><?php echo ucfirst($strExtra); ?></th>
<?php <?php
echo "\n";
if ($have_rel) { if ($have_rel) {
echo '<th>' . ucfirst($strLinksTo) . '</th>'; echo ' <th>' . ucfirst($strLinksTo) . '</th>' . "\n";
} }
if ($cfgRelation['commwork']) { if ($cfgRelation['commwork']) {
echo '<th>' . ucfirst($strComments) . '</th>'; echo ' <th>' . ucfirst($strComments) . '</th>' . "\n";
} }
echo "\n";
?> ?>
</tr> </tr>
@@ -266,20 +266,20 @@ while (list($key, $table) = each($the_tables)) {
<td bgcolor="<?php echo $bgcolor; ?>" nowrap="nowrap"><?php if (isset($row['Default'])) echo $row['Default']; ?>&nbsp;</td> <td bgcolor="<?php echo $bgcolor; ?>" nowrap="nowrap"><?php if (isset($row['Default'])) echo $row['Default']; ?>&nbsp;</td>
<td bgcolor="<?php echo $bgcolor; ?>" nowrap="nowrap"><?php echo $row['Extra']; ?>&nbsp;</td> <td bgcolor="<?php echo $bgcolor; ?>" nowrap="nowrap"><?php echo $row['Extra']; ?>&nbsp;</td>
<?php <?php
echo "\n";
if ($have_rel) { if ($have_rel) {
echo '<td bgcolor="' . $bgcolor . '" nowrap="nowrap">'; echo ' <td bgcolor="' . $bgcolor . '" nowrap="nowrap">';
if (isset($res_rel[$field_name])) { if (isset($res_rel[$field_name])) {
echo htmlspecialchars($res_rel[$field_name]['foreign_table'] . '->' . $res_rel[$field_name]['foreign_field'] ); echo htmlspecialchars($res_rel[$field_name]['foreign_table'] . '->' . $res_rel[$field_name]['foreign_field'] );
} }
echo '&nbsp;</td>'; echo '&nbsp;</td>' . "\n";
} }
echo "\n"; if ($cfgRelation['commwork']) {
if($cfgRelation['commwork']) { echo ' <td bgcolor="' . $bgcolor . '" nowrap="nowrap">';
echo '<td bgcolor="' . $bgcolor . '" nowrap="nowrap">'; if (isset($comments[$field_name])) {
if(isset($comments[$field_name])) {
echo htmlspecialchars($comments[$field_name]); echo htmlspecialchars($comments[$field_name]);
} }
echo '&nbsp;</td>'; echo '&nbsp;</td>' . "\n";
} }
?> ?>
</tr> </tr>
@@ -317,11 +317,11 @@ while (list($key, $table) = each($the_tables)) {
echo "\n"; echo "\n";
while (list($index_no, $index_name) = each($indexes)) { while (list($index_no, $index_name) = each($indexes)) {
$cell_bgd = (($index_no % 2) ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']); $cell_bgd = (($index_no % 2) ? $cfg['BgcolorOne'] : $cfg['BgcolorTwo']);
$index_td = ' <td bgcolor="' . $cell_bgd . '" rowspan="' . count($indexes_info[$index_name]['Sequences']) . '">' . "\n"; $index_td = ' <td bgcolor="' . $cell_bgd . '" rowspan="' . count($indexes_info[$index_name]['Sequences']) . '">' . "\n";
echo ' <tr>' . "\n"; echo ' <tr>' . "\n";
echo $index_td echo $index_td
. ' ' . htmlspecialchars($index_name) . "\n" . ' ' . htmlspecialchars($index_name) . "\n"
. ' </td>' . "\n"; . ' </td>' . "\n";
if ($indexes_info[$index_name]['Comment'] == 'FULLTEXT') { if ($indexes_info[$index_name]['Comment'] == 'FULLTEXT') {
$index_type = 'FULLTEXT'; $index_type = 'FULLTEXT';
@@ -333,30 +333,30 @@ while (list($key, $table) = each($the_tables)) {
$index_type = 'INDEX'; $index_type = 'INDEX';
} }
echo $index_td echo $index_td
. ' ' . $index_type . "\n" . ' ' . $index_type . "\n"
. ' </td>' . "\n"; . ' </td>' . "\n";
echo $index_td echo $index_td
. ' ' . (isset($indexes_info[$index_name]['Cardinality']) ? $indexes_info[$index_name]['Cardinality'] : $strNone) . "\n" . ' ' . (isset($indexes_info[$index_name]['Cardinality']) ? $indexes_info[$index_name]['Cardinality'] : $strNone) . "\n"
. ' </td>' . "\n"; . ' </td>' . "\n";
while (list($row_no, $seq_index) = each($indexes_info[$index_name]['Sequences'])) { while (list($row_no, $seq_index) = each($indexes_info[$index_name]['Sequences'])) {
if ($row_no > 0) { if ($row_no > 0) {
echo ' <tr>' . "\n"; echo ' <tr>' . "\n";
} }
if (!empty($indexes_data[$index_name][$seq_index]['Sub_part'])) { if (!empty($indexes_data[$index_name][$seq_index]['Sub_part'])) {
echo ' <td bgcolor="' . $cell_bgd . '">' . "\n" echo ' <td bgcolor="' . $cell_bgd . '">' . "\n"
. ' ' . $indexes_data[$index_name][$seq_index]['Column_name'] . "\n" . ' ' . $indexes_data[$index_name][$seq_index]['Column_name'] . "\n"
. ' </td>' . "\n"; . ' </td>' . "\n";
echo ' <td align="right" bgcolor="' . $cell_bgd . '">' . "\n" echo ' <td align="right" bgcolor="' . $cell_bgd . '">' . "\n"
. ' ' . $indexes_data[$index_name][$seq_index]['Sub_part'] . "\n" . ' ' . $indexes_data[$index_name][$seq_index]['Sub_part'] . "\n"
. ' </td>' . "\n"; . ' </td>' . "\n";
echo ' </tr>' . "\n"; echo ' </tr>' . "\n";
} else { } else {
echo ' <td bgcolor="' . $cell_bgd . '" colspan="2">' . "\n" echo ' <td bgcolor="' . $cell_bgd . '" colspan="2">' . "\n"
. ' ' . $indexes_data[$index_name][$seq_index]['Column_name'] . "\n" . ' ' . $indexes_data[$index_name][$seq_index]['Column_name'] . "\n"
. ' </td>' . "\n"; . ' </td>' . "\n";
echo ' </tr>' . "\n"; echo ' </tr>' . "\n";
} }
} // end while } // end while
} // end while } // end while
@@ -425,11 +425,11 @@ while (list($key, $table) = each($the_tables)) {
if (isset($index_size)) { if (isset($index_size)) {
echo "\n"; echo "\n";
?> ?>
<tr> <tr>
<td bgcolor="<?php echo $cfg['BgcolorTwo']; ?>" style="padding-right: 10px"><?php echo ucfirst($strIndex); ?></td> <td bgcolor="<?php echo $cfg['BgcolorTwo']; ?>" style="padding-right: 10px"><?php echo ucfirst($strIndex); ?></td>
<td align="right" bgcolor="<?php echo $cfg['BgcolorTwo']; ?>" nowrap="nowrap"><?php echo $index_size; ?></td> <td align="right" bgcolor="<?php echo $cfg['BgcolorTwo']; ?>" nowrap="nowrap"><?php echo $index_size; ?></td>
<td bgcolor="<?php echo $cfg['BgcolorTwo']; ?>"><?php echo $index_unit; ?></td> <td bgcolor="<?php echo $cfg['BgcolorTwo']; ?>"><?php echo $index_unit; ?></td>
</tr> </tr>
<?php <?php
} }
if (isset($free_size)) { if (isset($free_size)) {
@@ -561,8 +561,8 @@ while (list($key, $table) = each($the_tables)) {
unset($num_rows); unset($num_rows);
unset($show_comment); unset($show_comment);
echo '<hr />' . "\n"; echo '<hr />' . "\n";
echo '</div>' . "\n";
} // end if } // end if
echo '</div>' . "\n";
} // end while } // end while

View File

@@ -265,15 +265,15 @@ if ($col_rs && mysql_num_rows($col_rs) > 0) {
echo "\n"; echo "\n";
?> ?>
<form method="post" action="tbl_relation.php3" onchange="this.form.submit();"> <form method="post" action="tbl_relation.php3">
<input type="hidden" name="lang" value="<?php echo $lang; ?>" /> <input type="hidden" name="lang" value="<?php echo $lang; ?>" />
<input type="hidden" name="server" value="<?php echo $server; ?>" /> <input type="hidden" name="server" value="<?php echo $server; ?>" />
<input type="hidden" name="db" value="<?php echo $db; ?>" /> <input type="hidden" name="db" value="<?php echo $db; ?>" />
<input type="hidden" name="table" value="<?php echo $table; ?>" /> <input type="hidden" name="table" value="<?php echo $table; ?>" />
<input type="hidden" name="submit_show" value="true" /> <input type="hidden" name="submit_show" value="true" />
<p><?php echo $strChangeDisplay; ?></P> <p><?php echo $strChangeDisplay; ?></p>
<select name="display_field"> <select name="display_field" onchange="this.form.submit();">
<?php <?php
echo "\n"; echo "\n";
mysql_data_seek($col_rs, 0); mysql_data_seek($col_rs, 0);
@@ -286,7 +286,13 @@ if ($col_rs && mysql_num_rows($col_rs) > 0) {
} // end while } // end while
?> ?>
</select> </select>
<input type="submit" value="<?php echo $strGo; ?>" /> <script type="text/javascript" language="javascript">
<!--
// Fake js to allow the use of the <noscript> tag //-->
</script>
<noscript>
<input type="submit" value="<?php echo $strGo; ?>" />
</noscript>
</form> </form>
<?php <?php
} // end if (displayworks) } // end if (displayworks)
@@ -314,7 +320,7 @@ if ($col_rs && mysql_num_rows($col_rs) > 0) {
<tr> <tr>
<th><?php echo $field; ?></th> <th><?php echo $field; ?></th>
<td> <td>
<input type="text" name="comment[<?php echo $field;?>]" value="<?php echo htmlspecialchars($comments[$field]); ?>"> <input type="text" name="comment[<?php echo $field;?>]" value="<?php echo htmlspecialchars($comments[$field]); ?>" />
</td> </td>
</tr> </tr>
<?php <?php