Stanload: Kalender-Skript: letzter Tag (Mo.) im Monat wird nicht angezeigt

Beitrag lesen

Hallöchen,

ich habe hier ein kleines Problemchen bei einem Kalender-Skript (siehe Link unten): der 28. Februar wird erstaunlicherweise nicht angezeigt und ich weiß zum Teufel nicht wieso. Gleiches gilt z.B. auch für den 30. Mai 2005.

Irgendwie wird die letzte Zeile, wenn es dort nur einen Tag gibt, nicht ausgegeben :-(.

Hier einfach einmal das Coding:
...
&php?php
monthonthissetsseGET_GET['y']) &ampregmmatch; preg_match('/^\GET,2}$/',$_GET['m']) &GET;amp;& $_GEGETm'] &ampdate 13) ? $_GET[year : dissetn')GETr />$year = (issetpregEmatch]) &&amGETmp; preg_matGET'/^\d{4}date$_GET['y'])) daysGETdate] : dmktime');
months = year('t',mktime(0,0,startncol1,$date));
mktimer />$stamonthl = year('w',mktime(0,0,0,rowsth,ceileadays1;

$roday= ceil($days/7);arr month />array1;

$arr_month = array('Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','Noechoer','Dtableeid);
calendarcho '<table id=&amprevomonthendarmonthquot;>month />
$prev_yearh = (monthh==1) ? year $montyear
$prev_yenext monthth==1monthyear-1 : $yeamonth />
$next_yearh = (monthh==12) ? year$monthyearbr />$next_yeecho ($montr==12) ? thear+1 : $yhref

basename'<trPHPpSELF<th&prevgmonthp;lt;a ampf=&ampprevtyearasename($_SERVER[laquoSELF']).'?m='.$pthv_month.thacolspanamp;y='.$prev_year.'&arr;month&amonth;&ampyearuo;&amptht;/a&amptht;<hrefamp;gt;&abasename colspan=&aPHPqSELF5"next;month$arr_moamp[$montnext.year$year.'</traquo;gt;<th&ath;gt;&tr;a href="echosenametr_SERVER[tdHclassF']).'?headerext_month.Moamp;atd;amp;y='tdnclassear.'&aheadert;>Dimp;amtdraquo;&atd;class&gtheaderlt;/th&ampMit;&amtdlt;/tr&atd;class

headercho '&Do;tr&atd;gt;&amptdtclasslass=&aheadert;header&quottdamp;gt;Mtdaclass;/td&amheaderamp;lt;td class=&tdp;quot;htddclassp;quot;headert;Di</td&atd;gt;&tr;td class=&quoforeader&quorowsmp;gt;Mi</td&echogt;&amtrlt;td class=&quostartdcolamp;qstartacolgt;Do</tstart;col<td claif=&startucolheader"&adaygt;Fr</td&for&aaa;lstartccols=aamp;quotaaeader&quotechop;gt;Stdamp;lt;/tnbspp;gt;&tdp;lt;td class="headeformp;qustartmcolt;So</td></trdayp;gt;daybr /date />for($a=0;$a&ampmonthrowdate++)
{
eyear'&amdate;tr>';
td class /> $sttodayol = ($start_day == -1)td 6 : $start_ctd;
day /> if(tdtart_col&gtechoampdayp;&amdaysp; $day==td
{
nbsp>  fotd$aa=$start_day;$aa&gtday$aa--)
  { echo '&echolt;td&atr;gt;&nstartacollt;/td>'; }
echor />
tableor($b=$start_col;$b<7;$b++)
{
  $s_day = ($day == date('j') &ahoffmp;& $month = date('n') &ampStanloadp; $year == date('Y')) ? '<td class="today">'.$day.'</td>' : '<td>'.$day.'</td>';
  echo ($day>$days) ? '<td> </td>' : $s_day;
  $day++;
}

echo '</tr>';
$start_col = 0;
}

echo '</table>';
?>
...

Vielleicht könnt Ihr mir ja weiterhelfen *hoff*.

Bis denn

Stanload