a
This commit is contained in:
parent
fec91e724a
commit
161838525a
|
|
@ -45680,4 +45680,35 @@ function ajax_context_adherent(idBeneficiaire)
|
|||
complete: function() {
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function ajax_saisir_pass_new_user()
|
||||
{
|
||||
codeModeGenerationPass = $("#codeModeGenerationPass").val();
|
||||
|
||||
donnees = 'codeModeGenerationPass='+codeModeGenerationPass;
|
||||
|
||||
$("#div_passwd").html('<div style="padding-top:80px;"><img src="Bootstrap/images/loading.gif"/> <span style="font-size:15pt;">' + 'Veuillez patienter... / Please wait...' + '</span></div>');
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxsaisirpassnewuser/",
|
||||
type: 'POST',
|
||||
data: donnees,
|
||||
success: function(data) {
|
||||
$("#div_passwd").html(data);
|
||||
},
|
||||
error: function(data) {
|
||||
},
|
||||
complete: function()
|
||||
{
|
||||
if(codeModeGenerationPass=="0")
|
||||
{
|
||||
$("#nvmdp").focus();
|
||||
}
|
||||
else
|
||||
{
|
||||
$("#btn_enreg").focus();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,6 +6,94 @@
|
|||
$codeModeEnvoiPass = $paramsgenerationpass['codeModeEnvoiPass'];
|
||||
?>
|
||||
<input class="sr-only" id="nomForm" name="nomForm" type="text" value= "nouveluserrh" >
|
||||
|
||||
<legend> <?= _("Nouvel Utilisateur du client ") . " : " . $nomClient ?> </legend>
|
||||
|
||||
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="10%" class="required"> <?= _("Nom") ?> </td>
|
||||
<td width="40%" ><INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="nom" NAME="nom" required autofocus AUTOCOMPLETE="OFF"></td>
|
||||
|
||||
<td width="10%" align="center" class="required"> <?= _("Prénoms") ?> </td>
|
||||
<td colspan="3" ><INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="prenoms" NAME="prenoms" required AUTOCOMPLETE="OFF"></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="required"> <?= _("Portable") ?> </td>
|
||||
<td><INPUT style='font-size:10pt;' class="form-control" TYPE="tel" id="telephone" NAME="telephone" AUTOCOMPLETE="OFF" required></td>
|
||||
|
||||
<td align="center" class="required"> E-mail </td>
|
||||
<td colspan="3" ><INPUT style='font-size:10pt;' class="form-control" TYPE="email" id="email" NAME="email" placeholder="E-mail" AUTOCOMPLETE="OFF" required></td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="required"> <?= _("Langue") ?> </td>
|
||||
<td>
|
||||
<SELECT style="font-size:10pt;" class="form-select" id="codeLangueUser" NAME="codeLangueUser" required >
|
||||
<?php liste_options($langue, ""); ?>
|
||||
</SELECT>
|
||||
</td>
|
||||
|
||||
<td align="center" class="required"> <?= _("Actes Visibles?") ?> </td>
|
||||
<td>
|
||||
<SELECT style="font-size:10pt;" class="form-select" id="actVisibleUser" NAME="actVisibleUser" required >
|
||||
<?php liste_options($user_actVisible, ""); ?>
|
||||
</SELECT>
|
||||
</td>
|
||||
|
||||
<td align="center" class="required"> <?= _("Affections Visibles?") ?> </td>
|
||||
<td colspan="3" >
|
||||
<SELECT style="font-size:10pt;" class="form-select" id="AffectionVisible" NAME="AffectionVisible" required >
|
||||
<?php liste_options($user_AffectionVisible, ""); ?>
|
||||
</SELECT>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td> <?= _("Mode envoi") ?> </td>
|
||||
<td>
|
||||
<SELECT style="font-size:10pt;" class="form-select" id="codeModeEnvoiPass" NAME="codeModeEnvoiPass" >
|
||||
<?php liste_options($modeenvoipass, $codeModeEnvoiPass, true); ?>
|
||||
</SELECT>
|
||||
</td>
|
||||
|
||||
<td align="center"> <?= _("Mode Génération") ?> </td>
|
||||
<td colspan="3" >
|
||||
<SELECT style="font-size:10pt;" class="form-select" id="codeModeGenerationPass" NAME="codeModeGenerationPass" onChange="javascript:ajax_saisir_pass_new_user();" >
|
||||
<?php liste_options($modegenerationpass, $codeModeGenerationPass, true); ?>
|
||||
</SELECT>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr id="div_passwd">
|
||||
<?php if ($codeModeGenerationPass=="0"): ?>
|
||||
<td class="required"> <?= _("Mot de passe") ?> </td>
|
||||
<td><INPUT style='font-size:10pt;' onBlur="controle_longeur_passe(this);" class="form-control" TYPE="password" id="nvmdp" NAME="nvmdp" placeholder="Mot de Passe / Pass Word" required AUTOCOMPLETE="OFF"></td>
|
||||
|
||||
<td align="center"> <?= _("Confirmer MDP") ?> </td>
|
||||
<td colspan="3" ><INPUT style='font-size:10pt;' onBlur="controle_new_pass();" class="form-control" TYPE="password" id="cfnvmdp" NAME="cfnvmdp" placeholder="Confirmation" required AUTOCOMPLETE="OFF"></td>
|
||||
<?php else : ?>
|
||||
<td>
|
||||
<INPUT class="sr-only" TYPE="text" id="nvmdp" NAME="nvmdp">
|
||||
<INPUT class="sr-only" TYPE="text" id="cfnvmdp" NAME="cfnvmdp">
|
||||
</td>
|
||||
<?php endif; ?>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td > <input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:creer_user_rh_client();" style='font-size:10pt;' > </td>
|
||||
|
||||
<td> </td>
|
||||
<td colspan="3" > <input class = "form-control btn btn-warning" type="button" value="<?= _("Annuler") ?>" onClick="javascript:retour_a_users_rh_client();" style='font-size:10pt;' > </td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<!--
|
||||
<div id="div_liste" >
|
||||
<h1 class="text-primary"> <?= _("Nouvel Utilisateur") ?></h1>
|
||||
|
||||
|
|
@ -102,6 +190,7 @@
|
|||
</button>
|
||||
</div>
|
||||
</form>
|
||||
-->
|
||||
|
||||
<style>
|
||||
.required:after { content: " *"; color: #dc3545; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user