0 && file_exists("esconfig.php")) { require("esconfig.php"); $config = ereg_replace ("\?", "", $cfg[$uc]); $config = explode ("&",$config); foreach ($config as $values) { $c0 = explode ("=",$values); $$c0[0] = $c0[1]; }} // CALENDAR MARKING STYLE // $ms=1 :: Mark calendar dates using table background colors [Default] // $ms=2 :: Mark calendar dates using graphics for background colors // NOTE: If using Style 2, all 'stat' graphics should be in the same directory as this script // You can edit the 'stat' graphics to meet your needs if (!$ms) $ms = "1"; // CALENDAR MARKING COLORS // Edit these colors to suit your needs // These options change be changed here or by the command-line options 'nbc', 'mbc', or 'tfc' if (!$nbc) $nbc = "EEEEEE"; // NORMAL BACKGROUND COLOR if (!$mbc) $mbc = "EEBBBB"; // MARKED BACKGROUND COLOR if (!$tfc) $tfc = "CF0000"; // TODAY'S FONT COLOR // DAY NAMES // Edit the calendar day name column headers below $day[0]="S"; $day[1]="M"; $day[2]="T"; $day[3]="W"; $day[4]="T"; $day[5]="F"; $day[6]="S"; // MONTH NAMES // Edit the calendar month names below $mth[1]="January"; $mth[2]="February"; $mth[3]="March"; $mth[4]="April"; $mth[5]="May"; $mth[6]="June"; $mth[7]="July"; $mth[8]="August"; $mth[9]="September"; $mth[10]="October"; $mth[11]="November"; $mth[12]="December"; // ON WHAT DAY DOES THE WEEK START? // 0=Sunday; 1=Monday; 2=Tuesday; 3=Wednesday; 4=Thursday; 5=Friday; 6=Saturday // This option can be set here or overridden by the command-line option 'ds=' if (!$ds) $ds=0; // PRINT YEAR? // $ny=1 :: Don't display the year number after the month name // This option can be set here or overridden by the command-line option 'ny=' if (!$ny) $ny=0; // MARK TODAY? // $nt=1 :: Don't mark today's date // This option can be set here or overridden by the command-line option 'nt=' if (!$nt) $nt=0; // HOURS TO OFFSET TIME +/- // To add hours, enter a positive value. To substract hours, enter a "-" negative value // This option can be set here or overridden by the command-line option 'ot=' if (!$ot) $ot = "-0"; // CALENDAR WIDTH AND HEIGHT // Set $tw to the width of the calendar table // Set $th to the height of the calendar table (does not include the month table which is additional) // These options can be set here or overridden by the command-line options 'tw=' and 'ch=' if (!$tw) $tw="175"; // Table Width if (!$th) $th="140"; // Table Height (with 6 rows of dates) // NOTE: Table may be smaller than specified for months with only 5 rows of dates // CALENDAR CELL SPACING AND PADDING // Set $cs to the number of pixels of cell spacing (space between each cell) // Set $cp to the number of pixels of cell padding (space around names and numbers inside cells) // These options can be set here or overridden by the command-line options 'cs=' and 'cp=' if (!$cs) $cs=1; // IMPORTANT! To set cs to 0 from the command-line, you must use -0 if (!$cp) $cp=0; // DATE NUMBER ALIGNMENT // Set $algn to 0 [defult] to align the dates to the middle and center of table cells. // Set $algn to 1 to align the dates to the upper-right corner of table cells. // This option can be set here or overridden by the command-line option 'algn=' if (!$al) $al="0"; // FONT SIZES AND WEIGHT // These options can be set in the script or overridden by command-line options of // the same named variables. The sizes are in pixels. if (!$fsm) $fsm="18"; // FONT SIZE MONTH if (!$fsd) $fsd="11"; // FONT SIZE DAY NAMES if (!$fsn) $fsn="11"; // FONT SIZE NUMBERS if (!$fwm) $fwm="bold"; else $fwm="normal"; // FONT WEIGHT MONTH if (!$fwd) $fwd="normal"; else $fwd="bold"; // FONT WEIGHT DAY NAMES if (!$fwn) $fwn="normal"; else $fwn="bold"; // FONT WEIGHT NUMBERS // ONLY EDIT THE STYLE SHEET BELOW IF YOU WANT TO CHANGE THE FONT FACE AND/OR COLOR ?> Calendar
>
> 6) $dayprint=$dayprint-7; echo" \n"; } ?> =$nd) break; ?> CLASS="dates"> 0 && $cd<$nd) {echo " \n";$daycount++;$cd++;} else { ?> 0 && $cd<$nd) {echo " bgcolor=\"#";if ($bgc[$daycount]) {echo $mbc;} else {echo $nbc;} echo "\">$cd";$daycount++;} else {echo ">";} $cd++;?> =$nd) break; ?> CLASS="dates"> 0 && $cd<$nd) {echo " \n";$daycount++;$cd++;} else { ?> 0 && $cd<$nd) {echo " background=\"stat$bgc[$daycount].gif\">$cd";$daycount++;} else {echo ">";} $cd++;?>
$day[$dayprint]
$cd
$cd
Note:
If you are not getting the calendar for the current year (), it could mean that you have not cleared your data cache. On your browser, select Tools, then select Internet Options. Under General - Temporary Internet Files, click Delete Files , then click OK.