use_dojo=true; parent::__construct($id); } public function get_form(){ $form="
".$this->get_constructor_link_form("event")."
".$this->get_constructor_link_form("eventslist")."
"; return $form; } public function save_form(){ global $cms_module_agenda_view_calendar_nb_displayed_events_under; $this->save_constructor_link_form("event"); $this->save_constructor_link_form("eventslist"); $this->parameters['nb_displayed_events_under'] = $cms_module_agenda_view_calendar_nb_displayed_events_under+0; return parent::save_form(); } public function get_headers(){ global $lang; $headers = parent::get_headers(); $headers[] = " "; $headers[] = " "; $headers[] = " "; return $html_to_display; } public function execute_ajax(){ $response = array(); global $do; switch ($do){ case "get_css" : $response['content-type'] = "text/css"; $response['content'] = " #".$this->get_module_dom_id()." td.cms_module_agenda_event_day { background : green; } #".$this->get_module_dom_id()." ul.cms_module_agenda_view_calendar_eventslist li { display : block; } #".$this->get_module_dom_id()." ul.cms_module_agenda_view_calendar_eventslist li a { display : inline; background : none; border : none; color : inherit !important; } "; break; case "get_js" : $response['content-type'] = "application/javascript"; $response['content'] = ""; break; } return $response; } protected function get_date_to_display($start,$end){ $display = ""; if($start){ if($end && $start != $end){ $display.= "du ".$start." au ".$end; }else{ $display.=$start; } }else{ } return $display; } }