Corrections et retablissement vues

pull/42/head
Alexis Feron 1 year ago
parent a92e9d4f1d
commit b6e103465a

84
.gitignore vendored

@ -8,9 +8,6 @@ ehthumbs_vista.db
# Dump file # Dump file
*.stackdump *.stackdump
# Folder config file
[Dd]esktop.ini
# Recycle Bin used on file shares # Recycle Bin used on file shares
$RECYCLE.BIN/ $RECYCLE.BIN/
@ -77,12 +74,6 @@ Temporary Items
##### GPG ##### GPG
secring.* secring.*
##### Dropbox
# Dropbox settings and caches
.dropbox
.dropbox.attr
.dropbox.cache
##### SynopsysVCS ##### SynopsysVCS
# Waveform formats # Waveform formats
*.vcd *.vcd
@ -165,23 +156,11 @@ Sessionx.vim
# Temporary # Temporary
.netrwhist .netrwhist
*~
# Auto-generated tag files # Auto-generated tag files
tags tags
# Persistent undo # Persistent undo
[._]*.un~ [._]*.un~
##### Emacs
# -*- mode: gitignore; -*-
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*
# Org-mode # Org-mode
.org-id-locations .org-id-locations
*_archive *_archive
@ -254,10 +233,6 @@ bh_unicode_properties.cache
# https://packagecontrol.io/packages/sublime-github # https://packagecontrol.io/packages/sublime-github
GitHub.sublime-settings GitHub.sublime-settings
##### Notepad++
# Notepad++ backups #
*.bak
##### TextMate ##### TextMate
*.tmproj *.tmproj
*.tmproject *.tmproject
@ -280,7 +255,6 @@ tmtags
**/nbproject/Package-*.bash **/nbproject/Package-*.bash
build/ build/
nbbuild/ nbbuild/
dist/
nbdist/ nbdist/
.nb-gradle/ .nb-gradle/
@ -289,27 +263,27 @@ nbdist/
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff # User-specific stuff
.idea/**/workspace.xml php/.idea/**/workspace.xml
.idea/**/tasks.xml php/.idea/**/tasks.xml
.idea/**/usage.statistics.xml php/.idea/**/usage.statistics.xml
.idea/**/dictionaries php/.idea/**/dictionaries
.idea/**/shelf php/.idea/**/shelf
# Generated files # Generated files
.idea/**/contentModel.xml php/.idea/**/contentModel.xml
# Sensitive or high-churn files # Sensitive or high-churn files
.idea/**/dataSources/ php/.idea/**/dataSources/
.idea/**/dataSources.ids php/.idea/**/dataSources.ids
.idea/**/dataSources.local.xml php/.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml php/.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml php/.idea/**/dynamic.xml
.idea/**/uiDesigner.xml php/.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml php/.idea/**/dbnavigator.xml
# Gradle # Gradle
.idea/**/gradle.xml php/.idea/**/gradle.xml
.idea/**/libraries php/.idea/**/libraries
# Gradle and Maven with auto-import # Gradle and Maven with auto-import
# When using Gradle or Maven with auto-import, you should exclude module files, # When using Gradle or Maven with auto-import, you should exclude module files,
@ -328,7 +302,7 @@ nbdist/
cmake-build-*/ cmake-build-*/
# Mongo Explorer plugin # Mongo Explorer plugin
.idea/**/mongoSettings.xml php/.idea/**/mongoSettings.xml
# File-based project format # File-based project format
*.iws *.iws
@ -343,7 +317,7 @@ out/
atlassian-ide-plugin.xml atlassian-ide-plugin.xml
# Cursive Clojure plugin # Cursive Clojure plugin
.idea/replstate.xml php/.idea/replstate.xml
# Crashlytics plugin (for Android Studio and IntelliJ) # Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml com_crashlytics_export_strings.xml
@ -352,17 +326,15 @@ crashlytics-build.properties
fabric.properties fabric.properties
# Editor-based Rest Client # Editor-based Rest Client
.idea/httpRequests php/.idea/httpRequests
# Android studio 3.1+ serialized cache file # Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser php/.idea/caches/build_file_checksums.ser
##### Eclipse ##### Eclipse
.metadata .metadata
bin/ bin/
tmp/ tmp/
*.tmp
*.bak
*.swp *.swp
*~.nib *~.nib
local.properties local.properties
@ -376,12 +348,6 @@ local.properties
# Locally stored "Eclipse launch configurations" # Locally stored "Eclipse launch configurations"
*.launch *.launch
# PyDev specific (Python IDE for Eclipse)
*.pydevproject
# CDT-specific (C/C++ Development Tooling)
.cproject
# CDT- autotools # CDT- autotools
.autotools .autotools
@ -410,11 +376,6 @@ local.properties
.apt_generated/ .apt_generated/
.apt_generated_test/ .apt_generated_test/
# Scala IDE specific (Scala & Java development for Eclipse)
.cache-main
.scala_dependencies
.worksheet
# Uncomment this line if you wish to ignore the project description file. # Uncomment this line if you wish to ignore the project description file.
# Typically, this file would be tracked if it contains build/dependency configurations: # Typically, this file would be tracked if it contains build/dependency configurations:
#.project #.project
@ -452,12 +413,13 @@ gradle-app.setting
# gradle/wrapper/gradle-wrapper.properties # gradle/wrapper/gradle-wrapper.properties
##### Composer ##### Composer
composer.phar php/composer.phar
/vendor/ php/composer
php/vendor/
# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control # Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file # You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
composer.lock php/composer.lock
##### PHP CodeSniffer ##### PHP CodeSniffer
# gitignore for the PHP Codesniffer framework # gitignore for the PHP Codesniffer framework

