foreach ($classes as $classe) { $id_classe = $classe->getId(); $nomClasse = $classe->getNom(); $nomCompletClasse = $classe->getNomComplet(); /* echo " <button style='background-color:plum' onclick=\"javascript: getWinDevoirsDeLaClasse().setAjaxContent('./ajax_devoirs_classe.php?id_classe=$id_classe&today='+getCalendarUnixDate(),{ onComplete:function(transport) {initWysiwyg();}}); \">$nomClasse</button>"; */ echo " <button style='background-color:plum' onclick=\"javascript:\n\t\t\t\t\t\t\tgetWinDevoirsDeLaClasse().setAjaxContent('./ajax_devoirs_classe.php?id_classe={$id_classe}&today='+getCalendarUnixDate());\n\t\t\t\t\t\t\">{$nomClasse}</button>"; } echo "</div>\n"; if (getSettingAOui('cdt_afficher_volume_docs_joints')) { $volume_cdt_groupe = volume_docs_joints($groupe->getId()); if ($volume_cdt_groupe != 0) { $volume_cdt_groupe_cr = volume_docs_joints($groupe->getId(), "devoirs"); $volume_cdt_groupe_cr_h = volume_human($volume_cdt_groupe_cr); $volume_cdt_groupe_h = volume_human($volume_cdt_groupe); $info_volume = $volume_cdt_groupe_cr_h . "/" . $volume_cdt_groupe_h; //mb_strlen($info_volume) echo "<div style='float:right; width:10em; text-align:center; background: " . $color_fond_notices[$type_couleur] . ";' title=\"Les documents joints aux devoirs occupent {$volume_cdt_groupe_cr_h} sur un total de {$volume_cdt_groupe_h} pour l'enseignement de " . $groupe->getName() . " " . $groupe->getDescriptionAvecClasses() . ".\">" . $info_volume . "</div>"; } } echo "<select id=\"id_groupe_colonne_droite\" onChange=\"javascript:\n\t\t\tupdateListeNoticesChaine();\n\t\t\tid_groupe = (\$A(\$('id_groupe_colonne_droite').options).find(function(option) { return option.selected; }).value);\n\t\t\tgetWinEditionNotice().setAjaxContent('./ajax_edition_devoir.php?today=" . $today . "&id_groupe=' + id_groupe,\n \t\t\t { onComplete:function() {initWysiwyg();}}\n \t\t);\n\t\t\tcompte_rendu_en_cours_de_modification('aucun');\n\t\t\">"; echo "<option value='-1'>choisissez un groupe</option>\n"; foreach ($utilisateur->getGroupes() as $group_iter) { $sql = "SELECT 1=1 FROM j_groupes_visibilite WHERE id_groupe='" . $group_iter->getId() . "' AND domaine='cahier_texte' AND visible='n';"; $test_grp_visib = mysqli_query($GLOBALS["mysqli"], $sql); if (mysqli_num_rows($test_grp_visib) == 0) { echo "<option id='colonne_droite_select_group_option_" . $group_iter->getId() . "' value='" . $group_iter->getId() . "'"; if ($groupe->getId() == $group_iter->getId()) {
getWinListeNoticesPrivees().setAjaxContent('./ajax_liste_notices_privees.php?id_groupe=".$groupe->getId()."&today='+getCalendarUnixDate(),{ onComplete:function(transport) {initWysiwyg();}}); \">Voir NP</button>\n"; */ // Voir les notices privees: echo " <button style='background-color:" . $color_fond_notices['p'] . "' onclick=\"javascript:\n\t\t\t\t\t\tgetWinListeNoticesPrivees().setAjaxContent('./ajax_liste_notices_privees.php?id_groupe=" . $groupe->getId() . "&today='+getCalendarUnixDate());\n\t\t\t\t\t\" title=\"" . $tab_termes_CDT2['attribut_title_CDT2_Voir_NP'] . "\">Voir NP</button>\n"; echo "<button style='background-color:lightblue' onclick=\"javascript:\n\t\t\t\t\t\tgetWinBanqueTexte().setAjaxContent('./ajax_affichage_banque_texte.php',{});\n\t\t\t\t\t\" title=\"" . $tab_termes_CDT2['attribut_title_CDT2_Banque'] . "\">Banque</button>\n"; if (file_exists("./archives.php")) { // Mon fichier contient juste: /* <?php echo "<iframe src='../documents/archives/index.php' width='100%' height='100%'/>"; ?> */ echo "<button style='background-color:bisque' onclick=\"javascript:\n\t\t\t\t\t\tgetWinArchives().setAjaxContent('./archives.php',{});\n\t\t\t\t\t\" title=\"" . $tab_termes_CDT2['attribut_title_CDT2_Archives'] . "\">Archives</button>\n"; } echo "<a href=\"javascript:insere_texte_dans_ckeditor(document.getElementById('div_tableau_eleves').innerHTML)\" title='Insérer un tableau de la liste des élèves dans le texte de la notice'><img src='../images/icons/tableau.png' width='16' height='16' alt='Insérer un tableau de la liste des élèves dans le texte de la notice' /></a>"; if (getSettingAOui('cdt_afficher_volume_docs_joints')) { $volume_cdt_groupe = volume_docs_joints($groupe->getId()); if ($volume_cdt_groupe != 0) { $volume_cdt_groupe_cr = volume_docs_joints($groupe->getId(), "compte_rendus"); $volume_cdt_groupe_cr_h = volume_human($volume_cdt_groupe_cr); $volume_cdt_groupe_h = volume_human($volume_cdt_groupe); $info_volume = $volume_cdt_groupe_cr_h . "/" . $volume_cdt_groupe_h; //mb_strlen($info_volume) echo "<div style='float:right; width:10em; text-align:center; background: " . $color_fond_notices[$type_couleur] . ";' title=\"Les documents joints aux compte-rendus occupent {$volume_cdt_groupe_cr_h} sur un total de {$volume_cdt_groupe_h} pour l'enseignement de " . $groupe->getName() . " " . $groupe->getDescriptionAvecClasses() . ".\">" . $info_volume . "</div>"; } } echo "<br /><br />\n"; // Nombre de notices pour ce jour : $num_notice = NULL; echo "<fieldset style=\"border: 1px solid grey; padding-top: 8px; padding-bottom: 8px; margin-left: auto; margin-right: auto; background: " . $color_fond_notices[$type_couleur] . ";\">\n"; if (isset($info)) { echo "<legend style=\"border: 1px solid grey; background: " . $color_fond_notices[$type_couleur] . "; font-variant: small-caps;\"> Informations générales - " . $groupe->getNameAvecClasses(); } else { echo "<legend style=\"border: 1px solid grey; background: " . $color_fond_notices[$type_couleur] . "; font-variant: small-caps;\"> Compte rendu - " . $groupe->getNameAvecClasses();
echo "<td>" . $nb_ct_devoirs . "</td>"; // Modif pour le statut 'autre' if ($_SESSION["statut"] == 'autre' or $_SESSION["statut"] == 'administrateur' or $_SESSION["statut"] == 'scolarite') { //echo '<td><a href="../cahier_texte/see_all.php?id_groupe='.$id_groupe.'&id_classe='.$id_classe.'">Voir</a></td>'; echo '<td><a href="../cahier_texte/see_all.php?id_groupe=' . $id_groupe . '&id_classe=' . $id_classe . '&retour_cdt=visa_cdt">Voir</a></td>'; } else { echo "<td><a href='../public/index.php?id_groupe=" . $id_groupe . "' target='_blank'>Voir</a></td>"; } echo "<td><center><input type=\"checkbox\" name=\"visa_" . $iter . "\" />\n\t\t\t\t\t\t<input type=\"hidden\" name=\"prof_" . $iter . "\" value=\"" . $id_prop . "\" />\n\t\t\t\t\t\t<input type=\"hidden\" name=\"groupe_" . $iter . "\" value=\"" . $id_groupe . "\" />\n\t\t\t</center></td>"; echo "<td>" . $nb_ct_visa; //echo "$sql<br />"; //echo "\$nb_ct_visa=$nb_ct_visa\<br />"; echo "</td>"; if (isset($affichage_volume_docs_joints)) { echo "<td>"; $volume_cdt_groupe = volume_docs_joints($id_groupe); if ($volume_cdt_groupe != 0) { $total_volumes_docs_joints += $volume_cdt_groupe; echo volume_human($volume_cdt_groupe); } else { echo "0"; } echo "</td>"; } echo "</tr>"; $iter++; } echo "</table></form>"; if (isset($affichage_volume_docs_joints) && $total_volumes_docs_joints != 0) { echo "<p>Volume total des documents joints : " . volume_human($total_volumes_docs_joints) . "</p>\n"; }