Exemple #1
0
         $tab_dates2[] = $lig->date_ct;
     }
     $tab_dev[$date_dev][$cpt]['id_ct'] = $lig->id_ct;
     $tab_dev[$date_dev][$cpt]['id_login'] = $lig->id_login;
     $tab_dev[$date_dev][$cpt]['contenu'] = $lig->contenu;
     //echo " <span style='color:green'>\$tab_dev[$date_dev][$cpt]['contenu']=$lig->contenu</span><br />";
     $cpt++;
 }
 //echo "\$current_ordre=$current_ordre<br />";
 //sort($tab_dates);
 if ($current_ordre == 'ASC') {
     array_multisort($tab_dates, SORT_DESC, SORT_NUMERIC, $tab_dates2, SORT_ASC, SORT_NUMERIC);
 } else {
     array_multisort($tab_dates, SORT_ASC, SORT_NUMERIC, $tab_dates2, SORT_DESC, SORT_NUMERIC);
 }
 $content .= lignes_cdt($tab_dates, $tab_notices, $tab_dev, $dossier_documents, $mode);
 /*
 echo "<div style='border: 1px solid black;'>\n";
 echo $content;
 echo "</div>\n";
 		
 echo "<script type='text/javascript'>
 	if(document.getElementById('div_lien_retour_".$id_groupe."')) {
 		document.getElementById('div_lien_retour_".$id_groupe."').style.display='none';
 	}
 </script>\n";
 */
 $content = html_entete("CDT: " . $nom_detaille_groupe_non_html, 1, 'y', "{$chaine_login_prof}") . $content;
 $content .= html_pied_de_page();
 //echo "\$dossier_cdt=$dossier_cdt<br />";
 //echo "\$nom_fichier=$nom_fichier<br />";
Exemple #2
0
     }
 } else {
     // On a choisi un professeur
     $content .= "<div id='div_lien_retour_" . $id_groupe[$i] . "' class='noprint' style='float:right; width:6em'><a id='lien_retour_" . $id_groupe[$i] . "' href='../index.html'>Retour</a></div>\n";
 }
 $content .= "<a name='cible_lien_id_groupe_" . $id_groupe[$i] . "'></a>\n";
 $content .= "<h1 style='text-align:center;'>Cahiers de textes (" . $gepiSchoolName . " - " . $gepiYear . ")</h1>\n";
 $content .= "<p style='text-align:center;'>Extraction du {$display_date_debut} au {$display_date_fin}</p>\n";
 $content .= "<h2 style='text-align:center;'>Cahier de textes de " . $nom_detaille_groupe[$id_groupe[$i]] . " (<i>{$display_date_debut} - {$display_date_fin}</i>)&nbsp;:</h2>\n";
 unset($tmp_tab);
 $tmp_tab = get_dates_notices_et_dev($id_groupe[$i], "", "", $timestamp_debut_export, $timestamp_fin_export, "y", "y");
 $tab_dates = $tmp_tab[0];
 $tab_notices = $tmp_tab[1];
 $tab_dev = $tmp_tab[2];
 unset($tmp_tab);
 $content .= lignes_cdt($tab_dates, $tab_notices, $tab_dev);
 //================================================================
 echo "<div style='border: 1px solid black;'>\n";
 echo $content;
 echo "</div>\n";
 echo "<script type='text/javascript'>\n\tif(document.getElementById('div_lien_retour_" . $id_groupe[$i] . "')) {\n\t\t//document.getElementById('div_lien_retour_" . $id_groupe[$i] . "').style.display='none';\n\t\tif(document.getElementById('lien_retour_" . $id_groupe[$i] . "')) {\n\t\t\tdocument.getElementById('lien_retour_" . $id_groupe[$i] . "').href='#affichage_page_index';\n\t\t}\n";
 if (isset($chaine_cpt_classe)) {
     echo "\n\t\ttab_cpt_classe=new Array({$chaine_cpt_classe});\n\t\tfor(i=0;i<tab_cpt_classe.length;i++) {\n\t\t\tif(document.getElementById('lien_retour_" . $id_groupe[$i] . "_'+tab_cpt_classe[i])) {\n\t\t\t\tdocument.getElementById('lien_retour_" . $id_groupe[$i] . "_'+tab_cpt_classe[i]).href='#affichage_page_index';\n\t\t\t}\n\t\t}\n";
 }
 echo "\n\t}\n</script>\n";
 //================================================================
 if ($action != 'export_html') {
     $content = html_entete("CDT: " . $nom_detaille_groupe_non_html[$id_groupe[$i]], 1) . $content;
     $content .= html_pied_de_page();
     $f = fopen($dossier_export . "/cahier_texte/" . $nom_fichier[$id_groupe[$i]], "w+");
     fwrite($f, $content);
Exemple #3
0
        $date_dev = strftime("%a %d %b %y", $lig->date_ct);
        if (!in_array($date_dev, $tab_dates)) {
            $tab_dates[] = $date_dev;
            $tab_dates2[] = $lig->date_ct;
        }
        $tab_dev[$date_dev][$cpt]['id_ct'] = $lig->id_ct;
        $tab_dev[$date_dev][$cpt]['id_login'] = $lig->id_login;
        $tab_dev[$date_dev][$cpt]['contenu'] = $lig->contenu;
        $cpt++;
    }
    if ($current_ordre == 'ASC') {
        array_multisort($tab_dates, SORT_DESC, SORT_NUMERIC, $tab_dates2, SORT_ASC, SORT_NUMERIC);
    } else {
        array_multisort($tab_dates, SORT_ASC, SORT_NUMERIC, $tab_dates2, SORT_DESC, SORT_NUMERIC);
    }
    $html .= lignes_cdt($tab_dates, $tab_notices, $tab_dev);
    //================================================================
    echo "<div style='border: 1px solid black;'>\n";
    echo $html;
    echo "</div>\n";
    echo "<script type='text/javascript'>\n\tif(document.getElementById('div_lien_retour_" . $id_groupe[$i] . "')) {\n\t\t//document.getElementById('div_lien_retour_" . $id_groupe[$i] . "').style.display='none';\n\t\tif(document.getElementById('lien_retour_" . $id_groupe[$i] . "')) {\n\t\t\tdocument.getElementById('lien_retour_" . $id_groupe[$i] . "').href='#affichage_page_index';\n\t\t}\n";
    if (isset($chaine_cpt_classe)) {
        echo "\n\t\ttab_cpt_classe=new Array({$chaine_cpt_classe});\n\t\tfor(i=0;i<tab_cpt_classe.length;i++) {\n\t\t\tif(document.getElementById('lien_retour_" . $id_groupe[$i] . "_'+tab_cpt_classe[i])) {\n\t\t\t\tdocument.getElementById('lien_retour_" . $id_groupe[$i] . "_'+tab_cpt_classe[i]).href='#affichage_page_index';\n\t\t\t}\n\t\t}\n";
    }
    echo "\n\t}\n</script>\n";
    //================================================================
    $html = html_entete("CDT: " . $nom_detaille_groupe_non_html[$id_groupe[$i]], 1) . $html;
    $html .= html_pied_de_page();
    echo "<hr width='200px' />\n";
}
echo "<p><br /></p>\n";