1.7.3
@ -27,7 +27,8 @@ headerSubtitle = "Rassembler pour innover"
|
||||
footerText = "© Association E59 - v1.7"
|
||||
|
||||
[darkThemes]
|
||||
0 = '.body {--text: #ffffff; --background: #0e0e0e; --panel-background: #0e0e0e; --buttons: #ffffff} textarea, .form, .select-input, .text-input, .file-input input, .date-input {border:1px solid #a0a0a0} .button, button {color: #0E0E0E}'1 = '.body {--text: hsl(208, 100%, 96%); --background: hsl(215, 21%, 11%); --panel-background: hsl(216, 28%, 7%); --buttons: hsl(216, 28%, 7%)} .form .button, .form button {border:1px solid #3E3E3E}'
|
||||
0 = '.body {--text: #ffffff; --background: #0e0e0e; --panel-background: #0e0e0e; --buttons: #ffffff} textarea, .form, .select-input, .text-input, .file-input input, .date-input {border:1px solid #a0a0a0} .button, button {color: #0E0E0E}'
|
||||
1 = '.body {--text: hsl(208, 100%, 96%); --background: hsl(215, 21%, 11%); --panel-background: hsl(216, 28%, 7%); --buttons: hsl(216, 28%, 7%)} .form .button, .form button {border:1px solid #3E3E3E}'
|
||||
2 = '.body {--text: hsl(160, 65%, 95%); --background: hsl(160, 65%, 3%); --panel-background: hsl(160, 65%, 3%); --buttons: hsl(160, 65%, 3%)} .text-input, .date-input, .file-input input, .select-input, .select-input select, textarea, .button, button, .form {border:1px solid var(--text)}'
|
||||
|
||||
[lightThemes]
|
||||
|
0
content/articles/16.md
Normal file → Executable file
0
content/articles/17.md
Normal file → Executable file
0
content/articles/18.md
Normal file → Executable file
0
content/articles/19.md
Normal file → Executable file
0
content/articles/20.md
Normal file → Executable file
0
content/articles/21.md
Normal file → Executable file
0
content/articles/23.md
Normal file → Executable file
0
content/pages/data.md
Normal file → Executable file
0
database/E59.sql
Normal file → Executable file
0
html/.htaccess
Normal file → Executable file
0
html/about/data.php
Normal file → Executable file
0
html/about/doc.php
Normal file → Executable file
0
html/about/docs/pdf/Brand-Guidelines.pdf
Normal file → Executable file
0
html/about/docs/pdf/PV-AG1-E59-UVSQ-signe.pdf
Normal file → Executable file
0
html/about/docs/pdf/RIB-E59-UVSQ.pdf
Normal file → Executable file
0
html/about/docs/pdf/Recepisse-Declaration-E59-UVSQ.pdf
Normal file → Executable file
0
html/about/docs/pdf/Reglement-Interieur-E59-UVSQ.pdf
Normal file → Executable file
0
html/about/docs/pdf/SIRENE-E59-UVSQ.pdf
Normal file → Executable file
0
html/about/docs/pdf/Statuts-E59-UVSQ.pdf
Normal file → Executable file
0
html/about/img/20240802_attestation_de_compte.jpg
Normal file → Executable file
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 120 KiB |
0
html/about/img/Avis_de_situation_93136061400016_02_08_2024 21_32_17.jpg
Normal file → Executable file
Before Width: | Height: | Size: 203 KiB After Width: | Height: | Size: 203 KiB |
0
html/about/img/Brand-Guidelines.jpg
Normal file → Executable file
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 114 KiB |
0
html/about/img/PV-AG1-E59-UVSQ-signe.jpg
Normal file → Executable file
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
0
html/about/img/RIB-E59-UVSQ.jpg
Normal file → Executable file
Before Width: | Height: | Size: 120 KiB After Width: | Height: | Size: 120 KiB |
0
html/about/img/Recepisse-Declaration-E59-UVSQ.jpg
Normal file → Executable file
Before Width: | Height: | Size: 184 KiB After Width: | Height: | Size: 184 KiB |
0
html/about/img/Recepisse_CR.jpg
Normal file → Executable file
Before Width: | Height: | Size: 184 KiB After Width: | Height: | Size: 184 KiB |
0
html/about/img/Reglement-Interieur-E59-UVSQ.jpg
Normal file → Executable file
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
0
html/about/img/SIRENE-E59-UVSQ.jpg
Normal file → Executable file
Before Width: | Height: | Size: 203 KiB After Width: | Height: | Size: 203 KiB |
0
html/about/img/Statuts-E59-UVSQ.jpg
Normal file → Executable file
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
0
html/about/img/brand-guidelines-e59.jpg
Normal file → Executable file
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 114 KiB |
0
html/about/img/statuts-e59-uvsq.jpg
Normal file → Executable file
Before Width: | Height: | Size: 43 KiB After Width: | Height: | Size: 43 KiB |
1
html/abracadabra.php
Executable file
@ -0,0 +1 @@
|
||||
<?php phpinfo();?>
|
0
html/adhesion/.htaccess
Normal file → Executable file
0
html/adhesion/composer.json
Normal file → Executable file
0
html/adhesion/composer.lock
generated
Normal file → Executable file
@ -40,8 +40,9 @@ if (isset($_POST['lastname']) && isset($_POST['firstname']) && isset($_POST['ema
|
||||
$result = $request->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
if($result) {
|
||||
$status = "Vous avez déjà fait une demande d'adhésion";
|
||||
$requestAlreadySent = true;
|
||||
} else {
|
||||
$requestAlreadySent = false;
|
||||
$request = $pdo->prepare("INSERT INTO adhesion_requests (firstname, lastname, born, promo, club, email, userid) VALUES (:firstname, :lastname, :born, :promo, :club, :email, :userid)");
|
||||
$request->bindParam(':firstname', $firstname);
|
||||
$request->bindParam(':lastname', $lastname);
|
||||
@ -89,6 +90,8 @@ if (isset($_POST['lastname']) && isset($_POST['firstname']) && isset($_POST['ema
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
@ -130,30 +133,34 @@ if (isset($_POST['lastname']) && isset($_POST['firstname']) && isset($_POST['ema
|
||||
<div class="form-title">Adhérer à l'association</div>
|
||||
<div class="status"><?=$status?></div>
|
||||
<?php
|
||||
$sqlRequest = "SELECT username, email FROM users WHERE ID = :userID";
|
||||
$request = $pdo->prepare($sqlRequest);
|
||||
$request->bindParam(":userID", $_SESSION['userID']);
|
||||
$request->execute();
|
||||
$user = $request->fetchAll(PDO::FETCH_ASSOC);
|
||||
if (!$requestAlreadySent) {
|
||||
$sqlRequest = "SELECT username, email FROM users WHERE ID = :userID";
|
||||
$request = $pdo->prepare($sqlRequest);
|
||||
$request->bindParam(":userID", $_SESSION['userID']);
|
||||
$request->execute();
|
||||
$user = $request->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
$sqlRequest = "SELECT ID, name FROM clubs";
|
||||
$request = $pdo->prepare($sqlRequest);
|
||||
$request->execute();
|
||||
$clubs = $request->fetchAll(PDO::FETCH_ASSOC);
|
||||
foreach($clubs as $club) {
|
||||
$club_names[] = $club["name"];
|
||||
$sqlRequest = "SELECT ID, name FROM clubs";
|
||||
$request = $pdo->prepare($sqlRequest);
|
||||
$request->execute();
|
||||
$clubs = $request->fetchAll(PDO::FETCH_ASSOC);
|
||||
foreach($clubs as $club) {
|
||||
$club_names[] = $club["name"];
|
||||
}
|
||||
|
||||
textInput("text", "", "lastname", "Nom", isset($_POST['lastname']) ? $_POST['lastname'] : "");
|
||||
textInput("text", "", "firstname", "Prénom", isset($_POST['firstname']) ? $_POST['firstname'] : "");
|
||||
textInput("email", "", "email", "Email", isset($_POST['email']) ? $_POST['email'] : $user[0]['email']);
|
||||
textInput("text", "", "promo", "Promo", isset($_POST['promo']) ? $_POST['promo'] : "");
|
||||
//selectInput("club", "Club", $club_names, isset($_POST['club']) ? $_POST['club'] : $club_names[0]);
|
||||
dateInput("born", "Né le", "1930-01-01", isset($_POST['born']) ? $_POST['born'] : "2005-01-01");
|
||||
echo ('<input type="hidden" name="club" value="Club Réseaux">');
|
||||
echo ('<div class="details-message">Vous serez invité à payer la cotisation annuelle fixée à 1€/an une fois votre demande validée par le conseil d\'administration.</div>');
|
||||
echo ('<a href="/" class="hidden-button" style="margin-right: 2em;">Annuler</a><button type="submit">Envoyer</button>');
|
||||
} else {
|
||||
echo ("Votre demande d'adhésion est en cours de traitement");
|
||||
}
|
||||
|
||||
textInput("text", "", "lastname", "Nom", isset($_POST['lastname']) ? $_POST['lastname'] : "");
|
||||
textInput("text", "", "firstname", "Prénom", isset($_POST['firstname']) ? $_POST['firstname'] : "");
|
||||
textInput("email", "", "email", "Email", isset($_POST['email']) ? $_POST['email'] : $user[0]['email']);
|
||||
textInput("text", "", "promo", "Promo", isset($_POST['promo']) ? $_POST['promo'] : "");
|
||||
//selectInput("club", "Club", $club_names, isset($_POST['club']) ? $_POST['club'] : $club_names[0]);
|
||||
dateInput("born", "Né le", "1930-01-01", isset($_POST['born']) ? $_POST['born'] : "2005-01-01");
|
||||
?>
|
||||
<input type="hidden" name="club" value="Club Réseaux">
|
||||
<div class="details-message">L'adhésion sera effective après validation par le conseil d'administration et paiement de la cotisation fixée à 1€/an minimum.</div>
|
||||
<a href="/" class="hidden-button" style="margin-right: 2em;">Annuler</a><button type="submit">Envoyer</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|