Skip to content
Extraits de code Groupes Projets
Valider bf12027b rédigé par Olivier BÈGUE's avatar Olivier BÈGUE
Parcourir les fichiers

début de index.php

parent 8e7706f3
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Affichage de avec 148 ajouts et 8 suppressions
......@@ -46,14 +46,6 @@ class Utilisateur
$this->isAdmin = $isAdmin;
}
/**
* Constructeur par defaut
*/
public function Utilisateur()
{
Utilisateur("","","","",FALSE);
}
/**
* @return int
*/
......
<?php
// Informations sur l'application AriseID
$GLOBALS['consumer_key'] = ''; // Identifiant
$GLOBALS['consumer_secret'] = ''; // Secret partagé
$GLOBALS['consumer_private_key'] = ''; // Clé privée de l'application
// Informations sur la connexion au serveur SQL
$GLOBALS['SQL_SRVR'] = "mysql.iiens.net"; // Serveur SQL
$GLOBALS['SQL_USER'] = "assoce_lanpartii"; // Identifiant SQL
$GLOBALS['SQL_PSWD'] = ""; // Mot de passe SQL
$GLOBALS['SQL_DTBS'] = "assoce_lanpartiie"; // Table SQL
?>
<?php
setlocale(LC_TIME, "fr_FR");
$NJV_NUMERO = 47; // Numéro de la NJV ou ObiLAN en cours
$NJV_TYPE = 'ObiLAN'; // Type de NJV en cours - {ObiLAN, NJV}
$NJV_DATE = strtotime("05/11/2019 08:00:00"); // Date de début de la NJV ou ObiLAN à 2h près (20h = début effectif à 18h)
$date_fin_premiere_commande = strtotime("-20 hours -1 second", $NJV_DATE);
$date_fin_seconde_commande = strtotime("-1 hours", $NJV_DATE);
$date_fin_seconde_commande_battement = strtotime("-30minutes", $NJV_DATE);
$date_fin_NJV = strtotime("+9 hour", $NJV_DATE);
?>
\ No newline at end of file
<!DOCTYPE html>
<html>
<body>
<hr>
<?php
if ($utilisateur == NULL)
{?>
<div class="alert alert-danger">
<strong>Veuillez vous connecter</strong>
</div>
<?php
}?>
</hr>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<body>
<div class="container" style="max-width: 900px;">
<h2 class="text-center"><?php echo $page_title; ?></h2>
</body>
</html>
\ No newline at end of file
<!DOCTYPE html>
<html>
<body>
<?php
foreach( $commande in $utilisateur->commandes){
......@@ -8,3 +11,5 @@ foreach( $commande in $utilisateur->commandes){
<?php
}
?>
</body>
</html>
<!DOCTYPE html>
<html>
<body>
<hr>
<?php
if ($date_fin_premiere_commande > time())
{?>
<div class="alert alert-warning">
<strong>📅 Les commandes sont ouvertes jusqu'au <?php echo strftime("%A %d/%m à %H:%M:%S", $date_fin_premiere_commande) ?> !</strong>
</div>
<?php
}
elseif ($date_fin_seconde_commande > time())
{?>
<div class="alert alert-danger">
<strong>📅 Les commandes restent ouvertes jusqu'à ce soir, <?php echo date("H", $date_fin_seconde_commande) ?>h dernier délai !</strong>
</div>
<?php
}
elseif ($date_fin_NJV > time())
{?>
<div class="alert alert-danger">
<strong>📅 Les commandes sont (normalement) fermées depuis <?php echo date("H", $date_fin_seconde_commande) ?>h. Si vous avez un doute, demandez à un membre de LP.</strong>
</div>
<?php
}
else
{?>
<div class="alert alert-danger">
<strong>📅 Les commandes sont fermées !</strong>
</div>
<?php
}
?>
</hr>
</body>
</html>
\ No newline at end of file
<!-- </div> -->
<img src="http://bde.iiens.net/web/images/logos/lanpartiie.png" style="max-width: 40%; margin: 0 30%;" />
<div class="small text-center text-muted">• Site par JaCoGaJe •</div>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<title>LanpartIIE - <?php echo $page_title; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/awesome-bootstrap-checkbox/1.0.0/awesome-bootstrap-checkbox.min.css">
<link rel="icon" type="image/png" href="http://lanpartiie.iiens.net/sith/webroot/img/icons/member.png">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<meta http-equiv="Expires" content="Tue, 01 Jan 1995 12:12:12 GMT">
<meta http-equiv="Pragma" content="no-cache">
<meta name="theme-color" content="#829A30">
<style>
* { outline: 0 !important; }
body { padding: 25px 0; }
.input-group { margin-bottom: 5px; width: 100%; }
.input-group:last-of-type { margin-bottom: 10px; }
.input-group-addon { cursor: default; font-weight: bold; width: 160px; text-align: left; }
textarea { resize: vertical; }
.abc-checkbox { margin-left: -5px; }
.abc-checkbox input[type=checkbox]:checked + label:after { font-family: 'Glyphicons Halflings'; content: "\e013"; }
.abc-checkbox label:after { padding-left: 0; padding-top: 2px; font-size: 9px; }
.servie-label { color: #666; font-size: 10px; font-weight: bold; }
</style>
</head>
</html>
<?php
require_once('Model/Utilisateur/utilisateur.php');
require_once('Model/infos_njv.php');
if ($NJV_TYPE == 'ObiLAN')
$page_title = 'Commander pour l\'ObiLAN '.$NJV_NUMERO;
if ($NJV_TYPE == 'NJV')
$page_title = 'Commander pour la NJV '.$NJV_NUMERO;
include('View/head.php');
include('View/body_titre.php');
$utilisateur = NULL;
include('View/accueil_utilisateur.php');
if ($utilisateur != NULL)
{
include('View/deadline_commande.php');
}
include('View/footer.php');
?>
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter