<?php @session_start(); if(!isset($_SESSION['auth'])) { header("location:index.php"); } require_once("../inc/confNetisse.php"); $versions = ""; $nbTotal = $nbActive = 0; $q = "SELECT count(1) total, (SELECT count(1) FROM ca_agences agc WHERE agc.is_active=:is_active AND agc.supp=:supp1) as active FROM ca_agences WHERE supp=:supp2"; $values = array(':is_active' => 1, ':supp1' => 0, ':supp2' => 0); $result = excuteQuery($q, $values); $r = $result['stmt']; if($result['stmt']){ $row = $r->fetchObject(); $nbTotal = $row->total; $nbActive = $row->active; } ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title><?php echo $PROJECT_TITLE;?> : <?php echo $TITREPAGE; ?></title> <link rel="stylesheet" href="css/font-awesome.min.css" /> <link rel="stylesheet" type="text/css" href="css/cadif.css" /> <link rel="stylesheet" type="text/css" href="css/dashboard.css" /> <link rel="stylesheet" type="text/css" href="css/cans/jquery-ui-1.8.17.custom.css" /> <script type="text/javascript" src="js/jquery-1.7.2.min.js"></script> <script type="text/javascript" src="js/jquery-ui-1.8.22.custom.min.js"></script> </head> <body> <div id="global"> <div id="home"> <div id="logo"><a href="<?php echo $SERVER;?>admin/dashboard.php"><img src="<?php echo $SERVER; ?>assets/img/logo.png" height="110" border="0"/></a></div> <div id="username"> <b><?php echo isset($_SESSION["nom"]) ? $_SESSION["nom"] : $_SESSION["matricule"];?></b> | <a href="<?php echo $SERVER;?>admin/close.php" class="link" title="Fermer et clore votre session">Déconnexion</a> <br/> </div> </div> <div id="panels"> <?php include "menu.php";?> <div class="main-content"> <div id="title">Informations Welcome Touch Screen</div> <div id="msg"> <?php echo $versions; ?> <table class="infos-table"> <thead> <tr> <th>Module</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Back-office</td><td><?php echo $GLOBALS["BO_CONF"]["VERSION"];?></td> </tr> <tr> <td>Borne</td><td><?php echo $GLOBALS["BORNE_CONF"]["VERSION"];?></td> </tr> <tr> <td>Pile</td><td><?php echo $GLOBALS["PILE_CONF"]["VERSION"];?></td> </tr> <tr> <td>Statistiques</td><td><?php echo $GLOBALS["STATS_CONF"]["VERSION"];?></td> </tr> </tbody> <tfoot> <tr class="noborder"><td colspan="2"></td></tr> <tr> <td><?php echo $GLOBALS["APP_CONF"]["PACKAGE"];?></td><td><?php echo $GLOBALS["APP_CONF"]["VERSION"];?></td> </tr> </tfoot> </table> <br/> <table class="infos-table"> <thead> <tr> <th>Vue d'ensemble</th> <th>Informations</th> </tr> </thead> <tbody> <tr> <td>Agences actives</td><td><?php echo $nbActive."/".$nbTotal;?></td> </tr> </tbody> </table> </div> </div> </div> </div> <?php include 'footer.php';?> </body> </html>