mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 13:52:17 +01:00 
			
		
		
		
	Redesign du site
This commit is contained in:
		@@ -1,57 +1,43 @@
 | 
			
		||||
<?php
 | 
			
		||||
require_once "header.php";
 | 
			
		||||
?>
 | 
			
		||||
 | 
			
		||||
if (isset($orga)) {
 | 
			
		||||
	if ($has_error) {
 | 
			
		||||
		echo "<h2>Erreur : " . $error_message . "</h2>";
 | 
			
		||||
	} else {
 | 
			
		||||
		echo "<h2>Organisateur ajouté avec succès ! Ses identifiants ont été transmis par mail.</h2>";
 | 
			
		||||
	}
 | 
			
		||||
} ?>
 | 
			
		||||
<div class="mt-4 mb-4">
 | 
			
		||||
    <h1 class="display-4">Ajouter un organisateur</h1>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
<?php if (isset($orga) && !$has_error) { ?>
 | 
			
		||||
    <div class="alert alert-success">
 | 
			
		||||
        Organisateur ajouté avec succès ! Ses identifiants ont été transmis par mail.
 | 
			
		||||
    </div>
 | 
			
		||||
<?php } ?>
 | 
			
		||||
 | 
			
		||||
<form method="POST">
 | 
			
		||||
	<input type="hidden" name="submitted" value="true"/>
 | 
			
		||||
	<table style="width: 100%;">
 | 
			
		||||
		<tbody>
 | 
			
		||||
		<tr>
 | 
			
		||||
			<td style="width: 30%;">
 | 
			
		||||
				<label for="surname">Nom :</label>
 | 
			
		||||
			</td>
 | 
			
		||||
			<td style="width: 70%;">
 | 
			
		||||
				<input style="width: 100%;" type="text" id="surname" name="surname"/>
 | 
			
		||||
			</td>
 | 
			
		||||
		</tr>
 | 
			
		||||
		<tr>
 | 
			
		||||
			<td>
 | 
			
		||||
				<label for="first_name">Prénom :</label>
 | 
			
		||||
			</td>
 | 
			
		||||
			<td>
 | 
			
		||||
				<input style="width: 100%;" type="text" id="first_name" name="first_name"/>
 | 
			
		||||
			</td>
 | 
			
		||||
		</tr>
 | 
			
		||||
		<tr>
 | 
			
		||||
			<td>
 | 
			
		||||
				<label for="email">Email :</label>
 | 
			
		||||
			</td>
 | 
			
		||||
			<td>
 | 
			
		||||
				<input style="width: 100%;" type="email" id="email" name="email"/>
 | 
			
		||||
			</td>
 | 
			
		||||
		</tr>
 | 
			
		||||
		<tr>
 | 
			
		||||
			<td>
 | 
			
		||||
				<label for="admin">Compte administrateur :</label>
 | 
			
		||||
			</td>
 | 
			
		||||
			<td>
 | 
			
		||||
				<input style="width: 100%;" type="checkbox" id="admin" name="admin"/>
 | 
			
		||||
			</td>
 | 
			
		||||
		</tr>
 | 
			
		||||
		<tr>
 | 
			
		||||
			<td colspan="2">
 | 
			
		||||
				<input style="width: 100%;" type="submit" value="Ajouter un organisateur"/>
 | 
			
		||||
			</td>
 | 
			
		||||
		</tr>
 | 
			
		||||
		</tbody>
 | 
			
		||||
	</table>
 | 
			
		||||
    <div class="form-row">
 | 
			
		||||
        <div class="form-group col-md-6">
 | 
			
		||||
            <label for="surname">Nom :</label>
 | 
			
		||||
            <input class="form-control" type="text" id="surname" name="surname"
 | 
			
		||||
                   value="<?php if (isset($orga)) echo $orga->surname ?>" required/>
 | 
			
		||||
        </div>
 | 
			
		||||
 | 
			
		||||
        <div class="form-group col-md-6">
 | 
			
		||||
            <label for="first_name">Prénom :</label>
 | 
			
		||||
            <input class="form-control" type="text" id="first_name" name="first_name"
 | 
			
		||||
                   value="<?php if (isset($orga)) echo $orga->first_name ?>" required/>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div class="form-row">
 | 
			
		||||
        <div class="form-group col-md-12">
 | 
			
		||||
            <label for="email">E-mail :</label>
 | 
			
		||||
            <input class="form-control" type="email" id="email" name="email"
 | 
			
		||||
                   value="<?php if (isset($orga)) echo $orga->email ?>" required/>
 | 
			
		||||
        </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
    <div class="form-group row">
 | 
			
		||||
        <input class="btn btn-primary btn-lg btn-block" name="add_admin" type="submit" value="Ajouter un administrateur" />
 | 
			
		||||
    </div>
 | 
			
		||||
</form>
 | 
			
		||||
 | 
			
		||||
<?php require_once "footer.php" ?>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user