public function edit_profile()
 {
     $data['user'] = Users::find(Session::get('user_id'));
     $data['minat'] = Kategori::get();
     $data['cal'] = Calendar::make();
     $data['cal']->setDayLabels(array('Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jumat', 'Sabtu'));
     $data['cal']->setMonthLabels(array('Januari', 'Februari', 'Maret', 'April', 'Mei', 'Jeni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember'));
     return View::make('edit_profile', $data);
 }
 private function getGuardiaCalendar($events, $date, $navigation = FALSE, $basepath = '/guardia')
 {
     $cal = Calendar::make();
     $cal->setDayLabels(array('Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado', 'Domingo'));
     $cal->setBasePath($basepath);
     // Base path for navigation URLs
     $cal->setDate($date);
     //Set starting date
     $cal->showNav($navigation);
     // Show or hide navigation
     $cal->setEventsWrap(array('', ''));
     $cal->setMonthLabels(array('Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'));
     //Month names
     $cal->setEvents($events);
     // Receives the events array
     $cal->setTableClass('table_cal');
     //Set the table's class name
     return $cal->generate();
 }
 public function configCal($date, $id)
 {
     $events = $this->reservation->getMaterialStatus($id);
     $cal = Calendar::make();
     $cal->setDate($date);
     //Set starting date
     $cal->setBasePath('/materials/' . $id . '/cal');
     // Base path for navigation URLs
     $cal->showNav(true);
     // Show or hide navigation
     $cal->setView('week');
     //'day' or 'week' or null
     $cal->setStartEndHours(8, 22);
     // Set the hour range for day and week view
     $cal->setTimeClass('ctime');
     //Class Name for times column on day and week views
     $cal->setEventsWrap(array("<div class='reserved'><p>", '</p></div>'));
     // Set the event's content wrapper
     $cal->setDayWrap(array('<div>', '</div>'));
     //Set the day's number wrapper
     $cal->setNextIcon('Volgende Week');
     //Can also be html: <i class='fa fa-chevron-right'></i>
     $cal->setPrevIcon('Vorige Week');
     // Same as above
     $cal->setDayLabels(array('Zon', 'Man', 'Din', 'Woe', 'Don', 'Vrij', 'Zat'));
     //Label names for week days
     $cal->setMonthLabels(array('January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'));
     //Month names
     $cal->setDateWrap(array('<div data-id="' . $id . '">', '</div>'));
     //Set cell inner content wrapper
     $cal->setTableClass('table calendar ' . $id);
     //Set the table's class name
     $cal->setHeadClass('table-header');
     //Set top header's class name
     $cal->setNextClass('btn');
     // Set next btn class name
     $cal->setPrevClass('btn');
     // Set Prev btn class name
     $cal->setEvents($events);
     return $cal;
 }
Example #4
0
 private function getTurnoCalendar($events, $date, $basepath = '/turno')
 {
     $cal = Calendar::make();
     $cal->setDayLabels(array('Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado', 'Domingo'));
     $cal->setBasePath(Input::get('cdate'));
     // Base path for navigation URLs
     $cal->setDate($date);
     //Set starting date
     $cal->showNav(true);
     // Show or hide navigation
     //$cal->setView('week');
     $cal->setEventsWrap(array('', ''));
     //$cal->setEventsWrap(array('<div><p>', '</p></div>'));
     $cal->setMonthLabels(array('Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre'));
     //Month names
     $cal->setEvents($events);
     // Receives the events array
     $cal->setTableClass('table_cal');
     //Set the table's class name
     return $cal->generate();
 }