@ -1 +0,0 @@
dqzdqd

Binary file not shown.

After

Width:  |  Height:  |  Size: 842 KiB

@ -1,30 +1,148 @@
@import url(https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Share+Tech+Mono&display=swap); @import url(https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&family=Share+Tech+Mono&display=swap);
*{ *{
margin: 0;
padding: 0;
box-sizing: border-box; box-sizing: border-box;
font-family: 'Poppins', sans-serif; font-family: 'Poppins', sans-serif;
margin: 0;
} }
body{
display: inline; .main {
justify-content: center; color: #212121;
align-items: center; font-size: 1rem;
min-height: 100vh; }
background: #fff;
.title-banner{
text-align: center;
} }
input{ .banner-img{
width: 100%;
height: 250px;
object-fit: cover;
}
.banner {
position: relative; position: relative;
outline: none; }
padding: 10px 20px;
border-radius: 10px; .title-banner {
letter-spacing: 1px; position: absolute;
font-size: 0.85em; top: 50%;
background-color: #00DBFF; left: 50%;
transform: translate(-50%, -50%);
background-color: rgba(0, 0, 0, 0.5);
color: #fff; color: #fff;
cursor: pointer; padding: 10px;
border-radius: 5px;
}
.title-banner .title{
font-size: 35px;
color: #00DBFF;
font-weight: bold;
}
.title-banner .subtitle{
font-size: 20px;
color: #fff;
}
.title-banner .description{
font-size: 15px;
color: #fff;
}
.slideshow-container {
position: relative;
max-width: 70%;
margin: 0 auto;
padding: 30px;
}
.slide {
width: 100%;
height: 350px;
border-radius: 20px;
border: #212121 1px solid;
}
.slide-content {
display: flex;
width: 100%;
}
.slide-img,
.slide-info {
width: 50%;
overflow: hidden;
}
.slide-info{
padding: 15px;
}
.slide-title{
font-size: 20px;
font-weight: bold;
}
.slide-info .button{
color: #00DBFF;
font-size: 14px;
padding: 5px;
text-transform: uppercase; text-transform: uppercase;
font-weight: 600; border-radius: 15px;
border: #00DBFF 2px solid;
display: inline-block;
margin-top: 10px; margin-top: 10px;
}
.slide-img img{
height: 350px;
border-radius: 20px;
}
.prevButton, .nextButton {
position: absolute;
top: 50%;
transform: translateY(-50%);
font-size: 24px;
background-color: black;
color: white;
padding: 8px 16px;
border: none; border: none;
cursor: pointer;
}
.prevButton {
left: 0;
}
.nextButton {
right: 0;
}
.search{
background-color: #212121;
padding: 50px 30px;
display: flex;
justify-content: center;
align-items: center;
}
.search .search-bar{
border-radius: 10px;
height: 40px;
width: calc(100% - 50px);
margin-right: 10px;
}
.search .search-button{
display: flex;
justify-content: center;
align-items: center;
width: 40px;
height: 40px;
border-radius: 10px;
background: #fff;
color: #212121;
vertical-align: middle;
} }

