load->model('Home_model'); $this->load->model('Config_model'); $this->lang->load('home'); $this->load->helper('url'); $this->load->library('session'); $this->load->model('FxForm_model'); $this->load->model('Projets_model'); $this->load->helper('form'); } public function index() { $this->load->view('home/header' ); $this->load->view('home/calendar'); $this->load->view('home/footer' ); } public function test(){ $data=$this->Tache_model->returnparjour(55); ?>
    
Config_model->conf_getFiltreData($this->session->id,'calendrier','mem_select_1',$filtre1,1,0); $this->Config_model->conf_getFiltreData($this->session->id,'calendrier','mem_select_2',$filtre2,1,0); $this->Config_model->conf_getFiltreData($this->session->id,'calendrier','mem_select_3',$filtre3,1,0); if($filtre3==0) { //projets date annule $data=$this->Projets_model->mod_listprojetdate_annule_count_jour($filtre1,'', '','',$filtre2); $sortie['projets_annule']=$data['jour']; } if($filtre3==1) { // taches $data=$this->Tache_model->mod_listtache_count_jour($filtre1); $sortie['taches']=$data['jour']; } if($filtre3==2) { //projets confirmation $data=$this->Projets_model->mod_listprojet_count_jour($filtre1,'', '','',$filtre2); $sortie['projets_conf']=$data['jour']; } if($filtre3==3) { //projets date debut $data=$this->Projets_model->mod_listprojetdebut_count_jour($filtre1,'', '','',$filtre2); $sortie['projets_debut']=$data['jour']; } if($filtre3==4) { //projets date debut $data=$this->Projets_model->mod_listprojetdebut_count_jour_dossard($filtre1,'', '','',$filtre2); $sortie['projets_dossard']=$data['jour']; } echo json_encode($sortie); } public function update_filtre($filtre1=0,$filtre2=0,$filtre3=0) { $this->Config_model->conf_getFiltreData($this->session->id,'calendrier','mem_select_1',$filtre1,1,0); $this->Config_model->conf_getFiltreData($this->session->id,'calendrier','mem_select_2',$filtre2,1,0); $this->Config_model->conf_getFiltreData($this->session->id,'calendrier','mem_select_3',$filtre3,1,0); echo json_encode('ok'); } }