Mise a jour 2020

This commit is contained in:
Cyprien Heusse 2020-09-19 16:08:07 +02:00
parent b9d0bb1010
commit fc39a3611c
121 changed files with 26827 additions and 12676 deletions

View file

@ -2,9 +2,9 @@
Ce site, dont le but est d'accompagner les PPA, a été créé en 2017. Ce site, dont le but est d'accompagner les PPA, a été créé en 2017.
Version actuellement en ligne : **2019**. Version actuellement en ligne : **2020**.
**Si vous êtes intéressés par le projet, merci de [lire le wiki.](https://git.srv-falcon.etud.insa-toulouse.fr/vergnet/site-accueil-insa/wiki/Accueil)** **Si vous êtes intéressés par le projet, merci de [lire le wiki.](https://git.etud.insa-toulouse.fr/vergnet/site-accueil-insa/wiki/Accueil)**
## Contribuer ## Contribuer
@ -20,5 +20,5 @@ Arnaud Vergnet (vergnet@etud.insa-toulouse.fr)
## Développeurs Actifs ## Développeurs Actifs
- Arthur BOIVERT (boivert@etud.insa-toulouse.fr) - Arthur BOIVERT (boivert@etud.insa-toulouse.fr)
- Arnaud VERGNET (vergnet@etud.insa-toulouse.fr) - Cyprien HEUSSE (heusse@etud.insa-toulouse.fr)

BIN
admin/.DS_Store vendored Normal file

Binary file not shown.

View file

@ -1,24 +1,24 @@
<?php <?php
require_once '../../classes/dao.php'; require_once '../../classes/dao.php';
if (isset($_GET['function'])) { if (isset($_GET['function'])) {
if ($_GET['function'] == "save_day_activities") if ($_GET['function'] == "save_day_activities")
save_day_activities(); save_day_activities();
} else } else
show_error(); show_error();
function save_day_activities() { function save_day_activities() {
if (isset($_GET['day']) && isset($_GET['entries'])) { if (isset($_GET['day']) && isset($_GET['entries'])) {
$dao = new Dao(); $dao = new Dao();
$dao->save_day_activities($_GET['day'], $_GET['entries']); $dao->save_day_activities($_GET['day'], $_GET['entries']);
echo "Réussite"; echo "Réussite";
} else { } else {
show_error(); show_error();
} }
} }
function show_error() { function show_error() {
echo "Échec : "; echo "Échec : ";
var_dump($_GET); var_dump($_GET);
} }

View file

@ -1,59 +1,59 @@
<?php <?php
ob_start(); // Start reading html ob_start(); // Start reading html
$relativePath = "../../"; $relativePath = "../../";
?> ?>
<div class="inner"> <div class="inner">
<h1>ADMIN</h1> <h1>ADMIN</h1>
<h2>Edition du planning</h2> <h2>Edition du planning</h2>
<select id="daySelect"> <select id="daySelect">
<option value="1">Lundi</option> <option value="1">Lundi</option>
<option value="2">Mardi</option> <option value="2">Mardi</option>
<option value="3">Mercredi</option> <option value="3">Mercredi</option>
<option value="4">Jeudi</option> <option value="4">Jeudi</option>
<option value="5">Vendredi</option> <option value="5">Vendredi</option>
<option value="6">Samedi</option> <option value="6">Samedi</option>
<option value="7">Dimanche</option> <option value="7">Dimanche</option>
</select> </select>
<br> <br>
<div class="add-line"> <div class="add-line">
<i class="fas fa-plus"></i> <i class="fas fa-plus"></i>
</div> </div>
<div class="edit-header"> <div class="edit-header">
<div class="planning-start">Début</div> <div class="planning-start">Début</div>
<div class="planning-length">Durée</div> <div class="planning-length">Durée</div>
<div class="planning-name">Nom</div> <div class="planning-name">Nom</div>
<div class="planning-trash"><i class='fas fa-trash'></i></div> <div class="planning-trash"><i class='fas fa-trash'></i></div>
</div> </div>
<table id="activityTable"> <table id="activityTable">
</table> </table>
<div class="save"> <div class="save">
<i class="fas fa-save"></i> Enregistrer <i class="fas fa-save"></i> Enregistrer
</div> </div>
<br> <br>
<div class="buttons-container"> <div class="buttons-container">
<a href="../index.php" class="admin-back-button"> <a href="../index.php" class="admin-back-button">
<i class="fas fa-chevron-left"></i> <i class="fas fa-chevron-left"></i>
Retour sur la page admin Retour sur la page admin
</a> </a>
<a href="<?= $relativePath ?>planning.php" class="website-back-button"> <a href="<?= $relativePath ?>planning.php" class="website-back-button">
Voir sur le site Voir sur le site
</a> </a>
</div> </div>
</div> </div>
<link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/adminEdit.css"/> <link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/adminEdit.css"/>
<?php <?php
$pageContent = ob_get_clean(); // Store html content in variable $pageContent = ob_get_clean(); // Store html content in variable
$pageTitle = "Édition planning"; $pageTitle = "Édition planning";
$pageScripts = "<script type=\"text/javascript\" src=\"".$relativePath."assets/js/admin/planningManager.js\"></script>"; $pageScripts = "<script type=\"text/javascript\" src=\"".$relativePath."assets/js/admin/planningManager.js\"></script>";
include($relativePath . "includes/template.php"); // Display template with variable content include($relativePath . "includes/template.php"); // Display template with variable content
?> ?>

View file

@ -1,24 +1,24 @@
<?php <?php
require_once '../../classes/dao.php'; require_once '../../classes/dao.php';
if (isset($_GET['function'])) { if (isset($_GET['function'])) {
if ($_GET['function'] == "save_scores") if ($_GET['function'] == "save_scores")
save_scores(); save_scores();
} else } else
show_error(); show_error();
function save_scores() function save_scores()
{ {
if (isset($_GET['lines']) && isset($_GET['team'])) { if (isset($_GET['lines']) && isset($_GET['team'])) {
$dao = new Dao(); $dao = new Dao();
$dao->save_scores($_GET['lines'], $_GET['team']); $dao->save_scores($_GET['lines'], $_GET['team']);
echo "Réussite"; echo "Réussite";
} else } else
show_error(); show_error();
} }
function show_error() { function show_error() {
echo "Échec : "; echo "Échec : ";
var_dump($_GET); var_dump($_GET);
} }

View file

@ -1,63 +1,61 @@
<?php <?php
ob_start(); // Start reading html ob_start(); // Start reading html
$relativePath = "../../"; $relativePath = "../../";
?> ?>
<div class="inner"> <div class="inner">
<h1>ADMIN</h1> <h1>ADMIN</h1>
<h2>Edition des scores</h2> <h2>Edition des scores</h2>
<ul> <ul>
<strong style="color: #ee293d">Quelques règles pour les scores</strong> <strong style="color: #ee293d">Quelques règles pour les scores</strong>
<li>Pas de score total négatif pour une équipe</li> <li>Pas de score total négatif pour une équipe</li>
<li>A priori les scores supérieurs à 1000 marchent, mais au cas restez à <li>A priori les scores supérieurs à 1000 marchent, mais au cas restez à
moins de 1000 (comme l'année dernière quoi)</li> moins de 1000 (comme l'année dernière quoi)</li>
</ul> </ul>
Si jamais y'a un quelconque problème, envoyez-moi un message. Si jamais y'a un quelconque problème, envoyez-moi un message.
<br> <br>
<br> <br>
<select id="teamSelect"> <select id="teamSelect">
<option value="gli">Glissefondor</option> <option value="tam">Tamboom</option>
<option value="pek">Peksentard</option> <option value="pek">Pekstanas</option>
<option value="boo">Boomsouffle</option> </select>
<option value="ver">Verredaigle</option>
</select> <div class="add-line">
<i class="fas fa-plus"></i>
<div class="add-line"> </div>
<i class="fas fa-plus"></i> <div class="edit-header">
</div> <div class="stat-log">Log</div>
<div class="edit-header"> <div class="stat-points">Points</div>
<div class="stat-log">Log</div> <div class="stat-trash"><i class='fas fa-trash'></i></div>
<div class="stat-points">Points</div> </div>
<div class="stat-trash"><i class='fas fa-trash'></i></div> <table class="stats-table edit-stats">
</div> </table>
<table class="stats-table edit-stats">
</table> <div class="save">
<i class="fas fa-save"></i> Enregistrer
<div class="save"> </div>
<i class="fas fa-save"></i> Enregistrer <br>
</div> <div class="buttons-container">
<br> <a href="../index.php" class="admin-back-button">
<div class="buttons-container"> <i class="fas fa-chevron-left"></i>
<a href="../index.php" class="admin-back-button"> Retour sur la page admin
<i class="fas fa-chevron-left"></i> </a>
Retour sur la page admin <a href="<?= $relativePath ?>stats.php" class="website-back-button">
</a> Voir sur le site
<a href="<?= $relativePath ?>stats.php" class="website-back-button"> </a>
Voir sur le site </div>
</a> </div>
</div>
</div>
<link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/adminEdit.css"/>
<link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/adminEdit.css"/> <?php
$pageContent = ob_get_clean(); // Store html content in variable
<?php $pageTitle = "Édition scores";
$pageContent = ob_get_clean(); // Store html content in variable
$pageTitle = "Édition scores"; $pageScripts = "<script type=\"text/javascript\" src=\"".$relativePath."assets/js/admin/statsManager.js\"></script>";
$pageScripts = "<script type=\"text/javascript\" src=\"".$relativePath."assets/js/admin/statsManager.js\"></script>"; include($relativePath . "includes/template.php"); // Display template with variable content
include($relativePath . "includes/template.php"); // Display template with variable content ?>
?>

View file

@ -1,62 +1,62 @@
<?php <?php
ob_start(); // Start reading html ob_start(); // Start reading html
$relativePath = "../"; $relativePath = "../";
?> ?>
<div class="inner"> <div class="inner">
<h1>ADMIN</h1> <h1>ADMIN</h1>
<h2>Bienvenue sur la page d'administration</h2> <h2>Bienvenue sur la page d'administration</h2>
<p> <p>
Sur cette page, tu vas pouvoir animer le site en changeant les scores, le planning ou les informations de la Sur cette page, tu vas pouvoir animer le site en changeant les scores, le planning ou les informations de la
carte. carte.
<br/> <br/>
Attention, tu dois avoir le compte approprié pour pouvoir modifier ces informations. Attention, tu dois avoir le compte approprié pour pouvoir modifier ces informations.
<br/> <br/>
Les comptes sont les suivants (le numéro indique le niveau de privilèges) : Les comptes sont les suivants (le numéro indique le niveau de privilèges) :
</p> </p>
<ol> <ol>
<li> <li>
GDA GDA
</li> </li>
<li> <li>
Admin Admin
</li> </li>
<li> <li>
Webmaster Webmaster
</li> </li>
</ol> </ol>
<p> <p>
Un compte hérite des privilèges de tous ceux ayant un niveau inférieur. Un compte hérite des privilèges de tous ceux ayant un niveau inférieur.
<br/> <br/>
Donc ici, Webmaster les possède tous. Donc ici, Webmaster les possède tous.
</p> </p>
<div class="admin-container"> <div class="admin-container">
<h4> <h4>
Action des GDA Action des GDA
</h4> </h4>
<a href="gda/scores.php">Editer les scores</a> <a href="gda/scores.php">Editer les scores</a>
</div> </div>
<div class="admin-container"> <div class="admin-container">
<h4> <h4>
Action des admins Action des admins
</h4> </h4>
<a href="admin/planning.php">Editer le planning</a> <a href="admin/planning.php">Editer le planning</a>
</div> </div>
<div class="admin-container"> <div class="admin-container">
<h4> <h4>
Action des webmasters Action des webmasters
</h4> </h4>
<a href="webmaster/map.php">Editer le texte de la carte</a> <a href="webmaster/map.php">Editer le texte de la carte</a>
<br/> <br/>
<a href="webmaster/update.php">Mises à jour</a> <a href="webmaster/update.php">Mises à jour</a>
</div> </div>
</div> </div>
<link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/adminEdit.css"/> <link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/adminEdit.css"/>
<?php <?php
$pageContent = ob_get_clean(); // Store html content in variable $pageContent = ob_get_clean(); // Store html content in variable
$pageTitle = "ADMIN"; $pageTitle = "ADMIN";
include($relativePath . "includes/template.php"); // Display template with variable content include($relativePath . "includes/template.php"); // Display template with variable content
?> ?>

View file

@ -1,47 +1,47 @@
<?php <?php
require_once '../../classes/dao.php'; require_once '../../classes/dao.php';
$rest_json = file_get_contents("php://input"); $rest_json = file_get_contents("php://input");
$_POST = json_decode($rest_json, true); $_POST = json_decode($rest_json, true);
//var_dump($_POST); //var_dump($_POST);
if (isset($_GET['function']) || isset($_POST['function'])) { if (isset($_GET['function']) || isset($_POST['function'])) {
if ($_GET['function'] == "save_map_info") if ($_GET['function'] == "save_map_info")
save_map_info(); save_map_info();
elseif ($_POST['function'] == "update_website") elseif ($_POST['function'] == "update_website")
update_website(); update_website();
} else } else
show_error(); show_error();
function save_map_info() { function save_map_info() {
if (isset($_GET['selector']) && isset($_GET['info'])) { if (isset($_GET['selector']) && isset($_GET['info'])) {
$dao = new Dao(); $dao = new Dao();
$dao->save_map_info($_GET['selector'], $_GET['info']); $dao->save_map_info($_GET['selector'], $_GET['info']);
echo "Réussite"; echo "Réussite";
} else { } else {
show_error(); show_error();
} }
} }
function update_website() { function update_website() {
// if (isset($_POST['login']) && isset($_POST['password'])) { // if (isset($_POST['login']) && isset($_POST['password'])) {
// $login = $_POST['login']; // $login = $_POST['login'];
// $password = $_POST['password']; // $password = $_POST['password'];
// echo $login . ":" . $password."\n"; // echo $login . ":" . $password."\n";
// // Cannot write because php cannot write as user www-data // // Cannot write because php cannot write as user www-data
// // be sure to escape characters // // be sure to escape characters
// // Do not remove the space before the command (prevent command from being saved in history) // // Do not remove the space before the command (prevent command from being saved in history)
//// system(" git pull https://".$login.":".$password."@git.srv-falcon.etud.insa-toulouse.fr/vergnet/site-accueil-insa.git"); //// system(" git pull https://".$login.":".$password."@git.srv-falcon.etud.insa-toulouse.fr/vergnet/site-accueil-insa.git");
// } else { // } else {
// show_error(); // show_error();
// } // }
} }
function show_error() { function show_error() {
echo "Échec :\n"; echo "Échec :\n";
echo "GET\n"; echo "GET\n";
var_dump($_GET); var_dump($_GET);
echo "POST\n"; echo "POST\n";
var_dump($_POST); var_dump($_POST);
} }

View file

@ -1,57 +1,57 @@
<?php <?php
ob_start(); // Start reading html ob_start(); // Start reading html
$relativePath = "../../"; $relativePath = "../../";
require_once $relativePath . 'classes/dao.php'; require_once $relativePath . 'classes/dao.php';
?> ?>
<div class="inner"> <div class="inner">
<h1>ADMIN</h1> <h1>ADMIN</h1>
<h2>Edition de la carte</h2> <h2>Edition de la carte</h2>
<select id="mapSelect"> <select id="mapSelect">
<?php setup_map_dropdown() ?> <?php setup_map_dropdown() ?>
</select> </select>
<br> <br>
<label for="titleInput">Titre</label> <label for="titleInput">Titre</label>
<input type="text" id="titleInput"> <input type="text" id="titleInput">
<label for="descriptionInput">Description</label> <label for="descriptionInput">Description</label>
<textarea rows="15" id="descriptionInput"></textarea> <textarea rows="15" id="descriptionInput"></textarea>
<div class="save"> <div class="save">
<i class="fas fa-save"></i> Enregistrer <i class="fas fa-save"></i> Enregistrer
</div> </div>
<br> <br>
<div class="buttons-container"> <div class="buttons-container">
<a href="../index.php" class="admin-back-button"> <a href="../index.php" class="admin-back-button">
<i class="fas fa-chevron-left"></i> <i class="fas fa-chevron-left"></i>
Retour sur la page admin Retour sur la page admin
</a> </a>
<a href="<?= $relativePath ?>map.php" class="website-back-button"> <a href="<?= $relativePath ?>map.php" class="website-back-button">
Voir sur le site Voir sur le site
</a> </a>
</div> </div>
</div> </div>
<link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/adminEdit.css"/> <link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/adminEdit.css"/>
<?php <?php
$pageContent = ob_get_clean(); // Store html content in variable $pageContent = ob_get_clean(); // Store html content in variable
$pageTitle = "Édition carte"; $pageTitle = "Édition carte";
$pageScripts = "<script type=\"text/javascript\" src=\"".$relativePath."assets/js/admin/mapManager.js\"></script>"; $pageScripts = "<script type=\"text/javascript\" src=\"".$relativePath."assets/js/admin/mapManager.js\"></script>";
include($relativePath . "includes/template.php"); // Display template with variable content include($relativePath . "includes/template.php"); // Display template with variable content
function setup_map_dropdown() function setup_map_dropdown()
{ {
$dao = new Dao(); $dao = new Dao();
foreach ($dao->get_map_selectors() as $row) { foreach ($dao->get_map_selectors() as $row) {
echo "<option value='" . $row['selector'] . "'>" . $row['selector'] . "</option>"; echo "<option value='" . $row['selector'] . "'>" . $row['selector'] . "</option>";
} }
} }
?> ?>

View file

@ -1,57 +1,57 @@
<?php <?php
ob_start(); // Start reading html ob_start(); // Start reading html
$relativePath = "../../"; $relativePath = "../../";
require_once $relativePath . 'classes/dao.php'; require_once $relativePath . 'classes/dao.php';
$log = shell_exec("git log | head -50"); // Show the first few commits $log = shell_exec("git log | head -50"); // Show the first few commits
?> ?>
<div class="inner"> <div class="inner">
<h1>ADMIN</h1> <h1>ADMIN</h1>
<h2>Mise a jour du site</h2> <h2>Mise a jour du site</h2>
<!-- <label for="usernameInput">Login</label>--> <!-- <label for="usernameInput">Login</label>-->
<!-- <input type="text" id="usernameInput">--> <!-- <input type="text" id="usernameInput">-->
<!----> <!---->
<!-- <label for="passwordInput">Password</label>--> <!-- <label for="passwordInput">Password</label>-->
<!-- <input type="password" id="passwordInput">--> <!-- <input type="password" id="passwordInput">-->
<!----> <!---->
<!-- <div class="save">--> <!-- <div class="save">-->
<!-- <i class="fas fa-save"></i> Mettre à Jour--> <!-- <i class="fas fa-save"></i> Mettre à Jour-->
<!-- </div>--> <!-- </div>-->
<div id="gitButton"> <div id="gitButton">
<a href="https://git.srv-falcon.etud.insa-toulouse.fr/vergnet/site-accueil-insa" target="_blank"> <a href="https://git.srv-falcon.etud.insa-toulouse.fr/vergnet/site-accueil-insa" target="_blank">
Voir sur Gitea Voir sur Gitea
</a> </a>
</div> </div>
<h3>Log</h3> <h3>Log</h3>
<p> <p>
<?php <?php
echo nl2br($log) echo nl2br($log)
?> ?>
</p> </p>
<div class="buttons-container"> <div class="buttons-container">
<a href="../index.php" class="admin-back-button"> <a href="../index.php" class="admin-back-button">
<i class="fas fa-chevron-left"></i> <i class="fas fa-chevron-left"></i>
Retour sur la page admin Retour sur la page admin
</a> </a>
<a href="<?= $relativePath ?>index.php" class="website-back-button"> <a href="<?= $relativePath ?>index.php" class="website-back-button">
Voir sur le site Voir sur le site
</a> </a>
</div> </div>
</div> </div>
<link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/adminEdit.css"/> <link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/adminEdit.css"/>
<?php <?php
$pageContent = ob_get_clean(); // Store html content in variable $pageContent = ob_get_clean(); // Store html content in variable
$pageTitle = "Mise à jour"; $pageTitle = "Mise à jour";
$pageScripts = "<script type=\"text/javascript\" src=\"".$relativePath."assets/js/admin/updateManager.js\"></script>"; $pageScripts = "<script type=\"text/javascript\" src=\"".$relativePath."assets/js/admin/updateManager.js\"></script>";
include($relativePath . "includes/template.php"); // Display template with variable content include($relativePath . "includes/template.php"); // Display template with variable content
?> ?>

5
ajax/admin/.htaccess Normal file
View file

@ -0,0 +1,5 @@
AuthName "MDP ?"
AuthType Basic
AuthUserFile /home_clubs/accueil_insa/public_html/includes/pass/.htpass_gda
require valid-user

View file

@ -0,0 +1,5 @@
AuthName "MDP ?"
AuthType Basic
AuthUserFile /home_clubs/accueil_insa/public_html/includes/pass/.htpass_admin
require valid-user

24
ajax/admin/admin/ajax.php Normal file
View file

@ -0,0 +1,24 @@
<?php
require_once '../../classes/dao.php';
if (isset($_GET['function'])) {
if ($_GET['function'] == "save_day_activities")
save_day_activities();
} else
show_error();
function save_day_activities() {
if (isset($_GET['day']) && isset($_GET['entries'])) {
$dao = new Dao();
$dao->save_day_activities($_GET['day'], $_GET['entries']);
echo "Réussite";
} else {
show_error();
}
}
function show_error() {
echo "Échec : ";
var_dump($_GET);
}

View file

@ -0,0 +1,59 @@
<?php
ob_start(); // Start reading html
$relativePath = "../../";
?>
<div class="inner">
<h1>ADMIN</h1>
<h2>Edition du planning</h2>
<select id="daySelect">
<option value="1">Lundi</option>
<option value="2">Mardi</option>
<option value="3">Mercredi</option>
<option value="4">Jeudi</option>
<option value="5">Vendredi</option>
<option value="6">Samedi</option>
<option value="7">Dimanche</option>
</select>
<br>
<div class="add-line">
<i class="fas fa-plus"></i>
</div>
<div class="edit-header">
<div class="planning-start">Début</div>
<div class="planning-length">Durée</div>
<div class="planning-name">Nom</div>
<div class="planning-trash"><i class='fas fa-trash'></i></div>
</div>
<table id="activityTable">
</table>
<div class="save">
<i class="fas fa-save"></i> Enregistrer
</div>
<br>
<div class="buttons-container">
<a href="../index.php" class="admin-back-button">
<i class="fas fa-chevron-left"></i>
Retour sur la page admin
</a>
<a href="<?= $relativePath ?>planning.php" class="website-back-button">
Voir sur le site
</a>
</div>
</div>
<link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/adminEdit.css"/>
<?php
$pageContent = ob_get_clean(); // Store html content in variable
$pageTitle = "Édition planning";
$pageScripts = "<script type=\"text/javascript\" src=\"".$relativePath."assets/js/admin/planningManager.js\"></script>";
include($relativePath . "includes/template.php"); // Display template with variable content
?>

24
ajax/admin/gda/ajax.php Normal file
View file

@ -0,0 +1,24 @@
<?php
require_once '../../classes/dao.php';
if (isset($_GET['function'])) {
if ($_GET['function'] == "save_scores")
save_scores();
} else
show_error();
function save_scores()
{
if (isset($_GET['lines']) && isset($_GET['team'])) {
$dao = new Dao();
$dao->save_scores($_GET['lines'], $_GET['team']);
echo "Réussite";
} else
show_error();
}
function show_error() {
echo "Échec : ";
var_dump($_GET);
}

61
ajax/admin/gda/scores.php Normal file
View file

@ -0,0 +1,61 @@
<?php
ob_start(); // Start reading html
$relativePath = "../../";
?>
<div class="inner">
<h1>ADMIN</h1>
<h2>Edition des scores</h2>
<ul>
<strong style="color: #ee293d">Quelques règles pour les scores</strong>
<li>Pas de score total négatif pour une équipe</li>
<li>A priori les scores supérieurs à 1000 marchent, mais au cas restez à
moins de 1000 (comme l'année dernière quoi)</li>
</ul>
Si jamais y'a un quelconque problème, envoyez-moi un message.
<br>
<br>
<select id="teamSelect">
<option value="tam">Tamboom</option>
<option value="pek">Pekstanas</option>
</select>
<div class="add-line">
<i class="fas fa-plus"></i>
</div>
<div class="edit-header">
<div class="stat-log">Log</div>
<div class="stat-points">Points</div>
<div class="stat-trash"><i class='fas fa-trash'></i></div>
</div>
<table class="stats-table edit-stats">
</table>
<div class="save">
<i class="fas fa-save"></i> Enregistrer
</div>
<br>
<div class="buttons-container">
<a href="../index.php" class="admin-back-button">
<i class="fas fa-chevron-left"></i>
Retour sur la page admin
</a>
<a href="<?= $relativePath ?>stats.php" class="website-back-button">
Voir sur le site
</a>
</div>
</div>
<link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/adminEdit.css"/>
<?php
$pageContent = ob_get_clean(); // Store html content in variable
$pageTitle = "Édition scores";
$pageScripts = "<script type=\"text/javascript\" src=\"".$relativePath."assets/js/admin/statsManager.js\"></script>";
include($relativePath . "includes/template.php"); // Display template with variable content
?>

62
ajax/admin/index.php Normal file
View file

@ -0,0 +1,62 @@
<?php
ob_start(); // Start reading html
$relativePath = "../";
?>
<div class="inner">
<h1>ADMIN</h1>
<h2>Bienvenue sur la page d'administration</h2>
<p>
Sur cette page, tu vas pouvoir animer le site en changeant les scores, le planning ou les informations de la
carte.
<br/>
Attention, tu dois avoir le compte approprié pour pouvoir modifier ces informations.
<br/>
Les comptes sont les suivants (le numéro indique le niveau de privilèges) :
</p>
<ol>
<li>
GDA
</li>
<li>
Admin
</li>
<li>
Webmaster
</li>
</ol>
<p>
Un compte hérite des privilèges de tous ceux ayant un niveau inférieur.
<br/>
Donc ici, Webmaster les possède tous.
</p>
<div class="admin-container">
<h4>
Action des GDA
</h4>
<a href="gda/scores.php">Editer les scores</a>
</div>
<div class="admin-container">
<h4>
Action des admins
</h4>
<a href="admin/planning.php">Editer le planning</a>
</div>
<div class="admin-container">
<h4>
Action des webmasters
</h4>
<a href="webmaster/map.php">Editer le texte de la carte</a>
<br/>
<a href="webmaster/update.php">Mises à jour</a>
</div>
</div>
<link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/adminEdit.css"/>
<?php
$pageContent = ob_get_clean(); // Store html content in variable
$pageTitle = "ADMIN";
include($relativePath . "includes/template.php"); // Display template with variable content
?>

View file

@ -0,0 +1,5 @@
AuthName "MDP ?"
AuthType Basic
AuthUserFile /home_clubs/accueil_insa/public_html/includes/pass/.htpass_webmaster
require valid-user

View file

@ -0,0 +1,47 @@
<?php
require_once '../../classes/dao.php';
$rest_json = file_get_contents("php://input");
$_POST = json_decode($rest_json, true);
//var_dump($_POST);
if (isset($_GET['function']) || isset($_POST['function'])) {
if ($_GET['function'] == "save_map_info")
save_map_info();
elseif ($_POST['function'] == "update_website")
update_website();
} else
show_error();
function save_map_info() {
if (isset($_GET['selector']) && isset($_GET['info'])) {
$dao = new Dao();
$dao->save_map_info($_GET['selector'], $_GET['info']);
echo "Réussite";
} else {
show_error();
}
}
function update_website() {
// if (isset($_POST['login']) && isset($_POST['password'])) {
// $login = $_POST['login'];
// $password = $_POST['password'];
// echo $login . ":" . $password."\n";
// // Cannot write because php cannot write as user www-data
// // be sure to escape characters
// // Do not remove the space before the command (prevent command from being saved in history)
//// system(" git pull https://".$login.":".$password."@git.srv-falcon.etud.insa-toulouse.fr/vergnet/site-accueil-insa.git");
// } else {
// show_error();
// }
}
function show_error() {
echo "Échec :\n";
echo "GET\n";
var_dump($_GET);
echo "POST\n";
var_dump($_POST);
}

View file

@ -0,0 +1,57 @@
<?php
ob_start(); // Start reading html
$relativePath = "../../";
require_once $relativePath . 'classes/dao.php';
?>
<div class="inner">
<h1>ADMIN</h1>
<h2>Edition de la carte</h2>
<select id="mapSelect">
<?php setup_map_dropdown() ?>
</select>
<br>
<label for="titleInput">Titre</label>
<input type="text" id="titleInput">
<label for="descriptionInput">Description</label>
<textarea rows="15" id="descriptionInput"></textarea>
<div class="save">
<i class="fas fa-save"></i> Enregistrer
</div>
<br>
<div class="buttons-container">
<a href="../index.php" class="admin-back-button">
<i class="fas fa-chevron-left"></i>
Retour sur la page admin
</a>
<a href="<?= $relativePath ?>map.php" class="website-back-button">
Voir sur le site
</a>
</div>
</div>
<link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/adminEdit.css"/>
<?php
$pageContent = ob_get_clean(); // Store html content in variable
$pageTitle = "Édition carte";
$pageScripts = "<script type=\"text/javascript\" src=\"".$relativePath."assets/js/admin/mapManager.js\"></script>";
include($relativePath . "includes/template.php"); // Display template with variable content
function setup_map_dropdown()
{
$dao = new Dao();
foreach ($dao->get_map_selectors() as $row) {
echo "<option value='" . $row['selector'] . "'>" . $row['selector'] . "</option>";
}
}
?>

View file

@ -0,0 +1,57 @@
<?php
ob_start(); // Start reading html
$relativePath = "../../";
require_once $relativePath . 'classes/dao.php';
$log = shell_exec("git log | head -50"); // Show the first few commits
?>
<div class="inner">
<h1>ADMIN</h1>
<h2>Mise a jour du site</h2>
<!-- <label for="usernameInput">Login</label>-->
<!-- <input type="text" id="usernameInput">-->
<!---->
<!-- <label for="passwordInput">Password</label>-->
<!-- <input type="password" id="passwordInput">-->
<!---->
<!-- <div class="save">-->
<!-- <i class="fas fa-save"></i> Mettre à Jour-->
<!-- </div>-->
<div id="gitButton">
<a href="https://git.srv-falcon.etud.insa-toulouse.fr/vergnet/site-accueil-insa" target="_blank">
Voir sur Gitea
</a>
</div>
<h3>Log</h3>
<p>
<?php
echo nl2br($log)
?>
</p>
<div class="buttons-container">
<a href="../index.php" class="admin-back-button">
<i class="fas fa-chevron-left"></i>
Retour sur la page admin
</a>
<a href="<?= $relativePath ?>index.php" class="website-back-button">
Voir sur le site
</a>
</div>
</div>
<link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/adminEdit.css"/>
<?php
$pageContent = ob_get_clean(); // Store html content in variable
$pageTitle = "Mise à jour";
$pageScripts = "<script type=\"text/javascript\" src=\"".$relativePath."assets/js/admin/updateManager.js\"></script>";
include($relativePath . "includes/template.php"); // Display template with variable content
?>

View file

@ -1,51 +1,51 @@
<?php <?php
require_once '../../classes/dao.php'; require_once '../../classes/dao.php';
if (isset($_GET['function'])) { if (isset($_GET['function'])) {
if ($_GET['function'] == "get_scores") if ($_GET['function'] == "get_scores")
get_scores(); get_scores();
elseif ($_GET['function'] == "get_map_info") elseif ($_GET['function'] == "get_map_info")
get_map_info(); get_map_info();
elseif ($_GET['function'] == "get_activities_of_day") elseif ($_GET['function'] == "get_activities_of_day")
get_activities_of_day(); get_activities_of_day();
} else } else
show_error(); show_error();
function get_scores() { function get_scores() {
if (isset($_GET['team'])) { if (isset($_GET['team'])) {
header('Content-Type: application/json'); header('Content-Type: application/json');
$dao = new Dao(); $dao = new Dao();
echo json_encode($dao->get_score_team($_GET['team'])); echo json_encode($dao->get_score_team($_GET['team']));
} else { } else {
show_error(); show_error();
} }
} }
function get_map_info() { function get_map_info() {
if (isset($_GET['selector'])) { if (isset($_GET['selector'])) {
header('Content-Type: application/json'); header('Content-Type: application/json');
$dao = new Dao(); $dao = new Dao();
echo json_encode($dao->get_map_info($_GET['selector'])); echo json_encode($dao->get_map_info($_GET['selector']));
} else { } else {
show_error(); show_error();
} }
} }
function get_activities_of_day() { function get_activities_of_day() {
if (isset($_GET['day'])) { if (isset($_GET['day'])) {
header('Content-Type: application/json'); header('Content-Type: application/json');
$dao = new Dao(); $dao = new Dao();
echo json_encode($dao->get_activities_of_day($_GET['day'])); echo json_encode($dao->get_activities_of_day($_GET['day']));
} else { } else {
show_error(); show_error();
} }
} }
function show_error() { function show_error() {
echo "Échec : "; echo "Échec : ";
var_dump($_GET); var_dump($_GET);
} }

16
ajax/write/.htaccess Normal file
View file

@ -0,0 +1,16 @@
AuthName "MDP ?"
AuthType Basic
AuthUserFile /home_clubs/accueil_insa/public_html/includes/pass/.htpass_scores
require valid-user
<Files "planning.php">
AuthName "MDP ?"
AuthType Basic
AuthUserFile /home_clubs/accueil_insa/public_html/includes/pass/.htpass_planning
require valid-user
</Files>
<Files "master.php">
AuthName "MDP ?"
AuthType Basic
AuthUserFile /home_clubs/accueil_insa/public_html/includes/pass/.htpass_master
require valid-user
</Files>

BIN
assets/.DS_Store vendored Normal file

Binary file not shown.

View file

@ -1,222 +1,222 @@
.admin-container { .admin-container {
border: 1px solid #5a5a5a; border: 1px solid #5a5a5a;
margin-bottom: 20px; margin-bottom: 20px;
} }
.edit-header .stat-log { .edit-header .stat-log {
width: 70%; width: 70%;
} }
.stat-points { .stat-points {
width: 20%; width: 20%;
} }
.edit-header .stat-points { .edit-header .stat-points {
width: 20%; width: 20%;
} }
.edit-button-container { .edit-button-container {
border: none; border: none;
margin: 10px; margin: 10px;
} }
.edit-header { .edit-header {
display: flex; display: flex;
text-align: center; text-align: center;
background-color: #61605e; background-color: #61605e;
color: #fefefe; color: #fefefe;
font-weight: bold; font-weight: bold;
} }
.edit-header .stat-trash { .edit-header .stat-trash {
margin: auto; margin: auto;
} }
.edit-text { .edit-text {
width: 70%; width: 70%;
} }
.edit-points{ .edit-points{
width: 20%; width: 20%;
} }
.buttons-container { .buttons-container {
display: inline-flex; display: inline-flex;
} }
.admin-back-button { .admin-back-button {
width: auto; width: auto;
background: #fafafa; background: #fafafa;
color: #000; color: #000;
border-radius: 5px; border-radius: 5px;
padding: 15px; padding: 15px;
margin: 5px; margin: 5px;
box-shadow: 0 0 5px #000000; box-shadow: 0 0 5px #000000;
} }
.admin-back-button:hover { .admin-back-button:hover {
color: #fafafa; color: #fafafa;
background: #1a1a1a; background: #1a1a1a;
} }
.website-back-button { .website-back-button {
width: auto; width: auto;
background: #fafafa; background: #fafafa;
color: #000; color: #000;
border-radius: 5px; border-radius: 5px;
padding: 15px; padding: 15px;
margin: 5px; margin: 5px;
box-shadow: 0 0 5px #000000; box-shadow: 0 0 5px #000000;
} }
.website-back-button:hover { .website-back-button:hover {
color: #fafafa; color: #fafafa;
background: #1a1a1a; background: #1a1a1a;
} }
.edit-stats { .edit-stats {
width: 100%; width: 100%;
} }
input, textarea { input, textarea {
text-align: center; text-align: center;
background: #484848; background: #484848;
color: #fafafa; color: #fafafa;
width: 100%; width: 100%;
border: none; border: none;
font-family: inherit; font-family: inherit;
font-size: inherit; font-size: inherit;
} }
.remove-line { .remove-line {
color: #ff1200; color: #ff1200;
cursor: pointer; cursor: pointer;
transition: 0.3s; transition: 0.3s;
} }
.remove-line svg { .remove-line svg {
pointer-events: none; pointer-events: none;
} }
.remove-line:hover { .remove-line:hover {
color: #ff5e00; color: #ff5e00;
text-shadow: 0 0 5px #ff4000; text-shadow: 0 0 5px #ff4000;
} }
.add-line{ .add-line{
font-size: 30px; font-size: 30px;
background: #ab1d00; background: #ab1d00;
color: #fafafa; color: #fafafa;
cursor: pointer; cursor: pointer;
transition: 0.3s; transition: 0.3s;
width: 100%; width: 100%;
border-radius: 5px; border-radius: 5px;
margin: 30px 0 20px 0; margin: 30px 0 20px 0;
} }
#addLine_gli { #addLine_gli {
background: #ff5f5f; background: #ff5f5f;
} }
#addLine_pek { #addLine_pek {
background: #7ffd78; background: #7ffd78;
} }
#addLine_boo { #addLine_boo {
background: #fafd78; background: #fafd78;
} }
#addLine_ver { #addLine_ver {
background: #60bdff; background: #60bdff;
} }
#editHeader_gli { #editHeader_gli {
background: #9c1a00; background: #9c1a00;
} }
#editHeader_pek { #editHeader_pek {
background: #138a14; background: #138a14;
} }
#editHeader_boo { #editHeader_boo {
background: #6b5300; background: #6b5300;
} }
#editHeader_ver { #editHeader_ver {
background: #264565; background: #264565;
} }
.save { .save {
background: #21aa08; background: #21aa08;
font-size: 30px; font-size: 30px;
color: #fafafa; color: #fafafa;
cursor: pointer; cursor: pointer;
transition: 0.3s; transition: 0.3s;
margin: 40px 0 0 0; margin: 40px 0 0 0;
width: 100%; width: 100%;
border-radius: 5px; border-radius: 5px;
} }
.save:hover { .save:hover {
background: #2ce20b; background: #2ce20b;
box-shadow: 0 0 5px #2ce20b; box-shadow: 0 0 5px #2ce20b;
} }
#activityTable { #activityTable {
width: 100%; width: 100%;
} }
#activityTable tr { #activityTable tr {
transition: 0.2s; transition: 0.2s;
} }
#activityTable tr:hover { #activityTable tr:hover {
cursor: pointer; cursor: pointer;
background-color: #62010e; background-color: #62010e;
} }
.planning-start { .planning-start {
width: 10%; width: 10%;
} }
.planning-length { .planning-length {
width: 10%; width: 10%;
} }
.planning-name { .planning-name {
width: 70%; width: 70%;
} }
.planning-trash { .planning-trash {
width: 10%; width: 10%;
} }
#noUpdateNeeded { #noUpdateNeeded {
font-size: 2rem; font-size: 2rem;
color: #2ce20b; color: #2ce20b;
} }
#UpdateNeeded { #UpdateNeeded {
font-size: 2rem; font-size: 2rem;
color: #c53422; color: #c53422;
} }
#gitButton { #gitButton {
font-size: 1.5rem; font-size: 1.5rem;
display: flex; display: flex;
margin: 20px; margin: 20px;
} }
#gitButton a { #gitButton a {
padding: 10px; padding: 10px;
background-color: white; background-color: white;
color: #052700; color: #052700;
margin: auto; margin: auto;
width: 200px; width: 200px;
cursor: pointer; cursor: pointer;
border-radius: 0.5rem; border-radius: 0.5rem;
} }

