245 lines
10 KiB
PHP
245 lines
10 KiB
PHP
<?php
|
|
/* Smarty version 5.7.0, created on 2026-02-11 17:20:34
|
|
from 'file:views/inscription.tpl' */
|
|
|
|
/* @var \Smarty\Template $_smarty_tpl */
|
|
if ($_smarty_tpl->getCompiled()->isFresh($_smarty_tpl, array (
|
|
'version' => '5.7.0',
|
|
'unifunc' => 'content_698cba62a72df8_61715147',
|
|
'has_nocache_code' => false,
|
|
'file_dependency' =>
|
|
array (
|
|
'184f81453f2b8e9c87b8f61bf5df178eaf9a1be4' =>
|
|
array (
|
|
0 => 'views/inscription.tpl',
|
|
1 => 1770830431,
|
|
2 => 'file',
|
|
),
|
|
),
|
|
'includes' =>
|
|
array (
|
|
),
|
|
))) {
|
|
function content_698cba62a72df8_61715147 (\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_1012653795698cba62a6b7c0_71138616', "content");
|
|
$_smarty_tpl->getInheritance()->endChild($_smarty_tpl, "views/layout.tpl", $_smarty_current_dir);
|
|
}
|
|
/* {block "content"} */
|
|
class Block_1012653795698cba62a6b7c0_71138616 extends \Smarty\Runtime\Block
|
|
{
|
|
public function callBlock(\Smarty\Template $_smarty_tpl) {
|
|
$_smarty_current_dir = 'D:\\projetphp\\views';
|
|
?>
|
|
|
|
<!-- Page : Inscription -->
|
|
|
|
|
|
<main class="container py-5">
|
|
|
|
<!-- Centrage horizontal du formulaire -->
|
|
<div class="row justify-content-center position-relative">
|
|
<div class="col-12 col-md-10 col-lg-6">
|
|
|
|
<!-- Carte contenant le formulaire d'inscription -->
|
|
<div class="card shadow-sm border-0 rounded-4 p-4 p-lg-5">
|
|
|
|
<!-- Titre principal de la page -->
|
|
<h1 class="h3 fw-bold mb-1">Inscription</h1>
|
|
|
|
<!-- Texte descriptif -->
|
|
<p class="text-secondary mb-4">
|
|
Créez votre compte utilisateur.
|
|
</p>
|
|
<?php if (((true && ($_smarty_tpl->hasVariable('arrError') && null !== ($_smarty_tpl->getValue('arrError') ?? null))) && $_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 }?>
|
|
<!-- Formulaire d'inscription -->
|
|
<!-- Les données seront traitées côté serveur en PHP via la méthode POST -->
|
|
<form method="POST">
|
|
|
|
<div class="row g-3">
|
|
|
|
<!-- Champ : prénom de l'utilisateur -->
|
|
<div class="col-md-6">
|
|
<label class="form-label" for="user_firstname">
|
|
Prénom *
|
|
</label>
|
|
<input
|
|
class="form-control"
|
|
type="text"
|
|
id="user_firstname"
|
|
name="user_firstname"
|
|
required >
|
|
</div>
|
|
|
|
<!-- Champ : nom de l'utilisateur -->
|
|
<div class="col-md-6">
|
|
<label class="form-label" for="user_name">
|
|
Nom *
|
|
</label>
|
|
<input
|
|
class="form-control"
|
|
type="text"
|
|
id="user_name"
|
|
name="user_name"
|
|
required
|
|
>
|
|
</div>
|
|
|
|
<!-- Champ : pseudo -->
|
|
<div class="col-12">
|
|
<label class="form-label" for="user_pseudo">
|
|
Pseudo *
|
|
</label>
|
|
<div class="input-group">
|
|
<span class="input-group-text">@</span>
|
|
<input
|
|
class="form-control"
|
|
type="text"
|
|
id="user_pseudo"
|
|
name="user_pseudo"
|
|
required
|
|
>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Champ : adresse e-mail -->
|
|
<div class="col-12">
|
|
<label class="form-label" for="user_mail">
|
|
Adresse e-mail *
|
|
</label>
|
|
<input
|
|
class="form-control"
|
|
type="email"
|
|
id="user_mail"
|
|
name="user_mail"
|
|
required
|
|
>
|
|
</div>
|
|
|
|
<!-- Champ : mot de passe -->
|
|
<div class="col-12">
|
|
<label class="form-label" for="user_password">
|
|
Mot de passe *
|
|
</label>
|
|
<input
|
|
class="form-control"
|
|
type="password"
|
|
id="user_password"
|
|
name="user_password"
|
|
required
|
|
>
|
|
</div>
|
|
<!-- Champ : confirmer le mot de passe -->
|
|
<div class="col-12">
|
|
<label class="form-label" for="pwd_confirm">
|
|
Confirmer le Mot de passe *
|
|
</label>
|
|
<input
|
|
class="form-control"
|
|
type="password"
|
|
id="pwd_confirm"
|
|
name="pwd_confirm"
|
|
required
|
|
>
|
|
</div>
|
|
|
|
<!-- Champ optionnel : numéro de téléphone -->
|
|
<div class="col-12">
|
|
<label class="form-label" for="user_phone">
|
|
Téléphone
|
|
</label>
|
|
<input
|
|
class="form-control"
|
|
type="text"
|
|
id="user_phone"
|
|
name="user_phone"
|
|
>
|
|
</div>
|
|
|
|
<!-- Champ optionnel : profession de l'utilisateur -->
|
|
<div class="col-12">
|
|
<label class="form-label" for="user_work">
|
|
Profession
|
|
</label>
|
|
<input
|
|
class="form-control"
|
|
type="text"
|
|
id="user_work"
|
|
name="user_work"
|
|
>
|
|
</div>
|
|
|
|
<!-- Champ optionnel : localisation de l'utilisateur -->
|
|
<div class="col-12">
|
|
<label class="form-label" for="user_location">
|
|
Localisation
|
|
</label>
|
|
<input
|
|
class="form-control"
|
|
type="text"
|
|
id="user_location"
|
|
name="user_location"
|
|
>
|
|
</div>
|
|
|
|
<!-- Champ optionnel : phrase d'accroche -->
|
|
<div class="col-12">
|
|
<label class="form-label" for="user_description">
|
|
Phrase d'accroche
|
|
</label>
|
|
<textarea
|
|
class="form-control"
|
|
id="user_description"
|
|
name="user_description"
|
|
rows="3"
|
|
></textarea>
|
|
</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">
|
|
Créer mon compte
|
|
</button>
|
|
</div>
|
|
|
|
<!-- Lien vers la page de connexion -->
|
|
<div class="col-12 text-center">
|
|
<small class="text-secondary">
|
|
Déjà un compte ?
|
|
<a href="index.php?ctrl=user&action=login">Se connecter</a>
|
|
</small>
|
|
</div>
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<?php
|
|
}
|
|
}
|
|
/* {/block "content"} */
|
|
}
|