From a97582e33cf6c260ffcd5ed0f8affac92a4d0510 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Bousqui=C3=A9?= Date: Fri, 23 Nov 2018 11:49:14 +0100 Subject: [PATCH] ajout trombino --- admin/default.css | 22 +++++++++++++++++++++- admin/index.php | 1 + admin/reload_salles.php | 19 ++++++++++++++++--- admin/winlog_admin_conf.php.example | 5 +++++ 4 files changed, 43 insertions(+), 4 deletions(-) diff --git a/admin/default.css b/admin/default.css index e9b16e2..ff8701c 100644 --- a/admin/default.css +++ b/admin/default.css @@ -92,8 +92,10 @@ a.anchor { bottom: -1px; } -.deroule { +/* +.deroule { } +*/ .enroule { display: none; @@ -158,4 +160,22 @@ a.anchor { .materiel_ligne2 { background-color: Lavender; +} + +.trombi img { + display: none; + width: 200px; + height: 200px; +} + +.trombi:hover { + text-align: center; +} + +.trombi:hover img{ + display: block; +} + +.connexion:hover { + background-color: khaki; } \ No newline at end of file diff --git a/admin/index.php b/admin/index.php index a45fe69..731b9c3 100644 --- a/admin/index.php +++ b/admin/index.php @@ -77,6 +77,7 @@ if ($nb_archives > 0) {

Gestion

+ diff --git a/admin/reload_salles.php b/admin/reload_salles.php index 6dccc06..8711cff 100644 --- a/admin/reload_salles.php +++ b/admin/reload_salles.php @@ -5,6 +5,14 @@ include_once("winlog_admin_conf.php"); include_once('connexions.php'); include_once('client_http.php'); include_once('session.php'); +$trombino = false; +if ($trombino_url != "") { + $trombino = true; +} +if ($trombino) { + include_once('trombino.php'); +} + $username = Username(); $profil = Profil($username); @@ -85,16 +93,21 @@ while ($mdc = current($machines_de_salle)) { $cpt = Compte($username); // récupère les informations sur l'utilisateur courant $style = ""; $fin_style = ""; + $div_trombi = "
"; + $fin_div = "
"; + if ($trombino) { + $div_trombi = "
"; + } if ($cpt[2] == $lib_personnel) { $style = ""; $fin_style=""; } - echo ""; + echo ""; echo "".$style.$mac.$fin_style.""; echo "".$style.date("H:i:s",$connexion_machine[$mac]["stamp"]).$fin_style.""; echo "".$style.$connexion_machine[$mac]["ip"].$fin_style.""; - echo "".$style.$username.$fin_style.""; - echo "".$style.$cpt[1]." ".$cpt[0].$fin_style.""; + echo "".$div_trombi.$style.$username.$fin_style.$fin_div.""; + echo "".$div_trombi.$style.$cpt[1]." ".$cpt[0].$fin_style.$fin_div.""; echo "".$style.$cpt[2].$fin_style.""; echo "\n"; } diff --git a/admin/winlog_admin_conf.php.example b/admin/winlog_admin_conf.php.example index fd85f83..a486325 100644 --- a/admin/winlog_admin_conf.php.example +++ b/admin/winlog_admin_conf.php.example @@ -127,4 +127,9 @@ $rpc_url = "http://10.5.0.15:81/rpc.php"; // Wake On LAN : url du script d'allumage des PC à distance $wake_url = "http://10.5.0.15:81/wake.php"; + +// Trombinoscope : url du répertoire contenant les fichiers images des utilisateurs +// Laisser une chaîne vide si pas de trombinoscope disponible : +// $trombino_url = ""; +$trombino_url = "http://lamp.iut.rdz/trombi/photos/2019/"; ?>