infowinlog en infobulle
This commit is contained in:
parent
b43554902d
commit
23f6bdcdfc
@ -7,7 +7,7 @@ header ('Content-Type: text/html; charset=utf-8');
|
||||
include_once('libhome.php');
|
||||
include_once('winlog_admin_conf.php');
|
||||
include_once('connexions.php');
|
||||
$delaySec = $delay * 1000;
|
||||
$delayMs = $delay * 1000;
|
||||
$username = phpCAS::getUser();
|
||||
|
||||
function ListeSalles() {
|
||||
@ -23,6 +23,15 @@ function ListeSalles() {
|
||||
return $liste;
|
||||
}
|
||||
|
||||
function InfoWinlog() {
|
||||
global $delay;
|
||||
$nb = NbConnexions();
|
||||
$debut = date("d/m/Y", strtotime(PremiereConnexion()));
|
||||
$info = "nb connexions stockées : ".$nb."\n";
|
||||
$info = $info."initiées le : ".$debut."\n";
|
||||
$info = $info."rafraichissement données : ".$delay." s\n";
|
||||
return $info;
|
||||
}
|
||||
|
||||
?>
|
||||
<!DOCTYPE HTML>
|
||||
@ -39,8 +48,9 @@ function ListeSalles() {
|
||||
if (in_array($username, $autorises)) {
|
||||
// header
|
||||
$liste_salles = ListeSalles();
|
||||
$infobulle = InfoWinlog();
|
||||
echo('<div id="menu_salles">');
|
||||
echo("<b>Connexions Windows en cours par salle</b><span class=\"right\"><i>refresh : $delay s</i></span><br/>");
|
||||
echo("<p title=\"$infobulle\"><b>Connexions Windows en cours par salle</b></p>");
|
||||
echo($liste_salles);
|
||||
echo("<br/><a href=\"recup_salles.php\" class=\"right\"><i>rechargement</i></a>\n</div>\n");
|
||||
echo('</div>'."\n");
|
||||
@ -148,7 +158,7 @@ function ListeSalles() {
|
||||
if (div) {
|
||||
window.setInterval(function() {
|
||||
reload(url, div);
|
||||
}, <?php echo($delaySec); ?>);
|
||||
}, <?php echo($delayMs); ?>);
|
||||
reload(url, div);
|
||||
jourListeSalle(div);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user