@ -12,13 +12,14 @@ a{
body{ body{
display: flex; display: flex;
flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
min-height: 100vh; min-height: 100vh;
background: #fff; background: #fff;
} }
.container{ .containerC{
position: relative; position: relative;
width: 500px; width: 500px;
min-height: 500px; min-height: 500px;
@ -30,12 +31,13 @@ body{
-10px -10px 20px #ccc; -10px -10px 20px #ccc;
border-radius: 30px; border-radius: 30px;
padding: 50px; padding: 50px;
margin: 50px;
} }
form{ form{
position: relative; position: relative;
width: 100%; width: 100%;
} }
.container h3{ .containerC h3{
color: #000; color: #000;
font-weight: 600; font-weight: 600;
font-size: 2em; font-size: 2em;

@ -12,13 +12,14 @@ a{
body{ body{
display: flex; display: flex;
flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
min-height: 100vh; min-height: 100vh;
background: #fff; background: #fff;
} }
.container{ .containerC{
position: relative; position: relative;
width: 500px; width: 500px;
min-height: 500px; min-height: 500px;
@ -30,12 +31,13 @@ body{
-10px -10px 20px #ccc; -10px -10px 20px #ccc;
border-radius: 30px; border-radius: 30px;
padding: 50px; padding: 50px;
margin: 50px;
} }
form{ form{
position: relative; position: relative;
width: 100%; width: 100%;
} }
.container h3{ .containerC h3{
color: #000; color: #000;
font-weight: 600; font-weight: 600;
font-size: 2em; font-size: 2em;

@ -147,8 +147,10 @@ class UtilisateurControleur
$nom = null; $nom = null;
$id = null; $id = null;
} }
$userModel = new UtilisateurModele();
$evenements=$userModel->getEvenement();
//aller sur la page d'accueil avec le nom et prenom de l'utilisateur //aller sur la page d'accueil avec le nom et prenom de l'utilisateur
echo $twig->render('accueil.html', ['prenom' => $prenom, 'nom' => $nom, 'id' => $id]); echo $twig->render('accueil.html', ['prenom' => $prenom, 'nom' => $nom, 'id' => $id,"eventsList"=>$evenements]);
} }
protected function inscription_success() protected function inscription_success()

@ -95,7 +95,7 @@ class OffreModele
$profilGw = new ProfilGateway(new Connection(DB_HOST,DB_USER,DB_PASS)); $profilGw = new ProfilGateway(new Connection(DB_HOST,DB_USER,DB_PASS));
$resProfl = $profilGw->getProfilById($row['offreur']); $resProfl = $profilGw->getProfilById($row['offreur']);
$alumni = new Alumni($resal[0]['mail'],$resal[0]['mdp'],$resal[0]['role'],$resProfl[0]['nom'],$resProfl[0]["prenom"]); $alumni = new Alumni($resal[0]['id'],$resal[0]['mail'],$resal[0]['mdp'],$resal[0]['role'],$resProfl[0]['nom'],$resProfl[0]["prenom"]);
$date = \DateTime::createFromFormat('Y-m-d', $row['date']); $date = \DateTime::createFromFormat('Y-m-d', $row['date']);

@ -7,7 +7,6 @@
<title>Alica - Accueil</title> <title>Alica - Accueil</title>
</head> </head>
<body> <body>
<header> <header>
{% include 'menu.html' %} {% include 'menu.html' %}
@ -33,8 +32,69 @@
</div> </div>
</div> </div>
{% endif %} {% endif %}
<div class="main">
<div class="banner">
<img class="banner-img" src="assets/bandeau.png">
<div class="title-banner">
<div class="subtitle">Le réseau Alica te souhaite la bienvenue !</div>
<div class="title">Alica Info</div>
<div class="description">Nous sommes danciens étudiants à lIUT dAubière qui aimerions créer un réseau d'anciens étudiants au travers d'un réseau alumni du département Informatique.</div>
</div>
</div>
<div class="slideshow-container" id="evenements">
{% for event in eventsList %}
<div class="slide">
<div class="slide-img">
<img src="{{ event.image }}">
</div>
<div class="slide-info">
<div class="slide-date">{{event.date}}</div>
<div class="slide-title">{{event.titre}}</div>
<div class="slide-description">{{event.description}}</div>
<a href="index.php?action=" class="button">S'inscrire</a>
</div>
</div>
{% endfor %}
<button class="prevButton" onclick="plusDivs(-1)">&#10094;</button>
<button class="nextButton" onclick="plusDivs(1)">&#10095;</button>
</div>
<div class="search">
<input class="search-bar" type="text" placeholder=" Rechercher des alumni...">
<a class="search-button" href="index.php?action=consulterProfilLimite">
<ion-icon name="search-outline"></ion-icon>
</a>
</div>
</div>
</body> </body>
<footer>
{% include 'footer.html' %}
</footer>
</html> </html>
<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
<script>
let bar = document.querySelector('.bars'), navItem = document.querySelector('.nav-items');
bar.addEventListener('click', () => {
navItem.classList.toggle('active');
});
var slideIndex = 1;
showDivs(slideIndex);
function plusDivs(n) {
showDivs(slideIndex += n);
}
function showDivs(n) {
var i;
var x = document.getElementsByClassName("slide");
if (n > x.length) {slideIndex = 1}
if (n < 1) {slideIndex = x.length}
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
x[slideIndex-1].style.display = "flex";
}
</script>

@ -6,57 +6,64 @@
<title>Alica - Connexion</title> <title>Alica - Connexion</title>
<link rel="stylesheet" type="text/css" href="../public/css/connexion.css"> <link rel="stylesheet" type="text/css" href="../public/css/connexion.css">
</head> </head>
<body> <body>
<div class="container"> <header>
<form action="" method="POST"> {% include 'menu.html' %}
<h3>Connexion</h3> </header>
<div class="CadreInput"> <div class="containerC">
<span>Identifiant</span> <form action="" method="POST">
<div class="box"> <h3>Connexion</h3>
<div class="icon"> <div class="CadreInput">
<ion-icon name="person"></ion-icon> <span>Email</span>
<div class="box">
<div class="icon">
<ion-icon name="mail-outline"></ion-icon>
</div>
<input type="text" name="email" required>
</div> </div>
<input type="text" name="email" required>
</div> </div>
</div> <div class="CadreInput">
<div class="CadreInput"> <span>Mot de passe</span>
<span>Mot de passe</span> <div class="box">
<div class="box"> <div class="icon">
<div class="icon"> <ion-icon name="lock-closed"></ion-icon>
<ion-icon name="lock-closed"></ion-icon> </div>
<input type="password" name="password" required>
</div> </div>
<input type="password" name="password" required>
</div> </div>
</div> <a href="#" class="forgot">Mot de passe oublié ?</a>
<a href="#" class="forgot">Mot de passe oublié ?</a> <div class="CadreInput">
<div class="box">
<input type="submit" value="Se connecter">
</div>
</div>
</form>
<div class="CadreInput"> <div class="CadreInput">
<div class="box"> <div class="box">
<input type="submit" value="Se connecter"> <form action="../public/index.php?action=inscription" method="POST">
<input type="submit" class="other" value="S'inscrire">
</form>
</div> </div>
</div> </div>
</form> {% if dVueErreur is not empty %}
<div class="CadreInput"> <div class="CadreInput">
<div class="box"> <div class="box">
<form action="../public/index.php?action=inscription" method="POST"> <div class="error">
<input type="submit" class="other" value="S'inscrire"> <ul>
</form> {% for erreur in dVueErreur %}
</div> <li>{{ erreur }}</li>
</div> {% endfor %}
{% if dVueErreur is not empty %} </ul>
<div class="CadreInput"> </div>
<div class="box">
<div class="error">
<ul>
{% for erreur in dVueErreur %}
<li>{{ erreur }}</li>
{% endfor %}
</ul>
</div> </div>
</div> </div>
{% endif %}
</div> </div>
{% endif %} <footer>
</div> {% include 'footer.html' %}
<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script> </footer>
<script nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
</body> </body>
</html> </html>
<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
<script nomodule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>

@ -7,81 +7,79 @@
<link rel="stylesheet" type="text/css" href="../public/css/inscription.css"> <link rel="stylesheet" type="text/css" href="../public/css/inscription.css">
</head> </head>
<body> <body>
<div class="container"> <header>
<form action="" method="POST"> {% include 'menu.html' %}
<h3>S'inscrire</h3> </header>
<div class="CadreInput"> <div class="containerC">
<span>Prénom :</span> <form action="" method="POST">
<div class="box"> <h3>S'inscrire</h3>
<div class="icon"> <div class="CadreInput">
<ion-icon name="person"></ion-icon> <span>Prénom :</span>
</div> <div class="box">
<label> <div class="icon">
<ion-icon name="person"></ion-icon>
</div>
<input type="text" name="firstname" required> <input type="text" name="firstname" required>
</label>
</div>
</div>
<div class="CadreInput">
<span>Nom :</span>
<div class="box">
<div class="icon">
<ion-icon name="person"></ion-icon>
</div> </div>
<label>
<input type="text" name="name" required>
</label>
</div> </div>
</div> <div class="CadreInput">
<div class="CadreInput"> <span>Nom :</span>
<span>Email</span> <div class="box">
<div class="box"> <div class="icon">
<div class="icon"> <ion-icon name="person"></ion-icon>
<ion-icon name="mail-outline"></ion-icon> </div>
<input type="text" name="name" required>
</div> </div>
<label>
<input type="email" name="email" required>
</label>
</div> </div>
</div> <div class="CadreInput">
<div class="CadreInput"> <span>Email</span>
<span>Mot de passe</span> <div class="box">
<div class="box"> <div class="icon">
<div class="icon"> <ion-icon name="mail-outline"></ion-icon>
<ion-icon name="lock-closed"></ion-icon> </div>
<input type="email" name="email" required>
</div> </div>
<label> </div>
<div class="CadreInput">
<span>Mot de passe</span>
<div class="box">
<div class="icon">
<ion-icon name="lock-closed"></ion-icon>
</div>
<input type="password" name="password" required> <input type="password" name="password" required>
</label> </div>
</div> </div>
</div> <div class="CadreInput">
<div class="box">
<input type="submit" value="Creer mon compte">
</div>
</div>
</form>
<div class="CadreInput"> <div class="CadreInput">
<div class="box"> <div class="box">
<input type="submit" value="Creer mon compte"> <form action="../public/index.php?action=connection" method="POST">
<input class="other" type="submit" value="Se connecter">
</form>
</div> </div>
</div> </div>
</form> {% if dVueErreur is not empty %}
<div class="CadreInput"> <div class="CadreInput">
<div class="box"> <div class="box">
<form action="../public/index.php?action=connection" method="POST"> <div class="error">
<input class="other" type="submit" value="Se connecter"> <ul>
</form> {% for erreur in dVueErreur %}
</div> <li>{{ erreur }}</li>
</div> {% endfor %}
{% if dVueErreur is not empty %} </ul>
<div class="CadreInput"> </div>
<div class="box">
<div class="error">
<ul>
{% for erreur in dVueErreur %}
<li>{{ erreur }}</li>
{% endfor %}
</ul>
</div> </div>
</div> </div>
{% endif %}
</div> </div>
{% endif %} <footer>
</div> {% include 'footer.html' %}
<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script> </footer>
<script noModule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>
</body> </body>
</html> </html>
<script type="module" src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"></script>
<script noModule src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"></script>

@ -16,11 +16,11 @@
<div class="bar"></div> <div class="bar"></div>
</div> </div>
<ul class="nav-items"> <ul class="nav-items">
<li class="nav-link"><a href="#">A propos</a></li> <li class="nav-link"><a href="index.php#">A propos</a></li>
<li class="nav-link"><a href="#">Evenements</a></li> <li class="nav-link"><a href="index.php#evenements">Evenements</a></li>
<li class="nav-link"><a href="index.php?action=consultOffers">Offres</a></li> <li class="nav-link"><a href="index.php?action=consultOffers">Offres</a></li>
<li class="nav-link"><a href="#">Nous contacter</a></li> <li class="nav-link"><a href="index.php#">Nous contacter</a></li>
</ul> </ul>
<ul class="nav-items"> <ul class="nav-items">
<!-- Afficher boutons de connexion et d'inscription --> <!-- Afficher boutons de connexion et d'inscription -->

@ -44,7 +44,7 @@
<div class="col-12 col-md-9"> <div class="col-12 col-md-9">
<h3>{{ offre.getNom() }}</h3> <h3>{{ offre.getNom() }}</h3>
<p>Julien Martin</p> <p>Julien Martin</p><!-- A changer -->
</div> </div>
</div> </div>
<div class="row"> <div class="row">

Loading…
Cancel
Save