Exemplo n.º 1
0
 /**
  * Get all problem to show in error_log page
  * @return mixed
  */
 public function all()
 {
     $params = Input::all();
     $output['cols'] = $this->getCols();
     $output['rows'] = $this->getRows(Problem::allForTable($params));
     return Response::json($output);
 }
Exemplo n.º 2
0
 /**
  * View all problems
  * @param string    $status     status of problem ("all", "marked", "unmarked")
  * @param string    $data_type  WATER / RAIN
  * @return mixed
  */
 public function index($status, $data_type)
 {
     $params = $this->getParams($status, $data_type);
     $data = $this->dataForForm($status, $data_type);
     $data['selectDate'] = true;
     $data['title'] = 'Error Log';
     Log::info($params);
     $data['problems'] = Problem::allForTable($params);
     return View::make('errorlog/index', $data);
 }
Exemplo n.º 3
0
 public function index($status, $data_type)
 {
     $params = $this->getParams($status, $data_type);
     $data = $this->dataForForm($status, $data_type);
     // $params['start_date'] = date('Y-m-d', getTime());
     // $params['start_time'] = '07:01';
     $params['end_date_after'] = date('Y-m-d', getTime());
     $params['end_time_after'] = '07:01';
     $data['selectDate'] = false;
     $data['title'] = 'Daily Operations';
     $data['problems'] = Problem::allForTable($params);
     return View::make('dailyop/index', $data);
 }