コード例 #1
0
 function SemScheduleWeek($start_hour = '', $end_hour = '', $show_days = '', $start_date = '')
 {
     parent::ScheduleWeek($start_hour, $end_hour, $show_days, $start_date, false);
     //the base_date have to be 0:00
     $first_monday = date("j", $this->start_date) - (date("w", $this->start_date) - 1);
     if (date("w", $this->start_date) > 1) {
         $first_monday += 7;
     }
     $this->base_date = mktime(0, 0, 0, date("n", $this->start_date), $first_monday, date("Y", $this->start_date));
 }
コード例 #2
0
 function ScheduleWeekRequests($start_hour = '', $end_hour = '', $show_days = '', $start_date = '', $show_dates = true)
 {
     parent::ScheduleWeek($start_hour, $end_hour, $show_days, $start_date);
     $this->categories[5] = array("bg-picture" => Assets::image_path('calendar/category12_small.jpg'), "border-color" => "#d082b0");
     $this->categories[6] = array("bg-picture" => Assets::image_path('calendar/category10_small.jpg'), "border-color" => "#ffbd33");
 }