From 7f8def7b237c7d53d03562373ffd432b9bd3bc33 Mon Sep 17 00:00:00 2001 From: arnauddalayer <36932970+arnauddalayer@users.noreply.github.com> Date: Fri, 27 Nov 2020 11:06:26 -0500 Subject: [PATCH] v2.3 20200415 --- src/Serveur/INSTALL.sql | 19 +++++++------- src/Serveur/LAB_config.php | 7 ++--- src/Serveur/fichierrdp.php | 18 ------------- src/Serveur/index.php | 52 ++++++++++++++++++++++++++++---------- src/Serveur/statut.php | 2 +- 5 files changed, 53 insertions(+), 45 deletions(-) delete mode 100644 src/Serveur/fichierrdp.php diff --git a/src/Serveur/INSTALL.sql b/src/Serveur/INSTALL.sql index c9636d4..589fb01 100644 --- a/src/Serveur/INSTALL.sql +++ b/src/Serveur/INSTALL.sql @@ -1,11 +1,11 @@ --- phpMyAdmin SQL Dump +-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost --- Généré le : mer. 25 mars 2020 à 02:10 +-- Généré le : mer. 15 avr. 2020 à 01:54 -- Version du serveur : 5.6.47-log --- Version de PHP : 7.4.3 +-- Version de PHP : 7.4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; @@ -30,17 +30,18 @@ SET time_zone = "+00:00"; CREATE TABLE `IsThereAnyFreeDesktop` ( `poste` text NOT NULL, - `statut` enum('dispo','oqp','na') NOT NULL DEFAULT 'dispo' -) ENGINE=InnoDB DEFAULT CHARSET=latin1; + `statut` enum('dispo','oqp','na') NOT NULL DEFAULT 'dispo', + `commentaire` text CHARACTER SET utf8 +) ENGINE=InnoDB DEFAULT CHARSET=utf8; -- -- Déchargement des données de la table `IsThereAnyFreeDesktop` -- -INSERT INTO `IsThereAnyFreeDesktop` (`poste`, `statut`) VALUES -('test1', 'dispo'), -('test2', 'na'), -('test3', 'oqp'); +INSERT INTO `IsThereAnyFreeDesktop` (`poste`, `statut`, `commentaire`) VALUES +('test1', 'dispo', 'Acrobat Pro disponible'), +('test2', 'na', 'Employés seulement'), +('test3', 'oqp', NULL); -- -- Index pour les tables déchargées diff --git a/src/Serveur/LAB_config.php b/src/Serveur/LAB_config.php index d83c87b..7d29f09 100644 --- a/src/Serveur/LAB_config.php +++ b/src/Serveur/LAB_config.php @@ -1,13 +1,14 @@ PDO::ERRMODE_EXCEPTION, PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES utf8'); +$BD = "IsThereAnyFreeDesktop"; $table = "IsThereAnyFreeDesktop"; +$bdd = new PDO('mysql:host=localhost;dbname='.$BD, 'login', 'motdepasse', $pdo_options); //Nom du département, faculté ou du laboratoire $LaboNom = "votresiteweb - Laboratoire informatique virtuel"; diff --git a/src/Serveur/fichierrdp.php b/src/Serveur/fichierrdp.php deleted file mode 100644 index 0e33b6d..0000000 --- a/src/Serveur/fichierrdp.php +++ /dev/null @@ -1,18 +0,0 @@ - diff --git a/src/Serveur/index.php b/src/Serveur/index.php index b433832..2b9730a 100644 --- a/src/Serveur/index.php +++ b/src/Serveur/index.php @@ -1,7 +1,7 @@ 0) { - //$PostesListe.="
Poste | Statut |
---|
Poste | Commentaire | Statut |
---|---|---|
".$PosteAdresse." | ".$PosteStatut." | |
".$PosteAdresse." | ".$poste['commentaire']." | ".$PosteStatut." |
Erreur avec la base de données. Si l'erreur persiste, veuillez nous contacter.
"; } +header('Content-Type: text/html; charset=utf-8'); +//include 'D:\inetpub\cours\public_html\Templates\COURS-ressources-services_laboinfovirtuel.dwt'; ?> - - -