From 8cc41c97b9151b766fbd67bc54920ead968abdb4 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 23 Sep 2024 14:06:55 +0200 Subject: [PATCH] services table --- functions.php | 20 +++++++++----------- installer.css | 4 ++++ manage.html | 4 ++-- 3 files changed, 15 insertions(+), 13 deletions(-) diff --git a/functions.php b/functions.php index 952f814..83e4374 100644 --- a/functions.php +++ b/functions.php @@ -146,39 +146,37 @@ function get_vpn_url($domain,$passkey) { } function show_service($name, $containers) { - $str = '
'.$name."
"; - $str .= '
'; + $str = ''; + $str .= ""; $containers = trim($containers); $arr = explode(" ",$containers); foreach ($arr as $container) { - $str .= $container."
"; + $c_arr = explode(":",$container); + $str .= ""; } - $str .= ''; + $str .= '
{$name}Container nameStatusAction
 ".$c_arr[0]."".$c_arr[1]."RESTART
'; echo $str; } function show_service_update($name, $update, $uptodate) { - $str = '
'.$name."
"; + $str = ''; + $str .= ""; $update = trim($update); if (!empty($update)) { - $str .= '
'; $arr = explode(" ",$update); foreach ($arr as $container) { - $str .= $container." - UPDATE AVAILABLE
"; + $str .= "
"; } - $str .= ''; } $uptodate = trim($uptodate); if (!empty($uptodate)) { - $str .= '
'; $arr = explode(" ",$uptodate); foreach ($arr as $container) { - $str .= $container." - Already up to date
"; + $str .= "
"; } - $str .= ''; } echo $str; diff --git a/installer.css b/installer.css index fedf5f3..1d66551 100644 --- a/installer.css +++ b/installer.css @@ -6,6 +6,10 @@ fieldset.sub_block legend {color: black} h1 { color: #049dff; margin-top:50px;} a.stop {font-weight:bold; text-decoration:none; font-size:30px} +table {border: 1px solid #049dff; width:100%;} +table th {padding-left: 20px; color: #049dff; width: 25%;} +table td {padding-left: 20px; text-align:left; width: 25%;} + body#scan{ /* background-color: #7E57C2; */ } diff --git a/manage.html b/manage.html index 408c88e..9f36b22 100644 --- a/manage.html +++ b/manage.html @@ -8,7 +8,7 @@ - +
@@ -67,7 +67,7 @@
Services -
Loading...
+
Loading...
{$name}Container nameStatusAction
 ".$container."UPDATE AVAILABLEUPDATE
 ".$container."Already up to date