[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3master/var/www/se3/annu/ -> pop_group.php (source)

   1  <?php
   2  
   3  
   4     /**
   5     
   6     * Expedie une popup a un groupe
   7     * @Version $Id: pop_group.php 2932 2008-05-04 08:12:26Z plouf $ 
   8     
   9     * @Projet LCS / SambaEdu 
  10     
  11     * @auteurs Philippe Peter
  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     * @Repertoire: annu
  22     * file: pop_group.php
  23     */
  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-annu',"/var/www/se3/locale");
  34  textdomain ('se3-annu');
  35  
  36  
  37  
  38  if ((is_admin("annu_can_read",$login)=="Y") || (is_admin("Annu_is_admin",$login)=="Y") || (is_admin("savajon_is_admin",$login)=="Y"))  {
  39      
  40      $_SESSION["pageaide"]="Annuaire";
  41  
  42      $filter=$_GET['filter'];
  43  
  44      $group=search_groups ("(cn=".$filter.")");
  45      $uids = search_uids ("(cn=".$filter.")");
  46      $people = search_people_groups ($uids,"(sn=*)","cat");
  47        #$TimeStamp_1=microtime();
  48        #############
  49        # DEBUG     #
  50        #############
  51        #echo "<u>debug</u> :Temps de recherche = ".duree($TimeStamp_0,$TimeStamp_1)."&nbsp;s<BR><BR>";
  52        #############
  53        # Fin DEBUG #
  54        #############
  55      if (count($people)) {
  56          // affichage des r?sultats
  57          // Nettoyage des _ dans l'intitul? du groupe
  58          $intitule =  strtr($filter,"_"," ");
  59          echo "<H1>".gettext("Pop Up vers")." $intitule <font size=\"-2\">".$group[0]["description"]."</font></H1>\n";
  60          echo gettext("Il y a ").count($people).gettext(" membre");
  61               if ( count($people) >1 ) echo "s";
  62              echo gettext(" dans ce groupe")."<BR>\n";
  63  
  64                // formulaire popup
  65          echo "<B><H3>".gettext("Message du Pop Up pour")." $intitule:</H3></B><BR>";
  66          echo "<form action=\"respop_group.php\" method=\"post\">";
  67          echo "<textarea cols=60 rows=5 name=\"message\" maxlength=\"1200\"></textarea>";
  68          echo "<br>";
  69          echo "<br>";
  70          echo "<input type=hidden name=\"nomgroupe\" value=\"".$filter."\">\n";
  71          echo "<br>";
  72          echo "<input type=\"submit\" value=\"".gettext("Envoyer le Pop Up")."\">";
  73          echo "</form>";
  74      } else {
  75          echo " <STRONG>".gettext("Pas de membres")."</STRONG> ".gettext(" dans le groupe")." $filter.<BR>";
  76          }
  77  }
  78  
  79  include ("pdp.inc.php");
  80  ?>


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