.
This commit is contained in:
parent
aec3c845e0
commit
edb6c00219
22 changed files with 941 additions and 69 deletions
|
|
@ -0,0 +1,83 @@
|
|||
<?php
|
||||
/* Smarty version 5.7.0, created on 2026-02-06 08:34:12
|
||||
from 'file:views/login.tpl' */
|
||||
|
||||
/* @var \Smarty\Template $_smarty_tpl */
|
||||
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
|
||||
'version' => '5.7.0',
|
||||
'unifunc' => 'content_6985a7843b8a09_57121812',
|
||||
'has_nocache_code' => false,
|
||||
'file_dependency' =>
|
||||
array (
|
||||
'7a5d14230a80bcfb142dfc9d5f8ae68eb5c308ba' =>
|
||||
array (
|
||||
0 => 'views/login.tpl',
|
||||
1 => 1770366310,
|
||||
2 => 'file',
|
||||
),
|
||||
),
|
||||
'includes' =>
|
||||
array (
|
||||
),
|
||||
))) {
|
||||
function content_6985a7843b8a09_57121812 (\Smarty\Template $_smarty_tpl) {
|
||||
$_smarty_current_dir = 'C:\\wamp64\\www\\projetphp\\views';
|
||||
$_smarty_tpl->getInheritance()->init($_smarty_tpl, true);
|
||||
?>
|
||||
|
||||
|
||||
<?php
|
||||
$_smarty_tpl->getInheritance()->instanceBlock($_smarty_tpl, 'Block_10260818746985a7843a3c23_56661515', "content");
|
||||
$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir);
|
||||
}
|
||||
/* {block "content"} */
|
||||
class Block_10260818746985a7843a3c23_56661515 extends \Smarty\Runtime\Block
|
||||
{
|
||||
public function callBlock(\Smarty\Template $_smarty_tpl) {
|
||||
$_smarty_current_dir = 'C:\\wamp64\\www\\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"} */
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue