mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Create renderStatus()
This commit is contained in:
parent
262ff6a00e
commit
8021099f49
@ -1005,3 +1005,27 @@ function lightenColor($color, $percent)
|
|||||||
|
|
||||||
return sprintf("#%02x%02x%02x", $r, $g, $b);
|
return sprintf("#%02x%02x%02x", $r, $g, $b);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function renderStatus($hostapd_led, $hostapd_status, $memused_led, $memused, $cputemp_led, $cputemp)
|
||||||
|
{
|
||||||
|
?>
|
||||||
|
<div class="row g-0">
|
||||||
|
<div class="col-4 ms-2 sidebar-brand-icon">
|
||||||
|
<img src="app/img/raspAP-logo.php" class="navbar-logo" width="60" height="60">
|
||||||
|
</div>
|
||||||
|
<div class="col ml-2">
|
||||||
|
<div class="ml-1 sb-status">Status</div>
|
||||||
|
<div class="info-item-xs"><span class="icon">
|
||||||
|
<i class="fas fa-circle <?php echo ($hostapd_led); ?>"></i></span> <?php echo _("Hotspot").' '. _($hostapd_status); ?>
|
||||||
|
</div>
|
||||||
|
<div class="info-item-xs"><span class="icon">
|
||||||
|
<i class="fas fa-circle <?php echo ($memused_led); ?>"></i></span> <?php echo _("Mem Use").': '. htmlspecialchars(strval($memused), ENT_QUOTES); ?>%
|
||||||
|
</div>
|
||||||
|
<div class="info-item-xs"><span class="icon">
|
||||||
|
<i class="fas fa-circle <?php echo ($cputemp_led); ?>"></i></span> <?php echo _("CPU").': '. htmlspecialchars($cputemp, ENT_QUOTES); ?>°C
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user