[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

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

   1  <?php
   2  
   3  /**
   4     * 
   5    
   6     * @Version $Id: teacher.php 8596 2015-03-16 12:07:14Z plouf $
   7     
   8     * @Projet LCS / SambaEdu 
   9     * Fonctions Interface Homme/Machine
  10     
  11     * @Auteurs Swirly
  12     
  13     * @Note
  14    * 
  15     * @Licence Distribue sous la licence GPL
  16     */
  17  
  18     /**
  19  
  20     * file: teacher.php
  21     * @Repertoire: annu/ 
  22     */  
  23  
  24  
  25  require_once("teacher.view.php");
  26  
  27  // HTMLPurifier
  28  require_once  ("traitement_data.inc.php");
  29  
  30  global $SmartySe3,$Se3Ldap;
  31  
  32  $page = (isset($_POST['page'])) ? $_POST['page'] : 'classes';
  33  $action = (isset($_POST['action'])) ? $_POST['action'] : 'none';
  34  
  35  $SmartySe3->menutab("Classes",'classes');
  36  $SmartySe3->menutab("Mati&eacute;res",'matieres');
  37  
  38  $login=isauth();
  39  if (!(are_you_in_group($login,"Profs")=="true")) die("Non autorise...");
  40  
  41  
  42  switch ($page)  {
  43  case 'classes':
  44    $SmartySe3->activetab("Classes");
  45    switch ($action) {
  46    case 'validate':
  47      $Se3Ldap = new Se3Ldap(false);
  48      $message=TeacherClassesProcess();
  49      TeacherClassesView($message);
  50      break;
  51    default:
  52      $Se3Ldap = new Se3Ldap();
  53      TeacherClassesView();
  54    } 
  55    break;
  56  case 'matieres':
  57    $SmartySe3->activetab("Mati&eacute;res");
  58    switch ($action) {
  59    case 'validate':
  60      $Se3Ldap = new Se3Ldap(false);
  61      $message=TeacherMatieresProcess();
  62      TeacherMatieresView($message);
  63      break;
  64    default:
  65      $Se3Ldap = new Se3Ldap();
  66      TeacherMatieresView();
  67    } 
  68    break;
  69  default:
  70    die ();
  71  }
  72  
  73  ?>


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