little changes
This commit is contained in:
parent
a889a55738
commit
ed3de852ce
@ -27,7 +27,7 @@
|
|||||||
$cfgPaths = glob($fullpath . '/*.cfg');
|
$cfgPaths = glob($fullpath . '/*.cfg');
|
||||||
if (count($cfgPaths)) {
|
if (count($cfgPaths)) {
|
||||||
$str .= "<ul>\n";
|
$str .= "<ul>\n";
|
||||||
foreach ( as $conf) {
|
foreach ($cfgPaths as $conf) {
|
||||||
$str .= "<li><a href='vlans.php?switch=" . str_replace($basedir.'/', "", $conf) . "'>" . basename($conf) . "</a></li>\n";
|
$str .= "<li><a href='vlans.php?switch=" . str_replace($basedir.'/', "", $conf) . "'>" . basename($conf) . "</a></li>\n";
|
||||||
}
|
}
|
||||||
$str .= "</ul>\n";
|
$str .= "</ul>\n";
|
||||||
|
@ -29,7 +29,7 @@ main > table {
|
|||||||
}
|
}
|
||||||
.access,
|
.access,
|
||||||
.pvid {
|
.pvid {
|
||||||
background-color: hsl(var(--pvid) 100% 60%);
|
background-color: hsl(calc(67*var(--pvid)) 100% 60%);
|
||||||
}
|
}
|
||||||
.trunk {
|
.trunk {
|
||||||
position: relative;
|
position: relative;
|
||||||
@ -41,7 +41,7 @@ main > table {
|
|||||||
|
|
||||||
}
|
}
|
||||||
.hybrid {
|
.hybrid {
|
||||||
background-image: linear-gradient(135deg, hsl(var(--tagged) 100% 60%) 50%, hsl(var(--untagged) 100% 60%) 50%);
|
background-image: linear-gradient(135deg, hsl(calc(67*var(--tagged)) 100% 60%) 50%, hsl(calc(67*var(--untagged)) 100% 60%) 50%);
|
||||||
}
|
}
|
||||||
.shutdown {
|
.shutdown {
|
||||||
background-color: lightgray;
|
background-color: lightgray;
|
||||||
|
13
vlans.php
13
vlans.php
@ -19,16 +19,11 @@ foreach ($interfaces as $interface) {
|
|||||||
}
|
}
|
||||||
$stack[$interface["member"]][$interface["port"]] = $interface;
|
$stack[$interface["member"]][$interface["port"]] = $interface;
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<!--\n";
|
|
||||||
print_r($vlans);
|
|
||||||
print_r($stack);
|
|
||||||
echo "-->\n";
|
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE HTML>
|
<!DOCTYPE HTML>
|
||||||
<html lang='fr'>
|
<html lang='fr'>
|
||||||
<head>
|
<head>
|
||||||
<title>Tableau des VLANs - <?=$sysname[1] ?? "Switch sans nom"?></title>
|
<title><?=$sysname[1] ?? "Switch sans nom"?> - Tableau des VLANs</title>
|
||||||
<link href="style.css" rel="stylesheet" />
|
<link href="style.css" rel="stylesheet" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
@ -77,9 +72,9 @@ foreach ($vlans as $vlan) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<tr><td class='number trunk'>T</td><td colspan='2'>Trunk</td></tr>
|
<tr><td class='number trunk'></td><td colspan='2'>Trunk</td></tr>
|
||||||
<tr><td class='number hybrid' style='--tagged:60; --untagged:0'>H</td><td colspan='2'>Hybride (tagged/untagged)</td></tr>
|
<tr><td class='number hybrid' style='--tagged:60; --untagged:0'></td><td colspan='2'>Hybride (tagged/untagged)</td></tr>
|
||||||
<tr><td class='number shutdown'>S</td><td colspan='2'>Interface désactivée</td></tr>
|
<tr><td class='number shutdown'></td><td colspan='2'>Interface désactivée</td></tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</main>
|
</main>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user