| [ Index ] |
|
Code source de SPIP 1.9.2c |
1 <?php 2 3 /***************************************************************************\ 4 * SPIP, Systeme de publication pour l'internet * 5 * * 6 * Copyright (c) 2001-2007 * 7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * 8 * * 9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * 10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * 11 \***************************************************************************/ 12 13 if (!defined("_ECRIRE_INC_VERSION")) return; 14 15 include_spip('inc/presentation'); 16 17 // http://doc.spip.org/@exec_calendrier_dist 18 function exec_calendrier_dist() 19 { 20 global $type; 21 22 $date = date("Y-m-d", time()); 23 if ($type == 'semaine') { 24 25 $GLOBALS['afficher_bandeau_calendrier_semaine'] = true; 26 27 $titre = _T('titre_page_calendrier', 28 array('nom_mois' => nom_mois($date), 'annee' => annee($date))); 29 } 30 elseif ($type == 'jour') { 31 $titre = nom_jour($date)." ". affdate_jourcourt($date); 32 } 33 else { 34 $titre = _T('titre_page_calendrier', 35 array('nom_mois' => nom_mois($date), 'annee' => annee($date))); 36 } 37 $ancre = 'calendrier-1'; 38 39 $r = http_calendrier_init('', $type, '','',generer_url_ecrire('calendrier', ($type ? "type=$type" : '')) . "#$ancre"); 40 41 if (_request('var_ajaxcharset')) 42 ajax_retour($r); 43 else { 44 45 $commencer_page = charger_fonction('commencer_page', 'inc'); 46 echo $commencer_page($titre, "accueil", "calendrier"); 47 echo "\n<div> </div>\n<div id='", $ancre, "'>",$r,'</div>'; 48 echo fin_page(); 49 } 50 } 51 52 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
| Généré le : Wed Nov 21 10:20:27 2007 | par Balluche grâce à PHPXref 0.7 |
|