cosmetic changes

This commit is contained in:
Loïc Chapeaux
2001-10-16 09:27:34 +00:00
parent 7af2dd6532
commit ce268e86db

View File

@@ -526,24 +526,30 @@ function grant_operations($grants)
<?php echo $GLOBALS['strColumn']; ?>&nbsp;:&nbsp; <?php echo $GLOBALS['strColumn']; ?>&nbsp;:&nbsp;
</td> </td>
<td> <td>
<select name="colgrant[]" multiple="multiple" onchange="anycolumn[1].checked = true">
<?php <?php
echo "\n"; echo "\n";
if (!isset($dbgrant) || !isset($tablegrant)) { if (!isset($dbgrant) || !isset($tablegrant)) {
echo ' '; echo ' ' . '<select name="colgrant[]">' . "\n";
echo '<option></option>' . "\n"; echo ' ' . '<option></option>' . "\n";
echo ' ' . '</select>' . "\n";
} }
if (isset($dbgrant) && isset($tablegrant)) { else {
$result = mysql_query('SHOW COLUMNS FROM ' . backquote($dbgrant) . '.' . backquote($tablegrant)); $result = mysql_query('SHOW COLUMNS FROM ' . backquote($dbgrant) . '.' . backquote($tablegrant));
if (@mysql_num_rows($result)) { if (@mysql_num_rows($result)) {
echo ' '
. '<select name="colgrant[]" multiple="multiple" onchange="anycolumn[1].checked = true">' . "\n";
while ($row = mysql_fetch_row($result)) { while ($row = mysql_fetch_row($result)) {
echo ' '; echo ' ';
echo '<option value="' . str_replace('"', '&quot;', $row[0]) . '">' . $row[0] . '</option>' . "\n"; echo '<option value="' . str_replace('"', '&quot;', $row[0]) . '">' . $row[0] . '</option>' . "\n";
} // end while } // end while
} // end if } else {
} // end if echo ' ' . '<select name="colgrant[]">' . "\n";
echo ' ' . '<option></option>' . "\n";
} // end if... else...
echo ' '
. '</select>' . "\n";
} // end if... else
?> ?>
</select>
</td> </td>
<td></td> <td></td>
</tr> </tr>