diff --git a/admin/recherche.php b/admin/recherche.php index 466a353..4b3e254 100644 --- a/admin/recherche.php +++ b/admin/recherche.php @@ -13,6 +13,12 @@ FiltreProfil($profil); function RechercheConnexions(&$db) { global $_POST; global $liste_const; + + global $trombino; + global $trombino_url; + global $trombino_defaut_url; + global $trombino_extension_fichier; + $machine = db_escape_string($db, $_POST["machine"]); $compte = db_escape_string($db, $_POST["compte"]); $salle = db_escape_string($db, $_POST["salle"]); @@ -246,7 +252,7 @@ function RechercheWifi(&$db) { $date_fin = db_escape_string($db, $_POST["date_fin"]); $contrainte = false; - $req_wifi = "SELECT nom AS 'Nom', prenom AS 'Prénom', wifi_username AS 'Compte', groupe AS 'Groupe', wifi_ip AS 'Adresse IP', wifi_browser AS 'Browser/Device', wifi_deb_conn AS 'Heure connexion', close AS 'Fermée ?'"; + $req_wifi = "SELECT wifi_username AS 'Compte', nom AS 'Nom', prenom AS 'Prénom', groupe AS 'Groupe', wifi_ip AS 'Adresse IP', wifi_browser AS 'Browser/Device', wifi_deb_conn AS 'Heure connexion', close AS 'Fermée ?'"; $req_wifi = $req_wifi." FROM wifi, comptes WHERE wifi_username = username "; $where = ""; if ($compte != "") { @@ -320,17 +326,51 @@ function FormatteResultats(&$db, &$res) { $r = "
Nb connexions déjà établies : ". count($connexions_wifi);
$html = $html . "\n
nom prénom compte groupe heure connexion adresse IP browser id connexion \n";
@@ -25,8 +30,14 @@ foreach ($connexions_wifi as $i => $con_wifi) {
$browser = $con_wifi["browser"];
$id = $con_wifi["id"];
$style = ($pair) ? "even" : "odd";
+ $div_trombi = "";
+ }
$weight = ($groupe == $lib_personnel) ? $bold : "";
- $lignes = $lignes . "
\n";
+ $lignes = $lignes . "$nom $prenom $username $groupe $debut $ip $browser $id \n";
$pair = !$pair;
}
$div_trombi$nom$fin_div $div_trombi$prenom$fin_div $div_trombi$username$fin_div $groupe $debut $ip $browser $id