예제 #1
0
 public function findByLigne($ligne = 2, $idTypeSemaine = 3)
 {
     if (!isset($ligne)) {
         $ligne = (int) Input::get('ligne')[0];
     } else {
         $ligne = (int) $ligne;
     }
     $date = date('d-m-Y');
     $horaires = Horaire::getHorairesByLigne($ligne, $date, null, null, $idTypeSemaine);
     $nomLigne = Ligne::findNameById($ligne);
     $nomTypeSemaine = TypeSemaine::getLibelleTypeSemaine($ligne);
     return View::make('private.forms.updateHoraire')->with('idLigne', $ligne)->with('nomLigne', $nomLigne)->with('idTypeSemaine', $idTypeSemaine)->with('nomTypeSemaine', $nomTypeSemaine)->with('horaires', $horaires);
 }
예제 #2
0
 public function findByLigne($ligne = null)
 {
     if (!isset($ligne)) {
         $ligne = (int) Input::get('ligne')[0];
     } else {
         $ligne = (int) $ligne;
     }
     $heure = Input::get('heure');
     $minute = Input::get('minute');
     if (is_null(Input::get('date'))) {
         $date = date('d-m-Y');
     } else {
         $date = Input::get('date');
     }
     $horaires = Horaire::getHorairesByLigne($ligne, $date, $heure, $minute);
     $nomLigne = Ligne::findNameById($ligne);
     $fichierPDF = Ligne::find($ligne)->fichierPDF;
     return View::make('public.pages.horairesLigne')->with('idLigne', $ligne)->with('fichierPDF', $fichierPDF)->with('nomLigne', $nomLigne)->with('selectedArret', null)->with('heureMin', Input::get('heure') . ':' . Input::get('minute'))->with('horaires', $horaires)->with('heureMin', $heure . ':' . $minute)->with('date', $date);
 }