|
|
|
@ -17,11 +17,13 @@ $liste_alias_virtuels = listeAliasVirtuelsPostfix($pdo);
|
|
|
|
|
*/
|
|
|
|
|
if (testPrivileges()=="administrateur") {
|
|
|
|
|
echo <<<_HEREDOC_
|
|
|
|
|
<div>
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-12 col-md-6">
|
|
|
|
|
<div class="card mt-4">
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
<h5 class="card-title">Choix de l'adresse</h5>
|
|
|
|
|
<form id="form_choix_utilisateur" action="/services/traitements/utilisateurs/changeUtilisateur.php" method="post">
|
|
|
|
|
<div>
|
|
|
|
|
<h2>Choix de l'adresse</h2>
|
|
|
|
|
<select name="choix_utilisateur" onchange="autoSoumission(this);">
|
|
|
|
|
<select class="form-select" name="choix_utilisateur" onchange="autoSoumission(this);">
|
|
|
|
|
_HEREDOC_;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -40,17 +42,21 @@ _HEREDOC_;
|
|
|
|
|
|
|
|
|
|
echo <<<_HEREDOC_
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
_HEREDOC_;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<h2>Ajouter un alias virtuel</h2>
|
|
|
|
|
<div class="col-12 col-md-6">
|
|
|
|
|
<div class="card mt-4">
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
<h5 class="card-title">Ajouter un alias virtuel</h5>
|
|
|
|
|
<form action="/services/traitements/alias_virtuels/ajoutAliasVirtuels.php" method="post">
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -58,13 +64,15 @@ _HEREDOC_;
|
|
|
|
|
*/
|
|
|
|
|
$prefixe_utilisateur=retournePrefixeUtilisateurPostfix($pdo);
|
|
|
|
|
if (!empty($prefixe_utilisateur)) {
|
|
|
|
|
echo "<span>$prefixe_utilisateur</span>";
|
|
|
|
|
echo "<span class=\"input-group-text\">$prefixe_utilisateur</span>";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
<input type="text" id="nom_pour_filtre" name="nom_alias_virtuel" placeholder="alias*" onkeyup="filtreValeurs();" required>
|
|
|
|
|
<span>@</span>
|
|
|
|
|
<select name="choix_domaine_alias_virtuel">
|
|
|
|
|
<input type="text" class="form-control" id="nom_pour_filtre" name="nom_alias_virtuel" placeholder="alias*" onkeyup="filtreValeurs();" required>
|
|
|
|
|
<span class="input-group-text">@</span>
|
|
|
|
|
<select class="form-select" name="choix_domaine_alias_virtuel">
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
foreach ($liste_domaines as $domaine_bdd => $domaine) {
|
|
|
|
|
echo "<option value=\"".$domaine['domaine']."\">".$domaine['domaine']."</option>\n";
|
|
|
|
@ -80,11 +88,17 @@ _HEREDOC_;
|
|
|
|
|
<option value=\"".$domaine['domaine']."\">".$domaine['domaine']."</option>
|
|
|
|
|
</select>
|
|
|
|
|
<p id="domaine_alias"><?php //echo $liste_domaines[0]["domaine"]; ?></p>-->
|
|
|
|
|
<p>vers <?php echo $_SESSION['pseudo_utilisateur'] ?></p>
|
|
|
|
|
<input type="submit" value="Ajouter">
|
|
|
|
|
<button class="btn btn-primary bouton-ajout" type="submit"><img src="/fichiers/svg/plus.svg"/></button>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h2>Alias de <?php echo $_SESSION['pseudo_utilisateur']; ?></h2>
|
|
|
|
|
<div class="card mt-4">
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
<h5 class="card-title">Alias de <?php echo $_SESSION['pseudo_utilisateur']; ?></h5>
|
|
|
|
|
<form class="" action="/services/traitements/alias_virtuels/editEtatAliasVirtuels.php" method="post">
|
|
|
|
|
<div class="row" id="liste_pour_filtre">
|
|
|
|
|
<?php
|
|
|
|
@ -133,7 +147,7 @@ _HEREDOC_;
|
|
|
|
|
</div>
|
|
|
|
|
<button class="bouton-flotant" type="submit"><img src="/fichiers/svg/save.svg"/></button>
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<script src="/fichiers/js/filtre.js"></script>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|