production/Vue/Paramreinitmotpass/index.php
2025-12-01 16:12:12 +00:00

117 lines
4.3 KiB
PHP
Executable File

<?php $this->titre = "INTER SANTE - "._("Paramètres changement de mot de passe")
//var_dump($societeuser['activerOtp']);
?>
<form class="form-horizontal" action="Paramreinitmotpass/changerpass" method="post" style='font-size:10pt;'>
<fieldset>
<legend> <?= _("Mot de passe à utiliser en cas de réinitialisation") ?> </legend>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="45%" class="required"><?= _("Veuillez saisir ancien mot de passe") ?> </td>
<td align="center" width="5%">:</td>
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="password" id="ancmdp" NAME="ancmdp" required AUTOCOMPLETE="OFF" autofocus></td>
</tr>
<tr>
<td class="required"> <?= _("Veuillez saisir nouveau mot de passe") ?> </td>
<td align="center">:</td>
<td><INPUT style='font-size:10pt;' onBlur="controle_longeur_passe(this);" class="form-control" TYPE="password" id="nvmdp" NAME="nvmdp" required AUTOCOMPLETE="OFF"></td>
</tr>
<tr>
<td class="required"> <?= _("Veuillez confirmer nouveau mot de passe") ?> </td>
<td align="center">:</td>
<td><INPUT style='font-size:10pt;' onBlur="ChangerPass();" class="form-control" TYPE="password" id="cfnvmdp" NAME="cfnvmdp" required AUTOCOMPLETE="OFF"></td>
</tr>
<tr>
<td><input style='font-size:10pt;' class = "form-control btn btn-primary" type="submit" value="<?= _("Enregistrer") ?>" /></td>
<td></td>
<td><a style='font-size:10pt;' class="form-control btn btn-warning" href="Parametresgeneraux/"> <?=_("Annuler") ?> </a></td>
</tr>
</tbody>
</table>
</fieldset>
</form>
<?php if (isset($msgErreur)): ?>
<div class="alert alert-danger" style="height:30px; padding:5px;" >
<H4><?= $msgErreur ?></H4>
</div>
<?php endif; ?>
<legend> <?= _("Complexité des mots de passe") ?> </legend>
<div id="div_complexite_pass">
<div class="row">
<div id="div_expression_non_actif" class="col-6" >
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
<thead>
<tr>
<th style='text-align:center'> <?= _("Expressions Non Actives") ?> </th>
<th style='text-align:center'> => </th>
</tr>
</thead>
<tbody>
<?php foreach ($expressionsinactives as $expressionsinactive):
$idExpression = $expressionsinactive['code'];
?>
<tr valign="top">
<td align='center'><?= $this->nettoyer($expressionsinactive['libelle']) ?></td>
<td align='center'> <input type="button" value="=>" onClick="javascript:ajouter_une_expression_complexite_pass('<?=$idExpression?>', '1');" ></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<div id="div_expression_actif" class="col-6" >
<table class="table table-striped table-bordered table-hover table-condensed table-responsive" style="font-size:10pt;">
<thead>
<tr>
<th style='text-align:center'> <= </th>
<th style='text-align:center'> <?= _("Expressions Actives") ?> </th>
</tr>
</thead>
<tbody>
<?php foreach ($expressionsactives as $expressionsactive):
$idExpression = $expressionsactive['code'];
?>
<tr valign="top">
<td align='center'> <input type="button" value="<=" onClick="javascript:ajouter_une_expression_complexite_pass('<?=$idExpression?>', '0');" ></td>
<td align='center'><?= $this->nettoyer($expressionsactive['libelle']) ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</div>
<legend> <?= _("Double authentification par OTP (One Time PassWord)") ?> </legend>
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
<tbody>
<tr>
<td width="45%"><?= _("Activer la double authentification par OTP") ?> </td>
<td align="center" width="5%">?</td>
<td>
<select class="form-select" id="activerOtp" NAME="activerOtp" style='font-size:10pt; text-align:center;' onChange="javascript:maj_authentification_otp();">
<?php liste_options($activerOtpouinon, $this->nettoyer($societeuser['activerOtp']), true); ?>
</select>
</td>
</tr>
</tbody>
</table>