From 230a792d5c06706957722927f6215855651e32c1 Mon Sep 17 00:00:00 2001 From: Tlams Date: Sun, 18 Feb 2018 17:51:09 +0000 Subject: [PATCH] Clean code & update --- code/web/www/pages/js/main.js | 3 +- code/web/www/pages/nodes.php | 47 +++++++++++---------------- code/web/www/pages/storages.php | 37 +++++++--------------- code/web/www/pages/vms.php | 56 +++++++-------------------------- 4 files changed, 42 insertions(+), 101 deletions(-) diff --git a/code/web/www/pages/js/main.js b/code/web/www/pages/js/main.js index 077c9a1..b9abb6c 100755 --- a/code/web/www/pages/js/main.js +++ b/code/web/www/pages/js/main.js @@ -137,10 +137,9 @@ $(document).ready(function() var commandinfo = "The status available in the table is not dynamically update, you must wait the next cron rotate.
You can play the status command to have an updated informations"; box.html('
'); - $.ajax({ - url: 'requires/pveaction.php?id='+id.val()+'&action=status', + url: 'requires/pveaction.php?id='+id.val()+'&action='+action.val(), type : 'GET', timeout: 32000, success: function (data) { diff --git a/code/web/www/pages/nodes.php b/code/web/www/pages/nodes.php index 63ac28c..51f57b8 100755 --- a/code/web/www/pages/nodes.php +++ b/code/web/www/pages/nodes.php @@ -1,44 +1,35 @@ List_HYPs($lastdate); - ?>
-

HYPERVISORS

+

Nodes

-
- - -
-
-
-
- - - - - - - - - - - - - - - + + + + + + + + + + + + + + @@ -48,9 +39,9 @@ $html_HYPs = $html->List_HYPs($lastdate); * The storage used is the largest.
* This is a score to evaluate the eligibility to receive news VM. Lower score are the best. - - + + diff --git a/code/web/www/pages/storages.php b/code/web/www/pages/storages.php index c12d7b0..d435553 100755 --- a/code/web/www/pages/storages.php +++ b/code/web/www/pages/storages.php @@ -1,52 +1,37 @@ List_STO($lastdate); - ?>

Storages

-
- - -
-
-
- -
-
ClusterNameRAM(Used)RAM(Alloc/Total)CPU(Alloc/Total)STO(Used)*STO(Alloc/Total)LoadUptimeEligibility*Swap (used/total)PVE VersionKernelCPU - Informationsclusternameram (used)ram (alloc/total)cpu (alloc/total)storage (used)storage (alloc/total)loaduptimeeligibilityswap (used/total)pve-version Versionkernelcpu informations
- - - - - - - + + + + + + +
NodeNameTotalAllocateAvailableUsed Disksnodenametotalallocateavailableused disks
-
- - +
+ diff --git a/code/web/www/pages/vms.php b/code/web/www/pages/vms.php index 54d2f61..b5f362d 100755 --- a/code/web/www/pages/vms.php +++ b/code/web/www/pages/vms.php @@ -1,75 +1,41 @@ List_VMs($lastdate); - ?>
-

VM list

+

Instances (KVM/LXC)

-
- - -
-
-
- - -
- - - - + + + + - - - - - - - + + + + + +
ClusterNodeNameclusternodenametype vmidRAMCPU DiskMacsUptimeStatusActionsramcpu diskmacsuptimestatus
-
- - -
-

Proxmox authentification required.

-
-
- - -
- - - - - - - -
-
-