View file

@ -1,97 +1,97 @@
#baguette { #baguette {
display: inline-block; display: inline-block;
position: relative; position: relative;
cursor: pointer; cursor: pointer;
font-size: 32px; font-size: 32px;
margin: 5px; margin: 5px;
height: 40px; height: 40px;
width: 40px; width: 40px;
pointer-events: auto; pointer-events: auto;
} }
#shaft, #star1, #star2, #star3, #star4 { #shaft, #star1, #star2, #star3, #star4 {
position: absolute; position: absolute;
width: 100%; width: 100%;
height: 5px; height: 5px;
background-color: #fff; background-color: #fff;
margin: 5px 0; margin: 5px 0;
transition: 0.3s; transition: 0.3s;
} }
#shaft { #shaft {
margin: 0; margin: 0;
top: 50%; top: 50%;
transform: translateY(-50%); transform: translateY(-50%);
} }
#star1, #star2 { #star1, #star2 {
width: 20px; width: 20px;
top: 0; top: 0;
} }
#star3, #star4 { #star3, #star4 {
width: 20px; width: 20px;
bottom: 0; bottom: 0;
} }
#star1, #star3 { #star1, #star3 {
left: 0; left: 0;
} }
#star2, #star4 { #star2, #star4 {
right: 0; right: 0;
} }
/* Mouse hovers the baguette */ /* Mouse hovers the baguette */
.change-hover #shaft { .change-hover #shaft {
background-color: #e9b82f; background-color: #e9b82f;
transform: translateY(1px) rotate(-45deg); transform: translateY(1px) rotate(-45deg);
height:5px; height:5px;
} }
.change-hover #star1, .change-hover #star2, .change-hover #star3, .change-hover #star4 { .change-hover #star1, .change-hover #star2, .change-hover #star3, .change-hover #star4 {
width: 5px; width: 5px;
border-radius: 100%; border-radius: 100%;
} }
.change-hover #star1 { .change-hover #star1 {
background-color: #ff5f5f; background-color: #ff5f5f;
transform: translate(19px,-2px); transform: translate(19px,-2px);
} }
.change-hover #star2 { .change-hover #star2 {
background-color: #7ffd78; background-color: #7ffd78;
transform: translate(-3px, -6px); transform: translate(-3px, -6px);
} }
.change-hover #star3 { .change-hover #star3 {
background-color: #fafd78; background-color: #fafd78;
transform: translate(36px, -10px); transform: translate(36px, -10px);
} }
.change-hover #star4 { .change-hover #star4 {
background-color: #60bdff; background-color: #60bdff;
transform: translate(5px, -22px); transform: translate(5px, -22px);
} }
/* Mouse clics the baguette */ /* Mouse clics the baguette */
.change-clic #shaft { .change-clic #shaft {
transform: translateY(-50%) rotate(-135deg); transform: translateY(-50%) rotate(-135deg);
background-color: #b0120b; background-color: #b0120b;
} }
.change-clic #star1, .change-clic #star2, .change-clic #star3, .change-clic #star4 { .change-clic #star1, .change-clic #star2, .change-clic #star3, .change-clic #star4 {
left: 0; left: 0;
width: 100%; width: 100%;
border-radius: 0; border-radius: 0;
margin: 0; margin: 0;
top: 50%; top: 50%;
transform: translateY(-50%) rotate(-45deg); transform: translateY(-50%) rotate(-45deg);
background-color: #b0120b; background-color: #b0120b;
} }

