"); $_SESSION["pageaide"] = "Gestion_des_clients_windows#Description_du_processus_de_configuration_du_registre_Windows"; $testniveau = getintlevel(); $salle = $_POST['salles']; $rest = $_POST['poser']; $salle1 = $_GET['salles']; $rest1 = $_POST['poser']; if (!$rest) { $rest = $rest1; }; if (!$salle) { $salle = $salle1; } if (isset($_GET['clean'])) { connexion (); $deleteSQL = "delete from restrictions where groupe='$salle';"; mysql_query($deleteSQL); mysql_close(); } connexion(); echo "

" . gettext("Gestion du template ") . $salle . "

\n"; //si la salle est passe en parametre ! if ($salle) { echo "
\n"; echo "\n\n"; echo "\n
\n\n"; echo "
\n"; echo "
\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "
\n
\n"; affichelistecat("affiche_restrictions.php?salles=$salle", $testniveau, $cat); if ($cat != "" and $cat != "tout") { $ajout = "and corresp.categorie = '$cat'"; if ($_GET['sscat']) { $ajoutsscat = " and corresp.sscat='$sscat'"; } else { $ajoutsscat = ""; } if (($testniveau == 2) and !($sscat)) { $ajoutpasaffiche = " and corresp.sscat= '' "; } } else if ($cat == "tout") { if ($cat == "tout") { $ajout = ""; if ($sscat) { $ajoutsscat = ""; } } } else { echo "

" . gettext("Choisissez une catégorie ci-dessus") . "


\n"; exit(0); } connexion(); $query = "Select Intitule,corresp.CleID,corresp.valeur,genre,OS,antidote,type,chemin,restrictions.valeur,restrictions.groupe from corresp left outer join restrictions on corresp.CleID = restrictions.cleID where restrictions.groupe = '" . $salle . "' " . $ajout . $ajoutsscatvide . $ajoutsscat . " order by ISNULL(restrictions.valeur) desc,type,OS,corresp.valeur,antidote,genre asc"; $resultat = mysql_query($query); if (mysql_num_rows($resultat)) { //affichage de l'en-tete du tableau en fonction des cas echo "$affichetout \n"; echo "\n"; } while ($row = mysql_fetch_array($resultat, MYSQL_BOTH)) { //bouton aide echo "\n"; echo "\n"; echo "\n"; if ($row['type'] == "config") { $state = 1; echo ""; } elseif ($row['type'] == "restrict") { if ($row[8] == $row[5]) { echo ""; } elseif ($row[8] == $row[2]) { echo ""; } else { echo ""; $state = -1; } } echo "\n"; } } echo"
\""\n"; echo "
" . gettext("Intitulé") . "
" . gettext("OS") . "
" . gettext("Etat") . "
" . gettext("Supprimer") . "
\n"; echo "\"aide\"
$row[0]
$row[4]
Non configurée
"; mysql_close(); echo "
Remise à zéro

\n"; echo "
\n"; include("pdp.inc.php"); ?>