update styles
This commit is contained in:
@@ -3,8 +3,11 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Mauvaise connexion</title>
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="../css/index.css">
|
||||
<link rel="stylesheet" href="../css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<p>Erreur lors de la connexion !</p>
|
||||
<h2 class="text-center pt-3">Erreur lors de la connexion !</h2>
|
||||
</body>
|
||||
</html>
|
||||
@@ -3,6 +3,9 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Connexion</title>
|
||||
<!-- Bootstrap CSS -->
|
||||
<link rel="stylesheet" href="../css/index.css">
|
||||
<link rel="stylesheet" href="../css/main.css">
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
|
||||
@@ -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