@ -1,10 +0,0 @@
|
|||||||
/*//////////////////////////////////////////////////////////////////
|
|
||||||
[ CANDIDATURES ]*/
|
|
||||||
|
|
||||||
.content_title
|
|
||||||
{
|
|
||||||
text-align: center;
|
|
||||||
margin: 10px;
|
|
||||||
font-size:calc(30px + 1vw);
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
/*//////////////////////////////////////////////////////////////////
|
|
||||||
[ GESTION_ENTREPRISES ]*/
|
|
||||||
|
|
||||||
.content_title
|
|
||||||
{
|
|
||||||
text-align: center;
|
|
||||||
margin: 10px;
|
|
||||||
font-size:calc(30px + 1vw);
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
/*//////////////////////////////////////////////////////////////////
|
|
||||||
[ GESTION_STAGES ]*/
|
|
||||||
|
|
||||||
.content_title
|
|
||||||
{
|
|
||||||
text-align: center;
|
|
||||||
margin: 10px;
|
|
||||||
font-size:calc(30px + 1vw);
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
Before Width: | Height: | Size: 16 KiB |
@ -1,3 +0,0 @@
|
|||||||
$(document).ready(function(){
|
|
||||||
$("#li_gestion_entreprises").delay(2000).addClass("hover");
|
|
||||||
});
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
$(document).ready(function(){
|
|
||||||
$("#li_gestion_stages").delay(2000).addClass("hover");
|
|
||||||
});
|
|
||||||
@ -1,28 +0,0 @@
|
|||||||
$(document).ready(function(){
|
|
||||||
$("#li_stages").delay(2000).addClass("hover");
|
|
||||||
|
|
||||||
$(".heart1, .heart2").click(function(event) {
|
|
||||||
var id = $(this).prop('id').split('_')[0];
|
|
||||||
if ($("#"+id+"_1").hasClass("heart-hidden")){ //enlever coeur rouge /enlever des favoris
|
|
||||||
$.post(
|
|
||||||
'controller/AddRemoveWishlist.php',
|
|
||||||
{action: "remove", ID_internship: id},
|
|
||||||
function(data, status, jqXHR) {
|
|
||||||
if (data.trim() == "remove_ok"){
|
|
||||||
$("#"+id+"_1").removeClass("heart-hidden");
|
|
||||||
$("#"+id+"_2").addClass("heart-hidden");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
} else { //cocher coeur gris /ajouter aux favoris
|
|
||||||
$.post(
|
|
||||||
'controller/AddRemoveWishlist.php',
|
|
||||||
{action: "add", ID_internship: id},
|
|
||||||
function(data, status, jqXHR) {
|
|
||||||
if (data.trim() == "add_ok"){
|
|
||||||
$("#"+id+"_2").removeClass("heart-hidden");
|
|
||||||
$("#"+id+"_1").addClass("heart-hidden");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
});
|
|
||||||
});
|
|
||||||
135
candidatures.php
@ -1,135 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
if (isset($_SESSION["username"])){
|
|
||||||
$sql = 'SELECT ID_candidature, progression_candidature, cv_file_path_candidature, lm_file_path_candidature, validation_form_file_path_candidature, internship_agreement_file_path_candidature, name_internship, name_company, ID_user, username, city_localisation, postal_code_localisation FROM candidatures NATURAL JOIN users INNER JOIN internships ON candidatures.ID_internship=internships.ID_internship INNER JOIN localisations ON internships.ID_localisation=localisations.ID_localisation NATURAL JOIN companies WHERE username=:user ORDER BY offer_date_internship ASC;';
|
|
||||||
|
|
||||||
include "controller/ConnexionBDD.php";
|
|
||||||
if (!$error) {
|
|
||||||
$query_perm = $bdd->prepare('SELECT username, code_permission FROM users NATURAL JOIN roles NATURAL JOIN roles_has_permissions NATURAL JOIN permissions WHERE username=:user;');
|
|
||||||
$query_perm->execute(['user' => $_SESSION["username"]]);
|
|
||||||
$results_perm = $query_perm->fetchALL(PDO::FETCH_OBJ);
|
|
||||||
if ($query_perm->rowCount() >= 1) {
|
|
||||||
$showCandidatures = false;
|
|
||||||
|
|
||||||
foreach ($results_perm as $result) {
|
|
||||||
if ($result->code_permission == "SFx29" || $result->code_permission == "SFx30" || $result->code_permission == "SFx31" || $result->code_permission == "SFx32" || $result->code_permission == "SFx33" || $result->code_permission == "SFx34" || $result->code_permission == "SFx35"){
|
|
||||||
$showCandidatures = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($showCandidatures){
|
|
||||||
|
|
||||||
$query_candidatures = $bdd->prepare($sql);
|
|
||||||
$query_candidatures->execute(['user' => $_SESSION["username"]]);
|
|
||||||
$results_candidatures = $query_candidatures->fetchALL(PDO::FETCH_OBJ);
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
||||||
<html lang="fr">
|
|
||||||
<head>
|
|
||||||
<?php require "controller/Head.php" ?>
|
|
||||||
<title>Candidatures - CTS</title>
|
|
||||||
<link rel="stylesheet" type="text/css" href="assets/css/candidatures.css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="container">
|
|
||||||
<?php require "controller/Nav_bar.php" ?>
|
|
||||||
<div class="main">
|
|
||||||
<?php require "controller/Top_bar.php" ?>
|
|
||||||
<div class="content">
|
|
||||||
<div class="content_title">Candidatures</div>
|
|
||||||
<?php
|
|
||||||
if ($query_candidatures->rowCount() >= 1) {
|
|
||||||
foreach ($query_candidatures as $result) {
|
|
||||||
?>
|
|
||||||
<div class="bubble">
|
|
||||||
<div class="title_bubble"><?= $result->name_internship; ?>
|
|
||||||
<div id="<?= $result->ID_internship ?>_1" class="heart1 heart-hidden"><i class="far fa-heart"></i></div>
|
|
||||||
<div id="<?= $result->ID_internship ?>_2" class="heart2" style="color: red;"><i class="fas fa-heart"></i></div>
|
|
||||||
</div>
|
|
||||||
<div class="text_content">
|
|
||||||
<div class="divLeft">
|
|
||||||
<div class="name_company">
|
|
||||||
<?= $result->name_company; ?>
|
|
||||||
</div>
|
|
||||||
<?= $result->city_localisation; ?> <?= $result->postal_code_localisation; ?>
|
|
||||||
<div class="description">
|
|
||||||
<?= $result->description_internship; ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="divRight">
|
|
||||||
<table>
|
|
||||||
<div class="table_title">Points importants:</div>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td><i class="far fa-clock"></i></td>
|
|
||||||
<td><?= $result->duration_internship; ?> jours</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><i class="fas fa-euro-sign"></i></td>
|
|
||||||
<td><?= $result->remuneration_internship; ?> €/h</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><i class="far fa-calendar-alt"></i></td>
|
|
||||||
<td><?= $result->offer_date_internship; ?></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><i class="fas fa-graduation-cap"></i></td>
|
|
||||||
<td><?= $result->name_promotion; ?></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><i class="fas fa-user-alt"></i></td>
|
|
||||||
<td>
|
|
||||||
<?php
|
|
||||||
echo $result->place_number_internship;
|
|
||||||
if($result->place_number_internship > 1) {echo " places disponibles";}
|
|
||||||
else {echo " place disponible";}?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><i class="fas fa-chart-bar"></i></td>
|
|
||||||
<td><?= $result->competences_internship; ?></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td><i class="fas fa-handshake"></i></td>
|
|
||||||
<td>Confiance du pilote : <?= $result->note; ?></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
?>
|
|
||||||
<div class="bubble">
|
|
||||||
<div class="title_bubble">Tout est vide...</div>
|
|
||||||
<div class="text_content">
|
|
||||||
Il n'y a aucun favori dans les parages <i class="fas fa-wind"></i>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php require "controller/Script.php" ?>
|
|
||||||
<script src="assets/js/candidatures.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
<?php
|
|
||||||
} else {
|
|
||||||
header('HTTP/1.0 403 Forbidden');
|
|
||||||
require "controller/403.php";
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
header('HTTP/1.0 403 Forbidden');
|
|
||||||
require "controller/403.php";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
echo "<script>location.href='/';</script>";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
@ -1,47 +0,0 @@
|
|||||||
<?php
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
if (isset($_SESSION["username"])){
|
|
||||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') { /*Seulement si la method est en POST*/
|
|
||||||
if (isset($_POST["action"]) && isset($_POST["ID_internship"])){ /*Vérification de l'existance des paramètres*/
|
|
||||||
$action = $_POST["action"]; /*Récupération des paramètres*/
|
|
||||||
$ID_internship = $_POST["ID_internship"]; /*Récupération des paramètres*/
|
|
||||||
|
|
||||||
require "ConnexionBDD.php"; /*Inclusion de la partie connexion*/
|
|
||||||
if (!$error) { /*Si la connexion a été établie sans erreur*/
|
|
||||||
$query_check_wishlist = $bdd->prepare('SELECT ID_user FROM users NATURAL JOIN wishlist INNER JOIN internships ON wishlist.ID_internship=internships.ID_internship WHERE username=:user AND wishlist.ID_internship=:id_internship;');
|
|
||||||
$query_check_wishlist->execute(['user' => $_SESSION["username"], 'id_internship' => $ID_internship]); /*Remplissage de la requete avec les données*/
|
|
||||||
$results_check_wishlist = $query_check_wishlist->fetchALL(PDO::FETCH_OBJ); /*Retour un résultat sous forme d'objet*/
|
|
||||||
|
|
||||||
if ($action == "remove"){
|
|
||||||
if ($query_check_wishlist->rowCount() == 1){
|
|
||||||
$query_del_wishlist = $bdd->prepare('DELETE FROM wishlist WHERE ID_internship=:id_internship AND ID_user=:id_user;');
|
|
||||||
$query_del_wishlist->execute(['id_internship' => $ID_internship, 'id_user' => $results_check_wishlist[0]->ID_user, ]);
|
|
||||||
echo 'remove_ok';
|
|
||||||
} else { echo "remove_error";}
|
|
||||||
} else if ($action == "add"){
|
|
||||||
if ($query_check_wishlist->rowCount() == 0){
|
|
||||||
|
|
||||||
$query_get_id_user = $bdd->prepare('SELECT ID_user FROM users WHERE username=:user LIMIT 1;');
|
|
||||||
$query_get_id_user->execute(['user' => $_SESSION["username"]]); /*Remplissage de la requete avec les données*/
|
|
||||||
$results_get_id_user = $query_get_id_user->fetchALL(PDO::FETCH_OBJ); /*Retour un résultat sous forme d'objet*/
|
|
||||||
|
|
||||||
if ($query_get_id_user->rowCount() == 1){
|
|
||||||
$query_del_wishlist = $bdd->prepare('INSERT INTO wishlist (ID_internship, ID_user) VALUES (:id_internship, :id_user);');
|
|
||||||
$query_del_wishlist->execute(['id_internship' => $ID_internship, 'id_user' => $results_get_id_user[0]->ID_user, ]);
|
|
||||||
echo 'add_ok';
|
|
||||||
} else {echo 'add_error';}
|
|
||||||
|
|
||||||
|
|
||||||
} else { echo "false";}
|
|
||||||
}
|
|
||||||
|
|
||||||
$bdd = null; /*Fin de connexion*/
|
|
||||||
} else {echo "false";} /*Dans le cas d'une erreur de connexion à la BDD, retour false (erreur d'authentification)*/
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
echo "<script>location.href='/';</script>";
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
||||||
@ -1,29 +0,0 @@
|
|||||||
<?php
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') { /*Seulement si la method est en POST*/
|
|
||||||
if (isset($_POST["user"]) && isset($_POST["pass"])){ /*Vérification de l'existance des paramètres*/
|
|
||||||
$user = $_POST["user"]; /*Récupération des paramètres*/
|
|
||||||
$pass = $_POST["pass"];
|
|
||||||
require "ConnexionBDD.php"; /*Inclusion de la partie connexion*/
|
|
||||||
|
|
||||||
if (!$error) { /*Si la connexion a été établie sans erreur*/
|
|
||||||
$query = $bdd->prepare('SELECT password_user FROM users NATURAL JOIN roles NATURAL JOIN roles_has_permissions NATURAL JOIN permissions WHERE code_permission="SFx1" AND username=:user;');
|
|
||||||
$query->execute(['user' => $user]); /*Remplissage de la requete avec les données*/
|
|
||||||
$results = $query->fetchALL(PDO::FETCH_OBJ); /*Retour un résultat sous forme d'objet*/
|
|
||||||
|
|
||||||
if ($query->rowCount() == 1){
|
|
||||||
if ($results[0]->password_user == $pass){
|
|
||||||
echo "true"; /*Retourne true si le mot de passe correspond*/
|
|
||||||
$_SESSION["username"] = $user;
|
|
||||||
/*Requête permettant la mise à jour des champs : connection_count et last_connection de l'utilisateur*/
|
|
||||||
$query = $bdd->prepare('UPDATE users SET connection_count = connection_count + 1, last_connection = CURDATE() WHERE username = :user;');
|
|
||||||
$query->execute(['user' => $user]); /*Execution de la requête*/
|
|
||||||
}
|
|
||||||
else { echo "false";} /*false si mot de passe non correct*/
|
|
||||||
} else { echo "false";}
|
|
||||||
$bdd = null; /*Fin de connexion*/
|
|
||||||
} else {echo "false";} /*Dans le cas d'une erreur de connexion à la BDD, retour false (erreur d'authentification)*/
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
<?php
|
|
||||||
session_start();
|
|
||||||
session_destroy();
|
|
||||||
echo "<script>location.href='/'</script>"
|
|
||||||
?>
|
|
||||||
@ -1,38 +0,0 @@
|
|||||||
<?php
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
if (isset($_SESSION["username"])){
|
|
||||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') { /*Seulement si la method est en POST*/
|
|
||||||
if (isset($_POST["actual_pass"]) && isset($_POST["new_pass"]) && isset($_POST["confirm_pass"])){ /*Vérification de l'existance des paramètres*/
|
|
||||||
$actual_pass = $_POST["actual_pass"]; /*Récupération des paramètres*/
|
|
||||||
$new_pass = $_POST["new_pass"];
|
|
||||||
$confirm_pass = $_POST["confirm_pass"];
|
|
||||||
|
|
||||||
require "ConnexionBDD.php"; /*Inclusion de la partie connexion*/
|
|
||||||
|
|
||||||
if (!$error) { /*Si la connexion a été établie sans erreur*/
|
|
||||||
$query = $bdd->prepare('SELECT password_user FROM users WHERE username=:user;');
|
|
||||||
$query->execute(['user' => $_SESSION["username"]]); /*Remplissage de la requete avec les données*/
|
|
||||||
$results = $query->fetchALL(PDO::FETCH_OBJ); /*Retour un résultat sous forme d'objet*/
|
|
||||||
|
|
||||||
if ($query->rowCount() == 1){
|
|
||||||
if ($results[0]->password_user == $actual_pass){
|
|
||||||
if ($new_pass == $confirm_pass){
|
|
||||||
$query_update_pass = $bdd->prepare('UPDATE users SET password_user = :pass WHERE username=:user;');
|
|
||||||
$query_update_pass->execute(['user' => $_SESSION["username"], 'pass' => $new_pass]);
|
|
||||||
echo "true";
|
|
||||||
} else {
|
|
||||||
echo "new_not_match";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else { echo "actual_not_match";} /*false si mot de passe non correct*/
|
|
||||||
} else { echo "false";}
|
|
||||||
$bdd = null; /*Fin de connexion*/
|
|
||||||
} else {echo "false";} /*Dans le cas d'une erreur de connexion à la BDD, retour false (erreur d'authentification)*/
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
echo "<script>location.href='/';</script>";
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
||||||
@ -1,5 +0,0 @@
|
|||||||
<link rel="stylesheet" href="./assets/vendors/fontawesome/css/all.min.css">
|
|
||||||
<link rel="stylesheet" href="./assets/css/nav_bar.css">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<link rel="icon" type="image/png" href="assets/images/logo_petit.png">
|
|
||||||
<meta charset="UTF-8">
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
<script src="assets/vendors/jquery/jquery-3.6.0.min.js"></script>
|
|
||||||
<script src="assets/js/nav_bar.js"></script>
|
|
||||||
<script src="assets/js/sha1.min.js"></script>
|
|
||||||
@ -1,29 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
if (isset($_SESSION["username"])){ ?>
|
|
||||||
<html lang="fr">
|
|
||||||
<head>
|
|
||||||
<?php require "controller/Head.php" ?>
|
|
||||||
<title>Delegues - Gestion - CTS</title>
|
|
||||||
<link rel="stylesheet" type="text/css" href="assets/css/gestion_delegates.css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="container">
|
|
||||||
<?php require "controller/Nav_bar.php"?>
|
|
||||||
<div class="main">
|
|
||||||
<?php require "controller/Top_bar.php" ?>
|
|
||||||
<div class="content">
|
|
||||||
<div class="content_title">Gestion des délégués</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php require "controller/Script.php" ?>
|
|
||||||
<script src="assets/js/gestion_delegates.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
<?php } else {?>
|
|
||||||
<script>location.href='/';</script>
|
|
||||||
<?php } ?>
|
|
||||||
@ -1,29 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
if (isset($_SESSION["username"])){ ?>
|
|
||||||
<html lang="fr">
|
|
||||||
<head>
|
|
||||||
<?php require "controller/Head.php" ?>
|
|
||||||
<title>Entreprises - Gestion - CTS</title>
|
|
||||||
<link rel="stylesheet" type="text/css" href="assets/css/gestion_entreprises.css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="container">
|
|
||||||
<?php require "controller/Nav_bar.php" ?>
|
|
||||||
<div class="main">
|
|
||||||
<?php require "controller/Top_bar.php" ?>
|
|
||||||
<div class="content">
|
|
||||||
<div class="content_title">Gestion des entreprises</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php require "controller/Script.php" ?>
|
|
||||||
<script src="assets/js/gestion_entreprises.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
<?php } else {?>
|
|
||||||
<script>location.href='/';</script>
|
|
||||||
<?php } ?>
|
|
||||||
@ -1,29 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
if (isset($_SESSION["username"])){ ?>
|
|
||||||
<html lang="fr">
|
|
||||||
<head>
|
|
||||||
<?php require "controller/Head.php" ?>
|
|
||||||
<title>Pilotes - Gestion - CTS</title>
|
|
||||||
<link rel="stylesheet" type="text/css" href="assets/css/gestion_pilots.css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="container">
|
|
||||||
<?php require "controller/Nav_bar.php"?>
|
|
||||||
<div class="main">
|
|
||||||
<?php require "controller/Top_bar.php" ?>
|
|
||||||
<div class="content">
|
|
||||||
<div class="content_title">Gestions des pilotes</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php require "controller/Script.php" ?>
|
|
||||||
<script src="assets/js/gestion_pilots.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
<?php } else {?>
|
|
||||||
<script>location.href='/';</script>
|
|
||||||
<?php } ?>
|
|
||||||
@ -1,29 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
if (isset($_SESSION["username"])){ ?>
|
|
||||||
<html lang="fr">
|
|
||||||
<head>
|
|
||||||
<?php require "controller/Head.php" ?>
|
|
||||||
<title>Stages - Gestion - CTS</title>
|
|
||||||
<link rel="stylesheet" type="text/css" href="assets/css/gestion_stages.css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="container">
|
|
||||||
<?php require "controller/Nav_bar.php"?>
|
|
||||||
<div class="main">
|
|
||||||
<?php require "controller/Top_bar.php" ?>
|
|
||||||
<div class="content">
|
|
||||||
<div class="content_title">Gestion des stages</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php require "controller/Script.php" ?>
|
|
||||||
<script src="assets/js/gestion_stages.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
<?php } else {?>
|
|
||||||
<script>location.href='/';</script>
|
|
||||||
<?php } ?>
|
|
||||||
@ -1,29 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
session_start();
|
|
||||||
|
|
||||||
if (isset($_SESSION["username"])){ ?>
|
|
||||||
<html lang="fr">
|
|
||||||
<head>
|
|
||||||
<?php require "controller/Head.php" ?>
|
|
||||||
<title>Etudiants - Gestion - CTS</title>
|
|
||||||
<link rel="stylesheet" type="text/css" href="assets/css/gestion_students.css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div class="container">
|
|
||||||
<?php require "controller/Nav_bar.php"?>
|
|
||||||
<div class="main">
|
|
||||||
<?php require "controller/Top_bar.php" ?>
|
|
||||||
<div class="content">
|
|
||||||
<div class="content_title">Gestion des étudiants</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<?php require "controller/Script.php" ?>
|
|
||||||
<script src="assets/js/gestion_students.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
<?php } else {?>
|
|
||||||
<script>location.href='/';</script>
|
|
||||||
<?php } ?>
|
|
||||||
125
server_static/assets/css/a_propos.css
Normal file
@ -0,0 +1,125 @@
|
|||||||
|
/*//////////////////////////////////////////////////////////////////
|
||||||
|
[ FONT ]*/
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: Kano;
|
||||||
|
src: url('../fonts/Fredoka-Regular.ttf');
|
||||||
|
}
|
||||||
|
|
||||||
|
/*//////////////////////////////////////////////////////////////////
|
||||||
|
[ ACCUEIL ]*/
|
||||||
|
|
||||||
|
*
|
||||||
|
{
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
font-family: Kano, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
:root
|
||||||
|
{
|
||||||
|
--black3: #e6e6e6;
|
||||||
|
--blue1: #4272a0;
|
||||||
|
--blue2: #5393ce;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.bubble {
|
||||||
|
position: relative;
|
||||||
|
text-align: center;
|
||||||
|
margin: 30px;
|
||||||
|
background-color: var(--black3);
|
||||||
|
border-radius: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title_bubble {
|
||||||
|
position: relative;
|
||||||
|
display: block;
|
||||||
|
padding: 10px;
|
||||||
|
font-size: 2em;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bubble img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border-radius: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bubble .centered {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
font-size:calc(12px + 2vw);
|
||||||
|
font-weight: bold;
|
||||||
|
color: white;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bubble .text_content {
|
||||||
|
text-align: center;
|
||||||
|
font-size: 1.25em;
|
||||||
|
padding: 0 10px 20px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btnvoir {
|
||||||
|
display: block;
|
||||||
|
background-color: var(--blue1);
|
||||||
|
border-radius: 10px;
|
||||||
|
border: 4px double #cccccc;
|
||||||
|
color: var(--black1);
|
||||||
|
text-align: center;
|
||||||
|
font-size: 21px;
|
||||||
|
padding: 10px;
|
||||||
|
width: 250px;
|
||||||
|
transition: all 0.5s;
|
||||||
|
cursor: pointer;
|
||||||
|
margin: 5px;
|
||||||
|
position: relative;
|
||||||
|
bottom: 0;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btnvoir span {
|
||||||
|
cursor: pointer;
|
||||||
|
display: inline-block;
|
||||||
|
position: relative;
|
||||||
|
transition: 0.5s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btnvoir span:after {
|
||||||
|
content: "\00bb";
|
||||||
|
position: absolute;
|
||||||
|
opacity: 0;
|
||||||
|
top: 0;
|
||||||
|
right: -20px;
|
||||||
|
transition: 0.5s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btnvoir:hover {
|
||||||
|
background-color: var(--blue2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.btnvoir:hover span {
|
||||||
|
padding-right: 25px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btnvoir:hover span:after {
|
||||||
|
opacity: 1;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*//////////////////////////////////////////////////////////////////
|
||||||
|
[ Responsive ]*/
|
||||||
|
|
||||||
|
@media screen and (max-width: 900px)
|
||||||
|
{
|
||||||
|
.bubble
|
||||||
|
{
|
||||||
|
margin: 30px 5px 30px 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,5 +1,5 @@
|
|||||||
/*//////////////////////////////////////////////////////////////////
|
/*//////////////////////////////////////////////////////////////////
|
||||||
[ OFFRES_STAGES ]*/
|
[ CANDIDATURES ]*/
|
||||||
|
|
||||||
.content_title
|
.content_title
|
||||||
{
|
{
|
||||||
@ -9,22 +9,18 @@
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bubble
|
.bubble {
|
||||||
{
|
|
||||||
position: relative;
|
position: relative;
|
||||||
min-width: 350px;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin: 30px;
|
margin: 30px;
|
||||||
background-color: var(--black3);
|
background-color: var(--black3);
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title_bubble
|
.title_bubble {
|
||||||
{
|
|
||||||
position: relative;
|
position: relative;
|
||||||
display: block;
|
display: block;
|
||||||
padding: 10px 40px;
|
padding: 10px;
|
||||||
margin-bottom: 10px;
|
|
||||||
font-size: 2em;
|
font-size: 2em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
@ -45,33 +41,56 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bubble img
|
.bubble img {
|
||||||
{
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bubble .centered {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
font-size:calc(12px + 2vw);
|
||||||
|
font-weight: bold;
|
||||||
|
color: white;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
.bubble .text_content
|
.bubble .text_content
|
||||||
{
|
{
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: row wrap;
|
flex-flow: row wrap;
|
||||||
|
justify-content: center;
|
||||||
font-size: 1.25em;
|
font-size: 1.25em;
|
||||||
padding: 0 10px 20px 10px;
|
padding: 0 10px 20px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.bubble .divLeft,
|
.bubble .divLeft,
|
||||||
.bubble .divRight
|
.bubble .divRight
|
||||||
{
|
{
|
||||||
width: 50%;
|
width: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bubble .divLeft .name_company
|
.bubble .divLeft .title_in_bubble
|
||||||
{
|
{
|
||||||
font-size: 1.25em;
|
font-size: 1.25em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin: 10px;
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bubble .divLeft .title_in_bubble_status
|
||||||
|
{
|
||||||
|
font-size: 1em;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bubble .divLeft .text_stat
|
||||||
|
{
|
||||||
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bubble .divRight
|
.bubble .divRight
|
||||||
@ -105,77 +124,55 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.table-container {
|
||||||
.table-container
|
|
||||||
{
|
|
||||||
display: block;
|
display: block;
|
||||||
width: 85%;
|
width: 85%;
|
||||||
max-width: 900px;
|
max-width: 900px;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filter_form button
|
.flex-table {
|
||||||
{
|
|
||||||
width: 130px;
|
|
||||||
height: 40px;
|
|
||||||
margin-top: 15px;
|
|
||||||
font-size: 1em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.flex-table
|
|
||||||
{
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: row wrap;
|
flex-flow: row wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex-row
|
.flex-row {
|
||||||
{
|
|
||||||
width: calc(100% / 4);
|
width: calc(100% / 4);
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 0.2em 0.2em;
|
padding: 0.2em 0.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex-row select,
|
.flex-table .name
|
||||||
.flex-row input
|
{
|
||||||
{
|
|
||||||
width:220px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.flex-table .name
|
|
||||||
{
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex-table .value
|
.flex-table .value
|
||||||
{
|
{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bubble .button
|
.bubble .button
|
||||||
{
|
|
||||||
margin: 0 0 0 auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bubble .button_postuler
|
|
||||||
{
|
{
|
||||||
width: 130px;
|
width: 130px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
|
margin-top: 5px;
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*//////////////////////////////////////////////////////////////////
|
/*//////////////////////////////////////////////////////////////////
|
||||||
[ Responsive ]*/
|
[ Responsive ]*/
|
||||||
|
|
||||||
@media screen and (max-width: 1300px)
|
@media screen and (max-width: 1200px)
|
||||||
{
|
{
|
||||||
.table-container {
|
.table-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 1200px)
|
@media screen and (max-width: 1100px)
|
||||||
{
|
{
|
||||||
.table-container {
|
.table-container {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
@ -183,12 +180,6 @@
|
|||||||
.flex-row {
|
.flex-row {
|
||||||
width: calc(100% / 2);
|
width: calc(100% / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.flex-table .name
|
|
||||||
{
|
|
||||||
text-align: left;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 900px)
|
@media screen and (max-width: 900px)
|
||||||
@ -202,18 +193,21 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 700px) {
|
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
.table-container {
|
.table-container {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
}
|
}
|
||||||
.flex-row {
|
.flex-row {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.flex-table .name {
|
.flex-table .name
|
||||||
|
{
|
||||||
text-align: left;
|
text-align: left;
|
||||||
font-weight: bold ;
|
font-weight: bold ;
|
||||||
}
|
}
|
||||||
.flex-table .value {
|
.flex-table .value
|
||||||
|
{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.bubble .divLeft,
|
.bubble .divLeft,
|
||||||
@ -221,10 +215,5 @@
|
|||||||
{
|
{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (max-width: 350px) {
|
|
||||||
body {
|
|
||||||
overflow-x: auto;
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
197
server_static/assets/css/gestion_entreprises.css
Normal file
@ -0,0 +1,197 @@
|
|||||||
|
/*//////////////////////////////////////////////////////////////////
|
||||||
|
[ GESTION_ENTREPRISES ]*/
|
||||||
|
|
||||||
|
.content_title
|
||||||
|
{
|
||||||
|
text-align: center;
|
||||||
|
margin: 10px;
|
||||||
|
font-size:calc(30px + 1vw);
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info_message
|
||||||
|
{
|
||||||
|
display: none;
|
||||||
|
width: 80%;
|
||||||
|
margin: 10px auto 20px auto;
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 10px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo_plus i,
|
||||||
|
.actions i
|
||||||
|
{
|
||||||
|
margin: 0 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo_plus
|
||||||
|
{
|
||||||
|
text-align: center;
|
||||||
|
font-size: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table {
|
||||||
|
margin: 0 auto 0 auto;
|
||||||
|
padding: 10px;
|
||||||
|
text-align: center;
|
||||||
|
overflow: auto;
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table tr:first-child td {
|
||||||
|
background-color: #a79c9c;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
table td {
|
||||||
|
min-width: 100px;
|
||||||
|
width: calc(100% / 8);
|
||||||
|
padding: 5px;
|
||||||
|
border: solid 1px black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal_stat_table
|
||||||
|
{
|
||||||
|
margin: 0 auto;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*//////////////////////////////////////////////////////////////////
|
||||||
|
[ Modal ] */
|
||||||
|
|
||||||
|
.modal
|
||||||
|
{
|
||||||
|
display: none;
|
||||||
|
position: fixed;
|
||||||
|
z-index: 1;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
background-color: rgb(0,0,0);
|
||||||
|
background-color: rgba(0,0,0,0.7);
|
||||||
|
}
|
||||||
|
|
||||||
|
.title_modal,
|
||||||
|
.title_modal2
|
||||||
|
{
|
||||||
|
border-radius: 10px 10px 0 0;
|
||||||
|
padding: 10px;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 2em;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-content
|
||||||
|
{
|
||||||
|
background-color: #ffffff;
|
||||||
|
margin: 15% auto;
|
||||||
|
width: 80%;
|
||||||
|
border-radius: 10px;
|
||||||
|
text-align: center;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info_message
|
||||||
|
{
|
||||||
|
display: none;
|
||||||
|
width: 80%;
|
||||||
|
margin: 10px auto 20px auto;
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form_add_edit .input
|
||||||
|
{
|
||||||
|
width: 80%;
|
||||||
|
height: 25px;
|
||||||
|
margin-left: 10px;
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form_add_edit button, .form_add_edit input[type="button"]
|
||||||
|
{
|
||||||
|
margin: 10px;
|
||||||
|
width: 120px;
|
||||||
|
height: 40px;
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close
|
||||||
|
{
|
||||||
|
color: #aaa;
|
||||||
|
float: right;
|
||||||
|
font-size: 40px;
|
||||||
|
font-weight: bold;
|
||||||
|
right: -20px;
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close:hover, .close:focus
|
||||||
|
{
|
||||||
|
color: black;
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-container {
|
||||||
|
display: block;
|
||||||
|
width: 90%;
|
||||||
|
max-width: 900px;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-table {
|
||||||
|
display: flex;
|
||||||
|
flex-flow: row wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-row {
|
||||||
|
width: calc(100% / 2);
|
||||||
|
text-align: center;
|
||||||
|
padding: 0.2em 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-table .name
|
||||||
|
{
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-table .value
|
||||||
|
{
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*//////////////////////////////////////////////////////////////////
|
||||||
|
[ Responsive ]*/
|
||||||
|
|
||||||
|
@media screen and (max-width: 900px)
|
||||||
|
{
|
||||||
|
.modal-content
|
||||||
|
{
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
.flex-row {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.flex-table .name
|
||||||
|
{
|
||||||
|
text-align: left;
|
||||||
|
font-weight: bold ;
|
||||||
|
}
|
||||||
|
.flex-table .value
|
||||||
|
{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
197
server_static/assets/css/gestion_stages.css
Normal file
@ -0,0 +1,197 @@
|
|||||||
|
/*//////////////////////////////////////////////////////////////////
|
||||||
|
[ GESTION_STAGES ]*/
|
||||||
|
|
||||||
|
.content_title
|
||||||
|
{
|
||||||
|
text-align: center;
|
||||||
|
margin: 10px;
|
||||||
|
font-size:calc(30px + 1vw);
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info_message
|
||||||
|
{
|
||||||
|
display: none;
|
||||||
|
width: 80%;
|
||||||
|
margin: 10px auto 20px auto;
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 10px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo_plus i,
|
||||||
|
.actions i
|
||||||
|
{
|
||||||
|
margin: 0 10px;
|
||||||
|
cursor: pointer;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo_plus
|
||||||
|
{
|
||||||
|
text-align: center;
|
||||||
|
font-size: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table {
|
||||||
|
margin: 0 auto 0 auto;
|
||||||
|
padding: 10px;
|
||||||
|
text-align: center;
|
||||||
|
overflow: auto;
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table tr:first-child td {
|
||||||
|
background-color: #a79c9c;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
table td {
|
||||||
|
min-width: 100px;
|
||||||
|
width: calc(100% / 8);
|
||||||
|
padding: 5px;
|
||||||
|
border: solid 1px black;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal_stat_table
|
||||||
|
{
|
||||||
|
margin: 0 auto;
|
||||||
|
padding-bottom: 10px;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*//////////////////////////////////////////////////////////////////
|
||||||
|
[ Modal ] */
|
||||||
|
|
||||||
|
.modal
|
||||||
|
{
|
||||||
|
display: none;
|
||||||
|
position: fixed;
|
||||||
|
z-index: 1;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
background-color: rgb(0,0,0);
|
||||||
|
background-color: rgba(0,0,0,0.7);
|
||||||
|
}
|
||||||
|
|
||||||
|
.title_modal,
|
||||||
|
.title_modal2
|
||||||
|
{
|
||||||
|
border-radius: 10px 10px 0 0;
|
||||||
|
padding: 10px;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 2em;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-content
|
||||||
|
{
|
||||||
|
background-color: #ffffff;
|
||||||
|
margin: 15% auto;
|
||||||
|
width: 80%;
|
||||||
|
border-radius: 10px;
|
||||||
|
text-align: center;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info_message
|
||||||
|
{
|
||||||
|
display: none;
|
||||||
|
width: 80%;
|
||||||
|
margin: 10px auto 20px auto;
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form_add_edit .input
|
||||||
|
{
|
||||||
|
width: 80%;
|
||||||
|
height: 25px;
|
||||||
|
margin-left: 10px;
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form_add_edit button, .form_add_edit input[type="button"]
|
||||||
|
{
|
||||||
|
margin: 10px;
|
||||||
|
width: 120px;
|
||||||
|
height: 40px;
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close
|
||||||
|
{
|
||||||
|
color: #aaa;
|
||||||
|
float: right;
|
||||||
|
font-size: 40px;
|
||||||
|
font-weight: bold;
|
||||||
|
right: -20px;
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close:hover, .close:focus
|
||||||
|
{
|
||||||
|
color: black;
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-container {
|
||||||
|
display: block;
|
||||||
|
width: 90%;
|
||||||
|
max-width: 900px;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-table {
|
||||||
|
display: flex;
|
||||||
|
flex-flow: row wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-row {
|
||||||
|
width: calc(100% / 2);
|
||||||
|
text-align: center;
|
||||||
|
padding: 0.2em 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-table .name
|
||||||
|
{
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-table .value
|
||||||
|
{
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*//////////////////////////////////////////////////////////////////
|
||||||
|
[ Responsive ]*/
|
||||||
|
|
||||||
|
@media screen and (max-width: 900px)
|
||||||
|
{
|
||||||
|
.modal-content
|
||||||
|
{
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 500px) {
|
||||||
|
.flex-row {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.flex-table .name
|
||||||
|
{
|
||||||
|
text-align: left;
|
||||||
|
font-weight: bold ;
|
||||||
|
}
|
||||||
|
.flex-table .value
|
||||||
|
{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -6,13 +6,7 @@
|
|||||||
src: url('../fonts/Fredoka-Regular.ttf');
|
src: url('../fonts/Fredoka-Regular.ttf');
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face{
|
|
||||||
font-family:'FontAwesome';
|
|
||||||
src:url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),
|
|
||||||
url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');
|
|
||||||
font-weight:normal;
|
|
||||||
font-style:normal}
|
|
||||||
.fa-exclamation-circle:before{content:"\f06a"}
|
|
||||||
|
|
||||||
|
|
||||||
/*//////////////////////////////////////////////////////////////////
|
/*//////////////////////////////////////////////////////////////////
|
||||||
@ -84,6 +78,17 @@ a:hover {
|
|||||||
color: #000;
|
color: #000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.info_message
|
||||||
|
{
|
||||||
|
display: none;
|
||||||
|
width: 80%;
|
||||||
|
text-align: center;
|
||||||
|
margin: 0 auto 25px auto;
|
||||||
|
background-color: rgb(236, 135, 135);
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
/*//////////////////////////////////////////////////////////////////
|
/*//////////////////////////////////////////////////////////////////
|
||||||
[ login ]*/
|
[ login ]*/
|
||||||
|
|
||||||
@ -262,7 +267,7 @@ a:hover {
|
|||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border: 1px solid #c80000;
|
border: 1px solid #c80000;
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
padding: 4px 25px 4px 10px;
|
padding: 4px 10px 4px 10px;
|
||||||
top: 50%;
|
top: 50%;
|
||||||
-webkit-transform: translateY(-50%);
|
-webkit-transform: translateY(-50%);
|
||||||
-moz-transform: translateY(-50%);
|
-moz-transform: translateY(-50%);
|
||||||
@ -285,7 +290,6 @@ a:hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.alert-validate::after {
|
.alert-validate::after {
|
||||||
content: "\f06a";
|
|
||||||
font-family: FontAwesome;
|
font-family: FontAwesome;
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -363,3 +367,18 @@ a:hover {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#firstname {
|
||||||
|
color: blue;
|
||||||
|
text-align: center;
|
||||||
|
width: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lastname {
|
||||||
|
color: red;
|
||||||
|
margin: 10px;
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
362
server_static/assets/css/offres_stages.css
Normal file
@ -0,0 +1,362 @@
|
|||||||
|
/*//////////////////////////////////////////////////////////////////
|
||||||
|
[ OFFRES_STAGES ]*/
|
||||||
|
|
||||||
|
.content_title
|
||||||
|
{
|
||||||
|
text-align: center;
|
||||||
|
margin: 10px;
|
||||||
|
font-size:calc(30px + 1vw);
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bubble
|
||||||
|
{
|
||||||
|
position: relative;
|
||||||
|
min-width: 350px;
|
||||||
|
text-align: center;
|
||||||
|
margin: 30px;
|
||||||
|
background-color: var(--black3);
|
||||||
|
border-radius: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title_bubble
|
||||||
|
{
|
||||||
|
position: relative;
|
||||||
|
display: block;
|
||||||
|
padding: 10px 40px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
font-size: 2em;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.heart1,
|
||||||
|
.heart2
|
||||||
|
{
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
margin: 10px;
|
||||||
|
font-size: 0.75em;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.heart-hidden
|
||||||
|
{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bubble img
|
||||||
|
{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border-radius: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.bubble .text_content
|
||||||
|
{
|
||||||
|
display: flex;
|
||||||
|
flex-flow: row wrap;
|
||||||
|
font-size: 1.25em;
|
||||||
|
padding: 0 10px 20px 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bubble .divLeft,
|
||||||
|
.bubble .divRight
|
||||||
|
{
|
||||||
|
width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bubble .divLeft .name_company
|
||||||
|
{
|
||||||
|
font-size: 1.25em;
|
||||||
|
font-weight: bold;
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bubble .divRight
|
||||||
|
{
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bubble .table_title
|
||||||
|
{
|
||||||
|
margin: 0 0 10px 45px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bubble .divRight table
|
||||||
|
{
|
||||||
|
margin-left: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bubble .divRight table td
|
||||||
|
{
|
||||||
|
padding: 0 10px 8px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bubble .divLeft .description
|
||||||
|
{
|
||||||
|
display: block;
|
||||||
|
height: auto;
|
||||||
|
margin: 10px;
|
||||||
|
padding: 15px;
|
||||||
|
background-color: lightgray;
|
||||||
|
border-radius: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-container
|
||||||
|
{
|
||||||
|
display: block;
|
||||||
|
width: 85%;
|
||||||
|
max-width: 900px;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.filter_form button
|
||||||
|
{
|
||||||
|
width: 130px;
|
||||||
|
height: 40px;
|
||||||
|
margin-top: 15px;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-table
|
||||||
|
{
|
||||||
|
display: flex;
|
||||||
|
flex-flow: row wrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-row
|
||||||
|
{
|
||||||
|
width: calc(100% / 4);
|
||||||
|
text-align: center;
|
||||||
|
padding: 0.2em 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-row select,
|
||||||
|
.flex-row input
|
||||||
|
{
|
||||||
|
width:220px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-table .name
|
||||||
|
{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-table .value
|
||||||
|
{
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bubble .button
|
||||||
|
{
|
||||||
|
margin: 0 0 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bubble .button_postuler
|
||||||
|
{
|
||||||
|
width: 130px;
|
||||||
|
height: 40px;
|
||||||
|
margin-right: 10px;
|
||||||
|
font-size: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.control_bar
|
||||||
|
{
|
||||||
|
text-align: center;
|
||||||
|
margin-bottom: 20px;
|
||||||
|
font-size: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left
|
||||||
|
{
|
||||||
|
display: inline-block;
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
border-radius: 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.left:hover
|
||||||
|
{
|
||||||
|
background-color: black;
|
||||||
|
color: white;
|
||||||
|
transition: all 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
.right
|
||||||
|
{
|
||||||
|
display: inline-block;
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
border-radius: 5px;
|
||||||
|
cursor: pointer;
|
||||||
|
margin-left: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.right:hover
|
||||||
|
{
|
||||||
|
background-color: black;
|
||||||
|
color: white;
|
||||||
|
transition: all 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*//////////////////////////////////////////////////////////////////
|
||||||
|
[ Modal ] */
|
||||||
|
|
||||||
|
.modal
|
||||||
|
{
|
||||||
|
display: none;
|
||||||
|
position: fixed;
|
||||||
|
z-index: 1;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
background-color: rgb(0,0,0);
|
||||||
|
background-color: rgba(0,0,0,0.7);
|
||||||
|
}
|
||||||
|
|
||||||
|
.title_modal
|
||||||
|
{
|
||||||
|
border-radius: 10px 10px 0 0;
|
||||||
|
padding: 10px;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 2em;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-content
|
||||||
|
{
|
||||||
|
background-color: #ffffff;
|
||||||
|
margin: 15% auto;
|
||||||
|
width: 80%;
|
||||||
|
border-radius: 10px;
|
||||||
|
text-align: center;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info_message
|
||||||
|
{
|
||||||
|
display: none;
|
||||||
|
width: 80%;
|
||||||
|
margin: 10px auto 20px auto;
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form_postuler input
|
||||||
|
{
|
||||||
|
width: 95%;
|
||||||
|
height: 30px;
|
||||||
|
margin-left: 10px;
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.form_postuler button, .form_postuler input[type="button"]
|
||||||
|
{
|
||||||
|
margin: 10px;
|
||||||
|
width: 120px;
|
||||||
|
height: 40px;
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-row-modal
|
||||||
|
{
|
||||||
|
width: calc(100% / 2);
|
||||||
|
text-align: center;
|
||||||
|
padding: 0.2em 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close
|
||||||
|
{
|
||||||
|
color: #aaa;
|
||||||
|
float: right;
|
||||||
|
font-size: 40px;
|
||||||
|
font-weight: bold;
|
||||||
|
right: -20px;
|
||||||
|
margin-right: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.close:hover, .close:focus
|
||||||
|
{
|
||||||
|
color: black;
|
||||||
|
text-decoration: none;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*//////////////////////////////////////////////////////////////////
|
||||||
|
[ Responsive ]*/
|
||||||
|
|
||||||
|
@media screen and (max-width: 1300px)
|
||||||
|
{
|
||||||
|
.table-container {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 1200px)
|
||||||
|
{
|
||||||
|
.table-container {
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
|
.flex-row {
|
||||||
|
width: calc(100% / 2);
|
||||||
|
}
|
||||||
|
|
||||||
|
.flex-table .name
|
||||||
|
{
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 900px)
|
||||||
|
{
|
||||||
|
.bubble
|
||||||
|
{
|
||||||
|
margin: 30px 5px 30px 5px;
|
||||||
|
}
|
||||||
|
.table-container {
|
||||||
|
width: 60%;
|
||||||
|
}
|
||||||
|
.modal-content
|
||||||
|
{
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
.flex-row {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.flex-table .name {
|
||||||
|
text-align: left;
|
||||||
|
font-weight: bold ;
|
||||||
|
}
|
||||||
|
.flex-table .value {
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
.bubble .divLeft,
|
||||||
|
.bubble .divRight
|
||||||
|
{
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 700px) {
|
||||||
|
.table-container {
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 350px) {
|
||||||
|
body {
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,6 +1,12 @@
|
|||||||
/*//////////////////////////////////////////////////////////////////
|
/*//////////////////////////////////////////////////////////////////
|
||||||
[ PARAMETRES ]*/
|
[ PARAMETRES ]*/
|
||||||
|
|
||||||
|
:root
|
||||||
|
{
|
||||||
|
--blue1: #4272a0;
|
||||||
|
--blue2: #5393ce;
|
||||||
|
}
|
||||||
|
|
||||||
.content_title
|
.content_title
|
||||||
{
|
{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@ -127,6 +133,16 @@
|
|||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn_a_propos
|
||||||
|
{
|
||||||
|
background-color: var(--blue1) !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn_a_propos:hover
|
||||||
|
{
|
||||||
|
background-color: var(--blue2) !important;
|
||||||
|
}
|
||||||
|
|
||||||
/*//////////////////////////////////////////////////////////////////
|
/*//////////////////////////////////////////////////////////////////
|
||||||
[ Modal ] */
|
[ Modal ] */
|
||||||
|
|
||||||
@ -196,6 +212,7 @@
|
|||||||
font-size: 40px;
|
font-size: 40px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
right: -20px;
|
right: -20px;
|
||||||
|
margin-right: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.close:hover, .close:focus
|
.close:hover, .close:focus
|
||||||
|
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.3 MiB |
BIN
server_static/assets/images/fond_cesi_large.png
Normal file
|
After Width: | Height: | Size: 433 KiB |
|
Before Width: | Height: | Size: 661 KiB After Width: | Height: | Size: 661 KiB |
BIN
server_static/assets/images/logo.png
Normal file
|
After Width: | Height: | Size: 4.6 KiB |
BIN
server_static/assets/images/logo128.png
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
server_static/assets/images/logo144.png
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
server_static/assets/images/logo512.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
@ -1,3 +1,4 @@
|
|||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
$("#li_accueil").addClass("hover");
|
$("#li_accueil").addClass("hover");
|
||||||
|
|
||||||
});
|
});
|
||||||
91
server_static/assets/js/gestion_entreprises.js
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
var ID_company=0;
|
||||||
|
|
||||||
|
$(document).ready(function(){
|
||||||
|
$("#li_gestion_entreprises").delay(2000).addClass("hover");
|
||||||
|
|
||||||
|
|
||||||
|
$(".logo_add").click(function() {
|
||||||
|
$("#modal_add_edit").show();
|
||||||
|
$(".title_modal").html("Ajout d'une entreprise");
|
||||||
|
$("#button_add_edit").html("Ajouter");
|
||||||
|
$("input[type='hidden']").attr("value","add");
|
||||||
|
$("input[name='name']").attr("value","");
|
||||||
|
$("input[name='activity_sector']").attr("value","");
|
||||||
|
$("input[name='nb_intern_cesi']").attr("value","");
|
||||||
|
$("input[name='email']").attr("value","");
|
||||||
|
$("#select_note").val($("#select_note option:first").val());
|
||||||
|
$("#select_localisation").val($("#select_localisation option:first").val());
|
||||||
|
$("#select_visibility").val($("#select_visibility option:first").val());
|
||||||
|
|
||||||
|
$(".info_message").css("display", "none");
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#close_add_edit").click(function() {
|
||||||
|
$("#modal_add_edit").hide();
|
||||||
|
});
|
||||||
|
|
||||||
|
window.onclick = function(event) {
|
||||||
|
if (event.target == document.getElementById("modal_add_edit")) {
|
||||||
|
$("#modal_add_edit").hide();
|
||||||
|
}
|
||||||
|
if (event.target == document.getElementById("modal_stat")) {
|
||||||
|
$("#modal_stat").hide();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$('.form_add_edit').on('submit',(function(){
|
||||||
|
$(".form_add_edit").append('<input type="hidden" name="ID_company" value="'+ window.ID_company +'">');
|
||||||
|
return true;
|
||||||
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
$(".logo_edit").click(function() {
|
||||||
|
$("#modal_add_edit").show();
|
||||||
|
window.ID_company = $(this).attr("ID_company");
|
||||||
|
$(".title_modal").html("Modification d'une entreprise");
|
||||||
|
$("#button_add_edit").html("Modifier");
|
||||||
|
$("input[type='hidden']").attr("value","edit");
|
||||||
|
$("input[name='name']").attr("value",$(this).attr("name"));
|
||||||
|
$("input[name='activity_sector']").attr("value",$(this).attr("activity_sector"));
|
||||||
|
$("input[name='nb_intern_cesi']").attr("value",$(this).attr("nb_intern"));
|
||||||
|
$("input[name='email']").attr("value",$(this).attr("email"));
|
||||||
|
|
||||||
|
$("select[name='localisation'] option[value="+$(this).attr("localisation")+"]").prop('selected', true);
|
||||||
|
$("select[name='note'] option[value="+$(this).attr("note")+"]").prop('selected', true);
|
||||||
|
$("select[name='visibility'] option[value="+$(this).attr("visibility")+"]").prop('selected', true);
|
||||||
|
$(".info_message").css("display", "none");
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
$(".logo_delete").click(function() {
|
||||||
|
console.log($(this).attr("ID_company"));
|
||||||
|
$.post(
|
||||||
|
'controller/Manage_companies.php',
|
||||||
|
{
|
||||||
|
ID_company: $(this).attr("ID_company"),
|
||||||
|
action: "delete"},
|
||||||
|
function(data, status, jqXHR) {
|
||||||
|
if (data.trim() == "false"){
|
||||||
|
$(".info_message").html("Cette entreprise ne peut pas supprimer car il existe des stages en lien avec elle.");
|
||||||
|
$(".info_message").css("background-color", "#df8787");
|
||||||
|
$(".info_message").css("display", "block");
|
||||||
|
} else if (data.trim() == "true")
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
$(".logo_stat").click(function() {
|
||||||
|
console.log($(this).attr("ID_company"));
|
||||||
|
$("#modal_stat").show();
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#close_stat").click(function() {
|
||||||
|
$("#modal_stat").hide();
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
});
|
||||||
91
server_static/assets/js/gestion_stages.js
Normal file
@ -0,0 +1,91 @@
|
|||||||
|
$(document).ready(function(){
|
||||||
|
$("#li_gestion_stages").delay(2000).addClass("hover");
|
||||||
|
|
||||||
|
$(".logo_add").click(function() {
|
||||||
|
$("#modal_add_edit").show();
|
||||||
|
$(".title_modal").html("Ajout d'un stage");
|
||||||
|
$("input[type='hidden']").attr("value","add");
|
||||||
|
$("#button_add_edit").html("Ajouter");
|
||||||
|
$("input[type='hidden']").attr("value","add");
|
||||||
|
$("input[name='name_internship']").attr("value","");
|
||||||
|
$("input[name='description_internship']").attr("value","");
|
||||||
|
$("input[name='duration_internship']").attr("value","");
|
||||||
|
$("input[name='remuneration_internship']").attr("value","");
|
||||||
|
$("input[name='offer_date_internship']").attr("value","");
|
||||||
|
$("input[name='place_number_internship']").attr("value","");
|
||||||
|
$("input[name='competences_internship']").attr("value","");
|
||||||
|
|
||||||
|
$("#select_name_promotion").val($("#select_name_promotion option:first").val());
|
||||||
|
$("#select_localisation").val($("#select_localisation option:first").val());
|
||||||
|
$("#select_company").val($("#select_company option:first").val());
|
||||||
|
|
||||||
|
$(".info_message").css("display", "none");
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#close_add_edit").click(function() {
|
||||||
|
$(".modal").hide();
|
||||||
|
});
|
||||||
|
|
||||||
|
window.onclick = function(event) {
|
||||||
|
if (event.target == document.getElementById("modal_add_edit")) {
|
||||||
|
$("#modal_add_edit").hide();
|
||||||
|
}
|
||||||
|
if (event.target == document.getElementById("modal_stat")) {
|
||||||
|
$("#modal_stat").hide();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$('.form_add_edit').on('submit',(function(){
|
||||||
|
$(".form_add_edit").append('<input type="hidden" name="ID_internship" value="'+ window.ID_internship +'">');
|
||||||
|
return true;
|
||||||
|
}));
|
||||||
|
|
||||||
|
|
||||||
|
$(".logo_edit").click(function() {
|
||||||
|
$("#modal_add_edit").show();
|
||||||
|
window.ID_internship = $(this).attr("ID_internship");
|
||||||
|
$(".title_modal").html("Modification d'un stage");
|
||||||
|
$("input[type='hidden']").attr("value","edit");
|
||||||
|
$("#button_add_edit").html("Modifier");
|
||||||
|
|
||||||
|
$("input[name='name_internship']").attr("value",$(this).attr("name"));
|
||||||
|
$("input[name='description_internship']").attr("value",$(this).attr("description"));
|
||||||
|
$("input[name='duration_internship']").attr("value",$(this).attr("duration"));
|
||||||
|
$("input[name='remuneration_internship']").attr("value",$(this).attr("remuneration"));
|
||||||
|
$("input[name='offer_date_internship']").attr("value",$(this).attr("offer_date"));
|
||||||
|
$("input[name='place_number_internship']").attr("value",$(this).attr("place_number"));
|
||||||
|
$("input[name='competences_internship']").attr("value",$(this).attr("competences"));
|
||||||
|
$("select[name='promotion'] option[value="+$(this).attr("id_promotion")+"]").prop('selected', true);
|
||||||
|
$("select[name='localisation'] option[value="+$(this).attr("id_localisation")+"]").prop('selected', true);
|
||||||
|
$("select[name='company'] option[value="+$(this).attr("id_company")+"]").prop('selected', true);
|
||||||
|
$(".info_message").css("display", "none");
|
||||||
|
});
|
||||||
|
|
||||||
|
$(".logo_delete").click(function() {
|
||||||
|
console.log($(this).attr("ID_internship"));
|
||||||
|
$.post(
|
||||||
|
'controller/Manage_internships.php',
|
||||||
|
{
|
||||||
|
ID_internship: $(this).attr("ID_internship"),
|
||||||
|
action: "delete"},
|
||||||
|
function(data, status, jqXHR) {
|
||||||
|
if (data.trim() == "false"){
|
||||||
|
$(".info_message").html("Ce stage ne peut pas être supprimé car il existe des candidatures en lien avec lui.");
|
||||||
|
$(".info_message").css("background-color", "#df8787");
|
||||||
|
$(".info_message").css("display", "block");
|
||||||
|
} else if (data.trim() == "true")
|
||||||
|
location.reload();
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
$(".logo_stat").click(function() {
|
||||||
|
console.log($(this).attr("ID_company"));
|
||||||
|
$("#modal_stat").show();
|
||||||
|
});
|
||||||
|
|
||||||
|
$("#close_stat").click(function() {
|
||||||
|
$("#modal_stat").hide();
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -1,6 +1,11 @@
|
|||||||
////////////////////////////////////////////////////
|
////////////////////////////////////////////////////
|
||||||
// [ Form Login ]
|
// [ Form Login ]
|
||||||
(function ($) {
|
(function ($) {
|
||||||
|
if (!window.navigator.onLine){
|
||||||
|
console.log("offline");
|
||||||
|
$(".info_message").show();
|
||||||
|
$(".info_message").show();
|
||||||
|
}
|
||||||
"use strict";
|
"use strict";
|
||||||
var input = $('.validate-input .input-forms');
|
var input = $('.validate-input .input-forms');
|
||||||
$('.validate').on('submit',(function(){
|
$('.validate').on('submit',(function(){
|
||||||
@ -14,19 +19,22 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (check){
|
if (check){
|
||||||
$.post(
|
$.ajax({
|
||||||
'controller/Auth.php',
|
type: 'POST',
|
||||||
{user: $(input[0]).val().trim(), pass: sha1($(input[1]).val().trim())},
|
url: 'controller/Auth.php',
|
||||||
function(data, status, jqXHR) {
|
data: {user: $(input[0]).val().trim(), pass: sha1($(input[1]).val().trim())},
|
||||||
|
success: function(data, status, jqXHR) {
|
||||||
|
console.log(data.trim());
|
||||||
if (data.trim() == "true"){
|
if (data.trim() == "true"){
|
||||||
window.location.href = "/accueil.php";
|
location.href='/accueil.php';
|
||||||
} else {
|
} else {
|
||||||
$("#zone-login").addClass("shaking_error");
|
$("#zone-login").addClass("shaking_error");
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
$("#zone-login").removeClass("shaking_error");
|
$("#zone-login").removeClass("shaking_error");
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
});
|
}});
|
||||||
|
|
||||||
}
|
}
|
||||||
check = false;
|
check = false;
|
||||||
return check;
|
return check;
|
||||||
@ -67,3 +75,12 @@ function httpGet(theUrl) {
|
|||||||
// [ Other ]
|
// [ Other ]
|
||||||
|
|
||||||
$('.hidden').delay(300).fadeIn(400);
|
$('.hidden').delay(300).fadeIn(400);
|
||||||
|
|
||||||
|
|
||||||
|
if ('serviceWorker' in navigator) {
|
||||||
|
window.addEventListener('load', () => {
|
||||||
|
navigator.serviceWorker.register('sw.js')
|
||||||
|
.then(registration => {console.log(`[SW] enregistré ! ${registration.scope}`);})
|
||||||
|
.catch(err => {console.log(`[SW] Echec de l'enregistrement: ${err}`);});
|
||||||
|
});
|
||||||
|
}
|
||||||
100
server_static/assets/js/offres_stages.js
Normal file
@ -0,0 +1,100 @@
|
|||||||
|
var ID_internship=0;
|
||||||
|
|
||||||
|
$(document).ready(function(){
|
||||||
|
|
||||||
|
const queryString = window.location.search;
|
||||||
|
const urlParams = new URLSearchParams(queryString);
|
||||||
|
if (urlParams.get('page') == null){
|
||||||
|
window.location.href = "/?page=1";
|
||||||
|
}
|
||||||
|
var page = parseInt(urlParams.get('page'));
|
||||||
|
|
||||||
|
|
||||||
|
$("#li_stages").delay(2000).addClass("hover");
|
||||||
|
|
||||||
|
$(".heart1, .heart2").click(function(event) {
|
||||||
|
var id = $(this).prop('id').split('_')[0];
|
||||||
|
if ($("#"+id+"_1").hasClass("heart-hidden")){ //enlever coeur rouge /enlever des favoris
|
||||||
|
$.post(
|
||||||
|
'controller/AddRemoveWishlist.php',
|
||||||
|
{action: "remove", ID_internship: id},
|
||||||
|
function(data, status, jqXHR) {
|
||||||
|
if (data.trim() == "remove_ok"){
|
||||||
|
$("#"+id+"_1").removeClass("heart-hidden");
|
||||||
|
$("#"+id+"_2").addClass("heart-hidden");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else { //cocher coeur gris /ajouter aux favoris
|
||||||
|
$.post(
|
||||||
|
'controller/AddRemoveWishlist.php',
|
||||||
|
{action: "add", ID_internship: id},
|
||||||
|
function(data, status, jqXHR) {
|
||||||
|
if (data.trim() == "add_ok"){
|
||||||
|
$("#"+id+"_2").removeClass("heart-hidden");
|
||||||
|
$("#"+id+"_1").addClass("heart-hidden");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
$(".button_postuler").click(function() {
|
||||||
|
window.ID_internship = $(this).attr("id_internship");
|
||||||
|
$(".title_modal").html("Postuler pour " + $(this).attr("name_internship"));
|
||||||
|
$(".info_message").hide();
|
||||||
|
$(".modal").show();
|
||||||
|
});
|
||||||
|
|
||||||
|
$(".close:eq(0)").click(function() {
|
||||||
|
$(".modal").hide();
|
||||||
|
});
|
||||||
|
|
||||||
|
window.onclick = function(event) {
|
||||||
|
if (event.target == document.getElementById("modal_postuler")) {
|
||||||
|
$(".modal").hide();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$('.form_postuler').on('submit',(function(){
|
||||||
|
check = true;
|
||||||
|
if ($('#cv').get(0).files.length === 0 || $('#lm').get(0).files.length === 0) { check = false; }
|
||||||
|
if (check) {$(".form_postuler").append('<input type="hidden" name="ID_internship" value="'+ window.ID_internship +'">');}
|
||||||
|
return check;
|
||||||
|
}));
|
||||||
|
|
||||||
|
function replaceUrlParam(url, paramName, paramValue)
|
||||||
|
{
|
||||||
|
if (paramValue == null) {
|
||||||
|
paramValue = '';
|
||||||
|
}
|
||||||
|
var pattern = new RegExp('\\b('+paramName+'=).*?(&|#|$)');
|
||||||
|
if (url.search(pattern)>=0) {
|
||||||
|
return url.replace(pattern,'$1' + paramValue + '$2');
|
||||||
|
}
|
||||||
|
url = url.replace(/[?#]$/,'');
|
||||||
|
return url + (url.indexOf('?')>0 ? '&' : '?') + paramName + '=' + paramValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
function left(){
|
||||||
|
if (page != null){
|
||||||
|
if (page >= 2) {
|
||||||
|
console.log("left");
|
||||||
|
window.location.href = replaceUrlParam(window.location.href, "page", parseInt(urlParams.get('page'))-1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$(".left").click( function() {
|
||||||
|
left();
|
||||||
|
});
|
||||||
|
|
||||||
|
function right(){
|
||||||
|
if (page != null){
|
||||||
|
if (page >= 1) {
|
||||||
|
console.log("right");
|
||||||
|
window.location.href = replaceUrlParam(window.location.href, "page", parseInt(urlParams.get('page'))+1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$(".right").click( function() {
|
||||||
|
right();
|
||||||
|
});
|
||||||
|
});
|
||||||
@ -29,6 +29,7 @@ $(document).ready(function(){
|
|||||||
new_pass: sha1($(input[1]).val().trim()),
|
new_pass: sha1($(input[1]).val().trim()),
|
||||||
confirm_pass: sha1($(input[2]).val().trim())},
|
confirm_pass: sha1($(input[2]).val().trim())},
|
||||||
function(data, status, jqXHR) {
|
function(data, status, jqXHR) {
|
||||||
|
console.log(data.trim());
|
||||||
if (data.trim() == "true"){
|
if (data.trim() == "true"){
|
||||||
$(".info_message").html("Mot de passe modifié avec succès");
|
$(".info_message").html("Mot de passe modifié avec succès");
|
||||||
$(".info_message").css("background-color", "#90ee90");
|
$(".info_message").css("background-color", "#90ee90");
|
||||||
@ -36,7 +37,7 @@ $(document).ready(function(){
|
|||||||
for (let pas = 0; pas < 3; pas++) {
|
for (let pas = 0; pas < 3; pas++) {
|
||||||
$(input[pas]).val("");
|
$(input[pas]).val("");
|
||||||
}
|
}
|
||||||
setTimeout(function() { $(".info_message").css("display", "none"); }, 4000);
|
setTimeout(function() { location.href='/controller/Disconnect.php'; }, 1000);
|
||||||
|
|
||||||
} else if (data.trim() == "new_not_match"){
|
} else if (data.trim() == "new_not_match"){
|
||||||
$(".info_message").html("Le nouveau mot de passe ne correpond pas avec le champ confirmation");
|
$(".info_message").html("Le nouveau mot de passe ne correpond pas avec le champ confirmation");
|
||||||