okej ! teraz wszystko dziala poza jedna mala rzecza...chodzi oto, ze zmodyfikowalem nieco skrypt tak aby dla dni z przypisanym eventem wczytywany byl inny styl, dla dni bez eventa inny (domyślny) a dla dnia
dzisiejszego z eventem jeszcze inny. w rezultacie niestety dla dnia dzisiejszego (bez eventa) przypisywany jest styl, ktory powinien byc przy dniu dzisiejszym ale Z eventem. Nie wiem czy jasno sie wyrazilem ;P jak nie to wyjasnie od nowa jeszcze raz

kod pliku calendar.php :
<?
include('../includes/db_connect.php');
function getRecordLink($curDate) {
$sql = mysql_query("SELECT * FROM calendar_events WHERE date='".$curDate."'");
else return 0;
}
$output = '';
$month = $_GET['month'];
$year = $_GET['year'];
if($month == '' && $year == '') {
$month = date('n',$time); }
$hours = $today['hours'];
$mins = $today['minutes'];
$secs = $today['seconds'];
if(strlen($hours)<2
) $hours="0".$hours; if(strlen($mins)<2
) $mins="0".$mins; if(strlen($secs)<2
) $secs="0".$secs;
$start = $date['wday'];
'January' => 'Styczen',
'February' => 'Luty',
'March' => 'Marzec',
'April' => 'Kwiecien',
'May' => 'Maj',
'June' => 'Czerwiec',
'July' => 'Lipiec',
'August' => 'Sierpien',
'September' => 'Wrzesien',
'Octover' => 'PaĽdziernik',
'November' => 'Listopad',
'December' => 'Grudzien',
);
$nameToPrint = $polishMonths[trim($date['month'])]; $name = $date['month'];
$year2 = $date['year'];
$offset = $days + $start - 1;
if($month==12) {
$next=1;
$nexty=$year + 1;
} else {
$next=$month + 1;
$nexty=$year;
}
if($month==1) {
$prev=12;
$prevy=$year - 1;
} else {
$prev=$month - 1;
$prevy=$year;
}
if($offset <= 28) $weeks=28;
elseif($offset > 35) $weeks = 42;
else $weeks = 35;
$output .= "
<table class='cal' cellspacing='1'>
<tr>
<td colspan='7'>
<table class='calhead'>
<tr>
<td>
<a href='javascript:navigate($prev,$prevy)'><img src='./calendar/calLeft.gif' alt='Poprzedni miesiac' title='Poprzedni miesiac'></a> <a href='javascript:navigate(\"\",\"\")'><img src='./calendar/calCenter.gif' alt='Aktualny miesiac' title='Aktualny miesiac'></a> <a href='javascript:navigate($next,$nexty)'><img src='./calendar/calRight.gif' alt='Nastepny miesiac' title='Nastepny miesiac'></a>
</td>
<td align='right'>
<div>$nameToPrint $year2</div>
</td>
</tr>
</table>
</td>
</tr>
<tr class='dayhead'>
<td>Pon</td>
<td>Wt</td>
<td>Sr</td>
<td>Czw</td>
<td>Pt</td>
<td>Sob</td>
<td>Ndz</td>
</tr>";
$col=1;
$cur=1;
$next=0;
for($i=1;$i<=$weeks;$i++) {
if($next==3) $next=0;
if($col==1) $output.="<tr class='dayrow'>";
$output.="<td valign='top'style='font-weight: bold;' onMouseOver=\"this.className='dayover'\" onMouseOut=\"this.className='dayout'\">";
if($i <= ($days+($start-1)) && $i >= $start) {
$output.="<div class='day'><div";
if(($cur==$today[mday]) && ($name==$today[month])) $output.=" id='today'";
// SEARCH FOR EVENT FUNCTION
$curDate = "$year2-" . ($month<10 ? "0$month" : $month) . "-" . ($cur<10 ? "0$cur" : $cur);
if ($recordLink = getRecordLink($curDate)) {
$output.=" id='normal_day'><a href='./calendar/event.php?d=$recordLink' class='calendar_link' title='$curDate' onclick='Modalbox.show(this.href, {title: this.title, width: 300}); return false;'>
$cur</a></b></div></td>";
} else {
$output.="><a href='./calendar/event.php?d=".strtotime($curDate)."' class='calendar_link' title='Dodaj wydazenie :: $curDate' onclick='Modalbox.show(this.href, {title: this.title, width: 300}); return false;'>$cur</a></p></div></td>"; }
$cur++;
$col++;
} else {
$output.=" </td>";
$col++;
}
// END OF FUNCTION
if($col==8) {
$output.="</tr>";
$col=1;
}
}
$output.="</table>";
?>
style :
td {
font-family: "Trebuchet MS", Arial, Veranda, sans-serif;
padding: 3px;
}
#calback {
background: #FFF url('calWaiting.gif') no-repeat 50% 100px;
margin: 0 auto;
width: 700px;
}
#calendar {
width: 100%;
height: 100%;
}
.cal {
background: #000;
width: 100%;
}
.calhead {
width: 100%;
font-weight: bold;
color: #FFF;
font-size: 20px;
}
.calhead img {
border: none;
}
.dayhead {
height: 25px;
background: #EEE;
}
.dayhead td {
text-align: center;
color: #000;
}
.dayrow {
background: #FFF;
height: 40px;
}
.dayrow td {
width: 50px;
color: #000;
font-size: .7em;
}
.day {
text-align: center;
font-family: arial;
font-size: 20pt;
}
.dayover {
background: #EEE;
}
.dayout {
background: #FFF;
}
#today {
width: 100%;
height: 100%;
}
#today a{
color: #CC0000;
display: block;
background-color: #EEEF77;
margin: 0;
padding: 0;
}
#normal_day a{
color: #000000;
display: block;
background-color: #EEEF77;
}
a.calendar_link {
color: #000000;
}