update styles
This commit is contained in:
@@ -1,48 +1,29 @@
|
||||
<?php
|
||||
|
||||
function brr()
|
||||
{
|
||||
echo "<br/>";
|
||||
}
|
||||
|
||||
function brrr()
|
||||
{
|
||||
return "<br/>";
|
||||
}
|
||||
|
||||
function PrintList(string $title, array $liste): string
|
||||
{
|
||||
$result = "<ul><p>$title</p>";
|
||||
foreach ($liste as $element) {
|
||||
$result .= "<li>$element</li>";
|
||||
}
|
||||
$result .= "</ul>";
|
||||
return $result;
|
||||
}
|
||||
|
||||
function PrintListFirsts(string $title, array $liste): string
|
||||
{
|
||||
$result = "<li>" . $title . "</li>";
|
||||
$result .= "<ul>";
|
||||
$result = '<div class="list-group-item"><h5>' . $title . '</h5>';
|
||||
$result .= '<div class="list-group ">';
|
||||
foreach ($liste as $element) {
|
||||
$result .= "<li>" . $element[0] . "</li>";
|
||||
$result .= '<div class="list-group-item">' . $element[0] . "</div>";
|
||||
}
|
||||
$result .= "</ul>";
|
||||
$result .= "</div></div>";
|
||||
return $result;
|
||||
}
|
||||
|
||||
function PrintLoginInfo($info)
|
||||
{
|
||||
$body = "Nom complet de l'utilisateur : " . $info->fullName;
|
||||
$body .= "<ul>";
|
||||
$body = '<h2 class="text-center pt-3">Bienvenue ' . $info->fullName . " !</h2>";
|
||||
$body .= '<div class="list-group ">';
|
||||
foreach ($info->ous as $ou) {
|
||||
$body .= "<li>" . $ou;
|
||||
$body .= "<ul>";
|
||||
$body .= '<div class="list-group-item"><h3>' . $ou . "</h3>";
|
||||
$body .= '<div class="list-group">';
|
||||
$body .= PrintListFirsts("Utilisateurs", LdapGetUsersInOU($ou));
|
||||
$body .= PrintListFirsts("Groupes", LdapGetGroupsInOU($ou));
|
||||
$body .= "</ul>";
|
||||
$body .= "</li>";
|
||||
$body .= "</div>";
|
||||
$body .= "</div>";
|
||||
|
||||
}
|
||||
$body .= "</ul>";
|
||||
$body .= "</div>";
|
||||
return $body;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user