Example #1
0
				$sql="SELECT annee FROM archivage_disciplines a, eleves e WHERE e.login='******' AND e.no_gep=a.INE ORDER BY annee ASC LIMIT 1;";
				//echo "$sql<br />";
				$res_aa=mysqli_query($GLOBALS["mysqli"], $sql);
				if(mysqli_num_rows($res_aa)>0) {
					echo " | ";
					$lig_aa=mysqli_fetch_object($res_aa);
					echo "<a href=\"../mod_annees_anterieures/popup_annee_anterieure.php?id_classe=$id_classe&logineleve=$eleve1&annee_scolaire=$lig_aa->annee&num_periode=3&mode=bull_simp\" onclick=\"afficher_div('div_annees_anterieures','y',-100,-200); affiche_annees_anterieures('$eleve1','$id_classe','$lig_aa->annee');return false;\" target=\"_blank\">";
					echo "Années antérieures";
					echo "</a>";
				}
			}

			// Bibliothèque de fonctions de la page consultation élève.
			include("../eleves/visu_ele_func.lib.php");
			// On extrait un tableau de l'ensemble des infos sur l'élève (bulletins, relevés de notes,... inclus)
			$tab_ele=info_eleve($eleve1);

			if($afficher_absences=="y") {
				if((getSettingValue("active_module_absence")=='y')||
					(getSettingValue("active_module_absence")=='2'&& getSettingValue("abs2_import_manuel_bulletin")=='y')||
					((count($tab_ele['absences'])!=0)&&(getSettingValue("active_module_absence")!='y' && getSettingValue("active_module_absence")!='2'))) {
					// On affiche les absences par défaut
				}
				elseif (getSettingValue("active_module_absence")=='2') {
					echo " | ";
					echo "<span id='pliage_abs'>\n";
					echo "(<em>";
					echo "<a href='#' onclick=\"document.getElementById('div_aff_abs').style.display='';return false;\">Afficher</a>";
					echo " / \n";
					echo "<a href='#' onclick=\"document.getElementById('div_aff_abs').style.display='none';return false;\">Masquer</a>";
					echo " les absences</em>)";
Example #2
0
 $releve_affiche_fax = getSettingValue("releve_affiche_fax") ? getSettingValue("releve_affiche_fax") : "n";
 if ($releve_affiche_fax == "y") {
     $gepiSchoolFax = getSettingValue("gepiSchoolFax");
 }
 if ($releve_affiche_tel == "y") {
     $gepiSchoolTel = getSettingValue("gepiSchoolTel");
 }
 $releve_affiche_INE_eleve = getSettingValue("releve_affiche_INE_eleve") ? getSettingValue("releve_affiche_INE_eleve") : "n";
 $genre_periode = getSettingValue("genre_periode") ? getSettingValue("genre_periode") : "M";
 $activer_photo_releve = getSettingValue("activer_photo_releve") ? getSettingValue("activer_photo_releve") : "n";
 $active_module_trombinoscopes = getSettingValue("active_module_trombinoscopes") ? getSettingValue("active_module_trombinoscopes") : "n";
 //===========================================
 // Bibliothèque de fonctions:
 include "../eleves/visu_ele_func.lib.php";
 // On extrait un tableau de l'ensemble des infos sur l'élève (bulletins, relevés de notes,... inclus)
 $tab_ele = info_eleve($ele_login);
 // 20140522
 $acces_impression_bulletin = false;
 $acces_impression_releve_notes = false;
 if ($acces_releves == "y" || $acces_bulletins == "y") {
     $acces_impression_bulletin = acces_impression_bulletin($ele_login);
     $acces_impression_releve_notes = acces_impression_releve_notes($ele_login);
 }
 $date_debut_log = get_date_debut_log();
 /*
 echo "<pre>";
 print_r($tab_ele);
 echo "</pre>";
 */
 $indice_derniere_classe = count($tab_ele['classe']) - 1;
 if (!isset($tab_ele['classe'][$indice_derniere_classe]['pp'])) {