Ejemplo n.º 1
0
         $mm = $i - 1;
     } else {
         $mm = $i;
     }
     if ($i == $everymonth[$j][0] + 1 and $everymonth[$j][0] != 0) {
         $chi = $mmonth[0] . $mmonth[$mm];
     } else {
         $chi = $mmonth[$mm] . $mmonth[13];
     }
 } else {
     $chi = $mday[$md];
 }
 $scday = $month . "-" . $day;
 $mcday = $i . "-" . $md;
 $scday = FormatMonth($scday);
 $mcday = FormatMonth($mcday);
 $color1 = "#999999";
 for ($th = 0; $th < 15; $th++) {
     if ($mholiday[$th] == $scday) {
         $chi = $mholiday1[$th];
         $color1 = "red";
         $color = "red";
         break;
     }
 }
 for ($th = 0; $th < 15; $th++) {
     if ($holiday[$th] == $mcday) {
         $chi = $holiday1[$th];
         $color1 = "red";
         $color = "red";
         break;
Ejemplo n.º 2
0
         //月
     } else {
         $arrNdayShow[$n] = $strArrayMonth[$mm] . $strArrayMonth[13];
     }
 } else {
     if ($everymonth[$nJ][0] > 0 && $everymonth[$nJ][0] < $nI) {
         $mm = $nI - 1;
     } else {
         $mm = $nI;
     }
     $arrNdayShow[$n] = $strArrayDay[$md];
 }
 //农历颜色
 $arrNdayColor[$n] = "";
 //农历假日
 $curMdate = FormatMonth($mm . "-" . $md);
 if (($th = array_search($curMdate, $nHoliday)) > 0 && $smonth == "") {
     $arrNdayShow[$n] = $nHolidayTitle[$th];
     $arrNdayColor[$n] = substr($arrDateTime[$n], 0, 2) == $curMonth ? "red" : "";
 }
 //公历假日
 if (($th = array_search($arrDateTime[$n], $gHoliday)) > 0) {
     $arrNdayShow[$n] = $gHolidayTitle[$th];
     $arrNdayColor[$n] = substr($arrDateTime[$n], 0, 2) == $curMonth ? "red" : "";
 }
 $md++;
 if ($md > $everymonth[$nJ][$nI]) {
     $md = $md - $everymonth[$nJ][$nI];
     $nI++;
 }
 if ($nI > 12 && $everymonth[$nJ][0] == 0 || $nI > 13 && $everymonth[$nJ][0] > 0) {