Files
Web-Infra-Reports-IT/Network/dhcp_servers.php
e025532 e9cf3077fa Add DHCP management pages and update navigation
- Implemented `dhcp_servers.php` for listing DHCP servers with export and search functionalities.
- Added `dhcp_detail.php` for detailed DHCP server configurations, including scopes and reservations.
- Updated `navbar.html` to include a new "Network" section with DHCP navigation links.
- Extended French and English translation files to support new DHCP-related terms.
2026-04-07 15:15:24 +02:00

69 lines
2.7 KiB
PHP

<?php
// Include global configurations
include $_SERVER['DOCUMENT_ROOT'] . "/include/all.php";
$ts = date("Y-m-d");
$serversData = Invoke_Entry01("SELECT Server,TS FROM dump_dhcp where ts ='$ts' order by server asc");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-t">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Web Infra Reports IT</title>
<link rel="shortcut icon" type="image/png" href="/include/favicon-32x32.png">
<script src="/js/jquery-3.6.1.min.js"></script>
<link rel="stylesheet" href="/css/bootstrap.min.css">
<link rel="stylesheet" href="/css/bootstrap-icons/bootstrap-icons.css">
<link rel="stylesheet" href="/css/preloader.css">
<script src="/js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" href="/css/bootstrap-table.min.css">
<script src="/js/bootstrap-table.min.js"></script>
<script src="/js/bootstrap-table-fr-FR.min.js"></script>
<script src="/js/tableExport.min.js"></script>
<script src="/js/bootstrap-table-export.min.js"></script>
<script src="/js/libs/js-xlsx/xlsx.core.min.js"></script>
</head>
<body class="bg-light text-dark">
<div class="container-fluid">
<div class="row flex-nowrap">
<div class="col-auto col-md-2 col-xl-2 px-sm-2 px-0 bg-dark vh-100 position-sticky top-0">
<?php include $_SERVER['DOCUMENT_ROOT'] . "/navbar.html"; ?>
</div>
<div class="col py-3">
<h1><span class="badge text-bg-secondary w-100"><?php echo count($serversData); ?> DHCP <?php echo $w_server; ?></span></h1>
<div class="container mt-4">
<table class='table table-bordered table-hover table-sm' id='t1' data-height="620" data-toggle="table" data-search="true" data-show-columns="true" data-export-types="['xlsx','csv','json']" data-show-export="true" data-sortable="true">
<thead class="table-light">
<tr>
<th data-field="Server" data-sortable="true"><?php echo $w_server; ?></th>
<th data-field="Last" data-sortable="true"><?php echo $w_backuplu; ?></th>
</tr>
</thead>
<tbody>
<?php foreach ($serversData as $row): ?>
<tr>
<td>
<a href="dhcp_detail.php?s=<?php echo urlencode($row['Server']); ?>" class="fw-bold">
<?php echo $row['Server']; ?>
</a>
</td>
<td><?php echo $row['TS']; ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</body>
</html>