[ Index ]
 

Code source de SPIP Agora 1.4

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/Agora1-4/ecrire/ -> calendrier_jour.php (source)

   1  <?php
   2  /*****************************************************
   3  * This file is part of Agora, web based content management system.
   4  *
   5  * Agora is free software; you can redistribute it and/or modify
   6  * it under the terms of the GNU General Public License as published by
   7  * the Free Software Foundation; version 2 of the License.
   8  *
   9  * Agora is distributed in the hope that it will be useful,
  10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12  * GNU General Public License for more details (file "COPYING").
  13  *
  14  * Copyright © Arnaud Martin, Antoine Pitrou et Philippe Rivière.
  15  * List of authors detailed in "copyright_fr.html" file.
  16  * E-mail : agora@sig.premier-ministre.gouv.fr
  17  * Web site : http://www.agora.gouv.fr
  18  *****************************************************/
  19  include  ("inc.php");
  20  
  21  include_ecrire  ("inc_logos.php");
  22  include_ecrire  ("inc_mots.php");
  23  include_ecrire  ("inc_documents.php");
  24  include_ecrire  ("inc_agenda.php");
  25  
  26  // date du jour
  27  $today = getdate(time());
  28  $jour_today = $today["mday"];
  29  $mois_today = $today["mon"];
  30  $annee_today = $today["year"];
  31  
  32  // sans arguments => mois courant
  33  if (!$mois) {
  34      $jour = $today["mday"];
  35      $mois = $today["mon"];
  36      $annee = $today["year"];
  37  }
  38  
  39  $date = date("Y-m-d", mktime(0, 0, 0, $mois, $jour, $annee));
  40  $jour = journum($date);
  41  $mois = mois($date);
  42  $annee = annee($date);
  43  
  44  ///// debut de la page
  45  debut_page(nom_jour("$annee-$mois-$jour"). " " . affdate_jourcourt("$annee-$mois-$jour"), "redacteurs", "calendrier");
  46  
  47  //////// parents
  48  
  49  //barre_onglets("calendrier", "jour");
  50  
  51  if ($spip_ecran == "large") {
  52      $largeur_table = 974;
  53  }
  54  else {
  55      $largeur_table = 750;
  56  }
  57  
  58  echo "<div>&nbsp;</div>";
  59  echo "<table width='$largeur_table'>";
  60  echo "<TR><TD style='text-align:$spip_lang_left;'><A HREF='calendrier_jour.php?jour=" . ($jour
  61                                                                                              - 1). "&mois=$mois&annee=$annee'><img src='img_pack/fleche-$spip_lang_left.png' alt='&lt;&lt;&lt;' width='12' height='12' border='0'></A></TD>";
  62  echo "<TD style='text-align:center;'>";
  63  
  64  echo "<div style='float: $spip_lang_left; width: 150px; align: left;'>";
  65  
  66  if ($jour != $jour_today OR $mois != $mois_today OR $annee != $annee_today) {
  67      icone_horizontale(_T("info_aujourdhui"). "<br>" . affdate_jourcourt("$annee_today-$mois_today-$jour_today"),
  68                        "calendrier_jour.php",
  69                        "calendrier-24.gif",
  70                        "",
  71                        "center");
  72  }
  73  
  74  echo "&nbsp;</div>";
  75  
  76  echo "<div style='float: $spip_lang_right; width: 120px;'>";
  77  echo "<img src='img_pack/cal-jour.gif' alt='jour' width='26' height='20' border='0' style='border: 1px solid black;'>";
  78  echo "&nbsp;";
  79  echo "<a href='calendrier_semaine.php?mois=$mois&annee=$annee&jour=$jour'><img src='img_pack/cal-semaine.gif' alt='semaine' width='26' height='20' border='0' style='filter: alpha(opacity=50);'></a>";
  80  echo "&nbsp;";
  81  echo "<a href='calendrier.php?mois=$mois&annee=$annee&jour=$jour'><img src='img_pack/cal-mois.gif' alt='mois' width='26' height='20' border='0' style='filter: alpha(opacity=50);'></a>";
  82  echo aide("messcalen");
  83  echo "</div>";
  84  
  85  echo "<FONT FACE='arial,helvetica,sans-serif' SIZE=4><B>" . nom_jour("$annee-$mois-$jour"). " " . affdate_jourcourt(
  86                                                                                                        "$annee-$mois-$jour"). "</B></FONT>";
  87  
  88  echo "</TD>";
  89  echo "<TD style='text-align:$spip_lang_right;'><A HREF='calendrier_jour.php?jour=" . ($jour
  90                                                                                           + 1). "&mois=$mois&annee=$annee'><img src='img_pack/fleche-$spip_lang_right.png' alt='&gt;&gt;&gt;' width='12' height='12' border='0'></A></TD></TR>";
  91  
  92  echo "</table>";
  93  
  94  debut_gauche();
  95  
  96  agenda($mois - 1, $annee, $jour, $mois, $annee);
  97  agenda($mois, $annee, $jour, $mois, $annee);
  98  agenda($mois + 1, $annee, $jour, $mois, $annee);
  99  
 100  afficher_taches();
 101  afficher_ical ($connect_id_auteur);
 102  
 103  // afficher en reduction le tableau du jour suivant
 104  if ($spip_ecran == "large") {
 105      creer_colonne_droite();
 106      calendrier_jour($jour + 1, $mois, $annee, "col");
 107  }
 108  
 109  debut_droite();
 110  
 111  echo "<div>&nbsp;</div>";
 112  calendrier_jour($jour, $mois, $annee, "large");
 113  
 114  fin_page();
 115  ?>


Généré le : Sat Feb 24 14:40:03 2007 par Balluche grâce à PHPXref 0.7