예제 #1
0
$path = isset($_REQUEST["pth"]) ? $_REQUEST["pth"] : "";
$sp_dates = isset($_REQUEST["spd"]) ? @tc_calendar::check_json_decode($_REQUEST["spd"]) : array(array(), array(), array());
$sp_type = isset($_REQUEST["spt"]) ? $_REQUEST["spt"] : 0;
$tc_onchanged = isset($_REQUEST["och"]) ? $_REQUEST["och"] : "";
$rtl = isset($_REQUEST["rtl"]) ? $_REQUEST["rtl"] : RTL;
$show_weeks = isset($_REQUEST["wks"]) ? $_REQUEST["wks"] : false;
$interval = isset($_REQUEST["int"]) ? $_REQUEST["int"] : 1;
$auto_hide = isset($_REQUEST["hid"]) ? $_REQUEST["hid"] : 0;
$auto_hide_time = isset($_REQUEST["hdt"]) ? $_REQUEST["hdt"] : 1000;
$hl = isset($_REQUEST["hl"]) ? $_REQUEST["hl"] : 'en_US';
//Digitizer
$dig = isset($_REQUEST["dig"]) ? $_REQUEST["dig"] : 0;
//check year to be select in case of date_allow is set
if (!$show_not_allow) {
    if ($ta1_set) {
        $year_start = $cdate->getDateFromTimestamp($time_allow1, 'Y');
    }
    if ($ta2_set) {
        $year_end = $cdate->getDateFromTimestamp($time_allow2, 'Y');
    }
}
if (isset($_REQUEST["m"])) {
    $m = $_REQUEST["m"];
} else {
    if ($slm) {
        $m = $slm;
    } else {
        if ($ta2_set && $year_end > 0) {
            //compare which one is more
            $year_allow2 = $cdate->getDateFromTimestamp($time_allow2, 'Y');
            if ($year_allow2 >= $year_end) {
예제 #2
0
$tc_onchanged = isset($_REQUEST["och"]) ? $_REQUEST["och"] : "";
$rtl = isset($_REQUEST["rtl"]) ? $_REQUEST["rtl"] : RTL;
$show_weeks = isset($_REQUEST["wks"]) ? $_REQUEST["wks"] : false;
$interval = isset($_REQUEST["int"]) ? $_REQUEST["int"] : 1;
$auto_hide = isset($_REQUEST["hid"]) ? $_REQUEST["hid"] : 0;
$auto_hide_time = isset($_REQUEST["hdt"]) ? $_REQUEST["hdt"] : 1000;
$hl = isset($_REQUEST["hl"]) ? $_REQUEST["hl"] : 'en_US';
//Digitizer
$dig = isset($_REQUEST["dig"]) ? $_REQUEST["dig"] : 0;
//Tooltips
$tt_dates = isset($_REQUEST["ttd"]) ? @tc_calendar::check_json_decode($_REQUEST["ttd"]) : array(array(), array(), array());
$tt_tooltips = isset($_REQUEST["ttt"]) ? @tc_calendar::check_json_decode(urldecode($_REQUEST["ttt"])) : array(array(), array(), array());
//check year to be select in case of date_allow is set
if (!$show_not_allow) {
    if ($ta1_set) {
        $year_start = $cdate->getDateFromTimestamp($time_allow1, 'Y');
    }
    if ($ta2_set) {
        $year_end = $cdate->getDateFromTimestamp($time_allow2, 'Y');
    }
}
if (isset($_REQUEST["m"])) {
    $m = $_REQUEST["m"];
} else {
    if ($slm) {
        $m = $slm;
    } else {
        if ($ta2_set && $year_end > 0) {
            //compare which one is more
            $year_allow2 = $cdate->getDateFromTimestamp($time_allow2, 'Y');
            if ($year_allow2 >= $year_end) {