| <?
        include("./xxmcalend.inc");
// just redefine days and months, so default values for this are in 
// Cyrillic KOI8-R encoding.
                $days = array('Mon','Tue','Wed','Thu','Fri','Sat','Sun');
                $months = array(
                        'January','February',
                        'March','April','May',
                        'June','July','August',
                        'September','October','November',
                        'December');
// there fill with values the main $dates array. Normally one wants to
// fill it from database, with query like this:
// "select date, url from ..."
//
// there, value of 1 means <a href="$DETAIL?selected_date=2002-05-01">
// and value of url means reference to this url
                $dates = array(
                        '2002-05-01' => 1,
                        '2002-05-05' => 'http://www.ibm.com'
                );
        $calend = new xxMCalend();
        
                $calend->set_active_dates( $dates );
                $calend->set_intl_days( $days );
                $calend->set_intl_months( $months );
$calend->cv_set_width(222);     // setting calendar table width
                $calend->print_calendar(4, 2002);
                $calend->print_calendar(-1 , -1);       // calendar for current month
?>
 |