2024-05-23 10:54:24 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="fr">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Connexion</title>
|
2024-05-25 00:10:47 +02:00
|
|
|
<link rel="stylesheet" href="<?php echo base_url('assets/css/inscription'); ?>">
|
2024-05-23 10:54:24 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
<h2>Connexion</h2>
|
|
|
|
|
|
|
|
<?php if (isset($error)): ?>
|
|
|
|
<p class="error"><?php echo $error; ?></p>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?php echo form_open('utilisateur/connexion'); ?>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="email">Email :</label>
|
|
|
|
<input type="email" name="email" id="email" value="<?php echo set_value('email'); ?>" required>
|
|
|
|
<?php echo form_error('email'); ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="password">Mot de passe :</label>
|
2024-05-25 23:15:20 +02:00
|
|
|
<div class="password-wrapper">
|
|
|
|
<input type="password" name="password" id="password" required>
|
|
|
|
<button type="button" onclick="togglePasswordVisibility('password')">Afficher</button>
|
|
|
|
</div>
|
2024-05-23 10:54:24 +02:00
|
|
|
<?php echo form_error('password'); ?>
|
|
|
|
</div>
|
|
|
|
|
2024-05-25 23:15:20 +02:00
|
|
|
|
2024-05-23 10:54:24 +02:00
|
|
|
<button type="submit" class="btn-submit">Connexion</button>
|
|
|
|
|
|
|
|
<?php echo form_close(); ?>
|
|
|
|
</div>
|
2024-05-25 23:15:20 +02:00
|
|
|
|
|
|
|
<script>
|
|
|
|
function togglePasswordVisibility(id) {
|
|
|
|
var passwordField = document.getElementById(id);
|
|
|
|
var passwordFieldType = passwordField.getAttribute('type');
|
|
|
|
if (passwordFieldType === 'password') {
|
|
|
|
passwordField.setAttribute('type', 'text');
|
|
|
|
} else {
|
|
|
|
passwordField.setAttribute('type', 'password');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
2024-05-23 10:54:24 +02:00
|
|
|
</body>
|
|
|
|
</html>
|