[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3-teachers/www/includes/ -> teacher.view.php (source)

   1  <?php
   2  
   3  
   4  /**
   5     * Fonctions utilisées par la page teacher.php
   6    
   7     * @Version $Id: teacher.view.php 8597 2015-03-16 12:08:15Z plouf $
   8     
   9     * @Projet LCS / SambaEdu 
  10     * Fonctions Interface Homme/Machine
  11     
  12     * @Auteurs Swirly
  13     
  14     * @Note
  15    * 
  16     * @Licence Distribue sous la licence GPL
  17     */
  18  
  19     /**
  20  
  21     * file: teacher.view.php
  22     * @Repertoire: includes/ 
  23     */  
  24  
  25  
  26  require_once ("teacher.inc.php");
  27  require_once("se3-smarty.classe.php");
  28  require_once  ("lang.inc.php");
  29  
  30  // HTMLPurifier
  31  require_once  ("traitement_data.inc.php");
  32  
  33  function TeacherClassesView($message='') {
  34    global $SmartySe3,$Se3Ldap,$login;
  35  
  36    $login=isauth();
  37    $people = new people();
  38    $people->uid = $login;
  39  
  40    $equipe=array();
  41    $equipes_ldap = $Se3Ldap->get_equipes();
  42    $equipes_in=$people->get_equipes();
  43    
  44    foreach($equipes_ldap as $equipe=>$desc) {
  45      $equipes[$equipe]['desc']=$desc;
  46      $equipes[$equipe]['cn']=$equipe;
  47      if (isset($equipes_in[$equipe])) {
  48        $equipes[$equipe]['member']=true; 
  49      } else {
  50        $equipes[$equipe]['member']=false; 
  51      }
  52    }  
  53    asort($equipes);
  54    $SmartySe3->assign('equipes',$equipes);
  55    if ($message != '' ) $SmartySe3->assign('message',$message);
  56  
  57    bindtextdomain('se3-teacher',"/var/www/se3/locale");
  58    textdomain ('se3-teacher');
  59    
  60    $SmartySe3->assign('title',"Gestion des classes");
  61    $SmartySe3->display('se3.annu.teacher.classes.tpl');
  62  
  63    include ("pdp.inc.php");
  64  
  65  }
  66  
  67  function TeacherMatieresView($message='') {
  68    global $SmartySe3,$login,$Se3Ldap;
  69  
  70    $login=isauth();
  71  
  72    $people = new people();
  73    $people->uid = $login;
  74  
  75    $matiere=array();
  76    $matieres_ldap = $Se3Ldap->get_matieres();
  77    $matieres_in=$people->get_matieres();
  78    
  79    foreach($matieres_ldap as $matiere=>$desc) {
  80      $matieres[$matiere]['desc']=$desc;
  81      $matieres[$matiere]['cn']=$matiere;
  82      if (isset($matieres_in[$matiere])) {
  83        $matieres[$matiere]['member']=true; 
  84      } else {
  85        $matieres[$matiere]['member']=false; 
  86      }
  87    }  
  88    asort($matieres);
  89    $SmartySe3->assign('matieres',$matieres);
  90    if ($message != '' ) $SmartySe3->assign('message',$message);
  91  
  92    bindtextdomain('se3-teacher',"/var/www/se3/locale");
  93    textdomain ('se3-teacher');
  94    
  95    $SmartySe3->assign('title',"Gestion des mati&egrave;res");
  96    $SmartySe3->display('se3.annu.teacher.matieres.tpl');
  97  
  98    include ("pdp.inc.php");
  99  
 100  }
 101  ?>


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