From d6100dfda31393ab446fd7e62d640b1a9ab091c1 Mon Sep 17 00:00:00 2001
From: leiweibau <105860611+leiweibau@users.noreply.github.com>
Date: Thu, 28 Jul 2022 22:19:49 +0200
Subject: [PATCH] bug fixing and w3c validation
---
front/network.php | 13 +++++++------
front/php/templates/footer.php | 2 +-
front/php/templates/header.php | 7 +++++--
3 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/front/network.php b/front/network.php
index 58ce87c8..fdf6ec0b 100644
--- a/front/network.php
+++ b/front/network.php
@@ -80,7 +80,7 @@ echo $_REQUEST['device_id'];
-
+
@@ -223,7 +223,7 @@ function createnetworktabcontent($pia_func_netdevid, $pia_func_netdevname, $pia_
unset($multistate);
}
if (stristr($network_device_portmac[$x],',') == '') {
- echo '
'.$network_device_portname[$x].' | ';
+ echo '
'.$network_device_portname[$x].' | ';
} else {
$multimac = array();
$multimac = explode(',',$network_device_portmac[$x]);
@@ -231,13 +231,13 @@ function createnetworktabcontent($pia_func_netdevid, $pia_func_netdevname, $pia_
$multiname = explode(',',$network_device_portname[$x]);
echo '
';
foreach($multiname as $key => $value) {
- echo ''.$value.' ';
+ echo ''.$value.' ';
}
echo ' | ';
unset($multiname, $multimac);
}
if (stristr($network_device_portip[$x],',') == '') {
- echo '
'.$network_device_portip[$x].' | ';
+ echo '
'.$network_device_portip[$x].' | ';
} else {
$multiip = array();
$multiip = explode(',',$network_device_portip[$x]);
@@ -265,7 +265,7 @@ function createnetworktabcontent($pia_func_netdevid, $pia_func_netdevname, $pia_
$sql = 'SELECT "device_id", "net_device_name", "net_device_typ", "net_device_port" FROM "network_infrastructure"';
$result = $db->query($sql);//->fetchArray(SQLITE3_ASSOC);
?>
-
+
+
diff --git a/front/php/templates/footer.php b/front/php/templates/footer.php
index ae604c36..0bc35294 100644
--- a/front/php/templates/footer.php
+++ b/front/php/templates/footer.php
@@ -24,7 +24,7 @@
('. $conf_data['VERSION_DATE'] .')';
+ echo 'Pi.Alert '. $conf_data['VERSION'] .'
('. $conf_data['VERSION_DATE'] .')';
?>
diff --git a/front/php/templates/header.php b/front/php/templates/header.php
index ce9284b1..9c0a1f3f 100644
--- a/front/php/templates/header.php
+++ b/front/php/templates/header.php
@@ -99,7 +99,6 @@ if ($ENABLED_DARKMODE === True) {
$BACKGROUND_IMAGE_PATCH='style="background-image: url(\'img/boxed-bg-dark.png\');"';
} else { $BACKGROUND_IMAGE_PATCH='style="background-image: url(\'img/background.png\');"';}
?>
-