这是房间信息的房间表,标签房号和房间详情表。 这是预订信息的预订表,其中标记来自客户表的客户ID,酒店ID,酒店列表,登记日期,退房日期,通过等表预订。 这是预订房间标签的房间预订表,包括预订ID,房间ID,酒店ID等表格。
$date = $_GET['sdate'];
$parts = explode('-', $date);
$likedata = $parts[0] . '-' . $parts[1];
$end = $parts[0] . '-' . $parts[1] . '-' . date('t', strtotime($date));
$monthNum = $parts[1];
$dateObj = DateTime::createFromFormat('!m', $monthNum);
$data['monthname'] = $dateObj->format('F');
$data['sdate'] = $date;
$data['edate'] = $end;
$data['sssdate'] = $date;
$data['esdate'] = $end;
$data['rooms'] = $this->user_model->get_room([
'hotel_id' => $this->session->userdata('hotel_id')]);
$data['room_book'] = $this->user_model->get_room_book([
'hotel_id' => $this->session->userdata('hotel_id'),
'book_from like' => $likedata . '%']);
$this->load->view('overview2_view', $data);