mirror of
https://github.com/ThomasGsp/HyperProxmox.git
synced 2025-03-09 15:40:18 +00:00
Fix dates issues
This commit is contained in:
parent
095519ed06
commit
15b7d84a36
1 changed files with 10 additions and 50 deletions
|
@ -2,7 +2,6 @@
|
||||||
require(dirname(__DIR__).'/requires/configs.php');
|
require(dirname(__DIR__).'/requires/configs.php');
|
||||||
require(dirname(__DIR__).'/requires/functions.php');
|
require(dirname(__DIR__).'/requires/functions.php');
|
||||||
|
|
||||||
|
|
||||||
//SESSION
|
//SESSION
|
||||||
session_start();
|
session_start();
|
||||||
if (!isset($_SESSION['uid']) && ($useldap == true)) {
|
if (!isset($_SESSION['uid']) && ($useldap == true)) {
|
||||||
|
@ -10,18 +9,23 @@ if (!isset($_SESSION['uid']) && ($useldap == true)) {
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// GEN HTML LIST Dates
|
// GEN HTML LIST Dates
|
||||||
$html = new API_Gen_HTML;
|
$html = new API_Gen_HTML;
|
||||||
$q = new API_GET_INFO;
|
$q = new API_GET_INFO;
|
||||||
$html_dates = [];
|
$html_dates = [];
|
||||||
$lastdate = "";
|
$lastdate = "";
|
||||||
|
|
||||||
|
|
||||||
if(!empty($_POST['date']))
|
if(!empty($_POST['date']))
|
||||||
{
|
{
|
||||||
$html_dates = $html->List_Dates($_POST['date']);
|
$html_dates = $html->List_Dates($_POST['date']);
|
||||||
$lastdate = $_POST['date'];
|
$lastdate = $_POST['date'];
|
||||||
}
|
}
|
||||||
|
else if(!empty($_GET['date']))
|
||||||
|
{
|
||||||
|
$html_dates = $html->List_Dates($_GET['date']);
|
||||||
|
$lastdate = $_GET['date'];
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$html_dates = $html->List_Dates();
|
$html_dates = $html->List_Dates();
|
||||||
|
@ -115,7 +119,7 @@ else
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</button>
|
||||||
<a class="navbar-brand" href="index.php">PCM V0.1</a>
|
<a class="navbar-brand" href="index.php">Hyperproxmox - alpha 1.0</a>
|
||||||
|
|
||||||
<form method="POST" class="navbar-brand" action="" style="margin-top: -7px">
|
<form method="POST" class="navbar-brand" action="" style="margin-top: -7px">
|
||||||
<?php echo $html_dates; ?> <INPUT type="submit" class="btn btn-default pull-right" value="OK">
|
<?php echo $html_dates; ?> <INPUT type="submit" class="btn btn-default pull-right" value="OK">
|
||||||
|
@ -148,65 +152,21 @@ else
|
||||||
';
|
';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<!-- /.dropdown-user -->
|
|
||||||
</li>
|
</li>
|
||||||
<!-- /.dropdown -->
|
|
||||||
</ul>
|
</ul>
|
||||||
<!-- /.navbar-top-links -->
|
|
||||||
|
|
||||||
<div class="navbar-default sidebar" role="navigation">
|
<div class="navbar-default sidebar" role="navigation">
|
||||||
<div class="sidebar-nav navbar-collapse">
|
<div class="sidebar-nav navbar-collapse">
|
||||||
<ul class="nav" id="side-menu">
|
<ul class="nav" id="side-menu">
|
||||||
|
<li><a href="vms.php?date=<?php echo $lastdate; ?>"><i class="fa fa-table fa-fw"></i>Instances</a></li>
|
||||||
|
<li><a href="nodes.php?date=<?php echo $lastdate; ?>"><i class="fa fa-table fa-fw"></i>Nodes</a></li>
|
||||||
|
<li><a href="storages.php?date=<?php echo $lastdate; ?>"><i class="fa fa-table fa-fw"></i>Storages</a></li>
|
||||||
<!--
|
<!--
|
||||||
<li class="sidebar-search">
|
|
||||||
<div class="input-group custom-search-form">
|
|
||||||
<input type="text" class="form-control" placeholder="Search...">
|
|
||||||
<span class="input-group-btn">
|
|
||||||
<button class="btn btn-default" type="button">
|
|
||||||
<i class="fa fa-search"></i>
|
|
||||||
</button>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</li>
|
|
||||||
-->
|
|
||||||
|
|
||||||
|
|
||||||
<li>
|
|
||||||
<a href="index.php"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a>
|
|
||||||
</li>
|
|
||||||
<li>
|
|
||||||
<a href="vmalloc.php"><i class="fa fa-street-view fa-fw"></i>VM Allocation</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
<a href="vms.php"><i class="fa fa-table fa-fw"></i>VMs</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
<a href="nodes.php"><i class="fa fa-table fa-fw"></i>Hypervisors</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
<a href="storages.php"><i class="fa fa-table fa-fw"></i>Storages</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<a href="#"><i class="fa fa-sitemap fa-fw"></i> Groups <span class="fa arrow"></span></a>
|
<a href="#"><i class="fa fa-sitemap fa-fw"></i> Groups <span class="fa arrow"></span></a>
|
||||||
<ul class="nav nav-second-level">
|
<ul class="nav nav-second-level">
|
||||||
<?php // echo $html_groups; ?>
|
<?php // echo $html_groups; ?>
|
||||||
</ul>
|
</ul>
|
||||||
<!-- /.nav-second-level -->
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li>
|
|
||||||
<a href="informations.php"><i class="fa fa-info fa-fw"></i>Informations</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.sidebar-collapse -->
|
<!-- /.sidebar-collapse -->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue