mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
HTML Compliance - Obsolete table attributes
width, align, valign, cellpadding, cellspacing, border, summary, bgcolor Error: The width attribute on the table element is obsolete. Use CSS instead. Error: The align attribute on the table element is obsolete. Use CSS instead. Error: The valign attribute on the table element is obsolete. Use CSS instead. Error: The cellpadding attribute on the table element is obsolete. Use CSS instead. Error: The cellspacing attribute on the table element is obsolete. Use CSS instead. Error: The border attribute on the table element is obsolete. Use CSS instead. Error: The summary attribute on the table element is obsolete. Consider describing the structure of the table in a caption element or in a figure element containing the table; or, simplify the structure of the table so that no description is needed. Error: The bgcolor attribute on the table element is obsolete. Use CSS instead.
This commit is contained in:
@@ -145,7 +145,7 @@ switch($action) {
|
||||
<form action="<?= $_SERVER['PHP_SELF']?>" method="post" name="iform" id="iform">
|
||||
<table class="table table-striped __nomb">
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext('Info'); ?></th>
|
||||
<th colspan="2" style="vertical-align:top" class="listtopic"><?=gettext('Info'); ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?=gettext("Info type"); ?></td>
|
||||
@@ -172,8 +172,8 @@ switch($action) {
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
<td style="width:22%" style="vertical-align:top"> </td>
|
||||
<td style="width:78%">
|
||||
<input type="hidden" name="action" value="info" />
|
||||
<input type="submit" name="submit" class="btn btn-primary" value="<?=gettext("View"); ?>" />
|
||||
</td>
|
||||
@@ -190,7 +190,7 @@ switch($action) {
|
||||
<form action="<?= $_SERVER['PHP_SELF']?>" method="post" name="test" id="iform">
|
||||
<table class="table table-striped __nomb">
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext('Perform Self-tests'); ?></th>
|
||||
<th colspan="2" style="vertical-align:top" class="listtopic"><?=gettext('Perform Self-tests'); ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?=gettext("Test type"); ?></td>
|
||||
@@ -217,8 +217,8 @@ switch($action) {
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
<td style="width:22%; vertical-align:top"> </td>
|
||||
<td style="width:78%">
|
||||
<input type="hidden" name="action" value="test" />
|
||||
<input type="submit" name="submit" class="btn btn-primary" value="<?=gettext("Test"); ?>" />
|
||||
</td>
|
||||
@@ -234,7 +234,7 @@ switch($action) {
|
||||
<form action="<?= $_SERVER['PHP_SELF']?>" method="post" name="logs" id="iform">
|
||||
<table class="table table-striped __nomb">
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext('View Logs'); ?></th>
|
||||
<th colspan="2" style="vertical-align:top" class="listtopic"><?=gettext('View Logs'); ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?=gettext("Log type"); ?></td>
|
||||
@@ -259,8 +259,8 @@ switch($action) {
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
<td style="width:22%; vertical-align:top"> </td>
|
||||
<td style="width:78%">
|
||||
<input type="hidden" name="action" value="logs" />
|
||||
<input type="submit" name="submit" class="btn btn-primary" value="<?=gettext("View"); ?>" />
|
||||
</td>
|
||||
@@ -276,7 +276,7 @@ switch($action) {
|
||||
<form action="<?= $_SERVER['PHP_SELF']?>" method="post" name="abort" id="iform">
|
||||
<table class="table table-striped __nomb">
|
||||
<tr>
|
||||
<th colspan="2" valign="top" class="listtopic"><?=gettext('Abort tests'); ?></th>
|
||||
<th colspan="2" style="vertical-align:top" class="listtopic"><?=gettext('Abort tests'); ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><?=gettext("Device: /dev/"); ?></td>
|
||||
@@ -292,8 +292,8 @@ switch($action) {
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="22%" valign="top"> </td>
|
||||
<td width="78%">
|
||||
<td style="width:22%; vertical-align:top"> </td>
|
||||
<td style="width:78%">
|
||||
<input type="hidden" name="action" value="logs" />
|
||||
<input type="submit" name="submit" value="<?=gettext("Abort"); ?>" class="btn btn-primary" onclick="return confirm('<?=gettext("Do you really want to abort the test?"); ?>')" />
|
||||
</td>
|
||||
|
||||
@@ -32,11 +32,11 @@ require_once("widgets/include/smart_status.inc");
|
||||
|
||||
?>
|
||||
|
||||
<table class="table table-striped" width="100%" border="0" cellpadding="0" cellspacing="0" summary="smart status">
|
||||
<table class="table table-striped" style="width:100%; border:0; cellpadding:0; cellspacing:0">
|
||||
<tr>
|
||||
<td class="widgetsubheader" align="center"><b><?php echo gettext("Drive") ?></b></td>
|
||||
<td class="widgetsubheader" align="center"><b><?php echo gettext("Ident") ?></b></td>
|
||||
<td class="widgetsubheader" align="center"><b><?php echo gettext("SMART Status") ?></b></td>
|
||||
<td class="widgetsubheader" style="text-align:center"><b><?php echo gettext("Drive") ?></b></td>
|
||||
<td class="widgetsubheader" style="text-align:center"><b><?php echo gettext("Ident") ?></b></td>
|
||||
<td class="widgetsubheader" style="text-align:center"><b><?php echo gettext("SMART Status") ?></b></td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
@@ -69,8 +69,8 @@ if (count($devs) > 0) {
|
||||
?>
|
||||
<tr>
|
||||
<td class="listlr"><?php echo $dev; ?></td>
|
||||
<td class="listr" align="center"><?php echo $dev_ident; ?></td>
|
||||
<td class="listr" align="center"><span style="background-color:<?php echo $color; ?>"> <?php echo $dev_state_translated ?> </span></td>
|
||||
<td class="listr" style="text-align:center"><?php echo $dev_ident; ?></td>
|
||||
<td class="listr" style="text-align:center"><span style="background-color:<?php echo $color; ?>"> <?php echo $dev_state_translated ?> </span></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user