View file

@ -1,81 +1,81 @@
body { body {
color: #1a1a1a; color: #1a1a1a;
} }
.inner { .inner {
background-color: rgba(28, 28, 28, 0.2); background-color: rgba(28, 28, 28, 0.2);
box-shadow: 0 0 50px #1c1c1c; box-shadow: 0 0 50px #1c1c1c;
} }
#poemeRimbaud, #citationGary{ #poemeRimbaud, #citationGary{
font-family: manuscrit, cursive; font-family: manuscrit, cursive;
font-size: 3rem; font-size: 3rem;
} }
#finNormalEnigme{ #finNormalEnigme{
font-size: 1.1rem; font-size: 1.1rem;
text-align: right; text-align: right;
margin-right: 20px; margin-right: 20px;
font-style: italic; font-style: italic;
} }
#petiteFinCitationGary{ #petiteFinCitationGary{
text-align: right; text-align: right;
font-size: 0.8rem; font-size: 0.8rem;
margin-right: 20px; margin-right: 20px;
} }
#codeAda{ #codeAda{
font-family:'Cutive Mono', monospace; font-family:'Cutive Mono', monospace;
font-size: 1.8rem; font-size: 1.8rem;
text-align: left; text-align: left;
} }
#pekHint { #pekHint {
text-align: center; text-align: center;
} }
#creditBg{ #creditBg{
text-align: right; text-align: right;
font-size: 10px; font-size: 10px;
margin-right: 8px; margin-right: 8px;
} }
#hideb { #hideb {
color: #C3A67A; color: #C3A67A;
} }
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
#poemeRimbaud, #citationGary{ #poemeRimbaud, #citationGary{
font-family: manuscrit, cursive; font-family: manuscrit, cursive;
font-size: 2rem; font-size: 2rem;
} }
#codeAda{ #codeAda{
font-size: 1.5rem; font-size: 1.5rem;
} }
} }
@media screen and (max-width: 576px) { @media screen and (max-width: 576px) {
#poemeRimbaud, #citationGary{ #poemeRimbaud, #citationGary{
font-family: manuscrit, cursive; font-family: manuscrit, cursive;
font-size: 1.3rem; font-size: 1.3rem;
} }
#codeAda{ #codeAda{
font-size: 1.2rem; font-size: 1.2rem;
} }
#finNormalEnigme{ #finNormalEnigme{
font-size: 0.9rem; font-size: 0.9rem;
} }
#petiteFinCitationGary{ #petiteFinCitationGary{
text-align: right; text-align: right;
font-size: 0.6rem; font-size: 0.6rem;
margin-right: 20px; margin-right: 20px;
} }
} }

View file

@ -1,297 +1,297 @@
#photoContainer { #photoContainer {
margin: 0 5%; margin: 0 5%;
} }
.photos-folder-container { .photos-folder-container {
width: 100%; width: 100%;
border: 1px solid #5a5a5a; border: 1px solid #5a5a5a;
border-radius: 5px; border-radius: 5px;
} }
.photos-folder-container a:hover, .photos-path a:hover, #downloadAlbum:hover { .photos-folder-container a:hover, .photos-path a:hover, #downloadAlbum:hover {
box-shadow: 0 0 10px #000; box-shadow: 0 0 10px #000;
background-color: #635247; background-color: #635247;
} }
.photos-folder-container a { .photos-folder-container a {
text-decoration: none; text-decoration: none;
border-radius: 5px; border-radius: 5px;
width: 200px; width: 200px;
height: 120px; height: 120px;
padding: 10px; padding: 10px;
margin: 5px; margin: 5px;
position: relative; position: relative;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background-color: #1a1a1a; background-color: #1a1a1a;
box-shadow: 0 0 4px #000; box-shadow: 0 0 4px #000;
transition: 0.3s; transition: 0.3s;
} }
#folderTitle { #folderTitle {
position: absolute; position: absolute;
top: 10px; top: 10px;
color: #73b795; color: #73b795;
font-size: 25px; font-size: 25px;
text-shadow: 0 0 5px #1c1c1c; text-shadow: 0 0 5px #1c1c1c;
} }
#folderPhotos, #folderAlbums { #folderPhotos, #folderAlbums {
color: #808080; color: #808080;
font-size: 18px; font-size: 18px;
text-shadow: 0 0 5px #1c1c1c; text-shadow: 0 0 5px #1c1c1c;
} }
#folderPhotos { #folderPhotos {
position: absolute; position: absolute;
bottom: 30px; bottom: 30px;
} }
#folderAlbums { #folderAlbums {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
} }
.photos img { .photos img {
display: inline-flex; display: inline-flex;
width: 200px; width: 200px;
opacity: 1; opacity: 1;
cursor: pointer; cursor: pointer;
transition: 0.3s; transition: 0.3s;
padding: 0; padding: 0;
margin: 10px 2px 0 2px; margin: 10px 2px 0 2px;
border-radius: 0.5rem; border-radius: 0.5rem;
} }
.photos img:hover { .photos img:hover {
box-shadow: 0 0 5px #000; box-shadow: 0 0 5px #000;
-webkit-filter: blur(1px); /* Safari 6.0 - 9.0 */ -webkit-filter: blur(1px); /* Safari 6.0 - 9.0 */
filter: blur(1px); filter: blur(1px);
opacity: 0.5; opacity: 0.5;
border-radius: 1rem; border-radius: 1rem;
} }
.photos img:active { .photos img:active {
box-shadow: 0 0 10px #000; box-shadow: 0 0 10px #000;
} }
.photos-path { .photos-path {
width: 100%; width: 100%;
display: flex; display: flex;
list-style: none; list-style: none;
padding: 0; padding: 0;
line-height: 15px; line-height: 15px;
} }
.photos-path a { .photos-path a {
font-size: 15px; font-size: 15px;
text-decoration: none; text-decoration: none;
border-radius: 2px; border-radius: 2px;
padding: 5px; padding: 5px;
margin: 5px; margin: 5px;
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background-color: #1a1a1a; background-color: #1a1a1a;
box-shadow: 0 0 4px #000; box-shadow: 0 0 4px #000;
text-shadow: 0 0 5px #1c1c1c; text-shadow: 0 0 5px #1c1c1c;
transition: 0.3s; transition: 0.3s;
color: #e0e0e0; color: #e0e0e0;
} }
#imgBig { #imgBig {
margin: 0; margin: 0;
padding: 0; padding: 0;
position: fixed; position: fixed;
z-index: 6; z-index: 6;
left: 50%; left: 50%;
top: 50%; top: 50%;
max-width: none; max-width: none;
max-height: none; max-height: none;
transform: translate(-50%, -50%); transform: translate(-50%, -50%);
box-shadow: 0 0 5px #000; box-shadow: 0 0 5px #000;
} }
#photoButtonsContainer { #photoButtonsContainer {
position: fixed; position: fixed;
display: block; display: block;
z-index: 10; z-index: 10;
/* Block selection of buttons (useful for mobile devices) */ /* Block selection of buttons (useful for mobile devices) */
-webkit-user-select: none; /* Chrome all / Safari all */ -webkit-user-select: none; /* Chrome all / Safari all */
-moz-user-select: none; /* Firefox all */ -moz-user-select: none; /* Firefox all */
-ms-user-select: none; /* IE 10+ */ -ms-user-select: none; /* IE 10+ */
} }
#rightButton, #leftButton { #rightButton, #leftButton {
transition: 0.2s; transition: 0.2s;
position: fixed; position: fixed;
top: 0; top: 0;
width: 10%; width: 10%;
background-color: rgba(255, 255, 255, 0.05); background-color: rgba(255, 255, 255, 0.05);
height: 100%; height: 100%;
display: flex; display: flex;
font-size: 5rem; font-size: 5rem;
cursor: pointer; cursor: pointer;
} }
#rightButton { #rightButton {
right: 0; right: 0;
} }
#leftButton { #leftButton {
left: 0; left: 0;
} }
#closeButton, #downloadButton { #closeButton, #downloadButton {
transition: 0.2s; transition: 0.2s;
position: fixed; position: fixed;
color: white; color: white;
display: flex; display: flex;
font-size: 3rem; font-size: 3rem;
top: 0; top: 0;
width: 80px; width: 80px;
height: 80px; height: 80px;
background-color: rgba(255, 255, 255, 0.05); background-color: rgba(255, 255, 255, 0.05);
cursor: pointer; cursor: pointer;
} }
#closeButton { #closeButton {
right: 10%; right: 10%;
} }
#downloadButton { #downloadButton {
right: calc(10% + 80px); right: calc(10% + 80px);
} }
#rightButton:hover, #leftButton:hover, #closeButton:hover, #downloadButton:hover { #rightButton:hover, #leftButton:hover, #closeButton:hover, #downloadButton:hover {
background-color: rgba(255, 255, 255, 0.2); background-color: rgba(255, 255, 255, 0.2);
} }
#rightButton i, #leftButton i, #closeButton i, #downloadButton i { #rightButton i, #leftButton i, #closeButton i, #downloadButton i {
margin: auto; margin: auto;
} }
#rightButton:active, #leftButton:active, #closeButton:active, #downloadButton:active { #rightButton:active, #leftButton:active, #closeButton:active, #downloadButton:active {
background-color: rgba(255, 255, 255, 0.4); background-color: rgba(255, 255, 255, 0.4);
} }
#loadingIconContainer { #loadingIconContainer {
color: white; color: white;
width: 100%; width: 100%;
height: 100%; height: 100%;
z-index: 8; z-index: 8;
position: fixed; position: fixed;
display: flex; display: flex;
font-size: 5rem; font-size: 5rem;
} }
#loadingIconContainer i { #loadingIconContainer i {
margin: auto; margin: auto;
} }
#closeBack { #closeBack {
position: fixed; position: fixed;
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: #1c1c1c; background-color: #1c1c1c;
} }
#photoOverlay { #photoOverlay {
top: 0; top: 0;
left: 0; left: 0;
position: fixed; position: fixed;
width: 100%; width: 100%;
height: 100%; height: 100%;
z-index: 5; z-index: 5;
} }
#downloadAlbum { #downloadAlbum {
height: 70px; height: 70px;
width: 200px; width: 200px;
display: inline-flex; display: inline-flex;
position: relative; position: relative;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background-color: #1a1a1a; background-color: #1a1a1a;
box-shadow: 0 0 4px #000; box-shadow: 0 0 4px #000;
text-shadow: 0 0 5px #1c1c1c; text-shadow: 0 0 5px #1c1c1c;
transition: 0.3s; transition: 0.3s;
color: #28ca2a; color: #28ca2a;
cursor: pointer; cursor: pointer;
margin: 5px; margin: 5px;
} }
#downloadText { #downloadText {
margin-top: 5px; margin-top: 5px;
position: absolute; position: absolute;
top: 0; top: 0;
} }
#albumPhotoCount { #albumPhotoCount {
color: #929ba8; color: #929ba8;
margin-bottom: 5px; margin-bottom: 5px;
position: absolute; position: absolute;
bottom: 0; bottom: 0;
} }
#downloadText svg { #downloadText svg {
width: 24px; width: 24px;
height: 24px; height: 24px;
margin-right: 5px; margin-right: 5px;
} }
@media screen and (max-width: 768px) { @media screen and (max-width: 768px) {
#rightButton, #leftButton { #rightButton, #leftButton {
width: 80px; width: 80px;
font-size: 3rem; font-size: 3rem;
} }
#closeButton { #closeButton {
right: 50%; right: 50%;
transform: translateX(100%); transform: translateX(100%);
} }
#downloadButton { #downloadButton {
right: 50%; right: 50%;
} }
} }
@media screen and (max-width: 576px) { @media screen and (max-width: 576px) {
.photos-folder-container a { .photos-folder-container a {
min-width: 100px; min-width: 100px;
height: 70px; height: 70px;
} }
#folderTitle { #folderTitle {
position: absolute; position: absolute;
top: 5px; top: 5px;
color: #73b795; color: #73b795;
font-size: 15px; font-size: 15px;
text-shadow: 0 0 5px #1c1c1c; text-shadow: 0 0 5px #1c1c1c;
} }
#folderPhotos, #folderAlbums { #folderPhotos, #folderAlbums {
color: #808080; color: #808080;
font-size: 10px; font-size: 10px;
} }
#folderPhotos { #folderPhotos {
position: absolute; position: absolute;
bottom: 20px; bottom: 20px;
} }
#folderAlbums { #folderAlbums {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
} }
.photos img { .photos img {
width: 140px; width: 140px;
} }
} }

View file

@ -1,66 +1,66 @@
#tableWrapper { #tableWrapper {
width: 100%; width: 100%;
overflow: auto; overflow: auto;
display: flex; display: flex;
} }
#tablePlanning { #tablePlanning {
margin: auto auto 20px auto; margin: auto auto 20px auto;
display: flex; display: flex;
} }
.planning-header { .planning-header {
font-family: Harry-P, fantasy; font-family: Harry-P, fantasy;
border: none; border: none;
border-radius: 0.2rem; border-radius: 0.2rem;
background: #414141; background: #414141;
font-size: 2rem; font-size: 2rem;
padding: 5px; padding: 5px;
margin: 5px 0; margin: 5px 0;
height: 50px; height: 50px;
} }
.horaires { .horaires {
background: none; background: none;
border: none; border: none;
border-top: 1px solid #ccc; border-top: 1px solid #ccc;
text-align: right; text-align: right;
vertical-align: top; vertical-align: top;
margin-top: -1px; /* negate the border to prevent offsest with events */ margin-top: -1px; /* negate the border to prevent offsest with events */
} }
.event { .event {
background: none; background: none;
border: none; border: none;
color: white; color: white;
transition: 0.3s; transition: 0.3s;
cursor: pointer; cursor: pointer;
position: absolute; position: absolute;
width: 100%; width: 100%;
display: flex; display: flex;
} }
.event-color { .event-color {
border-radius: 0.2rem; border-radius: 0.2rem;
transition: 0.2s; transition: 0.2s;
border: none; border: none;
margin: 5px 0; margin: 5px 0;
display: flex; display: flex;
width: 100%; width: 100%;
} }
.event-color:hover { .event-color:hover {
border-radius: 1rem; border-radius: 1rem;
transform: scale(1.05); transform: scale(1.05);
} }
.event-text { .event-text {
margin: auto; margin: auto;
} }
.day-column { .day-column {
position: relative; position: relative;
min-width: 150px; min-width: 150px;
margin: 0 5px; margin: 0 5px;
} }

View file

@ -1,118 +1,106 @@
#mobile-score { #mobile-score {
display: none; display: none;
height: auto; height: auto;
} }
#mobile-score .title-image { #mobile-score .title-image {
height: 80px; height: 80px;
margin: 0 auto 0 auto; margin: 0 auto 0 auto;
display: block; display: block;
position: relative; position: relative;
bottom: -100px; bottom: -100px;
} }
#mobile-score .score-container { #mobile-score .score-container {
margin: 0 auto 0 auto; margin: 0 auto 0 auto;
display: block; display: block;
bottom: -85px; bottom: -85px;
position: relative; position: relative;
} }
#top-bar-score { #top-bar-score {
display: inline-flex; display: inline-flex;
position: fixed; position: fixed;
right: 0; right: 0;
} }
#top-bar-score .title-image { #top-bar-score .title-image {
height: 40px; height: 40px;
margin: 0; margin: 0;
} }
#main-score { #main-score {
display: block; display: block;
} }
#main-score .title-image { #main-score .title-image {
display: none; display: none;
} }
.score-container { .score-container {
background: none; background: none;
border-radius: 10px; border-radius: 10px;
display: inline-flex; display: inline-flex;
vertical-align: center; vertical-align: center;
font-family: Harry-P, sans-serif; font-family: Harry-P, sans-serif;
font-size: 50px; font-size: 50px;
margin: 0; margin: 0;
} }
.score-container a { .score-container a {
display: inline-flex; display: inline-flex;
vertical-align: middle; vertical-align: middle;
align-items: center; align-items: center;
text-shadow: -1px 1px 2px #000, text-shadow: -1px 1px 2px #000,
1px 1px 2px #000, 1px 1px 2px #000,
1px -1px 0 #000, 1px -1px 0 #000,
-1px -1px 0 #000; -1px -1px 0 #000;
} }
.score-container a:hover { .score-container a:hover {
text-shadow: 0 0 10px #bd8a39; text-shadow: 0 0 10px #bd8a39;
} }
.winning { .winning {
font-size: 23px; font-size: 23px;
} }
.score-gli { .score-tam {
color: #ff5f5f; color: #ff5f5f;
background-size: auto 100%; background-size: auto 100%;
margin: 0 10px; margin: 0 10px;
} }
.score-pek { .score-pek {
color: #7ffd78; color: #fafd78;
background-size: auto 100%; background-size: auto 100%;
margin: 0 10px; margin: 0 10px;
} }
.score-boo {
color: #fafd78; .score-separator {
background-size: auto 100%; background-color: #d9d9d9;
margin: 0 10px; width: 5px;
} height: 5px;
}
.score-ver {
color: #60bdff; #main-score .score-logo {
background-size: auto 100%; height: 60px;
margin: 0 10px; margin: 0 5px 0 5px;
} }
.score-separator { @media screen and (max-width: 768px) {
background-color: #d9d9d9; #top-bar-score {
width: 5px; display: none;
height: 5px; }
}
#mobile-score {
#main-score .score-logo { display: block;
height: 60px; }
margin: 0 5px 0 5px;
} #main-score .score-container {
display: block;
}
@media screen and (max-width: 768px) { }
#top-bar-score {
display: none;
}
#mobile-score {
display: block;
}
#main-score .score-container {
display: block;
}
}

View file

