Add Veeam and NetBackup support to inventory and reporting
- Introduced Veeam and NetBackup version tracking in `Inventory.php` for backup validation. - Enhanced backup report in `Backups.php` with improved SQL queries and support for short hostname normalization. - Updated `navbar.html` and related navigation components for better usability and accessibility. - Refactored ActiveDirectory scripts for better modularity and event handling. - Added `AGENTS.md` and `modele.php` as templates for documentation and new page creation.
This commit is contained in:
67
modele.php
Normal file
67
modele.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
/**
|
||||
* Squelette de page : dupliquer ce fichier et adapter le titre et le contenu.
|
||||
* Les chemins depuis la racine restent valides dans les sous-dossiers du site.
|
||||
*/
|
||||
|
||||
// Initialiser la session, la langue et les fonctions communes avant tout affichage.
|
||||
// all.php produit aussi du HTML : le conserver pour l'insérer dans le body.
|
||||
ob_start();
|
||||
require $_SERVER['DOCUMENT_ROOT'] . '/include/all.php';
|
||||
$commonMarkup = ob_get_clean();
|
||||
|
||||
// À personnaliser pour chaque nouvelle page.
|
||||
$pageTitle = ($lang === 'fr') ? 'Titre de la page' : 'Page title';
|
||||
$escapedPageTitle = htmlspecialchars($pageTitle, ENT_QUOTES, 'UTF-8');
|
||||
|
||||
// Ajouter ici les traitements PHP propres à la page.
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?= htmlspecialchars($lang, ENT_QUOTES, 'UTF-8') ?>">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title><?= $escapedPageTitle ?> - Web Infra Reports IT</title>
|
||||
<link rel="shortcut icon" type="image/png" href="/include/favicon-32x32.png">
|
||||
|
||||
<link rel="stylesheet" href="/css/bootstrap.min.css">
|
||||
<link rel="stylesheet" href="/css/bootstrap-icons-1.13.1/bootstrap-icons.css">
|
||||
<!-- jQuery est nécessaire à la recherche de serveurs du menu commun. -->
|
||||
<script src="/js/jquery-3.6.1.min.js"></script>
|
||||
<script src="/js/bootstrap.bundle.min.js"></script>
|
||||
|
||||
<!-- Ajouter ici les styles et dépendances propres à la page. -->
|
||||
<style>
|
||||
.page-sidebar {
|
||||
flex: 0 0 230px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.page-content {
|
||||
min-width: 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body class="bg-light text-dark">
|
||||
<?= $commonMarkup ?>
|
||||
<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 page-sidebar">
|
||||
<?php require $_SERVER['DOCUMENT_ROOT'] . '/navbar.html'; ?>
|
||||
</div>
|
||||
|
||||
<main class="col py-3 page-content" aria-labelledby="page-title">
|
||||
<h1 id="page-title"><span class="badge text-bg-secondary w-100"><?= $escapedPageTitle ?></span></h1>
|
||||
|
||||
<div class="mt-4">
|
||||
<!-- Ajouter ici le contenu de la page. -->
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Charger après le menu pour initialiser le bouton clair/sombre. -->
|
||||
<script src="/js/switch.js"></script>
|
||||
<!-- Ajouter ici les scripts propres à la page. -->
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user