function inc_day($date)
{
    $date_s = explode('-', $date);
    $inc_d = intval($date_s[2]) + 1;
    $inc_m = intval($date_s[1]);
    $inc_y = intval($date_s[0]);
    if (month_num($inc_m, $inc_y) < $inc_d) {
        $inc_d = "01";
        $inc_m = $inc_m + 1;
    } else {
        if ($inc_d < 10) {
            $inc_d = "0" . $inc_d;
        }
    }
    if (12 < $inc_m) {
        $inc_m = "01";
        $inc_y = $inc_y + 1;
    } else {
        if ($inc_m < 10) {
            $inc_m = "0" . $inc_m;
        }
    }
    return $inc_y . "-" . $inc_m . "-" . $inc_d;
}
예제 #2
0
')">&#9668;</a>
									</td>
									<td style="text-align:center; margin:0;" width="40%" >

											<input type="hidden" name="month" readonly="" value="<?php 
echo $month;
?>
"/>
										   <span  style="font-family:arial; color:<?php 
echo $text_color_month;
?>
; font-size:<?php 
echo $month_font_size;
?>
px;text-shadow: 1px 1px black;"><?php 
echo JText::_('TAB_WEEK') . ' ' . date('W', mktime(0, 0, 0, month_num($month), $day, $year)) . ', ' . $year;
?>
</span>
										  
											
									</td>	
									<td style="margin:0; padding:0;text-align:left" width="15%"  class="cala_arrow"> 
									<a  style="text-shadow: 1px 1px 2px black;color:<?php 
echo $color_arrow_month;
?>
" href="javascript:showbigcalendar( 'bigcalendar<?php 
echo $id;
?>
','<?php 
echo JRoute::_('index.php?option=com_spidercalendar&view=bigcalendarweek&def_view=' . $defaultview . '&views=' . $viewselect . '&rand=' . $id . '&theme_id=' . $theme_id . '&calendar=' . $calendar_id . '&cat_id=&cat_ids=' . $cat_ids) . '&format=row&Itemid=' . JRequest::getVar("Itemid", "") . '&date=' . $next_date . '&months=' . $prev_month . ',' . $this_month . ',' . $next_month;
?>