<?php
/* $Id: calendriers.php 90 2005-01-12 17:07:23Z anarcat $ */
$now_b = $now_a = new Date($date->unixtimestamp());
if ($now_a->getDay() >= 15) {
$now_b->setMonth($m = $now_b->getMonth() + 1);
if ($m > 12) {
$now_b->setMonth(1);
$now_b->setYear($now_b->getYear() + 1);
}
$style_b = "nohighlight";
} else {
$now_a->setMonth($m = $now_a->getMonth() - 1);
if ($m < 1) {
$now_a->setMonth(12);
$now_a->setYear($now_a->getYear() - 1);
}
$style_a = "nohighlight";
}
?>
<div id="calendar_container">
<div id="calendar_a" class="<?=$style_a?>">
<?php
print ecdDate::calendar_str($now_a, 0, null);
?>
</div>
<div id="calendar_b" class="<?=$style_b?>">
<?php
print ecdDate::calendar_str($now_b, 0, null);
?>
</div>
</div>