@ -1,87 +1,87 @@
/* The side navigation menu */ /* The side navigation menu */
.sidenav { .sidenav {
height: 100%; height: 100%;
overflow-y: hidden; overflow-y: hidden;
width: 300px; width: 300px;
transform: translateX(-270px); /* change margin with JavaScript */ transform: translateX(-270px); /* change margin with JavaScript */
position: fixed; /* Stay in place */ position: fixed; /* Stay in place */
z-index: 1000; z-index: 1000;
top: 0; top: 0;
left: 0; left: 0;
transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */ transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
text-align: left; text-align: left;
background: linear-gradient(to right, #1c1c1c, transparent 90%); background: linear-gradient(to right, #1c1c1c, transparent 90%);
} }
.sidenav.sidenav-open { .sidenav.sidenav-open {
transform: translateX(0); transform: translateX(0);
overflow-y: auto; overflow-y: auto;
} }
#sidenav-scroll { #sidenav-scroll {
position: absolute; position: absolute;
padding: 80px 0 50px 0; padding: 80px 0 50px 0;
width: 100%; width: 100%;
} }
/* The navigation menu links */ /* The navigation menu links */
.sidenav a { .sidenav a {
padding: 0; padding: 0;
margin: 0; margin: 0;
text-decoration: none; text-decoration: none;
font-size: 20px; font-size: 20px;
color: #f0f0f0; color: #f0f0f0;
display: inline-flex; display: inline-flex;
transition: 0.3s; transition: 0.3s;
height: 40px; height: 40px;
width: 270px; width: 270px;
} }
.sidenav a .sidenav-content { .sidenav a .sidenav-content {
margin: 0; margin: 0;
padding-left: 20px; padding-left: 20px;
width: 100%; width: 100%;
height: 100%; height: 100%;
display: inline-flex; display: inline-flex;
transition: 0.3s; transition: 0.3s;
} }
.sidenav-icon, .sidenav-image { .sidenav-icon, .sidenav-image {
left: 0; left: 0;
margin-right: 5px; margin-right: 5px;
-webkit-transform: translateY(5px); -webkit-transform: translateY(5px);
transform: translateY(5px); transform: translateY(5px);
height: 20px; height: 20px;
width: 20px !important; width: 20px !important;
} }
.sidenav-image { .sidenav-image {
margin: 0 5px 0 0; margin: 0 5px 0 0;
padding: 0; padding: 0;
} }
.sidenav a .sidenav-content:hover { .sidenav a .sidenav-content:hover {
color: #e9b82f; color: #e9b82f;
padding-left: 40px; padding-left: 40px;
} }
.sidenav .separator { .sidenav .separator {
height: 20px; height: 20px;
} }
/* Style page content - use this if you want to push the page content to the right when you open the side navigation */ /* Style page content - use this if you want to push the page content to the right when you open the side navigation */
#main { #main {
transition: margin-left .5s; transition: margin-left .5s;
} }
/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */ /* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) { @media screen and (max-height: 450px) {
.sidenav a { .sidenav a {
font-size: 18px; font-size: 18px;
} }
} }

View file

@ -1,103 +1,67 @@
#teamButtonContainer { #teamButtonContainer {
display: block; display: block;
line-height: 2.2; line-height: 2.2;
} }
.team-button { .team-button {
border-radius: 0.2rem; border-radius: 0.2rem;
font-size: 2.5rem; font-size: 2.5rem;
font-family: Harry-P, fantasy; font-family: Harry-P, fantasy;
cursor: pointer; cursor: pointer;
padding: 15px 20px; padding: 15px 20px;
margin: 10px; margin: 10px;
width: 200px; width: 200px;
transition: 0.2s; transition: 0.2s;
border: none; border: none;
} }
#title_gli { #title_tam {
color: #FF5F5F; color: #FF5F5F;
} }
#title_pek { #title_pek {
color: #7ffd78; color: #fafd78;
} }
#title_boo { .team-button#buttonTam {
color: #fafd78; color: #FF5F5F;
} background-color: #4b1f1f;
}
#title_ver {
color: #60bdff; .team-button#buttonPek {
} color: #fafd78;
background-color: #484b25;
.team-button#buttonGli { }
color: #FF5F5F;
background-color: #4b1f1f; .team-button#buttonTam:hover {
} color: #b30006;
background-color: #ff7d7f;
.team-button#buttonPek { box-shadow: 0 0 10px #ff506d;
color: #7ffd78; }
background-color: #1b4b1b;
} .team-button#buttonPek:hover {
color: #a28100;
.team-button#buttonBoo { background-color: #f7fd51;
color: #fafd78; box-shadow: 0 0 10px #fdf71e;
background-color: #484b25; }
}
.score-entry {
.team-button#buttonVer { width: 100%;
color: #60bdff; }
background-color: #1e384b;
} .score-entry-text {
margin-right: 20px;
}
.team-button#buttonGli:hover { .score-entry-points {
color: #b30006; margin-left: 20px;
background-color: #ff7d7f; }
box-shadow: 0 0 10px #ff506d;
} .positive {
color: white;
.team-button#buttonBoo:hover { }
color: #a28100;
background-color: #f7fd51; .negative {
box-shadow: 0 0 10px #fdf71e; color: #bf021c;
} }
.team-button#buttonPek:hover {
color: #0c5700;
background-color: #6bfd5f;
box-shadow: 0 0 10px #7efd34;
}
.team-button#buttonVer:hover {
color: #0008a5;
background-color: #48a7ff;
box-shadow: 0 0 10px #2060ff;
}
.score-entry {
width: 100%;
}
.score-entry-text {
margin-right: 20px;
}
.score-entry-points {
margin-left: 20px;
}
.positive {
color: white;
}
.negative {
color: #bf021c;
}

File diff suppressed because it is too large Load diff

BIN
assets/fonts/kohlanta.ttf Normal file

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 851 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 156 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 252 KiB

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 242 KiB

After

Width:  |  Height:  |  Size: 632 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 634 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 125 KiB

After

Width:  |  Height:  |  Size: 67 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 565 KiB

After

Width:  |  Height:  |  Size: 573 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 85 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 406 KiB

View file

@ -1,44 +1,44 @@
$(document).ready(function () { $(document).ready(function () {
getMapInfo(getSelectedMap()); getMapInfo(getSelectedMap());
$(".save").click(function () { $(".save").click(function () {
let info = {}; let info = {};
info['title'] = $('#titleInput').val(); info['title'] = $('#titleInput').val();
info['description'] = $('#descriptionInput').val(); info['description'] = $('#descriptionInput').val();
let object = { let object = {
"function": 'save_map_info', "function": 'save_map_info',
'selector': getSelectedMap(), 'selector': getSelectedMap(),
'info': info, 'info': info,
}; };
$.get( $.get(
"ajax.php", "ajax.php",
object, object,
function (data) { function (data) {
alert(data); alert(data);
} }
); );
}); });
$('#mapSelect').on('change', function () { $('#mapSelect').on('change', function () {
getMapInfo(getSelectedMap()); getMapInfo(getSelectedMap());
}); });
}); });
function getSelectedMap() { function getSelectedMap() {
return $('#mapSelect').val(); return $('#mapSelect').val();
} }
function getMapInfo(selector) { function getMapInfo(selector) {
let object = { let object = {
"function": 'get_map_info', "function": 'get_map_info',
'selector': selector, 'selector': selector,
}; };
$.get( $.get(
"../../ajax/read", "../../ajax/read",
object, object,
function (data) { function (data) {
console.log(data); console.log(data);
$('#titleInput').val(data[0]['title']); $('#titleInput').val(data[0]['title']);
$('#descriptionInput').val(data[0]['description']); $('#descriptionInput').val(data[0]['description']);
} }
); );
} }

View file

@ -1,167 +1,167 @@
let uniqueID = 0; let uniqueID = 0;
let currentActivities = []; let currentActivities = [];
let entryTemplate = let entryTemplate =
'<tr class="entry">' + '<tr class="entry">' +
'<td class="planning-start"></td>' + '<td class="planning-start"></td>' +
'<td class="planning-length"></td>' + '<td class="planning-length"></td>' +
'<td class="planning-name"></td>' + '<td class="planning-name"></td>' +
'<td class="remove-line">' + '<td class="remove-line">' +
'<i class="fas fa-trash"></i>' + '<i class="fas fa-trash"></i>' +
'</td>' + '</td>' +
'</tr>'; '</tr>';
let editEntryTemplate = let editEntryTemplate =
'<label for="startTimeInput">Heure de début</label>\n' + '<label for="startTimeInput">Heure de début</label>\n' +
'<input type="number" id="startTimeInput">\n' + '<input type="number" id="startTimeInput">\n' +
'<label for="lengthTimeInput">Durée</label>\n' + '<label for="lengthTimeInput">Durée</label>\n' +
'<input type="number" id="lengthTimeInput">\n' + '<input type="number" id="lengthTimeInput">\n' +
'' + '' +
'<label for="smallTitleInput">Titre dans le planning</label>\n' + '<label for="smallTitleInput">Titre dans le planning</label>\n' +
'<input type="text" id="smallTitleInput">\n' + '<input type="text" id="smallTitleInput">\n' +
'<label for="fullTitleInput">Titre dans la description</label>\n' + '<label for="fullTitleInput">Titre dans la description</label>\n' +
'<input type="text" id="fullTitleInput">\n' + '<input type="text" id="fullTitleInput">\n' +
'' + '' +
'<label for="descriptionInput">Description</label>\n' + '<label for="descriptionInput">Description</label>\n' +
'<textarea rows="10" id="descriptionInput"></textarea>' + '<textarea rows="10" id="descriptionInput"></textarea>' +
'' + '' +
'<label for="colorInput">Couleur (hexadécimal)</label>\n' + '<label for="colorInput">Couleur (hexadécimal)</label>\n' +
'<input type="text" id="colorInput">\n'; '<input type="text" id="colorInput">\n';
$(document).ready(function () { $(document).ready(function () {
getDayActivities(getSelectedDay()); getDayActivities(getSelectedDay());
$('#daySelect').on('change', function () { $('#daySelect').on('change', function () {
getDayActivities(getSelectedDay()); getDayActivities(getSelectedDay());
}); });
$(".save").click(function () { $(".save").click(function () {
saveDayActivities(); saveDayActivities();
}); });
$('.add-line').on('click', function () { $('.add-line').on('click', function () {
let newElem = {}; let newElem = {};
uniqueID += 1; uniqueID += 1;
newElem['ID'] = 'new_'+ uniqueID; newElem['ID'] = 'new_'+ uniqueID;
newElem['day'] = getSelectedDay(); newElem['day'] = getSelectedDay();
newElem['start'] = ''; newElem['start'] = '';
newElem['length'] = ''; newElem['length'] = '';
newElem['small_title'] = ''; newElem['small_title'] = '';
newElem['full_title'] = ''; newElem['full_title'] = '';
newElem['description'] = ''; newElem['description'] = '';
currentActivities.push(newElem); currentActivities.push(newElem);
showInfo(newElem); showInfo(newElem);
addLine(newElem['ID'], '', '', ''); addLine(newElem['ID'], '', '', '');
}); });
}); });
function getSelectedDay() { function getSelectedDay() {
return $('#daySelect').val(); return $('#daySelect').val();
} }
function getRealId(id) { function getRealId(id) {
return id.replace('entry_', ''); return id.replace('entry_', '');
} }
function findActivityOfId(id) { function findActivityOfId(id) {
let match = undefined; let match = undefined;
for (let i = 0; i < currentActivities.length; i++) { for (let i = 0; i < currentActivities.length; i++) {
if (currentActivities[i]['ID'] === id) { if (currentActivities[i]['ID'] === id) {
match = currentActivities[i]; match = currentActivities[i];
break; break;
} }
} }
return match; return match;
} }
function removeActivityOfId(id) { function removeActivityOfId(id) {
for (let i = 0; i < currentActivities.length; i++) { for (let i = 0; i < currentActivities.length; i++) {
if (currentActivities[i]['ID'] === id) { if (currentActivities[i]['ID'] === id) {
currentActivities.splice(i, 1); currentActivities.splice(i, 1);
break; break;
} }
} }
} }
function updateListEntry(entry) { function updateListEntry(entry) {
let $listEntry = $('#entry_' + entry['ID']); let $listEntry = $('#entry_' + entry['ID']);
if ($listEntry !== undefined) { if ($listEntry !== undefined) {
$listEntry.find('.planning-start').text(entry['start']); $listEntry.find('.planning-start').text(entry['start']);
$listEntry.find('.planning-length').text(entry['length']); $listEntry.find('.planning-length').text(entry['length']);
$listEntry.find('.planning-name').text(entry['small_title']); $listEntry.find('.planning-name').text(entry['small_title']);
} }
} }
function addLine(id, start, length, name) { function addLine(id, start, length, name) {
let $entry = $(entryTemplate); let $entry = $(entryTemplate);
$entry.attr('id', 'entry_' + id); $entry.attr('id', 'entry_' + id);
$entry.find('.remove-line').attr('id', 'removeEntry_' + id); $entry.find('.remove-line').attr('id', 'removeEntry_' + id);
$("#activityTable").prepend($entry); $("#activityTable").prepend($entry);
$entry.find('.planning-start').text(start); $entry.find('.planning-start').text(start);
$entry.find('.planning-length').text(length); $entry.find('.planning-length').text(length);
$entry.find('.planning-name').text(name); $entry.find('.planning-name').text(name);
$("#removeEntry_" + id).on("click", function () { $("#removeEntry_" + id).on("click", function () {
removeActivityOfId(getRealId($entry.attr('id'))); removeActivityOfId(getRealId($entry.attr('id')));
$entry.remove(); $entry.remove();
}); });
$entry.on("click", function () { $entry.on("click", function () {
showInfo(findActivityOfId(getRealId($entry.attr('id')))); showInfo(findActivityOfId(getRealId($entry.attr('id'))));
}); });
} }
function showInfo(entry) { function showInfo(entry) {
if (entry !== undefined) { if (entry !== undefined) {
$.alert({ $.alert({
title: 'Edition du planning', title: 'Edition du planning',
content: editEntryTemplate, content: editEntryTemplate,
onOpenBefore: function () { onOpenBefore: function () {
$('#startTimeInput').val(entry['start']); $('#startTimeInput').val(entry['start']);
$('#lengthTimeInput').val(entry['length']); $('#lengthTimeInput').val(entry['length']);
$('#smallTitleInput').val(entry['small_title']); $('#smallTitleInput').val(entry['small_title']);
$('#fullTitleInput').val(entry['full_title']); $('#fullTitleInput').val(entry['full_title']);
$('#descriptionInput').val(entry['description']); $('#descriptionInput').val(entry['description']);
$('#colorInput').val(entry['color']); $('#colorInput').val(entry['color']);
}, },
onClose: function () { onClose: function () {
entry['start'] =$('#startTimeInput').val(); entry['start'] =$('#startTimeInput').val();
entry['length'] = $('#lengthTimeInput').val(); entry['length'] = $('#lengthTimeInput').val();
entry['small_title'] = $('#smallTitleInput').val(); entry['small_title'] = $('#smallTitleInput').val();
entry['full_title'] = $('#fullTitleInput').val(); entry['full_title'] = $('#fullTitleInput').val();
entry['description'] = $('#descriptionInput').val(); entry['description'] = $('#descriptionInput').val();
entry['color'] = $('#colorInput').val(); entry['color'] = $('#colorInput').val();
updateListEntry(entry); updateListEntry(entry);
}, },
}); });
} else } else
alert('Une erreur est survenue'); alert('Une erreur est survenue');
} }
function saveDayActivities() { function saveDayActivities() {
let object = { let object = {
"function": 'save_day_activities', "function": 'save_day_activities',
"day": getSelectedDay(), "day": getSelectedDay(),
"entries": currentActivities, "entries": currentActivities,
}; };
$.get( $.get(
"ajax.php", "ajax.php",
object, object,
function (data) { function (data) {
alert(data); alert(data);
}); });
} }
function getDayActivities(day) { function getDayActivities(day) {
$('#activityTable').html(''); $('#activityTable').html('');
let object = { let object = {
"function": 'get_activities_of_day', "function": 'get_activities_of_day',
'day': day, 'day': day,
}; };
$.get( $.get(
"../../ajax/read", "../../ajax/read",
object, object,
function (data) { function (data) {
currentActivities = data; currentActivities = data;
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
addLine(data[i]['ID'], data[i]['start'], data[i]['length'], data[i]['small_title']); addLine(data[i]['ID'], data[i]['start'], data[i]['length'], data[i]['small_title']);
} }
} }
); );
} }

View file

@ -1,93 +1,93 @@
let uniqueID = 0; let uniqueID = 0;
let entryTemplate = let entryTemplate =
'<tr class="entry">' + '<tr class="entry">' +
'<td class="edit-text"><input class="edit-text-input" type="text" placeholder="Entrez le texte ici"></td>' + '<td class="edit-text"><input class="edit-text-input" type="text" placeholder="Entrez le texte ici"></td>' +
'<td class="edit-points"><input class="edit-value-input" type="number" value="0"></td>' + '<td class="edit-points"><input class="edit-value-input" type="number" value="0"></td>' +
'<td class="remove-line">' + '<td class="remove-line">' +
'<i class="fas fa-trash"></i>' + '<i class="fas fa-trash"></i>' +
'</td>' + '</td>' +
'</tr>'; '</tr>';
$(document).ready(function () { $(document).ready(function () {
getScores(getSelectedTeam()); getScores(getSelectedTeam());
setTeamColors(getSelectedTeam()); setTeamColors(getSelectedTeam());
$(".add-line").click(function () { $(".add-line").click(function () {
addLine(); addLine();
}); });
$(".save").click(function () { $(".save").click(function () {
let lines = getLine(); let lines = getLine();
let object = { let object = {
"function": 'save_scores', "function": 'save_scores',
"team": getSelectedTeam(), "team": getSelectedTeam(),
"lines": lines, "lines": lines,
}; };
$.get( $.get(
'ajax.php', 'ajax.php',
object, object,
function (data) { function (data) {
alert(data); alert(data);
window.location.reload(); window.location.reload();
}); });
}); });
$('#teamSelect').on('change', function () { $('#teamSelect').on('change', function () {
getScores(getSelectedTeam()); getScores(getSelectedTeam());
setTeamColors(getSelectedTeam()); setTeamColors(getSelectedTeam());
}); });
}); });
function setTeamColors(team) { function setTeamColors(team) {
$('.add-line').attr('id', 'addLine_' + team); $('.add-line').attr('id', 'addLine_' + team);
$('.edit-header').attr('id', 'editHeader_' + team); $('.edit-header').attr('id', 'editHeader_' + team);
} }
function getSelectedTeam() { function getSelectedTeam() {
return $('#teamSelect').val(); return $('#teamSelect').val();
} }
function addLine(text, value) { function addLine(text, value) {
uniqueID += 1; uniqueID += 1;
let $entry = $(entryTemplate); let $entry = $(entryTemplate);
$entry.attr('id', 'entry_' + uniqueID); $entry.attr('id', 'entry_' + uniqueID);
$entry.find('.remove-line').attr('id', 'removeEntry_'+uniqueID); $entry.find('.remove-line').attr('id', 'removeEntry_'+uniqueID);
$(".stats-table").prepend( $(".stats-table").prepend(
$entry $entry
); );
$entry.find('.edit-text-input').val(text); $entry.find('.edit-text-input').val(text);
$entry.find('.edit-value-input').val(value); $entry.find('.edit-value-input').val(value);
$("#removeEntry_" + uniqueID).on("click", function () { $("#removeEntry_" + uniqueID).on("click", function () {
$entry.remove(); $entry.remove();
}); });
} }
function getLine() { function getLine() {
let elements = $(".entry").map(function () { let elements = $(".entry").map(function () {
return this; return this;
}).get(); }).get();
let array = []; let array = [];
for (let i = 0; i < elements.length; i++) { for (let i = 0; i < elements.length; i++) {
let values = { let values = {
"text": $(elements[i]).find('.edit-text-input').val(), "text": $(elements[i]).find('.edit-text-input').val(),
"points": parseInt($(elements[i]).find('.edit-value-input').val()) "points": parseInt($(elements[i]).find('.edit-value-input').val())
}; };
array.push(values); array.push(values);
} }
return array; return array;
} }
function getScores(team) { function getScores(team) {
$('.stats-table').html(''); $('.stats-table').html('');
let object = { let object = {
"function": 'get_scores', "function": 'get_scores',
'team': team, 'team': team,
}; };
$.get( $.get(
"../../ajax/read", "../../ajax/read",
object, object,
function (data) { function (data) {
for (let i = 0; i < data.length; i++) { for (let i = 0; i < data.length; i++) {
addLine(data[i]['text'], data[i]['points']); addLine(data[i]['text'], data[i]['points']);
} }
} }
); );
} }

View file

@ -1,26 +1,26 @@
$(document).ready(function () { $(document).ready(function () {
$(".save").click(function () { $(".save").click(function () {
sendLogin($('#usernameInput').val(), $('#passwordInput').val()); sendLogin($('#usernameInput').val(), $('#passwordInput').val());
}); });
}); });
function sendLogin(login, password) { function sendLogin(login, password) {
let object = { let object = {
"function": 'update_website', "function": 'update_website',
"login": login, "login": login,
"password": password, "password": password,
}; };
console.log(JSON.stringify(object)); console.log(JSON.stringify(object));
// Do not put .php in the url, otherwise the POST request will transformed in GET when server rewrites the url // Do not put .php in the url, otherwise the POST request will transformed in GET when server rewrites the url
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: "../ajax/write/master", url: "../ajax/write/master",
data: JSON.stringify(object), data: JSON.stringify(object),
dataType: "json", dataType: "json",
contentType: "application/json; charset=utf-8", contentType: "application/json; charset=utf-8",
complete: function (data) { complete: function (data) {
alert(data.responseText); alert(data.responseText);
console.log(data); console.log(data);
}, },
}); });
} }

View file

@ -1,56 +1,56 @@
jconfirm.defaults = { jconfirm.defaults = {
title: '', title: '',
titleClass: '', titleClass: '',
type: 'default', type: 'default',
typeAnimated: true, typeAnimated: true,
draggable: false, draggable: false,
animateFromElement: true, animateFromElement: true,
smoothContent: true, smoothContent: true,
content: '', content: '',
buttons: {}, buttons: {},
defaultButtons: { defaultButtons: {
ok: { ok: {
text: 'OK', text: 'OK',
action: function () { action: function () {
} }
}, },
}, },
contentLoaded: function(data, status, xhr){ contentLoaded: function(data, status, xhr){
}, },
icon: '', icon: '',
lazyOpen: false, lazyOpen: false,
bgOpacity: null, bgOpacity: null,
theme: 'supervan', theme: 'supervan',
animation: 'scale', animation: 'scale',
closeAnimation: 'scale', closeAnimation: 'scale',
animationSpeed: 400, animationSpeed: 400,
animationBounce: 1, animationBounce: 1,
rtl: false, rtl: false,
container: 'body', container: 'body',
containerFluid: false, containerFluid: false,
escapeKey: 'ok', escapeKey: 'ok',
backgroundDismiss: true, backgroundDismiss: true,
backgroundDismissAnimation: 'shake', backgroundDismissAnimation: 'shake',
autoClose: false, autoClose: false,
closeIcon: null, closeIcon: null,
closeIconClass: false, closeIconClass: false,
watchInterval: 100, watchInterval: 100,
columnClass: 'col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1', columnClass: 'col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1',
boxWidth: '50%', boxWidth: '50%',
scrollToPreviousElement: true, scrollToPreviousElement: true,
scrollToPreviousElementAnimate: true, scrollToPreviousElementAnimate: true,
useBootstrap: true, useBootstrap: true,
offsetTop: 40, offsetTop: 40,
offsetBottom: 40, offsetBottom: 40,
bootstrapClasses: { bootstrapClasses: {
container: 'container', container: 'container',
containerFluid: 'container-fluid', containerFluid: 'container-fluid',
row: 'row', row: 'row',
}, },
onContentReady: function () {}, onContentReady: function () {},
onOpenBefore: function () {}, onOpenBefore: function () {},
onOpen: function () {}, onOpen: function () {},
onClose: function () {}, onClose: function () {},
onDestroy: function () {}, onDestroy: function () {},
onAction: function () {} onAction: function () {}
}; };

View file

@ -1,8 +1,8 @@
/*! /*!
* jQuery Mousewheel 3.1.13 * jQuery Mousewheel 3.1.13
* *
* Copyright 2015 jQuery Foundation and other contributors * Copyright 2015 jQuery Foundation and other contributors
* Released under the MIT license. * Released under the MIT license.
* http://jquery.org/license * http://jquery.org/license
*/ */
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})}); !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});

