Example #1
0
                if ($lig->note_sur != 20) {
                    $info_devoir .= "/" . $lig->note_sur;
                }
            }
            $info_devoir .= "\nCette note concerne la période " . $lig->periode;
            $html .= "\n\t<div id='div_cn' style='float:left;width:99%; border-bottom: 1px solid black; margin-right:3px; margin-top:3px; margin-bottom:3px; background-color:" . $tab_couleur_matiere[$tab_group_edt[$lig->id_groupe]['matiere']['matiere']] . ";' class='fieldset_opacite50' title=\"{$info_devoir}\">\n\t\t<div style='float:right; text-align:right; width:4em;'>\n\t\t\t" . $info_note . "\n\t\t</div>\n\n\t\t<strong>{$current_matiere_cn}</strong><br />\n\t\t<span style='font-size:" . $font_size2 . "pt'>" . formate_date($lig->date) . "</span>" . $info_moy_classe . "\n\t</div>";
        }
    }
    // class='infobulle_corps'
    echo "\n<div style='float:left; width:" . $largeur_cn . "px; min-height:" . ($y1 + 5) . "px; margin-right:" . $marge_droite . "px; margin-bottom:" . $marge_droite . "px; border:1px solid black; padding: 5px; background-color:" . $tab_couleur_onglet['releves'] . ";'>" . $html . "</div>";
    $x_courant += $largeur_cn;
}
//=================================
//=================================
// Cadre CDT
if (getSettingAOui('active_cahiers_texte') && acces_cdt_eleve($_SESSION['login'], $login_eleve)) {
    $largeur_cdt = 300;
    $class_notice_dev_fait = "color_fond_notices_t_fait";
    $class_notice_dev_non_fait = "";
    $CDTPeutPointerTravailFait = getSettingAOui('CDTPeutPointerTravailFait' . ucfirst($_SESSION['statut']));
    if ($CDTPeutPointerTravailFait) {
        $tab_etat_travail_fait = get_tab_etat_travail_fait($login_eleve);
        echo js_cdt_modif_etat_travail();
    }
    $html = "";
    $html .= "\n<style type='text/css'>\n\t.color_fond_notices_t_fait {\n\t\tbackground-color:grey;\n\t}\n</style>";
    $html .= "<div id='div_cdt_contenu'>";
    $html .= travaux_a_faire_cdt_jour($login_eleve, $id_classe);
    $html .= "</div>";
    echo "\n<div id='div_cdt' style='float:left; width:" . $largeur_cdt . "px; min-height:" . ($y1 + 5) . "px; margin-right:" . $marge_droite . "px; margin-bottom:" . $marge_droite . "px; border:1px solid black; padding: 5px; background-color:" . $tab_couleur_onglet['cdt'] . ";' title=\"Dans ce cadre, les travaux à faire pour la date choisie sont affichés.\nPour consulter les comptes-rendus de séance, cliquez sur la loupe en haut à droite de ce cadre CDT.\">" . $html . "</div>";
}
Example #2
0
             $acces_absences = "y";
         }
         if ($rep_d['nom_fichier'] == '/voir_anna' and $rep_d['autorisation'] == 'V') {
             $acces_anna = "y";
         }
         if ($rep_d['nom_fichier'] == '/mod_discipline/saisie_incident.php' and $rep_d['autorisation'] == 'V') {
             $acces_discipline = "y";
         }
     }
     // A GERER $acces_discipline="y";
 }
 // A REVOIR par la suite
 $active_cahiers_texte = getSettingValue("active_cahiers_texte");
 if ($active_cahiers_texte == 'y') {
     $acces_cdt = "n";
     if (acces_cdt_eleve($_SESSION['login'], $ele_login)) {
         $acces_cdt = "y";
     }
 } else {
     $acces_cdt = "n";
 }
 $test_outils_comp = sql_query1("select count(outils_complementaires) from aid_config where outils_complementaires='y'");
 if ($test_outils_comp != 0) {
     $acces_fp = "y";
 } else {
     $acces_fp = "n";
 }
 $active_mod_discipline = getSettingValue("active_mod_discipline");
 if ($active_mod_discipline != 'y') {
     $acces_discipline = "n";
 }