<?php
/* Smarty version 5.7.0, created on 2026-02-17 16:52:19
  from 'file:views/login.tpl' */

/* @var \Smarty\Template $_smarty_tpl */
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
  'version' => '5.7.0',
  'unifunc' => 'content_69949cc31946f2_99570077',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    'b7b39f4634df66c24660dc5baa93ac9d38bfe874' => 
    array (
      0 => 'views/login.tpl',
      1 => 1770639154,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
))) {
function content_69949cc31946f2_99570077 (\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\projet_php-guillaume\\views';
$_smarty_tpl->getInheritance()->init($_smarty_tpl, true);
?>


<?php 
$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_48413822169949cc30e4725_27989269', "content");
$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir);
}
/* {block "content"} */
class Block_48413822169949cc30e4725_27989269 extends \Smarty\Runtime\Block
{
public function callBlock(\Smarty\Template $_smarty_tpl) {
$_smarty_current_dir = 'C:\\wamp64\\www\\Folliow\\projet_php-guillaume\\views';
?>

<section aria-label="Se connecter">
        <?php if ($_smarty_tpl->getSmarty()->getModifierCallback('count')($_smarty_tpl->getValue('arrError')) > 0) {?>
        <div class="alert alert-danger">
            <?php
$_from = $_smarty_tpl->getSmarty()->getRuntime('Foreach')->init($_smarty_tpl, $_smarty_tpl->getValue('arrError'), 'strError');
$foreach0DoElse = true;
foreach ($_from ?? [] as $_smarty_tpl->getVariable('strError')->value) {
$foreach0DoElse = false;
?>
                <p><?php echo $_smarty_tpl->getValue('strError');?>
</p>
            <?php
}
$_smarty_tpl->getSmarty()->getRuntime('Foreach')->restore($_smarty_tpl, 1);?>
        </div>
    <?php }?>
<!-- Contenu principal de la page -->
<main class="container py-5">

    <!-- Centrage horizontal du formulaire -->
    <div class="row justify-content-center">
    <!-- Contenu principal de la page -->
    <main class="container py-5">

        <!-- Centrage horizontal du formulaire -->
        <div class="row justify-content-center">
        <div class="col-12 col-md-8 col-lg-5">

            <!-- Carte contenant le formulaire de connexion -->
            <div class="card shadow-sm border-0 rounded-4 p-4 p-lg-5">

            <!-- Titre principal -->
            <h1 class="h3 fw-bold mb-1">Connexion</h1>

            <!-- Texte descriptif -->
            <p class="text-secondary mb-4">
                Connectez-vous à votre compte.
            </p>

            <!-- Formulaire de connexion -->
            <!-- Le traitement sera effectué en PHP via la méthode POST -->
            <form method="POST">

                <div class="row g-3">

                <!-- Champ : adresse e-mail de l'utilisateur -->
                <div class="col-12">
                    <label for="user_mail" class="form-label">
                        Adresse e-mail
                    </label>
                    <input
                        value="<?php echo (($tmp = $_smarty_tpl->getValue('strMail') ?? null)===null||$tmp==='' ? '' ?? null : $tmp);?>
" 
                        type="email"
                        class="form-control <?php if ((true && (true && null !== ($_smarty_tpl->getValue('arrError')['mail'] ?? null)))) {?>is-invalid<?php }?>"
                        id="user_mail"
                        name="user_mail"
                        required
                       
                    >
                </div>

                <!-- Champ : mot de passe -->
                <div class="col-12">
                    <label for="user_password" class="form-label">
                        Mot de passe
                    </label>
                    <input
                        type="password"
                        class="form-control <?php if ((true && (true && null !== ($_smarty_tpl->getValue('arrError')['pwd'] ?? null)))) {?>is-invalid<?php }?>"
                        id="user_password"
                        name="user_password"
                        required
                      
                    >
                </div>

                <!-- Option "Se souvenir de moi" (fonctionnalité optionnelle côté PHP) -->
                <div class="col-12">
                    <div class="form-check">
                        <input class="form-check-input" type="checkbox" id="remember_me" name="remember_me">
                        <label class="form-check-label" for="remember_me">
                            Se souvenir de moi
                        </label>
                    </div>
                </div>

                <!-- Bouton de soumission du formulaire -->
                <div class="col-12 d-grid mt-2">
                    <button type="submit" class="btn btn-primary btn-lg rounded-3">
                        Se connecter
                    </button>
                </div>

                <!-- Lien vers la page d'inscription -->
                <div class="col-12 text-center">
                    <small class="text-secondary">
                        Pas encore de compte ?
                        <a href="index.php?ctrl=user&action=signin" class="link-primary">Créer un compte</a>
                    </small>
                </div>

                <!-- Lien pour la récupération du mot de passe -->
                <div class="col-12 text-center">
                    <small>
                        <a href="#" class="link-primary">
                            Mot de passe oublié ?
                        </a>
                    </small>
                </div>

                </div>
            </form>

            </div>

        </div>
        </div>
</main>
</section>
<?php
}
}
/* {/block "content"} */
}
