83 lines
2.7 KiB
PHP
83 lines
2.7 KiB
PHP
<?php
|
|
/* Smarty version 5.7.0, created on 2026-02-08 19:39:48
|
|
from 'file:views/login.tpl' */
|
|
|
|
/* @var \Smarty\Template $_smarty_tpl */
|
|
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
|
|
'version' => '5.7.0',
|
|
'unifunc' => 'content_6988e684b5ec83_08666834',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'b44ab733c93381dbf5dbbeae871506874cefd9d6' =>
|
|
array (
|
|
0 => 'views/login.tpl',
|
|
1 => 1770579251,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
))) {
|
|
function content_6988e684b5ec83_08666834 (\Smarty\Template $_smarty_tpl) {
|
|
$_smarty_current_dir = 'D:\\projetphp\\views';
|
|
$_smarty_tpl->getInheritance()->init($_smarty_tpl, true);
|
|
?>
|
|
|
|
|
|
<?php
|
|
$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_8468317156988e684b55163_88320359', "content");
|
|
$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir);
|
|
}
|
|
/* {block "content"} */
|
|
class Block_8468317156988e684b55163_88320359 extends \Smarty\Runtime\Block
|
|
{
|
|
public function callBlock(\Smarty\Template $_smarty_tpl) {
|
|
$_smarty_current_dir = 'D:\\projetphp\\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 }?>
|
|
|
|
<form method="post">
|
|
<p>
|
|
<label>Mail:</label>
|
|
<input name="mail"
|
|
value="<?php echo (($tmp = $_smarty_tpl->getValue('strMail') ?? null)===null||$tmp==='' ? '' ?? null : $tmp);?>
|
|
"
|
|
class="form-control <?php if ((true && (true && null !== ($_smarty_tpl->getValue('arrError')['mail'] ?? null)))) {?>is-invalid<?php }?>"
|
|
type="email">
|
|
</p>
|
|
|
|
<p>
|
|
<label>Mot de passe:</label>
|
|
<input name="pwd"
|
|
class="form-control <?php if ((true && (true && null !== ($_smarty_tpl->getValue('arrError')['pwd'] ?? null)))) {?>is-invalid<?php }?>"
|
|
type="password">
|
|
</p>
|
|
|
|
<p>
|
|
<input class="form-control btn btn-primary" type="submit" value="Se connecter">
|
|
</p>
|
|
</form>
|
|
</section>
|
|
<?php
|
|
}
|
|
}
|
|
/* {/block "content"} */
|
|
}
|