a
This commit is contained in:
parent
e45ce03e1d
commit
fb59d78129
36
Controleur/ControleurRechercheparcarte.php
Executable file
36
Controleur/ControleurRechercheparcarte.php
Executable file
|
|
@ -0,0 +1,36 @@
|
|||
<?php
|
||||
require_once 'Framework/Controleur.php';
|
||||
require_once 'Modele/Beneficiaire.php';
|
||||
require_once 'Modele/Menuvueutilisateur.php';
|
||||
|
||||
class ControleurRechercheparcarte extends Controleur {
|
||||
private $menuvue;
|
||||
private $beneficiaire;
|
||||
|
||||
public function __construct() {
|
||||
$this->menuvue = new Menuvueutilisateur();
|
||||
$this->menuvue->getMenuVue("Rechercheparcarte");
|
||||
|
||||
$this->beneficiaire = new Beneficiaire();
|
||||
}
|
||||
|
||||
public function index($donneesCarte="")
|
||||
{
|
||||
if (isset($_POST['donneesCarte']))
|
||||
{
|
||||
$donneesCarte=trim($_POST['donneesCarte']);
|
||||
|
||||
if($donneesCarte<=" ")
|
||||
{
|
||||
$this->rediriger("Rechercheparcarte");
|
||||
exit();
|
||||
}
|
||||
else
|
||||
{
|
||||
// faire le traitement de la carte ici
|
||||
}
|
||||
}
|
||||
|
||||
$this->genererVue();
|
||||
}
|
||||
}
|
||||
8
Vue/Rechercheparcarte/index.php
Executable file
8
Vue/Rechercheparcarte/index.php
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
<?php
|
||||
$this->titre = "INTER-SANTE - "._("Recherche du patient par carte") ;
|
||||
?>
|
||||
|
||||
<form id="frmrechercheparcarte" name="frmrechercheparcarte" method="post" action="Rechercheparcarte/index/">
|
||||
<INPUT style='font-size:30pt;' class="form-control" TYPE="text" id="donneesCarte" name="donneesCarte" autofocus AUTOCOMPLETE="OFF" placeholder="<?= _("Veuillez scanner la carte NFC!")?>">
|
||||
<input id="lancerrecherche" name="lancerrecherche" class="sr-only" type="submit" value="<?= _("Rechercher") ?>" >
|
||||
</form>
|
||||
Loading…
Reference in New Issue
Block a user