View file

@ -1,46 +1,46 @@
let hoverColor = "#e9b82f"; let hoverColor = "#e9b82f";
let normalColor = "#efbd95"; let normalColor = "#efbd95";
function get_name(id){ function get_name(id){
return id.replace("map-", ""); return id.replace("map-", "");
} }
function clicked(elem){ function clicked(elem){
$.alert({ $.alert({
title: 'Chargement...', title: 'Chargement...',
content: function () { content: function () {
let self = this; let self = this;
let object = { let object = {
"function": 'get_map_info', "function": 'get_map_info',
'selector': get_name(elem.id), 'selector': get_name(elem.id),
}; };
return $.ajax({ return $.ajax({
url: 'ajax/read', url: 'ajax/read',
data: object, data: object,
method: 'get' method: 'get'
}).done(function (data) { }).done(function (data) {
if (data.length > 0) { if (data.length > 0) {
self.setTitle(data[0]['title']); self.setTitle(data[0]['title']);
self.setContent(data[0]['description']); self.setContent(data[0]['description']);
} else { } else {
self.setTitle('Erreur'); self.setTitle('Erreur');
self.setContent('Une erreur est survenue') self.setContent('Une erreur est survenue')
} }
}).fail(function(){ }).fail(function(){
self.setContent('Something went wrong.'); self.setContent('Something went wrong.');
}); });
}, },
}); });
} }
function hover_in(elem){ function hover_in(elem){
$(elem).css({ $(elem).css({
"fill": hoverColor, "fill": hoverColor,
'cursor': 'pointer', 'cursor': 'pointer',
}); });
} }
function hover_out(elem){ function hover_out(elem){
$(elem).css("fill", normalColor); $(elem).css("fill", normalColor);
} }

View file

@ -1,276 +1,276 @@
let showcase = $("#imgBig"); let showcase = $("#imgBig");
let showcaseButtonContainer = $("#photoButtonsContainer"); let showcaseButtonContainer = $("#photoButtonsContainer");
let showcaseDownload = $("#downloadButton"); let showcaseDownload = $("#downloadButton");
let photoOverlay = $("#photoOverlay"); let photoOverlay = $("#photoOverlay");
let headerTop = $("#header-top"); let headerTop = $("#header-top");
let sideNav = $("#menuSidenav"); let sideNav = $("#menuSidenav");
let loading = $("#loadingIconContainer"); let loading = $("#loadingIconContainer");
let move_photo = false; let move_photo = false;
let grab_offsetX = 0; let grab_offsetX = 0;
let grab_offsetY = 0; let grab_offsetY = 0;
let idle_time = 0; let idle_time = 0;
let isMobile = window.matchMedia("only screen and (max-width: 480px)").matches; let isMobile = window.matchMedia("only screen and (max-width: 480px)").matches;
let isMouseOverButtons = false; let isMouseOverButtons = false;
$(document).ready( $(document).ready(
function () { function () {
showcase.bind("mousewheel", function(event, delta) { showcase.bind("mousewheel", function(event, delta) {
let min_width = $(window).width() / 5; let min_width = $(window).width() / 5;
let min_height = $(window).height() / 5; let min_height = $(window).height() / 5;
let max_width = $(window).width() * 5; let max_width = $(window).width() * 5;
let max_height = $(window).height() * 5; let max_height = $(window).height() * 5;
let scale = 150 / 100; let scale = 150 / 100;
if (delta < 0) if (delta < 0)
scale = 1/scale; scale = 1/scale;
let cursorY = event.pageY - $(window).scrollTop(); let cursorY = event.pageY - $(window).scrollTop();
let offsetX = event.pageX - (showcase.position().left + showcase.width()/2); let offsetX = event.pageX - (showcase.position().left + showcase.width()/2);
let offsetY = cursorY - (showcase.position().top + showcase.height()/2); let offsetY = cursorY - (showcase.position().top + showcase.height()/2);
let new_width = showcase.width() * scale; let new_width = showcase.width() * scale;
let new_height = showcase.height() * scale; let new_height = showcase.height() * scale;
if (new_width > max_width || new_width < min_width) if (new_width > max_width || new_width < min_width)
new_width = 0; new_width = 0;
if (new_height > max_height || new_height < min_height) if (new_height > max_height || new_height < min_height)
new_height = 0; new_height = 0;
if (new_width !== 0 && new_height !== 0){ if (new_width !== 0 && new_height !== 0){
let new_left = event.pageX - (offsetX * scale); let new_left = event.pageX - (offsetX * scale);
let new_top = cursorY - (offsetY * scale); let new_top = cursorY - (offsetY * scale);
showcase.width(new_width); showcase.width(new_width);
showcase.height(new_height); showcase.height(new_height);
if (new_height > $(window).height() || new_width > $(window).width()){ if (new_height > $(window).height() || new_width > $(window).width()){
showcase.css('left', new_left +'px'); showcase.css('left', new_left +'px');
showcase.css('top', new_top +'px'); showcase.css('top', new_top +'px');
showcase.css('cursor', 'move'); showcase.css('cursor', 'move');
} }
else{ else{
showcase.css('left', $(window).width()/2 +'px'); showcase.css('left', $(window).width()/2 +'px');
showcase.css('top', $(window).height()/2 +'px'); showcase.css('top', $(window).height()/2 +'px');
showcase.css('cursor', 'default'); showcase.css('cursor', 'default');
} }
} }
return false; return false;
}); });
document.getElementById("photosTitle").scrollIntoView(); document.getElementById("photosTitle").scrollIntoView();
showcase.on('dragstart', function(event) { event.preventDefault(); }); // Stop image drag out of page showcase.on('dragstart', function(event) { event.preventDefault(); }); // Stop image drag out of page
if (!isMobile) if (!isMobile)
setInterval(timerIncrement, 100); setInterval(timerIncrement, 100);
} }
); );
$(document).mousemove(function (event) { $(document).mousemove(function (event) {
let cursorY = event.pageY - $(window).scrollTop(); let cursorY = event.pageY - $(window).scrollTop();
let elem = document.elementFromPoint(event.pageX, cursorY); let elem = document.elementFromPoint(event.pageX, cursorY);
isMouseOverButtons = !(elem.id === "closeBack" || elem.id === "loadingIconContainer" || elem.id === showcase.attr('id')); // Prevent entering fullscreen when cursor on control buttons isMouseOverButtons = !(elem.id === "closeBack" || elem.id === "loadingIconContainer" || elem.id === showcase.attr('id')); // Prevent entering fullscreen when cursor on control buttons
idle_time = 0; idle_time = 0;
}); });
showcase.mousemove(function(event){ showcase.mousemove(function(event){
if (showcase.height() > $(window).height() || showcase.width() > $(window).width) { if (showcase.height() > $(window).height() || showcase.width() > $(window).width) {
showcase.css('cursor', 'move'); showcase.css('cursor', 'move');
if (move_photo){ if (move_photo){
let cursorY = event.pageY - $(window).scrollTop(); let cursorY = event.pageY - $(window).scrollTop();
let offsetX = event.pageX - (showcase.position().left + showcase.width()/2); let offsetX = event.pageX - (showcase.position().left + showcase.width()/2);
let offsetY = cursorY - (showcase.position().top + showcase.height()/2); let offsetY = cursorY - (showcase.position().top + showcase.height()/2);
let new_left = showcase.position().left + showcase.width()/2 + offsetX - grab_offsetX; let new_left = showcase.position().left + showcase.width()/2 + offsetX - grab_offsetX;
let new_top = showcase.position().top + showcase.height()/2 + offsetY - grab_offsetY; let new_top = showcase.position().top + showcase.height()/2 + offsetY - grab_offsetY;
showcase.css('left', new_left +'px'); showcase.css('left', new_left +'px');
showcase.css('top', new_top +'px'); showcase.css('top', new_top +'px');
} }
} }
else{ else{
showcase.css('cursor', 'default'); showcase.css('cursor', 'default');
} }
}); });
showcase.mousedown(function(event){ showcase.mousedown(function(event){
move_photo = true; move_photo = true;
let cursorY = event.pageY - $(window).scrollTop(); let cursorY = event.pageY - $(window).scrollTop();
grab_offsetX = event.pageX - (showcase.position().left + showcase.width()/2); grab_offsetX = event.pageX - (showcase.position().left + showcase.width()/2);
grab_offsetY = cursorY - (showcase.position().top + showcase.height()/2); grab_offsetY = cursorY - (showcase.position().top + showcase.height()/2);
if (isMobile) if (isMobile)
toggleFullscreen(); toggleFullscreen();
}); });
showcase.mouseup(function(){ showcase.mouseup(function(){
move_photo = false; move_photo = false;
}); });
showcase.mouseleave(function(){ showcase.mouseleave(function(){
move_photo = false; move_photo = false;
}); });
/* /*
* Display selected image in showcase * Display selected image in showcase
* When clicked, display image in full size * When clicked, display image in full size
*/ */
function displayBig(elem) { function displayBig(elem) {
isMouseOverButtons = false; // Allow fullscreen when clicking on an image without mouving the mouse isMouseOverButtons = false; // Allow fullscreen when clicking on an image without mouving the mouse
changeImage($(elem).attr('src')); changeImage($(elem).attr('src'));
hideTopBar(); hideTopBar();
disableFullscreen(); disableFullscreen();
photoOverlay.fadeIn(500); photoOverlay.fadeIn(500);
$('body').css('overflow', 'hidden'); $('body').css('overflow', 'hidden');
} }
function getSourceFromThumbnail(source) { function getSourceFromThumbnail(source) {
return source.replace("photos_thumb/", "photos/"); return source.replace("photos_thumb/", "photos/");
} }
function getThumbnailFromSource(source) { function getThumbnailFromSource(source) {
return source.replace("photos/", "photos_thumb/"); return source.replace("photos/", "photos_thumb/");
} }
/* /*
* Hide showcase image * Hide showcase image
*/ */
function closeBig() { function closeBig() {
showTopBar(); showTopBar();
disableFullscreen(); disableFullscreen();
photoOverlay.fadeOut(500); photoOverlay.fadeOut(500);
$('body').css('overflow', 'auto'); $('body').css('overflow', 'auto');
scrollToShowcaseImage(); scrollToShowcaseImage();
} }
function scrollToShowcaseImage() { function scrollToShowcaseImage() {
let source = showcase.attr('src'); let source = showcase.attr('src');
let image = $("img[src$='" + getThumbnailFromSource(source) + "']"); let image = $("img[src$='" + getThumbnailFromSource(source) + "']");
if (image !== undefined) { if (image !== undefined) {
image.get(0).scrollIntoView(); image.get(0).scrollIntoView();
} }
} }
function enableFullscreen() { function enableFullscreen() {
showcaseButtonContainer.fadeOut(500); showcaseButtonContainer.fadeOut(500);
} }
function disableFullscreen() { function disableFullscreen() {
showcaseButtonContainer.fadeIn(500); showcaseButtonContainer.fadeIn(500);
} }
function toggleFullscreen() { function toggleFullscreen() {
if (isFullscreen()) if (isFullscreen())
disableFullscreen(); disableFullscreen();
else else
enableFullscreen(); enableFullscreen();
} }
function hideTopBar() { function hideTopBar() {
headerTop.fadeOut(500); headerTop.fadeOut(500);
sideNav.fadeOut(500); sideNav.fadeOut(500);
} }
function showTopBar() { function showTopBar() {
headerTop.fadeIn(500); headerTop.fadeIn(500);
sideNav.fadeIn(500); sideNav.fadeIn(500);
} }
function isFullscreen(){ function isFullscreen(){
return showcaseButtonContainer.css("display") === "none"; return showcaseButtonContainer.css("display") === "none";
} }
function timerIncrement() { function timerIncrement() {
if (isMouseOverButtons) if (isMouseOverButtons)
idle_time = 0; idle_time = 0;
else else
idle_time = idle_time+ 1; idle_time = idle_time+ 1;
if (idle_time > 10 && !isFullscreen()) { // 1 second if (idle_time > 10 && !isFullscreen()) { // 1 second
enableFullscreen(); enableFullscreen();
} else if (idle_time <= 10 && isFullscreen()){ } else if (idle_time <= 10 && isFullscreen()){
disableFullscreen(); disableFullscreen();
} }
} }
/* /*
* Control images with keyboard arrows * Control images with keyboard arrows
*/ */
$(document).keydown(function (e) { $(document).keydown(function (e) {
switch (e.keyCode) { switch (e.keyCode) {
case 37: // left case 37: // left
displayNext(-1); displayNext(-1);
break; break;
case 39: // right case 39: // right
displayNext(1); displayNext(1);
break; break;
case 27: // escape case 27: // escape
closeBig(); closeBig();
break; break;
default: default:
return; // exit this handler for other keys return; // exit this handler for other keys
} }
e.preventDefault(); // prevent the default action (scroll / move caret) e.preventDefault(); // prevent the default action (scroll / move caret)
}); });
/* /*
* Display next/last image in showcase. When reaching end/start, loop back to start/end * Display next/last image in showcase. When reaching end/start, loop back to start/end
*/ */
function displayNext(direction) { function displayNext(direction) {
let currentSrc = showcase.attr('src'); let currentSrc = showcase.attr('src');
let photos = document.getElementsByClassName("photo"); let photos = document.getElementsByClassName("photo");
let current = 0; let current = 0;
for (let i = 0; i < photos.length; i++) { for (let i = 0; i < photos.length; i++) {
if (getSourceFromThumbnail($(photos[i]).attr('src')) === currentSrc) { if (getSourceFromThumbnail($(photos[i]).attr('src')) === currentSrc) {
current = i; current = i;
} }
} }
let next = current + direction; let next = current + direction;
let nextId = ""; let nextId = "";
if (direction > 0) { if (direction > 0) {
nextId = "#photo-0"; nextId = "#photo-0";
} else { } else {
nextId = "#photo-" + (photos.length - 1); nextId = "#photo-" + (photos.length - 1);
} }
if (document.getElementById("photo-" + next) != null) { if (document.getElementById("photo-" + next) != null) {
nextId = "#photo-" + next; nextId = "#photo-" + next;
} }
let nextSrc = $(nextId).attr('src'); let nextSrc = $(nextId).attr('src');
changeImage(nextSrc); changeImage(nextSrc);
} }
/* /*
* Change image source, link and download * Change image source, link and download
*/ */
function changeImage(thumb) { function changeImage(thumb) {
displayLoading(); displayLoading();
showcase.css('display', 'none'); showcase.css('display', 'none');
showcase.on('load', function () { showcase.on('load', function () {
hideLoading(); hideLoading();
showcase.css('display', 'block'); showcase.css('display', 'block');
if ($(showcase).width() > $(window).width()){ // prevent display problems on portait devices if ($(showcase).width() > $(window).width()){ // prevent display problems on portait devices
let scale = $(window).width() * 0.9 / $(showcase).width(); let scale = $(window).width() * 0.9 / $(showcase).width();
$(showcase).width(scale*$(showcase).width()); $(showcase).width(scale*$(showcase).width());
$(showcase).height(scale*$(showcase).height()); $(showcase).height(scale*$(showcase).height());
} }
}); });
let source = getSourceFromThumbnail(thumb); let source = getSourceFromThumbnail(thumb);
showcase.attr("src", source); showcase.attr("src", source);
showcase.css({ showcase.css({
width: 'auto', width: 'auto',
height: '90%', height: '90%',
}); });
showcase.css('left', $(window).width()/2 +'px'); showcase.css('left', $(window).width()/2 +'px');
showcase.css('top', $(window).height()/2 +'px'); showcase.css('top', $(window).height()/2 +'px');
showcaseDownload.attr("href", source); showcaseDownload.attr("href", source);
} }
function displayLoading() { function displayLoading() {
loading.show(); loading.show();
} }
function hideLoading() { function hideLoading() {
loading.fadeOut(200); loading.fadeOut(200);
} }

View file

@ -1,98 +1,98 @@
let ajaxurl = 'ajax/read'; let ajaxurl = 'ajax/read';
let tableWrapper = $('#tablePlanning'); let tableWrapper = $('#tablePlanning');
let cellHeight = 50; let cellHeight = 50;
let startHour = 8; let startHour = 8;
let activityList = []; let activityList = [];
let dayNames = let dayNames =
['Horaires', ['Horaires',
'Lundi', 'Lundi',
'Mardi', 'Mardi',
'Mercredi', 'Mercredi',
'Jeudi', 'Jeudi',
'Vendredi', 'Vendredi',
'Weekend',]; 'Weekend',];
$(document).ready(function () { $(document).ready(function () {
generateTable(); generateTable();
}); });
function getDayActivities(day, callback) { function getDayActivities(day, callback) {
let object = { let object = {
"function": 'get_activities_of_day', "function": 'get_activities_of_day',
'day': day, 'day': day,
}; };
$.get( $.get(
ajaxurl, ajaxurl,
object, object,
callback, callback,
); );
} }
function getDataOfElement($elem) { function getDataOfElement($elem) {
let id = $elem.attr('id'); let id = $elem.attr('id');
let day = $elem.parent().attr('id').replace('day_', ''); let day = $elem.parent().attr('id').replace('day_', '');
let data = undefined; let data = undefined;
for (let i = 0; i < activityList[day].length; i++) { for (let i = 0; i < activityList[day].length; i++) {
if (activityList[day][i]['ID'] === id) { if (activityList[day][i]['ID'] === id) {
data = activityList[day][i]; data = activityList[day][i];
break; break;
} }
} }
return data; return data;
} }
function clicked($elem){ function clicked($elem){
let data = getDataOfElement($elem); let data = getDataOfElement($elem);
console.log(data); console.log(data);
$.alert({ $.alert({
title: data['full_title'], title: data['full_title'],
content: data['description'], content: data['description'],
}); });
} }
function generateTable() { function generateTable() {
tableWrapper.html(''); // Reset the table tableWrapper.html(''); // Reset the table
generateHours(); generateHours();
for (let i = 1; i <= 6; i++) { // Iterate over the days for (let i = 1; i <= 6; i++) { // Iterate over the days
tableWrapper.append('<div class="day-column" id="day_' + i + '"><div class="planning-header">' + dayNames[i] + '</div></div>'); tableWrapper.append('<div class="day-column" id="day_' + i + '"><div class="planning-header">' + dayNames[i] + '</div></div>');
let $dayColumn = $('#day_'+i); let $dayColumn = $('#day_'+i);
getDayActivities(i, function (data) { getDayActivities(i, function (data) {
activityList[i] = data; activityList[i] = data;
for (let j = 0; j < data.length; j++) { for (let j = 0; j < data.length; j++) {
addActivityToColumn($dayColumn, data[j]); addActivityToColumn($dayColumn, data[j]);
} }
}); });
} }
} }
function addActivityToColumn($col, act) { function addActivityToColumn($col, act) {
let offsetTop = $col.find('.planning-header').outerHeight(true); let offsetTop = $col.find('.planning-header').outerHeight(true);
$col.append('<div class="event ' + act['small_title'] +'" + id="' + act['ID'] +'">' + $col.append('<div class="event ' + act['small_title'] +'" + id="' + act['ID'] +'">' +
'<div class="event-color">' + '<div class="event-color">' +
'<div class="event-text">' + '<div class="event-text">' +
act['small_title'] + act['small_title'] +
'</div>' + '</div>' +
'</div>' + '</div>' +
'</div>'); '</div>');
let position = (act['start'] - startHour); let position = (act['start'] - startHour);
$('#' + act['ID']).css('top', offsetTop + position * cellHeight); $('#' + act['ID']).css('top', offsetTop + position * cellHeight);
$('#' + act['ID']).css('height', act['length'] * cellHeight); $('#' + act['ID']).css('height', act['length'] * cellHeight);
$('#' + act['ID']).find('.event-color').css('background-color', act['color']); $('#' + act['ID']).find('.event-color').css('background-color', act['color']);
$('#' + act['ID']).on('click', function () { $('#' + act['ID']).on('click', function () {
clicked($(this)); clicked($(this));
}); });
} }
function generateHours() { function generateHours() {
tableWrapper.append('<div id="hoursColumn"><div class="planning-header">Horaires</div></div>') tableWrapper.append('<div id="hoursColumn"><div class="planning-header">Horaires</div></div>')
for (let i = startHour; i < 24; i++) { for (let i = startHour; i < 24; i++) {
tableWrapper.find('#hoursColumn').append('<div class="horaires">' + i + 'h</div>') tableWrapper.find('#hoursColumn').append('<div class="horaires">' + i + 'h</div>')
} }
tableWrapper.find('.horaires').css('height', cellHeight); tableWrapper.find('.horaires').css('height', cellHeight);
} }

