//$myCalendar->autoSubmit(true, "form1"); //$myCalendar->disabledDay("Sat"); //$myCalendar->disabledDay("sun"); $myCalendar->showWeeks(true); //$myCalendar->rtl = true; //Tooltips $myCalendar->setToolTips(array("2013-07-02", "2013-07-15", "2013-07-25"), 'ŞŢĂÎÂ şţăîâ אי אפשר test!', ''); $myCalendar->setToolTips(array("2013-06-06", "2013-06-01", "2013-06-05"), 'אי אפשר לבחור תאריך זה', 'month'); $myCalendar->setToolTips(array("1969-07-06", "2040-07-01", "2013-06-05"), 'Δεν επιτρέπετε η επιλογή αυτής της ημέρας', 'month'); $myCalendar->setToolTips(array("1969-07-06", "2040-07-01", "2013-06-05"), 'الإصدار الخاص بي ليس لديها الدعم للعام 2038 وفيما بعد!', 'month'); $myCalendar->setToolTips(array("1969-07-06", "2040-07-01", "2013-06-05"), 'の間の日付を選択してください', 'month'); $myCalendar->setToolTips(array("1969-07-06", "2040-07-01", "2013-06-05"), '올바르지 않은 값입니다', 'month'); $myCalendar->setToolTips(array("2013-06-06", "2013-06-11", "2013-06-15"), 'और बाद के वर्षों का समर्थन नहीं है!', 'month'); $myCalendar->setToolTips(array("2013-07-06", "2013-01-01", "2013-12-25"), 'วันนี้ไม่ได้รับอนุญาตให้มีการเลือก', 'year'); $myCalendar->setToolTips(array("2013-07-06", "2013-07-15", "2013-07-25"), '请选择日期%s之前一个', ''); $myCalendar->setTimezone("Australia/Melbourne"); //Asia/Tokyo, America/Montreal $myCalendar->writeScript(); ?> </td> <td valign="top"><ul> <li>Set default date to server date (Auto unset if date is disabled)</li> <li> Set year navigate from 1890 to 2080</li> <li> Allow date selectable from 1st Jan 1890 to 01 May 2045</li> <li> Not allow to navigate other dates from above </li> <li>Disable date of 10th, 13th, and 23th on each month</li> <li>Start week on Monday</li> <li>Show calendar weeks</li> <li>Set/show tooltips</li> <li>Set timezone to Australia/Melbourne<br> <br>
$y2 = $cdate->getDate('Y', $time_allow2); if ($y == $y2 && (int) $m > (int) $m2) { $m = $m2; } } } $objname = getParameter("objname"); $dp = getParameter("dp", "boolean"); $cobj = new tc_calendar(""); $cobj->setDate($sld, $slm, $sly); $cobj->startDate($startDate); $cobj->dsb_days = explode(",", $dsb_txt); $cobj->time_allow1 = $time_allow1; $cobj->time_allow2 = $time_allow2; $cobj->setYearInterval($year_start, $year_end); $cobj->setTimezone($timezone); //set for further usage, nothing for now $theme_path = $theme != "" ? $cobj->getThemePath($theme) : ""; if (!is_file($theme_path)) { $theme_path = ""; } //check and show default calendar month and year on valid range of date_allow if (!isset($_REQUEST["m"])) { if ($time_allow1 != "") { //get date of time allow1 if ($cdate->validDate($time_allow1)) { //check valid if today is after date_allow1 if (!$cdate->dateAfter($time_allow1, $today)) { //reset default calendar display $y = $cdate->getDate('Y', $time_allow1); $m = $cdate->getDate('m', $time_allow1);
$my_dob->birth_num_month = str_replace("0", "", substr($birthday, 5, 1)) . substr($birthday, 6, 1); $my_dob->birth_num_day = str_replace("0", "", substr($birthday, -2, 1)) . substr($birthday, -1); $my_dob->calculate_age(); $age = $my_dob->age; } if (!in_array(substr($birthday, -5), $mday)) { $myCalendar->setToolTips(array($birthday), L_DOB_TIT_1 . ":", 'year'); array_push($mday, substr($birthday, -5)); } $myCalendar->setToolTips(array($birthday), $show_age && $age ? "- " . $birthname . " (" . $age . ")" : "- " . $birthname, 'year'); unset($age); } $mday = array(); $DbLink->clean_results(); } $myCalendar->setTimezone("Europe/Bucharest"); $myCalendar->writeScript(); ?> </td> </tr> </table> <table align="center" width="98%" class=table> <tr bgcolor="#FFFFFF"><td colspan=2 align=center><a name="skins"></a><b><?php echo A_CONF_9; ?> </b></td></tr> <tr class="thumbIndex"> <td valign=center align=center height="20" class=tabtitle><?php echo A_CONFTITLE_1; ?> </td>