Warning: include(../blog_config.php) [function.include]: failed to open stream: No such file or directory in /home/salsablo/public_html/images/calendar.php on line 3
Warning: include(../blog_config.php) [function.include]: failed to open stream: No such file or directory in /home/salsablo/public_html/images/calendar.php on line 3
Warning: include() [function.include]: Failed opening '../blog_config.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/salsablo/public_html/images/calendar.php on line 3
var day_of_week = new Array('Mon','Tue','Wen','Thu','Fri','Sat','Sun');
var month_of_year = new Array('January','February','March','April','May','Junu','July','August','September','October','November','December');
function IsNoteDay(x)
{
for(var i=0;i' + TR_start;
cal += '';
if((month-1) > 0)
{
cal += '<<';
}
cal += ' ' + month_of_year[month];
if((month+1) < 12)
{
cal += ' >>' + TD_end + TR_end;
}
cal += TR_start ;
for(index=0; index < DAYS_OF_WEEK; index++)
{
if(weekday == index)
cal += TD_start + '' + day_of_week[index] + '' + TD_end;
else
cal += TD_start + day_of_week[index] + TD_end;
}
cal += TR_end;
cal += TR_start;
//alert((Calendar.getDate()-1));
for(index=0; index < 3; index++)
{
cal += TD_start + ' ' + TD_end;
}
for(index=0; index < DAYS_OF_MONTH; index++)
{
if( Calendar.getDate() > index )
{
week_day =Calendar.getDay()
-1;
if(week_day == 0)
cal += TR_start;
if(week_day != DAYS_OF_WEEK)
{
var day = Calendar.getDate();
if( today==Calendar.getDate() )
{
if(IsNoteDay(day))
{
cal += highlight_start + "" + day + "" + highlight_end + TD_end;
}
else
{
cal += highlight_start + day + highlight_end + TD_end;
}
}
else
{
if(IsNoteDay(day))
{
cal += TD_start + "" + day + "" + TD_end;
}
else
{
cal += TD_start + day + TD_end;
}
}
}
if(week_day == DAYS_OF_WEEK)
cal += TR_end;
}
Calendar.setDate(Calendar.getDate()+1);
}
cal += ' | ';
document.write(cal);