[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3master/var/www/se3/acls/ -> groups_listacls.php (source)

   1  <?php
   2  
   3  
   4     /**
   5     
   6     * Interface de gestion des acl
   7     * @Version $Id: groups_listacls.php 8553 2015-03-15 12:36:03Z plouf $ 
   8     
   9    
  10     * @Projet LCS / SambaEdu 
  11     
  12     * @auteurs  Equipe Tice academie de Caen
  13     
  14     * @Licence Distribue selon les termes de la licence GPL
  15     
  16     * @note 
  17     
  18     */
  19  
  20     /**
  21  
  22     * @Repertoire: acls
  23     * file: groups_listacls.php
  24  
  25    */    
  26  
  27  
  28    include  "entete.inc.php";
  29    include  "ldap.inc.php";
  30    include  "ihm.inc.php";
  31  
  32    require_once  ("lang.inc.php");
  33    bindtextdomain('se3-acls',"/var/www/se3/locale");
  34    textdomain ('se3-acls');
  35  
  36    // Aide
  37    $_SESSION["pageaide"]="ACL#En_utilisant_l.27interface_SambaEdu";
  38  
  39    $group = $_POST['group'];
  40    $priority_group = $_POST['priority_group'];
  41    
  42  if (!$group) {
  43      $filter = "(cn=*)";
  44  } else {
  45      if ($priority_group == "contient") {
  46                $filter = "(cn=*$group*)";
  47          } elseif ($priority_group == "commence") {
  48                $filter = "(|(cn=Classe_$group*)(cn=Cours_$group*)(cn=Equipe_$group*)(cn=Matiere_$group*)(cn=$group*))";
  49          } else {
  50                 $filter = "(|(cn=Classe_*$group)(cn=Cours_*$group)(cn=Equipe_*$group)(cn=Matiere_*$group)(cn=*$group))";
  51          }
  52  }
  53  
  54  $groups=search_groups($filter);
  55    
  56  echo "<br><br><br><center><B><a href=\"#\" onClick=\"window.close ();\">".gettext("Fermer la fen&#234;tre")."</a></B></center><br><br><br>";
  57  
  58  if (count($groups)) {
  59      if (count($groups)==1) {
  60           echo "<p><STRONG>".count($groups)."</STRONG>".gettext(" groupe r&#233;pond &#224; ces crit&#232;res de recherche")."</p>\n";
  61          } else {
  62                echo "<p><STRONG>".count($groups)."</STRONG>".gettext(" groupes r&#233;pondent &#224; ces crit&#232;res de recherche")."</p>\n";
  63          }
  64            echo "<UL>\n";
  65          echo"<form><select name=\"liste\" onChange=\"Reporter(this)\">";
  66          echo "<option value=\"\">".gettext("Votre choix ...")."</option>";
  67          for ($loop=0; $loop<count($groups);$loop++) {
  68          echo "<option value=\"".$groups[$loop]["cn"]."\">".$groups[$loop]["cn"]."</option>";
  69      }
  70          echo "</form></UL>\n";
  71       
  72  } else {
  73      echo "<STRONG>".gettext("Pas de r&#233;sultats")."</STRONG>".gettext(" correspondant aux crit&#232;res s&#233;lectionn&#233;s.")."<BR>";
  74  }
  75  include ("pdp.inc.php");
  76  ?>


Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1