Problème dans la view(affichage calendrier)
Bonjour ,mon problème c'est que j'essaie d'afficher un calendrier dans ma view
mais rien ne s'affiche.
voici mon fichier calendrier.phtml
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| <div id="calendrier">
<div class="calendrier_div_mois_entete">
<div class="calendrier_mois_en_cours">
<span class="linkcalendrier"><a href="ajaxaffiche?month=<?php echo $this->monthnb - 1; ?>&year=<?php echo $this->year; ?>"><<</a></span>
<span><?php echo($this->month.' '.$this->year); ?><?php echo($this->month.' '.$this->year); ?></span>
<span class="linkcalendrier"><a href="ajaxaffiche?month=<?php echo $this->monthnb + 1; ?>&year=<?php echo $this->year; ?>">>></a></span>
</div>
<div class="calendrier_div_les_jours">
<?php for($i = 1; $i <= 7; $i++){?>
<span class="calendrier_span_jours_mois"><?php echo $this->daytab[$i];?></span>
<?php }?>
</div>
</div>
<div class="calendrier_div_mois_contenu">
<?php for($i = 1; $i <= count($this->calendar); $i++) {?>
<span>
<?php for($j = 1; $j <= 7 && $j-$this->firstday+1+(($i*7)-7) <= $this->nbdays; $j++){
if($j-$this->firstday+1+(($i*7)-7) == date("j") && $this->monthnb == date("n") && $this->year == date("Y")) { ?> <span class="current" style="width:107px;height:50px;background-color:silver;"><span style="width:40px;height:20px;background-color:white;float:left;margin-top:-20px;" id="calendrier"><?php echo $this->calendar[$i][$j];?></span></span>
<?php } else { ?><span style="width:107px;height:50px;background-color:silver;"><span style="width:40px;height:20px;background-color:white;float:left;margin-top:-20px;"><?php echo $this->calendar[$i][$j];?></span></span>
<?php } }?>
</span>
<?php }?>
</div>
</div> |
Aidez moi svp!!!