All pastes #222013 Raw Edit

Someone

public text v1 · immutable
#222013 ·published 2006-10-26 00:26 UTC
rendered paste body

class MyCalendar extends Calendar
{
	function getCalendarLink($month, $year)
	{
 		// Redisplay the current page, but with some parameters 
 		// to set the new month and year 
		$s = getenv('SCRIPT_NAME'); 
		return "$s?month=$month&year=$year"; 
	}


        function getDateLink($day, $month, $year)
   	{

   	     global $file;
             
     	     $s = getenv('SCRIPT_NAME');
      	     if (file_exists($file))
      	{
       	     return "$s?day=$day&month=$month&year=$year";
        }
        else
        {
             return "";
        }
}