Folders Reorganisation
This commit is contained in:
168
Rollups/Rollup-Calendar.php
Normal file
168
Rollups/Rollup-Calendar.php
Normal file
@@ -0,0 +1,168 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
|
||||||
|
<!-- Page Title -->
|
||||||
|
<title>Web Infra Reports IT</title>
|
||||||
|
<link rel="shortcut icon" type="image/png" href="/include/favicon-32x32.png">
|
||||||
|
|
||||||
|
<!-- JQuery -->
|
||||||
|
<script src="/js/jquery-3.6.1.min.js"></script>
|
||||||
|
<!-- Bootstrap -->
|
||||||
|
<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>
|
||||||
|
<!-- Bootstrap-tables -->
|
||||||
|
<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">
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'] . "/include/all.php"; ?> <!-- Include All -->
|
||||||
|
<?php // DATA
|
||||||
|
$answers = Invoke_GLPI("SELECT a.name as server,left(d.name,4) as 'type',
|
||||||
|
b.arretprogrammezeroonefield as january,
|
||||||
|
b.arretprogrammezerotwofield as february,
|
||||||
|
b.arretprogrammezerothreefield as march,
|
||||||
|
b.arretprogrammezerofourfield as april,
|
||||||
|
b.arretprogrammezerofivefield as may,
|
||||||
|
b.arretprogrammezerosixfield as june,
|
||||||
|
b.arretprogrammezerosevenfield as july,
|
||||||
|
b.arretprogrammezeroeightfield as august,
|
||||||
|
b.arretprogrammezeroninefield as september,
|
||||||
|
b.arretprogrammeonezerofield as october,
|
||||||
|
b.arretprogrammeoneonefield as november,
|
||||||
|
b.arretprogrammeonetwofield as december
|
||||||
|
from glpi_computers a
|
||||||
|
left join glpi_plugin_fields_computercreneaumaintenances b on b.items_id = a.id
|
||||||
|
left join glpi_plugin_fields_computerdatasupps c on c.items_id = a.id
|
||||||
|
left join glpi_plugin_fields_typearretfielddropdowns d on d.id = c.plugin_fields_typearretfielddropdowns_id
|
||||||
|
where a.entities_id = 6 and a.name is not null and d.name is not null and b.arretprogrammezeroonefield is not null
|
||||||
|
order by Server asc");
|
||||||
|
?>
|
||||||
|
|
||||||
|
<!-- HTML -->
|
||||||
|
<div class="container-fluid" id="content">
|
||||||
|
<div class="row flex-nowrap">
|
||||||
|
<!-- Left NAVBAR -->
|
||||||
|
<div class="col-auto col-md-2 col-xl-2 px-sm-2 px-0 bg-dark" style="-ms-flex: 0 0 230px;flex: 0 0 230px;">
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'] . "/navbar.html"; ?>
|
||||||
|
</div>
|
||||||
|
<!-- Display -->
|
||||||
|
<div class="col py-3">
|
||||||
|
<!-- Page Title -->
|
||||||
|
<h1><span class="badge text-bg-secondary font-weight-bold" style="width:100%;">Rollup Calendar</h6></span></h1>
|
||||||
|
|
||||||
|
<!-- Main content -->
|
||||||
|
<div class="container-fluid">
|
||||||
|
<!-- MODAL WAIT -->
|
||||||
|
<div class="modal fade bs-example-modal-sm" id="wait" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" style="padding-top: 15%;">
|
||||||
|
<div class="modal-dialog modal-sm">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h4 class="modal-title mb-1 text-dark text-uppercase">
|
||||||
|
<center><i class="bi bi-hourglass-split"></i><br> Work in progress ...</center>
|
||||||
|
</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="progress">
|
||||||
|
<div class="progress-bar progress-bar-secondary progress-bar-striped progress-bar-animated" style="width: 100%"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- TABLE -->
|
||||||
|
<div style="zoom:80%">
|
||||||
|
<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" data-sort-name="VM">
|
||||||
|
<thead> <!-- Header -->
|
||||||
|
<th data-field="Server" data-sortable="true">Server</th>
|
||||||
|
<th data-field="Type" data-sortable="true">Type</th>
|
||||||
|
<th data-field="January" data-sortable="true">January</th>
|
||||||
|
<th data-field="February" data-sortable="true">February</th>
|
||||||
|
<th data-field="March" data-sortable="true">March</th>
|
||||||
|
<th data-field="April" data-sortable="true">April</th>
|
||||||
|
<th data-field="May" data-sortable="true">May</th>
|
||||||
|
<th data-field="June" data-sortable="true">June</th>
|
||||||
|
<th data-field="July" data-sortable="true">July</th>
|
||||||
|
<th data-field="August" data-sortable="true">August</th>
|
||||||
|
<th data-field="September" data-sortable="true">September</th>
|
||||||
|
<th data-field="October" data-sortable="true">October</th>
|
||||||
|
<th data-field="November" data-sortable="true">November</th>
|
||||||
|
<th data-field="December" data-sortable="true">December</th>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody> <!-- Body -->
|
||||||
|
<?php
|
||||||
|
foreach ($answers as $answer) {
|
||||||
|
echo "<td class='text-nowrap'><b>".$answer['server']."</b></td>";
|
||||||
|
echo "<td>".$answer['type']."</td>";
|
||||||
|
echo "<td class='text-nowrap'><small>".str_replace(':30:00',':30',(str_replace(':00:00',':00',$answer['january']."</small></td>")));
|
||||||
|
echo "<td class='text-nowrap'><small>".str_replace(':30:00',':30',(str_replace(':00:00',':00',$answer['february']."</small></td>")));
|
||||||
|
echo "<td class='text-nowrap'><small>".str_replace(':30:00',':30',(str_replace(':00:00',':00',$answer['march']."</small></td>")));
|
||||||
|
echo "<td class='text-nowrap'><small>".str_replace(':30:00',':30',(str_replace(':00:00',':00',$answer['april']."</small></td>")));
|
||||||
|
echo "<td class='text-nowrap'><small>".str_replace(':30:00',':30',(str_replace(':00:00',':00',$answer['may']."</small></td>")));
|
||||||
|
echo "<td class='text-nowrap'><small>".str_replace(':30:00',':30',(str_replace(':00:00',':00',$answer['june']."</small></td>")));
|
||||||
|
echo "<td class='text-nowrap'><small>".str_replace(':30:00',':30',(str_replace(':00:00',':00',$answer['july']."</small></td>")));
|
||||||
|
echo "<td class='text-nowrap'><small>".str_replace(':30:00',':30',(str_replace(':00:00',':00',$answer['august']."</small></td>")));
|
||||||
|
echo "<td class='text-nowrap'><small>".str_replace(':30:00',':30',(str_replace(':00:00',':00',$answer['september']."</small></td>")));
|
||||||
|
echo "<td class='text-nowrap'><small>".str_replace(':30:00',':30',(str_replace(':00:00',':00',$answer['october']."</small></td>")));
|
||||||
|
echo "<td class='text-nowrap'><small>".str_replace(':30:00',':30',(str_replace(':00:00',':00',$answer['november']."</small></td>")));
|
||||||
|
echo "<td class='text-nowrap'><small>".str_replace(':30:00',':30',(str_replace(':00:00',':00',$answer['december']."</small></td>")));
|
||||||
|
|
||||||
|
echo "</tr>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<br>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- End of main content -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
<script src="/js/switch.js"></script>
|
||||||
|
</HTML>
|
||||||
|
|
||||||
|
<SCRIPT>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('#t1').DataTable({
|
||||||
|
scrollY: '50vh',
|
||||||
|
scrollCollapse: true,
|
||||||
|
paging: false,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
var options = $('#t1').bootstrapTable('getOptions');
|
||||||
|
options.height= document.getElementById('content').clientHeight-170;
|
||||||
|
$('#t1').bootstrapTable('refreshOptions',options);
|
||||||
|
});
|
||||||
|
|
||||||
|
function tableresize() {
|
||||||
|
var options = $('#t1').bootstrapTable('getOptions');
|
||||||
|
options.height= document.getElementById('content').clientHeight-170;
|
||||||
|
$('#t1').bootstrapTable('refreshOptions',options);
|
||||||
|
};
|
||||||
|
|
||||||
|
window.addEventListener("resize", tableresize);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</SCRIPT>
|
||||||
149
Shared-Folders/HomeDirectories.php
Normal file
149
Shared-Folders/HomeDirectories.php
Normal file
@@ -0,0 +1,149 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
|
||||||
|
<!-- Page Title -->
|
||||||
|
<title>Web Infra Reports IT</title>
|
||||||
|
<link rel="shortcut icon" type="image/png" href="/include/favicon-32x32.png">
|
||||||
|
|
||||||
|
<!-- JQuery -->
|
||||||
|
<script src="/js/jquery-3.6.1.min.js"></script>
|
||||||
|
<!-- Bootstrap -->
|
||||||
|
<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>
|
||||||
|
<!-- Bootstrap-tables -->
|
||||||
|
<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">
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'] . "/include/all.php"; ?> <!-- Include All -->
|
||||||
|
<?php // DATA
|
||||||
|
$folders = Invoke_Infra("select * from fls_and_prs f
|
||||||
|
left join ad_all_users u on u.cn = f.folder
|
||||||
|
where typ = 'HomeDirectory'
|
||||||
|
and (enabled <> 'True' or acl not like 'ARMONY%' or o365 <> 'N')
|
||||||
|
order by [server],folder");
|
||||||
|
?>
|
||||||
|
|
||||||
|
<!-- HTML -->
|
||||||
|
<div class="container-fluid" id="content">
|
||||||
|
<div class="row flex-nowrap">
|
||||||
|
<!-- Left NAVBAR -->
|
||||||
|
<div class="col-auto col-md-2 col-xl-2 px-sm-2 px-0 bg-dark" style="-ms-flex: 0 0 230px;flex: 0 0 230px;">
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'] . "/navbar.html"; ?>
|
||||||
|
</div>
|
||||||
|
<!-- Display -->
|
||||||
|
<div class="col py-3">
|
||||||
|
<!-- Page Title -->
|
||||||
|
<h1><span class="badge text-bg-secondary font-weight-bold" style="width:100%;">Home Directories with issues <small><small>(<?php echo count($folders); ?> entries) </small></small><br><h6>Updated every day at 07:00:00</h6></span></h1>
|
||||||
|
|
||||||
|
<!-- Main content -->
|
||||||
|
<div class="container-fluid">
|
||||||
|
<!-- MODAL WAIT -->
|
||||||
|
<div class="modal fade bs-example-modal-sm" id="wait" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" style="padding-top: 15%;">
|
||||||
|
<div class="modal-dialog modal-sm">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h4 class="modal-title mb-1 text-dark text-uppercase">
|
||||||
|
<center><i class="bi bi-hourglass-split"></i><br> Work in progress ...</center>
|
||||||
|
</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="progress">
|
||||||
|
<div class="progress-bar progress-bar-secondary progress-bar-striped progress-bar-animated" style="width: 100%"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- TABLE -->
|
||||||
|
<div>
|
||||||
|
<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" data-sort-name="VM">
|
||||||
|
<thead> <!-- Header -->
|
||||||
|
<th data-field="Server" data-sortable="true">Server</th>
|
||||||
|
<th data-field="Folder" data-sortable="true">Folder</th>
|
||||||
|
<th data-field="ACL" data-sortable="true">ACL</th>
|
||||||
|
<th data-field="AD" data-sortable="true">in AD</th>
|
||||||
|
<th data-field="Enabled" data-sortable="true">Account Enabled</th>
|
||||||
|
<th data-field="o365" data-sortable="true">o365</th>
|
||||||
|
<th data-field="Quota" data-sortable="true">Quota</th>
|
||||||
|
<th data-field="Size" data-sortable="true">Size</th>
|
||||||
|
<th data-field="LastLogon" data-sortable="true">Last Logon</th>
|
||||||
|
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody> <!-- Body -->
|
||||||
|
<?php
|
||||||
|
foreach ($folders as $answer) {
|
||||||
|
if(instr($answer['acl'],"S-1-5")){$acl="<td class='table-warning'>?</td>";}else{$acl="<td>".$answer['acl']."</td>";}
|
||||||
|
if($answer['enabled'] != 'True'){$enabled="<td class='table-warning'><b>N</b></td>";}else{$enabled="<td>Y</td>";}
|
||||||
|
if($answer['cn'] == ''){$inAD="<td class='table-warning'><b>N</b></td>";}else{$inAD="<td>Y</td>";}
|
||||||
|
if($answer['o365'] != 'N'){$o365="<td class='table-warning'><b>".$answer['o365']."</b></td>";}else{$o365="<td>N</td>";}
|
||||||
|
|
||||||
|
echo "<td class='text-nowrap'>".$answer['server']."</td>";
|
||||||
|
echo "<td>".$answer['folder']."</td>";
|
||||||
|
echo $acl;
|
||||||
|
echo $inAD;
|
||||||
|
echo $enabled;
|
||||||
|
echo $o365;
|
||||||
|
echo "<td>".$answer['quota']."</td>";
|
||||||
|
echo "<td>".$answer['size']."</td>";
|
||||||
|
echo "<td class='text-nowrap'>".$answer['lastlogon']."</td>";
|
||||||
|
echo "</tr>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<br>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- End of main content -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
<script src="/js/switch.js"></script>
|
||||||
|
</HTML>
|
||||||
|
|
||||||
|
<SCRIPT>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('#t1').DataTable({
|
||||||
|
scrollY: '50vh',
|
||||||
|
scrollCollapse: true,
|
||||||
|
paging: false,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
var options = $('#t1').bootstrapTable('getOptions');
|
||||||
|
options.height= document.getElementById('content').clientHeight-170;
|
||||||
|
$('#t1').bootstrapTable('refreshOptions',options);
|
||||||
|
});
|
||||||
|
|
||||||
|
function tableresize() {
|
||||||
|
var options = $('#t1').bootstrapTable('getOptions');
|
||||||
|
options.height= document.getElementById('content').clientHeight-170;
|
||||||
|
$('#t1').bootstrapTable('refreshOptions',options);
|
||||||
|
};
|
||||||
|
|
||||||
|
window.addEventListener("resize", tableresize);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</SCRIPT>
|
||||||
140
Shared-Folders/eqp-prj.php
Normal file
140
Shared-Folders/eqp-prj.php
Normal file
@@ -0,0 +1,140 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
|
||||||
|
<!-- Page Title -->
|
||||||
|
<title>Web Infra Reports IT</title>
|
||||||
|
<link rel="shortcut icon" type="image/png" href="/include/favicon-32x32.png">
|
||||||
|
|
||||||
|
<!-- JQuery -->
|
||||||
|
<script src="/js/jquery-3.6.1.min.js"></script>
|
||||||
|
<!-- Bootstrap -->
|
||||||
|
<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>
|
||||||
|
<!-- Bootstrap-tables -->
|
||||||
|
<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">
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'] . "/include/all.php"; ?> <!-- Include All -->
|
||||||
|
<?php // DATA
|
||||||
|
$folders = Invoke_Infra("SELECT * FROM FLS_and_PRS where typ in('PROJET','TEAMS') order by [server], folder");
|
||||||
|
?>
|
||||||
|
|
||||||
|
<!-- HTML -->
|
||||||
|
<div class="container-fluid" id="content">
|
||||||
|
<div class="row flex-nowrap">
|
||||||
|
<!-- Left NAVBAR -->
|
||||||
|
<div class="col-auto col-md-2 col-xl-2 px-sm-2 px-0 bg-dark" style="-ms-flex: 0 0 230px;flex: 0 0 230px;">
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'] . "/navbar.html"; ?>
|
||||||
|
</div>
|
||||||
|
<!-- Display -->
|
||||||
|
<div class="col py-3">
|
||||||
|
<!-- Page Title -->
|
||||||
|
<h1><span class="badge text-bg-secondary font-weight-bold" style="width:100%;">Project and Team folders <small><small>(<?php echo count($folders); ?> entries) </small></small><br><h6>Updated every day at 07:00:00</h6></span></h1>
|
||||||
|
|
||||||
|
<!-- Main content -->
|
||||||
|
<div class="container-fluid">
|
||||||
|
<!-- MODAL WAIT -->
|
||||||
|
<div class="modal fade bs-example-modal-sm" id="wait" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" style="padding-top: 15%;">
|
||||||
|
<div class="modal-dialog modal-sm">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h4 class="modal-title mb-1 text-dark text-uppercase">
|
||||||
|
<center><i class="bi bi-hourglass-split"></i><br> Work in progress ...</center>
|
||||||
|
</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="progress">
|
||||||
|
<div class="progress-bar progress-bar-secondary progress-bar-striped progress-bar-animated" style="width: 100%"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- TABLE -->
|
||||||
|
<div>
|
||||||
|
<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" data-sort-name="VM">
|
||||||
|
<thead> <!-- Header -->
|
||||||
|
<th data-field="Server" data-sortable="true">Server</th>
|
||||||
|
<th data-field="Folder" data-sortable="true">Folder</th>
|
||||||
|
<th data-field="Type" data-sortable="true">Type</th>
|
||||||
|
<th data-field="ACL" data-sortable="true">ACL</th>
|
||||||
|
<th data-field="Quota" data-sortable="true">Quota</th>
|
||||||
|
<th data-field="Size" data-sortable="true">Size</th>
|
||||||
|
<th data-field="Users" data-sortable="true">Effective Users</th>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody> <!-- Body -->
|
||||||
|
<?php
|
||||||
|
foreach ($folders as $answer) {
|
||||||
|
if($answer['acl'] == "" || $answer['users'] == 0){
|
||||||
|
echo "<tr class='table-warning'>";
|
||||||
|
}else{
|
||||||
|
echo "<tr>";
|
||||||
|
}
|
||||||
|
echo "<td class='text-nowrap'>".$answer['server']."</td>";
|
||||||
|
echo "<td>".$answer['folder']."</td>";
|
||||||
|
echo "<td>".$answer['typ']."</td>";
|
||||||
|
echo "<td>".$answer['acl']."</td>";
|
||||||
|
echo "<td>".$answer['quota']."</td>";
|
||||||
|
echo "<td>".$answer['size']."</td>";
|
||||||
|
echo "<td>".$answer['users']."</td>";
|
||||||
|
echo "</tr>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<br>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- End of main content -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
<script src="/js/switch.js"></script>
|
||||||
|
</HTML>
|
||||||
|
|
||||||
|
<SCRIPT>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('#t1').DataTable({
|
||||||
|
scrollY: '50vh',
|
||||||
|
scrollCollapse: true,
|
||||||
|
paging: false,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
var options = $('#t1').bootstrapTable('getOptions');
|
||||||
|
options.height= document.getElementById('content').clientHeight-170;
|
||||||
|
$('#t1').bootstrapTable('refreshOptions',options);
|
||||||
|
});
|
||||||
|
|
||||||
|
function tableresize() {
|
||||||
|
var options = $('#t1').bootstrapTable('getOptions');
|
||||||
|
options.height= document.getElementById('content').clientHeight-170;
|
||||||
|
$('#t1').bootstrapTable('refreshOptions',options);
|
||||||
|
};
|
||||||
|
|
||||||
|
window.addEventListener("resize", tableresize);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</SCRIPT>
|
||||||
146
X/sva-scu.php
Normal file
146
X/sva-scu.php
Normal file
@@ -0,0 +1,146 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
|
|
||||||
|
<!-- Page Title -->
|
||||||
|
<title>Web Infra Reports IT</title>
|
||||||
|
<link rel="shortcut icon" type="image/png" href="/include/favicon-32x32.png">
|
||||||
|
|
||||||
|
<!-- JQuery -->
|
||||||
|
<script src="/js/jquery-3.6.1.min.js"></script>
|
||||||
|
<!-- Bootstrap -->
|
||||||
|
<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>
|
||||||
|
<!-- Bootstrap-tables -->
|
||||||
|
<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">
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'] . "/include/all.php"; ?> <!-- Include All -->
|
||||||
|
<?php // DATA
|
||||||
|
$answers = Invoke_WebInfraTools("SELECT * FROM sva_attributes order by sva");
|
||||||
|
?>
|
||||||
|
|
||||||
|
<!-- HTML -->
|
||||||
|
<div class="container-fluid" id="content">
|
||||||
|
<div class="row flex-nowrap">
|
||||||
|
<!-- Left NAVBAR -->
|
||||||
|
<div class="col-auto col-md-2 col-xl-2 px-sm-2 px-0 bg-dark" style="-ms-flex: 0 0 230px;flex: 0 0 230px;">
|
||||||
|
<?php include $_SERVER['DOCUMENT_ROOT'] . "/navbar.html"; ?>
|
||||||
|
</div>
|
||||||
|
<!-- Display -->
|
||||||
|
<div class="col py-3">
|
||||||
|
<!-- Page Title -->
|
||||||
|
<h1><span class="badge text-bg-secondary font-weight-bold" style="width:100%;">SVA & SCU Accounts Attributes <br><h6>Updated every hour</h6></span></h1>
|
||||||
|
|
||||||
|
<!-- Main content -->
|
||||||
|
<div class="container-fluid">
|
||||||
|
<!-- MODAL WAIT -->
|
||||||
|
<div class="modal fade bs-example-modal-sm" id="wait" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" style="padding-top: 15%;">
|
||||||
|
<div class="modal-dialog modal-sm">
|
||||||
|
<div class="modal-content">
|
||||||
|
<div class="modal-header">
|
||||||
|
<h4 class="modal-title mb-1 text-dark text-uppercase">
|
||||||
|
<center><i class="bi bi-hourglass-split"></i><br> Work in progress ...</center>
|
||||||
|
</h4>
|
||||||
|
</div>
|
||||||
|
<div class="modal-body">
|
||||||
|
<div class="progress">
|
||||||
|
<div class="progress-bar progress-bar-secondary progress-bar-striped progress-bar-animated" style="width: 100%"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- TABLE -->
|
||||||
|
<div>
|
||||||
|
<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" data-sort-name="VM">
|
||||||
|
<thead> <!-- Header -->
|
||||||
|
<th data-field='account' data-sortable='true'>Account</th>
|
||||||
|
<th data-field='Displayname' data-sortable='true'>Displayname</th>
|
||||||
|
<th data-field='Uid' data-sortable='true'>Uid</th>
|
||||||
|
<th data-field='UidNumber' data-sortable='true'>UidNumber</th>
|
||||||
|
<th data-field='Gecos' data-sortable='true'>Gecos</th>
|
||||||
|
<th data-field='UnixHD' data-sortable='true'>Unix Home Directory</th>
|
||||||
|
<th data-field='Login Shell' data-sortable='true'>Login Shell</th>
|
||||||
|
<th data-field='GID Number' data-sortable='true'>GID Number</th>
|
||||||
|
<th data-field='Enabled' data-sortable='true'>Enabled</th>
|
||||||
|
<th data-field='LastLogon' data-sortable='true'>Last Logon</th>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
<tbody> <!-- Body -->
|
||||||
|
<?php
|
||||||
|
foreach ($answers as $row) {
|
||||||
|
if ($row['enabled'] != 'True') {echo '<tr class="table-danger">';}else{echo '<tr>';}
|
||||||
|
echo '<td class="text-nowrap"><b>'.$row['SVA'].'</b></td>';
|
||||||
|
echo '<td><small>'.$row['displayname'].'</small></td>';
|
||||||
|
echo '<td><small>'.$row['uid'].'</small></td>';
|
||||||
|
echo '<td><small>'.$row['uidnumber'].'</small></td>';
|
||||||
|
echo '<td><small>'.$row['gecos'].'</small></td>';
|
||||||
|
echo '<td><small>'.$row['unixHD'].'</small></td>';
|
||||||
|
echo '<td><small>'.$row['loginshell'].'</small></td>';
|
||||||
|
echo '<td><small>'.$row['gidnumber'].'</small></td>';
|
||||||
|
echo '<td><small>'.$row['enabled'].'</small></td>';
|
||||||
|
if($row['lastlogon'] == ""){
|
||||||
|
echo '<td class="table-warning"><small><b>NEVER</b></small></td>';
|
||||||
|
}else{
|
||||||
|
echo '<td class="text-nowrap"><small>'.date_format(date_create($row['lastlogon']),"Y-m-d H:i:s").'</small></td>';
|
||||||
|
}
|
||||||
|
echo '</tr>' ;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<br>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- End of main content -->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
<script src="/js/switch.js"></script>
|
||||||
|
</HTML>
|
||||||
|
|
||||||
|
<SCRIPT>
|
||||||
|
$(document).ready(function() {
|
||||||
|
$('#t1').DataTable({
|
||||||
|
scrollY: '50vh',
|
||||||
|
scrollCollapse: true,
|
||||||
|
paging: false,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
$(function () {
|
||||||
|
var options = $('#t1').bootstrapTable('getOptions');
|
||||||
|
options.height= document.getElementById('content').clientHeight-170;
|
||||||
|
$('#t1').bootstrapTable('refreshOptions',options);
|
||||||
|
});
|
||||||
|
|
||||||
|
function tableresize() {
|
||||||
|
var options = $('#t1').bootstrapTable('getOptions');
|
||||||
|
options.height= document.getElementById('content').clientHeight-170;
|
||||||
|
$('#t1').bootstrapTable('refreshOptions',options);
|
||||||
|
};
|
||||||
|
|
||||||
|
window.addEventListener("resize", tableresize);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</script>
|
||||||
|
|
||||||
|
</SCRIPT>
|
||||||
@@ -25,8 +25,8 @@
|
|||||||
<i class="fs-6 bi bi-folder-symlink-fill text-white"></i> <span class="ms-1 d-none d-sm-inline text-white h7">Shared Folders</span><i class="bi bi-caret-down"></i> </a>
|
<i class="fs-6 bi bi-folder-symlink-fill text-white"></i> <span class="ms-1 d-none d-sm-inline text-white h7">Shared Folders</span><i class="bi bi-caret-down"></i> </a>
|
||||||
<ul class="collapse nav flex-column ms-1" id="SharedFolders" data-bs-parent="#menu">
|
<ul class="collapse nav flex-column ms-1" id="SharedFolders" data-bs-parent="#menu">
|
||||||
<li class="w-100">
|
<li class="w-100">
|
||||||
<a href="/reports/eqp-prj.php" class="nav-link px-0"> <span class="d-none d-sm-inline text-white h7">- PRJ & EQP Folders</span></a>
|
<a href="/shared-folders/eqp-prj.php" class="nav-link px-0"> <span class="d-none d-sm-inline text-white h7">- PRJ & EQP Folders</span></a>
|
||||||
<a href="/reports/homedirectories.php" class="nav-link px-0"> <span class="d-none d-sm-inline text-white h7">- HomeDirectories</span></a>
|
<a href="/shared-folders/homedirectories.php" class="nav-link px-0"> <span class="d-none d-sm-inline text-white h7">- HomeDirectories</span></a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
<i class="fs-6 bi bi-pc text-white"></i> <span class="ms-1 d-none d-sm-inline text-white h7">Unix/Linux</span><i class="bi bi-caret-down"></i> </a>
|
<i class="fs-6 bi bi-pc text-white"></i> <span class="ms-1 d-none d-sm-inline text-white h7">Unix/Linux</span><i class="bi bi-caret-down"></i> </a>
|
||||||
<ul class="collapse nav flex-column ms-1" id="Unix" data-bs-parent="#menu">
|
<ul class="collapse nav flex-column ms-1" id="Unix" data-bs-parent="#menu">
|
||||||
<li class="w-100">
|
<li class="w-100">
|
||||||
<a href="/reports/SVA-SCU.php" class="nav-link px-0"> <span class="d-none d-sm-inline text-white h7">- SVA/SCU Accounts</span></a>
|
<a href="/X/SVA-SCU.php" class="nav-link px-0"> <span class="d-none d-sm-inline text-white h7">- SVA/SCU Accounts</span></a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
<i class="fs-6 bi bi-calendar text-white"></i> <span class="ms-1 d-none d-sm-inline text-white h7">Rollups</span><i class="bi bi-caret-down"></i> </a>
|
<i class="fs-6 bi bi-calendar text-white"></i> <span class="ms-1 d-none d-sm-inline text-white h7">Rollups</span><i class="bi bi-caret-down"></i> </a>
|
||||||
<ul class="collapse nav flex-column ms-1" id="rollup" data-bs-parent="#menu">
|
<ul class="collapse nav flex-column ms-1" id="rollup" data-bs-parent="#menu">
|
||||||
<li class="w-100">
|
<li class="w-100">
|
||||||
<a href="/reports/rollup-calendar.php" class="nav-link px-0"> <span class="d-none d-sm-inline text-white h7">- Full Calendar</span></a>
|
<a href="/Rollups/rollup-calendar.php" class="nav-link px-0"> <span class="d-none d-sm-inline text-white h7">- Full Calendar</span></a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
Reference in New Issue
Block a user