View file

@ -1,55 +1,48 @@
let sidenav = $("#menuSidenav"); let sidenav = $("#menuSidenav");
let baguette = $("#baguette"); let baguette = $("#baguette");
let backButton = $("#back-button"); let backButton = $("#back-button");
let openedSidenavClass = 'sidenav-open'; let openedSidenavClass = 'sidenav-open';
let activeBackgroundClass = 'active-background'; let activeBackgroundClass = 'active-background';
/* /*
* Open navigation menu, change Baguette icon to selected state * Open navigation menu, change Baguette icon to selected state
* and display the back button overlay over the page * and display the back button overlay over the page
*/ */
function openNav() { function openNav() {
sidenav.addClass(openedSidenavClass); sidenav.addClass(openedSidenavClass);
backButton.addClass(activeBackgroundClass); backButton.addClass(activeBackgroundClass);
enableBaguette(); enableBaguette();
} }
/* /*
* Close navigation menu, change Baguette icon back to default state * Close navigation menu, change Baguette icon back to default state
* and hide the back button overlay * and hide the back button overlay
*/ */
function closeNav() { function closeNav() {
sidenav.removeClass(openedSidenavClass); sidenav.removeClass(openedSidenavClass);
backButton.removeClass(activeBackgroundClass); backButton.removeClass(activeBackgroundClass);
disableBaguette(); disableBaguette();
} }
/* /*
* Toggle the navigation bar * Toggle the navigation bar
*/ */
function toggleNav() { function toggleNav() {
if (sidenav.hasClass(openedSidenavClass)) { if (sidenav.hasClass(openedSidenavClass)) {
closeNav(); closeNav();
} else { } else {
openNav(); openNav();
} }
} }
function disableBaguette() { function disableBaguette() {
baguette.removeClass("change-clic"); baguette.removeClass("change-clic");
} }
function enableBaguette() { function enableBaguette() {
baguette.addClass("change-clic"); baguette.addClass("change-clic");
} }
// Animate baguette on hover
baguette.hover(function(){
baguette.addClass("change-hover");
}, function(){
baguette.removeClass("change-hover");
});

View file

@ -1,52 +1,47 @@
let entryTemplate = let entryTemplate =
'<div class="score-entry">' + '<div class="score-entry">' +
'<span class="score-entry-text"></span>' + '<span class="score-entry-text"></span>' +
'<span class="score-entry-points"></span>' + '<span class="score-entry-points"></span>' +
'</div>'; '</div>';
function nameTeam(team){ function nameTeam(team){
if (team==='gli') if (team==='pek')
return "Glissefondor"; return "Pekstanas";
else if (team==='pek') else if (team==='tam')
return "Peksentard"; return "Tamboom";
else if (team==='boo') }
return "Boomsouffle"; function showScores(team) {
else console.log(team);
return "Verredaigle"; $.alert({
title: "<span id='title_" + team + "'>" + nameTeam(team) + "</span>",
} content: function () {
function showScores(team) { let self = this;
console.log(team); let object = {
$.alert({ "function": 'get_scores',
title: "<span id='title_" + team + "'>" + nameTeam(team) + "</span>", 'team': team,
content: function () { };
let self = this; return $.ajax({
let object = { url: "ajax/read",
"function": 'get_scores', data: object,
'team': team, method: 'get'
}; }).done(function (data) {
return $.ajax({ for (let i = 0; i < data.length; i++) {
url: "ajax/read", let $entry = $(entryTemplate);
data: object, $entry.attr('id', 'entry_' + i);
method: 'get' $entry.find('.score-entry-text').text(data[i]['text']);
}).done(function (data) { $entry.find('.score-entry-points').text(data[i]['points']);
for (let i = 0; i < data.length; i++) { if (parseInt(data[i]['points']) > 0)
let $entry = $(entryTemplate); $entry.addClass('positive');
$entry.attr('id', 'entry_' + i); else
$entry.find('.score-entry-text').text(data[i]['text']); $entry.addClass('negative');
$entry.find('.score-entry-points').text(data[i]['points']); self.setContentAppend($entry);
if (parseInt(data[i]['points']) > 0) }
$entry.addClass('positive'); }).fail(function(){
else self.setContent('Something went wrong.');
$entry.addClass('negative'); });
self.setContentAppend($entry); }
} });
}).fail(function(){ }
self.setContent('Something went wrong.');
});
}
});
}

View file

@ -1,28 +1,28 @@
// Set the date we're counting down to // Set the date we're counting down to
var countDownDate = new Date("Sep 2, 2019 8:00:00").getTime(); var countDownDate = new Date("Aug 31, 2020 8:00:00").getTime();
// Update the count down every 1 second // Update the count down every 1 second
var x = setInterval(function () { var x = setInterval(function () {
// Get todays date and time // Get todays date and time
var now = new Date().getTime(); var now = new Date().getTime();
// Find the distance between now an the count down date // Find the distance between now an the count down date
var distance = countDownDate - now; var distance = countDownDate - now;
// Time calculations for days, hours, minutes and seconds // Time calculations for days, hours, minutes and seconds
var days = Math.floor(distance / (1000 * 60 * 60 * 24)); var days = Math.floor(distance / (1000 * 60 * 60 * 24));
var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((distance % (1000 * 60)) / 1000); var seconds = Math.floor((distance % (1000 * 60)) / 1000);
// Output the result in an element with id="demo" // Output the result in an element with id="demo"
document.getElementById("timer").innerHTML = "Plus que <strong>" + days + "</strong> jours, <strong>" + hours + "</strong> heures, <strong>" document.getElementById("timer").innerHTML = "Plus que <strong id='timer-space'>" + days + "</strong> jours, <strong id='timer-space'>" + hours + "</strong> heures, <strong id='timer-space'>"
+ minutes + "</strong> minutes et <strong>" + seconds + "</strong> dans le monde des Moldus..."; + minutes + "</strong> minutes et <strong id='timer-space'>" + seconds + "</strong> dans la civilisation...";
// If the count down is over, write some text // If the count down is over, write some text
if (distance < 0) { if (distance < 0) {
clearInterval(x); clearInterval(x);
document.getElementById("timer").innerHTML = "Bienvenue dans le monde des Sorciers !"; document.getElementById("timer").innerHTML = "Bienvenue dans l'aventure !";
} }
}, 1000); }, 1000);

BIN
assets/pdf/Charte-GB.pdf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
assets/pdf/Paroles.pdf Normal file

Binary file not shown.

Binary file not shown.

View file

@ -1,134 +1,95 @@
<?php <?php
ob_start(); // Start reading html ob_start(); // Start reading html
?> ?>
<div class="inner"> <div class="inner">
<h1>La Blouse</h1> <h1>La Blouse</h1>
<p>Salut à toi PPA !</p>
<p>Tu te demandes sûrement pourquoi un article entier est dédié́ la blouse. À lINSARD, la blouse, et je dis <p>Salut à toi Prétendant aux Poteaux Abominables !</p>
bien LA blouse, ce nest pas du bizutage loin de là, cest une tradition ancestrale que les Moldus ne <p>Te voilà arrivé à la partie la plus importante de la plaquette. Et oui, même sil ne
peuvent pas comprendre. Mais toi, par contre, il va vite falloir que tu ty habitues. tarrive pas par la mer, ce mot est bien le parchemin te donnant les règles de ta toute
Attention Potionniste Pauvrement Accoutré ! Il ne sagit pas seulement dun Tablier de protection lors de première épreuve : la Blouse… que dis-je ? TA Blouse ! Ce que tu vas lire dans les prochains
tes cours de potions mais plutôt dune sorte de cape dinvisibilité qui te suivra tout au long de ton aventure. paragraphes va texpliquer comment confectionner ta pièce d'identité Insaïenne pour les 5
</p> années à venir (voire plus si affinité…).
<p> Il faut savoir que chaque promotion est caractérisée par des couleurs de blouses. Et chaque blouse En tant que bon aventurier, tu ne viendras pas vêtu dun simple maillot de bain, bah
<strong>doit être teintée et décorée </strong> daprès le thème de ta promo. </p> ouais, les coups de soleil ça ne pardonne pas ! Heureusement pour toi, il est à lINSA une
<p> tradition ancestrale à laquelle tu néchapperas pas : la Blouse. En plus de te protéger, elle
<p>Par exemple, les autres promotions étaient : </p> sera l'accessoire qui TE représente toi et ta promo.</p>
<ul id="list-blouse"> <p>Ainsi sur lÎle Nicoya Sauvage et Aride toulousaine tu pourras croiser différents spécimens :
<li> En <strong style="color: #1a5dad">Bleu Galactique</strong> et <ul id="list-blouse">
<strong style="color: #ee293d">Rouge Intersidéral</strong> (cest nous, les Généreux Démons Attirants qui <li>Les sorciers que nous sommes aux couleurs des 4 maisons dHarry Potter.</li>
vous ont <li>Les soldats de la Guerre froide de la promo 56 en Bleu Galactique et en Rouge
concocté une semaine daccueil mémorable !) comme les soldats de la Guerre Froide que nous Intersidéral.</li>
représentons <li>Et toutes les autres tribus que nous te laisserons découvrir.
</li> A ton tour, tu vas devoir créer ton passeport daventurier pour te lancer dans ces
<li> Tout en <strong style="color: #ee78d8">Rose</strong> comme les petits cochons de la ferme grandes péripéties. Il est primordial que tu arrives avec ta blouse décorée à la rentrée. Tu la
(pour nos parrains et marraines) porteras durant toute la semaine daccueil ainsi que lors de tous tes futurs TPs. Mais pas de
</li> panique ! Cest trivial, Miss et Mister Blouse 2019 vont tout texpliquer, et à la fin, tu adoreras
</ul> Lacouture.
<p> Comme tu as été accepté à lINSA, le Choixpeau ta attribué une Maison, ceci étant, cette robe, Maintenant que tu as été accepté à lINSA, Denis ta attribué une équipe.</li>
que dis-je ? Cette toge, cette ma-gni-fi-que Blouse est essentielle pour déterminer ton acceptation finale <li>Si ta plaquette est jaune comme le soleil du Costa Rica, tu appartiens à léquipe des
lINSARD, lInstitut Novateur des Sorciers Apprentis Roguiens ou Dumbledoriens. Pekstanas.</li>
<br> <li>Si par contre elle est rouge comme le corail des mers tropicales, alors tu fais partie
Cette année, tu vas devoir faire tes preuves dès la rentrée en customisant toi-même luniforme scolaire aux de léquipe des Tamboom.
couleurs de ta famille, et te surpasser ! Cest hyper-méga-supra important que tu laie, elle te sera Fort de cette information, voilà ce que tu dois faire.</li>
indispensable pendant la semaine daccueil, et obligatoire pour les joyeux TP qui tattendent... <li>Récupère ta blouse blanche de chimie du lycée ou procures-en toi une nouvelle.</li>
Alors hop hop hop, on se retrousse les manches, on prend un fil une aiguille et on lit attentivement les <li>Teins ton vêtement aux couleurs de ton équipe : jaune flamboyant pour les
lignes qui suivent car elles vont déterminer tes chances de devenir Miss ou Mister Blouse ! Pekstanas, rouge écarlate pour les Tamboom.</li>
</p> <li>Décore ta blouse sur le thème de Koh-Lanta, donc en rapport avec lémission, les
tropiques, laventure, Denis Brogniart... Tu as compris lidée.</li>
<P> </ul></b>
Cette année le thème cest <strong> Harry Potter</strong> donc en gros la magie et tout ça au cas <b><strong>Mais attention ! Tu ne peux pas faire nimporte quoi, il y a des règles à respecter si tu
tu naurais toujours pas compris… Les vacances sont terminées, tu as une tâche bien plus importante ne veux pas rester coincé à laéroport !</strong></p>
désormais, donc au boulot !
</P> <h3>Les 5 commandements de la Blouse :</h3>
<p> Comment sy prendre ? Voici nos explications pour résoudre ce mystère : </p> <p><ul id="list-blouse">
<ul id="list-blouse"> <li>Uniquement de fils et daiguilles tu tarmeras.</li>
<li>Achète ou récupère une blouse de chimie tout ce quil y a de plus classique <li>Par toi-même orner ta blouse tu devras, laide de maman, papa, mamie ou papi tu ne
(pour linstant…). Bon, tu suis toujours ? Alors on monte dans la difficulté demanderas donc pas. Eh oui, on y est tous passés, à ton tour maintenant !</li>
</li> <li>Pas de marqueurs ou de feutres tu nutiliseras, ils sont réservés aux Grands Denis
<li>Teints ta blouse avec une teinture <strong style="color: #60bdff">Bleu envoûtant</strong> si tu es un Avertis que nous sommes, pour toctroyer bonus ou malus ainsi que des tags,
Verredaigle, comme le veut la tradition !</li>
en un <strong style="color: #fafd78">Jaune Magnétique</strong> si tu représentes les Boomsouffles, si tu es <li>Comme sur le schéma qui suit, et avec ces consignes, ta blouse tu décoreras :<br>
un Glissfondor prends - Sur le devant on veut voir ton prénom, le blason et le nom de ton bled
du <strong style="color: #FF5F5F">Rouge Surnaturel</strong> et enfin pour les Peksentards ce sera du dorigine.<br>
<strong style="color: #7FFD78">Vert Subjuguant</strong>. - À larrière, tu mettras ton surnom (en gros et bien visible) et “INSA 58 en
<br> <strong style="color: #ff000f"> Cest la couleur de ta plaquette qui définit ta maison.</strong></li> TRÈS gros, car tu aimes ta promo.<br>
<li>Décore ta blouse en brodant et cousant selon le thème et ton équipe. Mais attention, tu ne - Quant aux espaces vides, aux poches et aux manches, il faudra les combler
peux pas faire nimporte quoi, il y a des règles strictes à lINSARD (on ne rigole pas ici). de broderies et fantaisies, cousues sur le thème de Koh-Lanta et de ton
</li> équipe.</li>
</ul> <li>Créatif et original tu seras, des bonus à la clé il y aura. Et bien-sûr, faire preuve
<h3> dhumour tu noublieras pas ! Et on ne le dira jamais assez . GARE AUX
Voici donc un petit recap des regles si tu TRICHEURS !
veux etre aussi style(e) que Fleur Delacour ! Voilà un exemple illustratif de ta blouse après customisation, le but étant de sen inspirer
mais pas de la reproduire…</li>
</h3> <img src="assets/images/blouse/blouse_exemple.png" alt="Exemple blouse">
<h2>Les 5 commandements de la blouse :</h2> </ul></p>
<ul id="list-blouse">
<li> <p>Tu sais désormais tout sur cette première épreuve. Alors, comme dirait Denis,
Uniquement fils et aiguilles tu utiliseras. « LAVENTURE COMMENCE MAINTENANT ! » Applique-toi bien ! Car qui sait ? Tu seras
</li> peut-être élu Miss ou Mister Blouse, au terme dun concours épique entre les meilleurs
<li> couturiers de lîle !
Par toi-même décorer ta blouse tu devras, laide de maman et mamie tu ne demanderas donc pas. Il est aussi “À la fin il nen restera quun ! (Je sais Jim… Tu nas pas fait de faux départ, mais
interdit dutiliser nimporte quel type de magie : potions ou sortilèges. (Et oui, on y est tous passé, à lhistoire devait sécrire ainsi.)</p>
ton tour maintenant) <p>
</li>
<li> <h3>
Pas de marqueurs ou de feutres, ils sont réservés aux Géniaux Druides Autoritaires que nous sommes pour Pour te motiver, voici ce que notre Miss Blouse avait fait l'annee derniere :
toctroyer bonus ou malus ainsi que des tags comme se veut la tradition. </h3>
</li>
<li> <img src="assets/images/blouse/blouse_devant_elsa.jpg" alt="Blouse Elsa devant">
Comme sur le schéma qui suit, et avec les consignes qui suivent; tu devras décorer ta blouse : <img src="assets/images/blouse/blouse_derriere_elsa.jpg" alt="Blouse Elsa dos">
<ul>
<li> <h3>
On veut voir sur le devant de ta blouse, ton prénom, le blason et le nom de ton bled dorigine. Et voici la blouse de notre Mister Blouse :
</li> </h3>
<li>
A larrière de ta blouse, il est indispensable de mettre ton surnom (en gros et bien visible) et <img src="assets/images/blouse/blouse_devant_matthieu.jpg" alt="Blouse Matthieu devant">
“INSA 57 en très gros, car tu aimes ta promo. <img src="assets/images/blouse/blouse_derriere_matthieu.jpg" alt="Blouse Matthieu dos">
</li> </div>
<li>
Quant aux espaces vides, aux poches et aux manches, il faudra les combler de broderies et fantaisies
sur le thème magique dHarry Potter aux couleurs DE TA MAISON ! On doit pouvoir reconnaître si tu es <?php
un vicieux Peksentard, un Verredaigle éclairé, un valeureux Glissefondor ou un chaleureux $pageContent = ob_get_clean(); // Store html content in variable
Boomsouffle ! $pageTitle = "Blouse";
</li> include("includes/template.php"); // Display template with variable content
</ul> ?>
</li>
<li>
Sois créatif et original, des bonus sont à la clé. Et noublies pas de faire preuve dhumour ! Et on ne le
dira jamais assez GARE AUX TRICHEURS !
</li>
</ul>
<p>Applique-toi bien car qui sait, tu seras peut-être élu Miss ou Mister Blouse pendant la COM Nimbus 2001.</p>
<p>Ci-dessous, un exemple illustratif de ta blouse après customisation pour la team Peksentard, le but étant de sen
inspirer mais pas de la reproduire…</p>
<p>
<img src="assets/images/blouse/blouse_exemple.jpg" alt="exemple blouse">
<h3>
Pour te motiver, voici ce que notre Miss Blouse avait fait l'annee derniere :
</h3>
<img src="assets/images/blouse/blouse_devant_sarah.jpg" alt="blouse sarah devant">
<img src="assets/images/blouse/blouse_dos_sarah.jpg" alt="blouse sarah dos">
<h3>
Et voici la blouse de notre Mister Blouse :
</h3>
<img src="assets/images/blouse/blouse_devant_maxime.jpg" alt="blouse maxime devant">
<img src="assets/images/blouse/blouse_dos_maxime.jpg" alt="blouse maxime dos">
<p>
<span class="quote"> Ce quil nous faudrait, poursuivit lentement Dumbledore, cest un peu plus de temps…”</span><br>
Harry Potter et le prisonnier dAzkaban.
</p>
</div>
<?php
$pageContent = ob_get_clean(); // Store html content in variable
$pageTitle = "Blouse";
include("includes/template.php"); // Display template with variable content
?>

View file

@ -1,29 +0,0 @@
<?php
ob_start(); // Start reading html
?>
<div class="inner">
<h1>Boomsouffle</h1>
<p>
Bienvenue dans la plus belle des maisons ! A contrario des autres, nos valeurs sont les plus belles
: loyauté, sincérité, persévérance... La liste est encore
bien longue... Comme à ton habitude, tu te donneras à fond pour que l'on remporte cette Coupe !
Et je ne doute aucunement de tes capacités ! Alors je compte sur toi et ton gaz, et te donne rendez-vous
très vite, pour montrer aux autres qu'on est absolument indispensables et pour rentrer dans la légende !
</p>
<p>
N'oublie pas de rejoindre ton groupe <a href="https://www.facebook.com/groups/608536079623052/"> Facebook</a>
et de colorer ta blouse en un <strong style="color: #fafd78">Jaune Magnétique</strong> !
</p>
<br/>
Signé Sarah Diggouni
<br/>
<img style="max-width: 300px" src="assets/images/teams/diggouni.jpg"></div>
<?php
$pageContent = ob_get_clean(); // Store html content in variable
$customBackgroundId = "bg_boo";
$pageTitle = "Boomsouffle";
include("includes/template.php"); // Display template with variable content
?>

24
chansons.php Normal file
View file

@ -0,0 +1,24 @@
<?php
ob_start(); // Start reading html
?>
<div class="inner">
<h1>Les chansons</h1>
A l'INSA, Toulouse, les chansons sont très importantes, vous allez en chanter beaucoup et très fort pendant votre semaine d'intégration.
Pour que tu sois prêt pour cette semaine et pour l'entièreté de ta vie étudiante, on pense que c'est important que tu connaisses les chansons suivantes:
<br><br>
<iframe width="560" height="315" src="https://www.youtube.com/embed/gEPCrrLNfoI" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<br><br>
<iframe width="560" height="315" src="https://www.youtube.com/embed/FU-9kt-qi1g" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<br><br>
<iframe width="560" height="315" src="https://www.youtube.com/embed/PnFNYo9VHAM" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<br><br>
<iframe width="560" height="315" src="https://www.youtube.com/embed/_YXjuDdcH3g" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<br><br>
</div>
<?php
$pageContent = ob_get_clean(); // Store html content in variable
$pageTitle = "Les chansons";
include("includes/template.php"); // Display template with variable content
?>

View file

