setToday($todayyy, $todaymm, $todaydd);
$cal1->setCalendarData();
//next
list($nextyy, $nextmm, $nextdd) = getAfterMonth($todayyy, $todaymm, 1, 1);
$cal2 = new calendarData();
$cal2->setToday($nextyy, $nextmm, $nextdd);
$cal2->setCalendarData();
$caption1 = __('This month', 'usces') . '(' . sprintf(__('%2$s/%1$s', 'usces'),$todayyy,$todaymm) . ')';
$caption2 = __('Next month', 'usces') . '(' . sprintf(__('%2$s/%1$s', 'usces'),$nextyy,$nextmm) . ')';
?>
|
|
|
|
|
|
|
getRow(); $i++) : ?>
getDateText($i, $d);
if ($mday != "") {
$business = $usces->options['business_days'][$todayyy][$todaymm][$mday];
//$style = ($business == 1) ? "" : ' style="background-color:#FFECCE; color:#ff0000;"';
if($mday == $todaydd){
$tostyle = 'businesstoday';
}else{
$tostyle = '';
}
if($business == 0){
$style = 'businessday ';
}else{
$style = '';
}
?>
|
|
|
|
|
|
|
|
|
getRow(); $i++) : ?>
getDateText($i, $d);
if ($mday != "") {
$business = $usces->options['business_days'][$nextyy][$nextmm][$mday];
//$style = ($business == 1) ? "" : ' style="background-color:#FFECCE; color:#ff0000;"';
$style = ($business == 1) ? "" : ' class="businessday"'; ?>
| > |
|
' . __('Holiday for Shipping Operations', 'usces') . ')'."\n";
echo apply_filters( 'usces_filter_widget_calendar', $afterword);
?>