29 lines
1.2 KiB
PHP
Executable File
29 lines
1.2 KiB
PHP
Executable File
<?php
|
|
$this->titre = "INTER-SANTE - "._("Recherche du patient par carte") ;
|
|
?>
|
|
|
|
<form id="frmrechercheparcarte" name="frmrechercheparcarte" method="post" action="Rechercheparcarte/index/">
|
|
<INPUT style='font-size:40pt; height: 50px; text-align: center;' class="form-control" TYPE="text" id="donneesCarte" name="donneesCarte" autofocus AUTOCOMPLETE="OFF" placeholder="<?= _("Veuillez scanner la carte NFC!")?>">
|
|
<input id="lancerrechercheparcarte" name="lancerrechercheparcarte" class="sr-only" type="submit" value="<?= _("Rechercher") ?>" >
|
|
</form>
|
|
|
|
<div id ="div_wait_nfc"> </div>
|
|
|
|
<?php if (isset($msgErreur) && $msgErreur>" "): ?>
|
|
<div class="alert alert-danger" style="height:38px; padding:5px; text-align: center;">
|
|
<H4><?= $msgErreur ?></H4>
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
<script>
|
|
document.getElementById('donneesCarte').addEventListener('change', function () {
|
|
if (this.value.length > 3) {
|
|
var div_wait_nfc = $('#div_wait_nfc');
|
|
div_wait_nfc.html('<div style="padding-top:80px; text-align:center; font-size:14px; color: #4caf50;"><span><i class="fa fa-spinner fa-spin fa-5x" >' + '</span></div>');
|
|
// alert("submit");
|
|
this.form.submit();
|
|
}
|
|
});
|
|
</script>
|