@ -1,98 +1,97 @@
<?php <?php
class Dao class Dao
{ {
private $conn; private $conn;
public function __construct() public function __construct()
{ {
$username = 'accueil_insa'; $username = 'accueil_insa';
$password = $this->read_password(); $password = $this->read_password();
$dsn = 'mysql:dbname=accueil_insa;host=127.0.0.1'; $dsn = 'mysql:dbname=accueil_insa;host=127.0.0.1';
try { try {
$this->conn = new PDO($dsn, $username, $password, [PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8']); $this->conn = new PDO($dsn, $username, $password, [PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8']);
} catch (PDOException $e) { } catch (PDOException $e) {
echo $e; echo $e;
} }
} }
private function read_password() private function read_password()
{ {
$real_path = __DIR__.DIRECTORY_SEPARATOR.".htpassdb"; $real_path = __DIR__.DIRECTORY_SEPARATOR.".htpassdb";
$file = fopen($real_path, "r") or die("Unable to open DB password file!");; $file = fopen($real_path, "r") or die("Unable to open DB password file!");;
$password = fgets($file); $password = fgets($file);
fclose($file); fclose($file);
return trim($password); return trim($password);
} }
public function get_score_team($team) public function get_score_team($team)
{ {
$sql = 'SELECT text, points FROM scores WHERE team = ?'; $sql = 'SELECT text, points FROM scores WHERE team = ?';
$cursor = $this->conn->prepare($sql); $cursor = $this->conn->prepare($sql);
$cursor->execute([$team]); $cursor->execute([$team]);
return $cursor->fetchAll(PDO::FETCH_ASSOC); return $cursor->fetchAll(PDO::FETCH_ASSOC);
} }
public function save_scores($scores_json, $team) public function save_scores($scores_json, $team)
{ {
$sql = 'DELETE FROM scores WHERE team = ?'; $sql = 'DELETE FROM scores WHERE team = ?';
$cursor = $this->conn->prepare($sql); $cursor = $this->conn->prepare($sql);
$cursor->execute([$team]); $cursor->execute([$team]);
foreach ($scores_json as $value) { foreach ($scores_json as $value) {
$sql = 'INSERT INTO scores (text, points, team) VALUES (?, ?, ?)'; $sql = 'INSERT INTO scores (text, points, team) VALUES (?, ?, ?)';
$cursor = $this->conn->prepare($sql); $cursor = $this->conn->prepare($sql);
$cursor->execute([$value['text'], $value['points'], $team]); $cursor->execute([$value['text'], $value['points'], $team]);
} }
} }
public function get_map_info($selector) public function get_map_info($selector)
{ {
$sql = 'SELECT title, description FROM map_insa WHERE selector = ?'; $sql = 'SELECT title, description FROM map_insa WHERE selector = ?';
$cursor = $this->conn->prepare($sql); $cursor = $this->conn->prepare($sql);
$cursor->execute([$selector]); $cursor->execute([$selector]);
return $cursor->fetchAll(PDO::FETCH_ASSOC); return $cursor->fetchAll(PDO::FETCH_ASSOC);
} }
public function get_map_selectors() public function get_map_selectors()
{ {
$sql = 'SELECT selector FROM map_insa'; $sql = 'SELECT selector FROM map_insa';
$cursor = $this->conn->prepare($sql); $cursor = $this->conn->prepare($sql);
$cursor->execute(); $cursor->execute();
return $cursor->fetchAll(PDO::FETCH_ASSOC); return $cursor->fetchAll(PDO::FETCH_ASSOC);
} }
public function save_map_info($selector, $info_json) public function save_map_info($selector, $info_json)
{ {
$sql = 'DELETE FROM map_insa WHERE selector = ?'; $sql = 'DELETE FROM map_insa WHERE selector = ?';
$cursor = $this->conn->prepare($sql); $cursor = $this->conn->prepare($sql);
$cursor->execute([$selector]); $cursor->execute([$selector]);
$sql = 'INSERT INTO map_insa (title, description, selector) VALUES (?, ?, ?)'; $sql = 'INSERT INTO map_insa (title, description, selector) VALUES (?, ?, ?)';
$cursor = $this->conn->prepare($sql); $cursor = $this->conn->prepare($sql);
$cursor->execute([$info_json['title'], $info_json['description'], $selector]); $cursor->execute([$info_json['title'], $info_json['description'], $selector]);
} }
public function get_activities_of_day($day) public function get_activities_of_day($day)
{ {
$sql = 'SELECT * FROM planning_insa WHERE day = ?'; $sql = 'SELECT * FROM planning_insa WHERE day = ?';
$cursor = $this->conn->prepare($sql); $cursor = $this->conn->prepare($sql);
$cursor->execute([$day]); $cursor->execute([$day]);
return $cursor->fetchAll(PDO::FETCH_ASSOC); return $cursor->fetchAll(PDO::FETCH_ASSOC);
} }
public function save_day_activities($day, $info_json) public function save_day_activities($day, $info_json)
{ {
$sql = 'DELETE FROM planning_insa WHERE day = ?'; $sql = 'DELETE FROM planning_insa WHERE day = ?';
$cursor = $this->conn->prepare($sql); $cursor = $this->conn->prepare($sql);
$cursor->execute([$day]); $cursor->execute([$day]);
foreach ($info_json as $value) { foreach ($info_json as $value) {
$sql = 'INSERT INTO planning_insa (day, small_title, full_title, description, color, start, length) VALUES (?, ?, ?, ?, ?, ?, ?)'; $sql = 'INSERT INTO planning_insa (day, small_title, full_title, description, color, start, length) VALUES (?, ?, ?, ?, ?, ?, ?)';
$cursor = $this->conn->prepare($sql); $cursor = $this->conn->prepare($sql);
$cursor->execute([$value['day'], $value['small_title'], $value['full_title'], $value['description'], $value['color'], $value['start'], $value['length']]); $cursor->execute([$value['day'], $value['small_title'], $value['full_title'], $value['description'], $value['color'], $value['start'], $value['length']]);
} }
} }
} }

13
clubs.php Normal file
View file

@ -0,0 +1,13 @@
<?php
ob_start(); // Start reading html
?>
<div class="inner">
<h1>Page en construction, repassez plus tard !</h1>
</div>
<?php
$pageContent = ob_get_clean(); // Store html content in variable
$pageTitle = "Les clubs";
include("includes/template.php"); // Display template with variable content
?>

View file

@ -1,12 +0,0 @@
<div><p>Remplis ce formulaire pour commander tes photos ! Surtout, n'oublie pas de noter le numéro de la photo que tu souhaites
suivie entre parenthèses du format ((P) ou (N) selon la taille), et ce pour toutes les photos que tu vas commander ! Et
ne te trompe pas non plus sur le jour des photos ! (Petite précision, le numéro de la photo est écrit en bas à gauche sur la photo
!) Si jamais tu as un problème au niveau de ta commande ou avec le formulaire, envoie un mail à cette
adresse : photos.semaine.accueil.2019@gmail.com .</p></div><br>
<iframe src="https://docs.google.com/forms/d/e/1FAIpQLSeO6bMXq2AHBkel6tFxsyzYpnkNU5AMbLMO9_MkQs02OyIMKA/viewform?embedded=true" width="750" height="1290" frameborder="0" marginheight="0" marginwidth="0">Chargement…</iframe>
<?php
$pageContent = ob_get_clean(); // Store html content in variable
$pageTitle = "Commande";
include("includes/template.php"); // Display template with variable content
?>

225
coms.php
View file

@ -1,107 +1,120 @@
<?php <?php
ob_start(); // Start reading html ob_start(); // Start reading html
?> ?>
<div class="inner"> <div class="inner">
<h1>Les Com's</h1> <h1>Les Com's</h1>
<p>La liste de toutes les com's de ta semaine d'accueil, avec les contacts des responsables.</p> <p>La liste de toutes les com's de ta semaine d'accueil, avec les contacts des responsables.</p>
</div> </div>
<?php <?php
$comId = ""; $comId = "";
$comTitle = "La Respo des Com's"; $comTitle = "Le Prez et la Vice Prez";
$comDescription = "Prête à tous les possibles pendant cette semaine inténsement gazive !"; $comRespo = "Maixent Cassagne";
$comRespo = "Léa Raucroy"; $comRespoId = "mcassagn@etud.insa-toulouse.fr";
$comRespoId = "lraucroy@etud.insa-toulouse.fr"; $comRespo2 = "Axelle Robillard";
$comRespo2 = ""; $comRespo2Id = "robillar@etud.insa-toulouse.fr";
$comRespo2Id = ""; include("includes/com_template.php");
include("includes/com_template.php");
$comId = "Bureau1";
$comTitle = "Le Bureau pt.1";
$comId = "ComSiriusBlack"; $comRespo = "Nicolas Birkeland<br>Secrétaire";
$comTitle = "Com Sirius Black"; $comRespoId = "birkelan@etud.insa-toulouse.fr";
$comDescription = "Presque prêts pour vous accueillir !!!"; $comRespo2 = "Lea Steyer<br>Trésorière";
$comRespo = "Christine Berho"; $comRespo2Id = "steyer@etud.insa-toulouse.fr";
$comRespoId = "berho@etud.insa-toulouse.fr"; include("includes/com_template.php");
$comRespo2 = "Renaud Kempf";
$comRespo2Id = "rkempf@etud.insa-toulouse.fr"; $comId = "Bureau2";
include("includes/com_template.php"); $comTitle = "Le Bureau (la suite)";
$comRespo = "Matthieu Tavernier<br>Responsable WINI";
$comId = ""; $comRespoId = "m_tavern@etud.insa-toulouse.fr";
$comTitle = "Com Animagus"; $comRespo2 = "Lou Ann Lacassagne<br>Responsable Communication";
$comDescription = "Mot d'ordre : Incendio"; $comRespo2Id = "lalacass@etud.insa-toulouse.fr";
$comRespo = "Célestine Paillé"; include("includes/com_template.php");
$comRespoId = "";
$comRespo2 = "Gaston Opler"; $comId = "ComAnimaventure";
$comRespo2Id = "opler@etud.insa-toulouse.fr"; $comTitle = "Com Animaventure";
include("includes/com_template.php"); $comRespo = "Lea Pleynet";
$comRespoId = "pleynet@etud.insa-toulouse.fr";
$comId = "ComPatronus"; $comRespo2 = "Cyril Moquay";
$comTitle = "Com Patronus"; $comRespo2Id = "moquay@etud.insa-toulouse.fr";
$comDescription = "Là pour sauver des vies"; include("includes/com_template.php");
$comRespo = "Yann Tremblay";
$comRespoId = "tremblay@etud.insa-toulouse.fr"; $comId = "Com Immunité";
$comRespo2 = "Florian Hoorelbeke"; $comTitle = "Com Immunité";
$comRespo2Id = "hoorelbe@etud.insa-toulouse.fr"; $comRespo = "Solène Bourguet";
include("includes/com_template.php"); $comRespoId = "sbourguet@laposte.net";
$comRespo2 = "Ayoub Bahi";
$comId = ""; $comRespo2Id = "bahi@etud.insa-toulouse.fr";
$comTitle = "Com Stupefix"; include("includes/com_template.php");
$comDescription = "Toujours là pour capturer vos moments magiques";
$comRespo = "Shivaree Pimenta"; $comId = "Kohmvile";
$comRespoId = "pimenta@etud.insa-toulouse.fr"; $comTitle = "Kohmvile";
$comRespo2 = ""; $comRespo = "Loann Valton";
$comRespo2Id = ""; $comRespoId = "loann.valton@sfr.fr";
include("includes/com_template.php"); $comRespo2 = "Elorri Laxague";
$comRespo2Id = "elaxague@etud.insa-toulouse.fr";
$comId = ""; include("includes/com_template.php");
$comTitle = "Com Maraudeur";
$comDescription = "A la recherche du vif d'or !"; $comId = "KohmBene";
$comRespo = "Louis Roasio"; $comTitle = "Kohm Béné";
$comRespoId = "roasio@etud.insa-toulouse.fr"; $comRespo = "Clément Guichard";
$comRespo2 = "Nicolas Julia"; $comRespoId = "guichardclement@outlook.fr";
$comRespo2Id = "njulia@etud.insa-toulouse.fr"; $comRespo2 = "Eliot Drou";
include("includes/com_template.php"); $comRespo2Id = "eliotd33wxcvbn@gmail.com";
include("includes/com_template.php");
$comId = "";
$comTitle = "Com Pre-au-Lard"; $comId = "ComOrientINSA";
$comDescription = "Prêts pour te faire découvrir les secrets de la ville rose"; $comTitle = "Com OrientINSA";
$comRespo = "Mathis Ribette"; $comRespo = "Solène Delran";
$comRespoId = "ribette@etud.insa-toulouse.fr"; $comRespoId = "delran@etud.insa-toulouse.fr";
$comRespo2 = "Lucas Marchant"; $comRespo2 = "Antonin Lezat";
$comRespo2Id = "marchant@etud.insa-toulouse.fr"; $comRespo2Id = "lezat@etud.insa-toulouse.fr";
include("includes/com_template.php"); include("includes/com_template.php");
$comId = ""; $comId = "ComRavitaillement";
$comTitle = "Com Ravitaillement"; $comTitle = "Com Ravitaillement";
$comDescription = "Ici, c'est la <a id=hideenigma href=\"enigma.php\">Compote</a> qui vous ravit !"; $comRespo = "Zazie Gardeau";
$comRespo = "Hugo Franceschi"; $comRespoId = "zazie.gardeau@hotmail.fr";
$comRespoId = "francesc@etud.insa-toulouse.fr"; $comRespo2 = "Justin Lombard";
$comRespo2 = "Abdessalem Guedouar"; $comRespo2Id = "jlombard@etud.insa-toulouse.fr";
$comRespo2Id = "guedouar@etud.insa-toulouse.fr"; include("includes/com_template.php");
include("includes/com_template.php");
$comId = "ComMoundir";
$comId = ""; $comTitle = "Com Moundir";
$comTitle = "Spe'Bar"; $comRespo = "Jim Noirbuisson";
$comDescription = "Des potions pour en voir de toutes les couleurs"; $comRespoId = "jim.noirbusson@gmail.com";
$comRespo = "Alban Charonnat"; $comRespo2 = "Liloï Lourde Rocheblave";
$comRespoId = "charonna@etud.insa-toulouse.fr"; $comRespo2Id = "liloilourderocheblave@gmail.com";
$comRespo2 = ""; include("includes/com_template.php");
$comRespo2Id = "";
include("includes/com_template.php"); $comId = "ComPhoto";
$comTitle = "Com Photo";
$comId = ""; $comRespo = "Pauline Dupuy";
$comTitle = "Com Nimbus 2001"; $comRespoId = "dupuypauline38@gmail.com";
$comDescription = "Et si la Com Nimbus réveillait votre Patronus ?"; $comRespo2 = "";
$comRespo = "Benjamin Fol"; $comRespo2Id = "";
$comRespoId = "fol@etud.insa-toulouse.fr"; include("includes/com_template.php");
$comRespo2 = "Clément Paillet";
$comRespo2Id = "cpaillet@etud.insa-toulouse.fr"; $comId = "ComGraphisme";
include("includes/com_template.php"); $comTitle = "Com Graphisme";
$comRespo = "Cyprien Heusse";
?> $comRespoId = "cyprien@heusse.com";
<div class="inner"></div> $comRespo2 = "Naïs Pistre";
$comRespo2Id = "pistre@etud.insa-toulouse.fr";
<?php include("includes/com_template.php");
$pageContent = ob_get_clean(); // Store html content in variable
$pageTitle = "Com's"; $comId = "ComPlaquette";
include("includes/template.php"); // Display template with variable content $comTitle = "Com Plaquette";
$comRespo = "Lucie Blosse";
$comRespoId = "lucie.blosse@gmail.com";
$comRespo2 = "Sarah Bobillot";
$comRespo2Id = "sarahbobillot04@gmail.com";
include("includes/com_template.php");
?>
<div class="inner"></div>
<?php
$pageContent = ob_get_clean(); // Store html content in variable
$pageTitle = "Com's";
include("includes/template.php"); // Display template with variable content
?> ?>

View file

@ -1,31 +1,28 @@
<?php <?php
ob_start(); // Start reading html ob_start(); // Start reading html
?> ?>
<div class="inner"> <div class="inner">
<h1>Les Telechargements</h1> <h1>Les Telechargements</h1>
<p>Si jamais t'as perdu quelque chose, pas de problèmes ! Tu pourras trouver tout ce dont tu as besoin ici.</p> <p>Si jamais t'as perdu quelque chose, pas de problèmes ! Tu pourras trouver tout ce dont tu as besoin ici.</p>
<ul> <ul>
<li> <li>
<a href="assets/pdf/Plaquette-INSA-2019-Promo-57.pdf">La plaquette</a> <a href="assets/pdf/Plaquette-INSA-2020-Promo-58.pdf">La plaquette</a>
</li> </li>
<li> <li>
<a href="assets/pdf/Fiche-Parrainge.pdf">La fiche de parrainage</a> <a href="assets/pdf/Fiche-Parrainge.pdf">La fiche de parrainage</a>
</li> </li>
<li> <li>
<a href="assets/pdf/Fiche-Parrainge-Anglais.pdf">La même en anglais - Godparent form in english</a> <a href="assets/pdf/Charte-GB.pdf">La charte gestes barrières</a>
</li> </li>
<li> <li>
<a href="assets/pdf/Fiche-Autorisation-Droit-Image.pdf">La charte de droit à l'image</a> <a href="assets/pdf/Fiche-Autorisation-Droit-Image.pdf">La charte de droit à l'image</a>
</li> </li>
<li> </ul>
<a href="assets/pdf/Fiche-WINI.pdf">La fiche d'autorisation pour le WINI</a> </div>
</li>
</ul> <?php
</div> $pageContent = ob_get_clean(); // Store html content in variable
$pageTitle = "Téléchargements";
<?php include("includes/template.php"); // Display template with variable content
$pageContent = ob_get_clean(); // Store html content in variable ?>
$pageTitle = "Téléchargements";
include("includes/template.php"); // Display template with variable content
?>

View file

@ -1 +0,0 @@
Ils m'ont tous trouvé, j'attends leurs réponses. Signé : Arthurus

View file

@ -1,25 +1,25 @@
<?php <?php
ob_start(); // Start reading html ob_start(); // Start reading html
$relativePath = "../"; $relativePath = "../";
?> ?>
<div class="inner"> <div class="inner">
<h1>Acces non autorise</h1> <h1>Acces non autorise</h1>
<h2>Erreur 401</h2> <h2>Erreur 401</h2>
<p> <p>
Vous n'avez pas le droit d'accéder à cette page Vous n'avez pas le droit d'accéder à cette page
</p> </p>
<a href="<?= $relativePath ?>index.php" class="website-back-button"> <a href="<?= $relativePath ?>index.php" class="website-back-button">
Retour sur le site Retour sur le site
</a> </a>
</div> </div>
<?php <?php
$pageContent = ob_get_clean(); // Store html content in variable $pageContent = ob_get_clean(); // Store html content in variable
$pageTitle = "Erreur 401"; $pageTitle = "Erreur 401";
include($relativePath . "includes/template.php"); // Display template with variable content include($relativePath . "includes/template.php"); // Display template with variable content
?> ?>

View file

@ -1,21 +1,21 @@
<?php <?php
ob_start(); // Start reading html ob_start(); // Start reading html
$relativePath = "../"; $relativePath = "../";
?> ?>
<div class="inner"> <div class="inner">
<h1>Page non trouvee</h1> <h1>Page non trouvee</h1>
<h2>Erreur 404</h2> <h2>Erreur 404</h2>
<a href="<?= $relativePath ?>index.php" class="website-back-button"> <a href="<?= $relativePath ?>index.php" class="website-back-button">
Retour sur le site Retour sur le site
</a> </a>
</div> </div>
<?php <?php
$pageContent = ob_get_clean(); // Store html content in variable $pageContent = ob_get_clean(); // Store html content in variable
$pageTitle = "Erreur 404"; $pageTitle = "Erreur 404";
include($relativePath . "includes/template.php"); // Display template with variable content include($relativePath . "includes/template.php"); // Display template with variable content
?> ?>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -1,29 +0,0 @@
<?php
ob_start(); // Start reading html
?>
<div class="inner">
<h1>Glissefondor</h1>
<p>
Tu fais partie de la fabuleuse maison Glissefondor ! Comme tu le sais, notre prestige a été maintes
et maintes fois au cours du temps. Nous sommes aussi les plus
intelligents, les plus forts, et nous le démontrerons durant cette semaine. Depuis plusieurs
années nous ramenons la Coupe à la maison, et nous comptons de nouveau le faire cette année !
Alors ne te laisse pas envahir par ton inexpérience, n'oublie pas ta cape ainsi que ta b(r)aguette, et montre
aux autres
toute la grandeur de notre maison !
</p>
<p>
N'oublie pas de rejoindre ton groupe <a href="https://www.facebook.com/groups/598630593981928/"> Facebook</a>
et de colorer ta blouse en un <strong style="color: #FF5F5F">Rouge Surnaturel</strong> !
</p>
<br/>
Signé Célestine Paillebledore
<br/>
<img style="max-width: 300px" src="assets/images/teams/paillebledore.jpg"></div>
<?php
$pageContent = ob_get_clean(); // Store html content in variable
$customBackgroundId = "bg_gli";
$pageTitle = "Glissefondor";
include("includes/template.php"); // Display template with variable content
?>

