';
- while($d <= $l) {
- if(($dow == $f) && (! $started))
+ while ($d <= $l) {
+ if (($dow == $f) && (! $started)) {
$started = true;
+ }
$today = (((isset($tddate)) && ($tddate == $d)) ? "class=\"today\" " : '');
$o .= "";
- $day = str_replace(' ',' ',sprintf('%2.2d', $d));
- if($started) {
- if(is_array($links) && isset($links[$d]))
+ $day = str_replace(' ', ' ', sprintf('%2.2d', $d));
+ if ($started) {
+ if (is_array($links) && isset($links[$d])) {
$o .= "$day";
- else
+ } else {
$o .= $day;
+ }
$d ++;
} else {
@@ -518,14 +564,16 @@ function cal($y = 0,$m = 0, $links = false, $class='') {
$o .= ' | ';
$dow ++;
- if(($dow == 7) && ($d <= $l)) {
+ if (($dow == 7) && ($d <= $l)) {
$dow = 0;
$o .= '