Example #1
0
 protected function discipline()
 {
     global $mod_disc_terme_incident, $gepiPath;
     $this->b = 0;
     /*
     if(($_SESSION['statut']=='eleve')) {
     	if(getSettingValue('visuEleDisc')=='y') {
     		$this->creeNouveauItem("/mod_discipline/visu_disc.php",
     				"Discipline",
     				"Incidents vous concernant.");
     	}
     }
     elseif(($_SESSION['statut']=='responsable')) {
     	if(getSettingValue('visuRespDisc')=='y') {
     		$this->creeNouveauItem("/mod_discipline/visu_disc.php",
     				"Discipline",
     				"Incidents concernant les élèves/enfants dont vous êtes responsable.");
     	}
     }
     else {
     */
     $temoin_disc = "";
     $cpt_disc = get_temoin_discipline_personnel();
     if ($cpt_disc > 0) {
         $DiscTemoinIncidentTaille = getPref($_SESSION['login'], 'DiscTemoinIncidentTaille', 16);
         $temoin_disc = " <img src='{$gepiPath}/images/icons/flag2.gif' width='{$DiscTemoinIncidentTaille}' height='{$DiscTemoinIncidentTaille}' title=\"Un ou des " . $mod_disc_terme_incident . "s ({$cpt_disc}) ont été saisis dans les dernières 24h ou depuis votre dernière connexion.\" />";
     }
     $this->creeNouveauItem("/mod_discipline/index.php", "Discipline" . $temoin_disc, "Signaler des incidents, prendre des mesures, des sanctions.");
     //}
     if ($this->b > 0) {
         $this->creeNouveauTitre('accueil', "Discipline", 'images/icons/document.png');
         return true;
     }
 }
     $menus .= '       <li><a href="' . $gepiPath . '/edt_organisation/index_edt.php?visioedt=prof1"' . insert_confirm_abandon() . '>EDT prof</a></li>' . "\n";
     $menus .= '       <li><a href="' . $gepiPath . '/edt_organisation/index_edt.php?visioedt=salle1"' . insert_confirm_abandon() . '>EDT salle</a></li>' . "\n";
     $menus .= '       <li><a href="' . $gepiPath . '/edt_organisation/index_edt.php?visioedt=eleve1"' . insert_confirm_abandon() . '>EDT élève</a></li>' . "\n";
     $menus .= '   </ul>' . "\n";
     $menus .= '</li>' . "\n";
 }
 if (getSettingAOui('active_edt_ical')) {
     $menus .= '<li class="li_inline"><a href="' . $gepiPath . '/edt/index.php" ' . insert_confirm_abandon() . ' title="Emplois du temps importés à l\'aide de fichiers ICAL/ICS.">EDT Ical/Ics</a></li>' . "\n";
 }
 //=======================================================
 //=======================================================
 // Module discipline
 if (getSettingValue("active_mod_discipline") == 'y') {
     $temoin_disc = "";
     if (getPref($_SESSION['login'], 'DiscTemoinIncidentScol', "n") == "y" || getPref($_SESSION['login'], 'DiscTemoinIncidentScolTous', "n") == "y") {
         $cpt_disc = get_temoin_discipline_personnel();
         if ($cpt_disc > 0) {
             $DiscTemoinIncidentTaille = getPref($_SESSION['login'], 'DiscTemoinIncidentTaille', 16);
             $temoin_disc = " <img src='{$gepiPath}/images/icons/flag2.gif' width='{$DiscTemoinIncidentTaille}' height='{$DiscTemoinIncidentTaille}' title=\"Un ou des " . $mod_disc_terme_incident . "s ({$cpt_disc}) ont été saisis dans les dernières 24h ou depuis votre dernière connexion.\" />";
         }
     }
     $menus .= '<li class="li_inline"><a href="' . $gepiPath . '/mod_discipline/index.php"' . insert_confirm_abandon() . '>Discipline</a>' . $temoin_disc . '</li>' . "\n";
 }
 //=======================================================
 //=======================================================
 // Gestion
 $menus .= '<li class="li_inline"><a href="#"' . insert_confirm_abandon() . '>&nbsp;Gestion</a>' . "\n";
 $menus .= '   <ul class="niveau2">' . "\n";
 $menus .= '       <li class="niveau3"><a href="' . $gepiPath . '/eleves/recherche.php"' . insert_confirm_abandon() . ' title="Effectuer une recherche sur une personne (élève, responsable ou personnel)">Rechercher</a>' . "</li>\n";
 $menus .= '       <li class="plus"><a href="' . $gepiPath . '/eleves/index.php"' . insert_confirm_abandon() . '>Elèves</a>' . "\n";
 $menus .= '           <ul class="niveau3">' . "\n";