BIN
includes/.DS_Store vendored Normal file

Binary file not shown.

View file

@ -1,38 +1,38 @@
<div class="com-container"> <div class="com-container">
<h3 id="<?= $comId ?>"><?= $comTitle ?></h3> <h3 id="<?= $comId ?>"><?= $comTitle ?></h3>
<table id="table-coms"> <table id="table-coms">
<tr> <tr>
<td class="com-description"><?= $comDescription ?></td> <td class="com-description"><?= $comDescription ?></td>
</tr> </tr>
<tr> <tr>
<td><br></td> <td><br></td>
</tr> </tr>
<tr> <tr>
<td><?= $comRespo ?></td> <td><?= $comRespo ?></td>
</tr> </tr>
<tr> <tr>
<td><?= $comRespoId ?></td> <td><?= $comRespoId ?></td>
</tr> </tr>
</tr> </tr>
<?php if ($comRespo2 != ""): ?> <?php if ($comRespo2 != ""): ?>
<tr> <tr>
<td><br></td> <td><br></td>
</tr> </tr>
<tr> <tr>
<td><?= $comRespo2 ?></td> <td><?= $comRespo2 ?></td>
</tr> </tr>
<tr> <tr>
<td><?= $comRespo2Id ?></td> <td><?= $comRespo2Id ?></td>
</tr> </tr>
<?php endif; ?> <?php endif; ?>
</table> </table>
</div> </div>

View file

@ -1,19 +1,19 @@
<p class="copyright"> <p class="copyright">
Site de la semaine d'accueil 2019 pour l'INSA Toulouse Site de la semaine d'accueil 2020 pour l'INSA Toulouse
</p> </p>
<p class="copyright"> <p class="copyright">
Tous les éléments présents sur ce site sont représentés à des fins humoristiques. Nous ne cherchons en aucun Tous les éléments présents sur ce site sont représentés à des fins humoristiques. Nous ne cherchons en aucun
cas à véhiculer un quelconque message et condamnons toute action irrespectueuse. cas à véhiculer un quelconque message et condamnons toute action irrespectueuse.
</p> </p>
<p class="copyright"> <p class="copyright">
Ce site utilise <a href="https://matomo.org/">Matomo</a> pour analyser la fréquentation de manière anonyme. Rendez- Ce site utilise <a href="https://matomo.org/">Matomo</a> pour analyser la fréquentation de manière anonyme. Rendez-
vous sur la page <a href="<?= $relativePath ?>info.php">Infos</a> pour plus de détails. vous sur la page <a href="<?= $relativePath ?>info.php">Infos</a> pour plus de détails.
</p> </p>
<p class="copyright">Contacter <a href='<?= $relativePath ?>info.php#sarah'>Sarah, la responsable de la semaine</a>, pour plus d'informations</p> <p class="copyright">Contacter <a href='<?= $relativePath ?>info.php#maixent'>Maixent, le responsable de la semaine</a>, pour plus d'informations</p>
<p class="copyright"> Site maintenu par <a href='<?= $relativePath ?>info.php#arthur'>Arthur Boivert</a></p> <p class="copyright"> Site maintenu par <a href='<?= $relativePath ?>info.php#cyprien'>Cyprien Heusse</a></p>
<p class="copyright"> <p class="copyright">
<script type="text/javascript"> <script type="text/javascript">
var d = new Date(); var d = new Date();
document.write("Copyright © " + d.getFullYear() + " <a href='<?= $relativePath ?>info.php#arnaud'>Arnaud VERGNET</a>") document.write("Copyright © " + d.getFullYear() + " <a href='<?= $relativePath ?>info.php#arnaud'>Arnaud VERGNET</a>")
</script> </script>
</p> </p>

View file

@ -1,9 +1,9 @@
<a title="<?php echo $text ?>" class="main-link" href="<?php echo $link ?>"> <a title="<?php echo $text ?>" class="main-link" href="<?php echo $link ?>">
<span class="main-logo"> <span class="main-logo">
<?php if ($is_image == false): ?> <?php if ($is_image == false): ?>
<i class="<?php echo $icon ?>"></i> <i class="<?php echo $icon ?>"></i>
<?php else: ?> <?php else: ?>
<img src="<?php echo $icon ?>"/> <img src="<?php echo $icon ?>"/>
<?php endif; ?> <?php endif; ?>
</span> </span>
</a> </a>

View file

@ -1,2 +1,2 @@
Webmaster:$apr1$6ojl8f0i$.vMIf.RsGYz1up2t.hw5i0 Webmaster:$apr1$6ojl8f0i$.vMIf.RsGYz1up2t.hw5i0
Admin:$apr1$ov3dki5b$1OSSa5Atl5IQAy3c9GqY61 Admin:$apr1$ov3dki5b$1OSSa5Atl5IQAy3c9GqY61

View file

@ -1,3 +1,3 @@
Webmaster:$apr1$6ojl8f0i$.vMIf.RsGYz1up2t.hw5i0 Webmaster:$apr1$6ojl8f0i$.vMIf.RsGYz1up2t.hw5i0
Admin:$apr1$ov3dki5b$1OSSa5Atl5IQAy3c9GqY61 Admin:$apr1$ov3dki5b$1OSSa5Atl5IQAy3c9GqY61
GDA:$apr1$a9entdxg$x4/MeRH5aUezdXfzwCHpW. GDA:$apr1$a9entdxg$x4/MeRH5aUezdXfzwCHpW.

View file

@ -1 +1 @@
Webmaster:$apr1$6ojl8f0i$.vMIf.RsGYz1up2t.hw5i0 Webmaster:$apr1$6ojl8f0i$.vMIf.RsGYz1up2t.hw5i0

View file

@ -1,18 +1,18 @@
<a href="<?= $folderLink ?>"> <a href="<?= $folderLink ?>">
<span id="folderTitle"><?= $folderTitle ?></span> <span id="folderTitle"><?= $folderTitle ?></span>
<?php if ($photos > 1): ?> <?php if ($photos > 1): ?>
<span id="folderPhotos"><?= $photos ?> photos</span> <span id="folderPhotos"><?= $photos ?> photos</span>
<?php elseif ($photos == 1): ?> <?php elseif ($photos == 1): ?>
<span id="folderPhotos"><?= $photos ?> photo</span> <span id="folderPhotos"><?= $photos ?> photo</span>
<?php else: ?> <?php else: ?>
<span id="folderPhotos">vide</span> <span id="folderPhotos">vide</span>
<?php endif; ?> <?php endif; ?>
<?php if ($albums > 1): ?> <?php if ($albums > 1): ?>
<span id="folderAlbums"><?= $albums ?> albums</span> <span id="folderAlbums"><?= $albums ?> albums</span>
<?php elseif ($albums == 1): ?> <?php elseif ($albums == 1): ?>
<span id="folderAlbums"><?= $albums ?> album</span> <span id="folderAlbums"><?= $albums ?> album</span>
<?php endif; ?> <?php endif; ?>
</a> </a>

View file

@ -1 +1 @@
<li><a href="<?= $pathLink ?>"><?= $pathTitle ?></a></li> <li><a href="<?= $pathLink ?>"><?= $pathTitle ?></a></li>

View file

@ -1 +1 @@
<img src="<?= $imageSrc ?>" onclick="displayBig(this);" class="photo" id="<?= $imageId ?>" alt=""/> <img src="<?= $imageSrc ?>" onclick="displayBig(this);" class="photo" id="<?= $imageId ?>" alt=""/>

View file

@ -1,23 +1,15 @@
<div class="score-counter" id="<?= $platformID ?>"> <div class="score-counter" id="<?= $platformID ?>">
<img class="title-image" src="<?= $relativePath ?>assets/images/logos/titre-site-accueil.svg"> <img class="title-image" src="<?= $relativePath ?>assets/images/logos/titre-site-accueil.png">
<div class="score-container"> <div class="score-container">
<a href="<?= $relativePath ?>stats.php"> <a href="<?= $relativePath ?>stats.php">
<div class="score-gli"> <div class="score-tam">
<?= $scoreGli ?> <?= $scoreTam ?>
</div> </div>
<div class="score-separator"></div> <div class="score-separator"></div>
<div class="score-pek"> <div class="score-pek">
<?= $scorePek ?> <?= $scorePek ?>
</div> </div>
<div class="score-separator"></div> </a>
<div class="score-boo"> </div>
<?= $scoreBoo ?> </div>
</div>
<div class="score-separator"></div>
<div class="score-ver">
<?= $scoreVer ?>
</div>
</a>
</div>
</div>

View file

@ -1,16 +1,14 @@
<?php <?php
function get_total_points($team) function get_total_points($team)
{ {
$dao = new Dao(); $dao = new Dao();
$points = 0; $points = 0;
foreach ($dao->get_score_team($team) as $row) { foreach ($dao->get_score_team($team) as $row) {
$points += $row['points']; $points += $row['points'];
} }
return $points; return $points;
} }
$scoreGli = get_total_points('gli'); $scoreTam = get_total_points('tam');
$scorePek = get_total_points('pek'); $scorePek = get_total_points('pek');
$scoreBoo = get_total_points('boo');
$scoreVer = get_total_points('ver');

View file

@ -1,55 +1,59 @@
<div id="menuSidenav" class="sidenav"> <div id="menuSidenav" class="sidenav">
<div id="sidenav-scroll"> <div id="sidenav-scroll">
<a href="<?= $relativePath ?>index.php" id="index" class="page-link"><span class="sidenav-content"><i <a href="<?= $relativePath ?>index.php" id="index" class="page-link"><span class="sidenav-content"><i
class="fas fa-home sidenav-icon"></i> L'Accueil</span></a> class="fas fa-home sidenav-icon"></i> L'Accueil</span></a>
<div class="separator"></div> <div class="separator"></div>
<a href="<?= $relativePath ?>planning.php" id="planning" class="page-link"><span class="sidenav-content"><i <a href="<?= $relativePath ?>planning.php" id="planning" class="page-link"><span class="sidenav-content"><i
class="fas fa-calendar-alt sidenav-icon"></i> Le class="fas fa-calendar-alt sidenav-icon"></i> Le
Planning</span></a> Planning</span></a>
<a href="<?= $relativePath ?>map.php" id="map" class="page-link"><span class="sidenav-content"><i <a href="<?= $relativePath ?>map.php" id="map" class="page-link"><span class="sidenav-content"><i
class="fas fa-map sidenav-icon"></i> Le class="fas fa-map sidenav-icon"></i> Le
Plan</span></a> Plan</span></a>
<a href="<?= $relativePath ?>blouse.php" id="blouse" class="page-link"><span class="sidenav-content"><i <a href="<?= $relativePath ?>blouse.php" id="blouse" class="page-link"><span class="sidenav-content"><i
class="fas fa-tshirt sidenav-icon"></i> La Blouse</span></a> class="fas fa-tshirt sidenav-icon"></i> La Blouse</span></a>
<a href="<?= $relativePath ?>parrainage.php" id="parrainage" class="page-link"><span class="sidenav-content"><i <a href="<?= $relativePath ?>parrainage.php" id="parrainage" class="page-link"><span class="sidenav-content"><i
class="fas fa-user-plus sidenav-icon"></i> Le class="fas fa-user-plus sidenav-icon"></i> Le
Parrainage</span></a> Parrainage</span></a>
<a href="<?= $relativePath ?>wini.php" id="wini" class="page-link"><span class="sidenav-content"><i <!-- <a href="<?//= $relativePath ?>wini.php" id="wini" class="page-link"><span class="sidenav-content"><i
class="fas fa-star sidenav-icon"></i> Le class="fas fa-star sidenav-icon"></i> Le
WINI</span></a> WINI</span></a> -->
<a href="<?= $relativePath ?>vacances.php" id="vacances" class="page-link"><span class="sidenav-content"><i
<div class="separator"></div> class="fas fa-book sidenav-icon"></i> Le
Cahier de vacances</span></a>
<a href="<?= $relativePath ?>glissefondor.php" id="gli" class="page-link"><span class="sidenav-content"><img <a href="<?= $relativePath ?>chansons.php" id="chansons" class="page-link"><span class="sidenav-content"><i
src="<?= $relativePath ?>assets/images/logos/gli_logo.png" class="sidenav-image"> Glissefondor </span></a> class="fas fa-music sidenav-icon"></i> Les
<a href="<?= $relativePath ?>peksentard.php" id="pek" class="page-link"><span class="sidenav-content"><img Chansons</span></a>
src="<?= $relativePath ?>assets/images/logos/pek_logo.png" class="sidenav-image"> Peksentard </span></a>
<a href="<?= $relativePath ?>boomsouffle.php" id="boo" class="page-link"><span class="sidenav-content"><img <div class="separator"></div>
src="<?= $relativePath ?>assets/images/logos/boo_logo.png" class="sidenav-image"> Boomsouffle </span></a>
<a href="<?= $relativePath ?>verredaigle.php" id="ver" class="page-link"><span class="sidenav-content"><img <a href="<?= $relativePath ?>tamboom.php" id="tam" class="page-link"><span class="sidenav-content"><img
src="<?= $relativePath ?>assets/images/logos/ver_logo.png" class="sidenav-image"> Verredaigle </span></a> src="<?= $relativePath ?>assets/images/logos/tam_logo.png" class="sidenav-image"> Tamboom </span></a>
<a href="<?= $relativePath ?>stats.php" id="stats" class="page-link"><span class="sidenav-content"><i <a href="<?= $relativePath ?>pekstanas.php" id="pek" class="page-link"><span class="sidenav-content"><img
class="fas fa-list-ol sidenav-icon"></i> Les Stats</span></a> src="<?= $relativePath ?>assets/images/logos/pek_logo.png" class="sidenav-image"> Pekstanas </span></a>
<a href="<?= $relativePath ?>stats.php" id="stats" class="page-link"><span class="sidenav-content"><i
<div class="separator"></div> class="fas fa-list-ol sidenav-icon"></i> Les Stats</span></a>
<a href="<?= $relativePath ?>photos.php" id="photos" class="page-link"><span class="sidenav-content"><i <div class="separator"></div>
class="fas fa-camera sidenav-icon"></i> Les Photos</span></a>
<a href="<?= $relativePath ?>photosorder.php" id="order" class="page-link"><span class="sidenav-content"><i <a href="<?= $relativePath ?>photos.php" id="photos" class="page-link"><span class="sidenav-content"><i
class="fas fa-cart-plus sidenav-icon"></i> Commande des photos</span></a> class="fas fa-camera sidenav-icon"></i> Les Photos</span></a>
<div class="separator"></div> <div class="separator"></div>
<a href="<?= $relativePath ?>coms.php" id="coms" class="page-link"><span class="sidenav-content"><i <a href="<?= $relativePath ?>coms.php" id="coms" class="page-link"><span class="sidenav-content"><i
class="fas fa-users sidenav-icon"></i> Les Com's</span></a> class="fas fa-users sidenav-icon"></i> Les Com's</span></a>
<a href="<?= $relativePath ?>prevs.php" id="prevs" class="page-link"><span class="sidenav-content"><i <a href="<?= $relativePath ?>lydia.php" id="lydia" class="page-link"><span class="sidenav-content"><i
class="fas fa-medkit sidenav-icon"></i> La Prévention</span></a> class="fas fa-credit-card sidenav-icon"></i> Lydia et Izly</span></a>
<a href="<?= $relativePath ?>downloads.php" id="downloads" class="page-link"><span class="sidenav-content"><i <a href="<?= $relativePath ?>clubs.php" id="clubs" class="page-link"><span class="sidenav-content"><i
class="fas fa-download sidenav-icon"></i>Téléchargements</span></a> class="fas fa-sitemap sidenav-icon"></i> Les Clubs</span></a>
<a href="<?= $relativePath ?>info.php" id="contact" class="page-link"><span class="sidenav-content"><i <a href="<?= $relativePath ?>prevs.php" id="prevs" class="page-link"><span class="sidenav-content"><i
class="fas fa-info sidenav-icon"></i> Les Infos</span></a> class="fas fa-medkit sidenav-icon"></i> La Prévention</span></a>
</div> <a href="<?= $relativePath ?>downloads.php" id="downloads" class="page-link"><span class="sidenav-content"><i
</div> class="fas fa-download sidenav-icon"></i>Téléchargements</span></a>
<a href="<?= $relativePath ?>info.php" id="contact" class="page-link"><span class="sidenav-content"><i
class="fas fa-info sidenav-icon"></i> Les Infos</span></a>
</div>
</div>

View file

@ -1,94 +1,94 @@
<?php <?php
if (!isset($relativePath)) if (!isset($relativePath))
$relativePath=''; $relativePath='';
if (!isset($customBackgroundId)) if (!isset($customBackgroundId))
$customBackgroundId=''; $customBackgroundId='';
require_once $relativePath.'classes/dao.php'; require_once $relativePath.'classes/dao.php';
require_once $relativePath.'includes/score_functions.php'; require_once $relativePath.'includes/score_functions.php';
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="fr"> <html lang="fr">
<head> <head>
<meta charset='utf-8'> <meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="chrome=1"> <meta http-equiv="X-UA-Compatible" content="chrome=1">
<meta name="viewport" content="width=device-width,maximum-scale=2"> <meta name="viewport" content="width=device-width,maximum-scale=2">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css"
integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous"> integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css">
<link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/style.css"> <link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/style.css">
<link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/sidenav.css"> <link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/sidenav.css">
<link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/score.css"> <link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/score.css">
<link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/baguette.css"> <link rel="stylesheet" type="text/css" media="screen" href="<?= $relativePath ?>assets/css/baguette.css">
<link href="https://fonts.googleapis.com/css?family=Vollkorn|Allura" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Vollkorn|Allura" rel="stylesheet">
<link rel="shortcut icon" href="<?= $relativePath ?>favicon.ico"> <link rel="shortcut icon" href="<?= $relativePath ?>favicon.ico">
<title><?= $pageTitle ?> | INSAT Accueil</title> <title><?= $pageTitle ?> | INSAT Accueil</title>
<!-- Matomo --> <!-- Matomo -->
<script type="text/javascript"> <script type="text/javascript">
var _paq = _paq || []; var _paq = _paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */ /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['disableCookies']); _paq.push(['disableCookies']);
_paq.push(['trackPageView']); _paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']); _paq.push(['enableLinkTracking']);
(function() { (function() {
var u="//etud.insa-toulouse.fr/~accueil_insa/analytics/"; var u="//etud.insa-toulouse.fr/~accueil_insa/analytics/";
_paq.push(['setTrackerUrl', u+'piwik.php']); _paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '1']); _paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s); g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
})(); })();
</script> </script>
<!-- End Matomo Code --> <!-- End Matomo Code -->
</head> </head>
<body id="main"> <body id="main">
<div class="background" id="<?= $customBackgroundId?>"></div> <div class="background" id="<?= $customBackgroundId?>"></div>
<div id="back-button" onclick="closeNav()"></div> <div id="back-button" onclick="closeNav()"></div>
<?php <?php
include($relativePath."includes/top_bar.php"); include($relativePath."includes/top_bar.php");
include($relativePath . "includes/sidenav.php"); include($relativePath . "includes/sidenav.php");
?> ?>
<div id="header-wrap" class="outer"> <div id="header-wrap" class="outer">
<header class="inner"> <header class="inner">
<h1 id="title">Semaine d'Accueil 2019</h1> <h1 id="title">Semaine d'Accueil 2020</h1>
<h3 id="timer">Chargement du compte a rebours...</h3> <h3 id="timer">Chargement du compte a rebours...</h3>
</header> </header>
</div> </div>
<?php <?php
$platformID = 'mobile-score'; $platformID = 'mobile-score';
include($relativePath."includes/score_counter.php"); include($relativePath."includes/score_counter.php");
?> ?>
<div id="main-fading-top-edge"></div> <div id="main-fading-top-edge"></div>
<div id="main-content-wrap" class="outer"> <div id="main-content-wrap" class="outer">
<section id="main-content"> <section id="main-content">
<?= $pageContent // Display content defined in calling file ?> <?= $pageContent // Display content defined in calling file ?>
</section> </section>
</div> </div>
<div id="main-fading-bottom-edge"></div> <div id="main-fading-bottom-edge"></div>
<div id="footer-wrap" class="outer"> <div id="footer-wrap" class="outer">
<footer class="inner"> <footer class="inner">
<?php <?php
include($relativePath . "includes/copyright.php"); include($relativePath . "includes/copyright.php");
?> ?>
</footer> </footer>
</div> </div>
</body> </body>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" <script src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script> crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.js"></script>
<script type="text/javascript" src="<?= $relativePath ?>assets/js/init.js"></script> <script type="text/javascript" src="<?= $relativePath ?>assets/js/init.js"></script>
<script type="text/javascript" src="<?= $relativePath ?>assets/js/timer.js"></script> <script type="text/javascript" src="<?= $relativePath ?>assets/js/timer.js"></script>
<script type="text/javascript" src="<?= $relativePath ?>assets/js/sidenav.js"></script> <script type="text/javascript" src="<?= $relativePath ?>assets/js/sidenav.js"></script>
<?php if (isset($pageScripts)): ?> <?php if (isset($pageScripts)): ?>
<?= $pageScripts ?> <?= $pageScripts ?>
<?php endif; ?> <?php endif; ?>
</html> </html>

Some files were not shown because too many files have changed in this diff Show more