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