public function display($tpl = null) { $app = JFactory::getApplication(); $input = $app->input; $this->tour_id = $input->get('tour_id', 0); $this->date = $input->get('date', null); $model = new BookProModelTourRate(); $this->rates = $model->getRateTour($this->tour_id, $this->date); $tour_model = new BookProModelTour(); $this->tour = $tour_model->getItem($this->tour_id); parent::display($tpl); }
function display($tpl = null) { $this->state = $this->get('State'); AImporter::model('tour'); $tourModel = new BookProModelTour(); $tour = $tourModel->getItem($this->state->get('filter.obj_id')); $this->title = 'Room'; $this->text = $tour->title; $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); $this->addToolbar(); parent::display($tpl); }
function display($tpl = null) { $app = JFactory::getApplication(); $this->depart = $app->getUserStateFromRequest('booking.depart', 'depart', ''); $input = JFactory::getApplication()->input; $this->tour_id = $input->get('id', '', 'int'); $tourModel = new BookProModelTour(); $this->tour = $tourModel->getItem($this->tour_id); $this->document = JFactory::getDocument(); $user = JFactory::getUser(); $this->document->setTitle(JText::_('COM_BOOKPRO_REGISTER_VIEW')); $rowFields = TourHelper::getCustomfieldsByInquiry(); $form = new RADForm($rowFields, null, ''); $this->fields = $form->getFields(); parent::display($tpl); }
private function getComplextour($order) { $object = new JObject(); $db = JFactory::getDbo(); // get Customer and Country name $query = $db->getQuery(true); $query->select('customer.*, country.country_name AS country_name'); $query->from('#__bookpro_customer AS customer'); $query->leftJoin('#__bookpro_country AS country ON country.id = customer.country_id'); $query->where('customer.id = ' . (int) $order->user_id); $db->setQuery($query); $customer = $db->loadObject(); //get order info $query->clear(); $query->select('orderinfo.*'); $query->from('#__bookpro_orderinfo AS orderinfo'); $query->where('orderinfo.order_id = ' . (int) $order->id); $db->setQuery($query); $orderinfo = $db->loadObjectList(); //get tour info AImporter::model('tour'); $model = new BookProModelTour(); $tour = $model->getItem($orderinfo[0]->route_id); $tour->start = $orderinfo[0]->start; //passenger $query->clear(); $query->select('passenger.*, country.country_name AS country'); $query->from('#__bookpro_passenger AS passenger'); $query->leftJoin('#__bookpro_country AS country ON country.id = passenger.country_id'); $query->where('passenger.order_id = ' . (int) $order->id); $db->setQuery($query); $passengers = $db->loadObjectList(); $object->order = $order; $object->customer = $customer; $object->orderinfo = $orderinfo; $object->tour = $tour; $object->passengers = $passengers; $object->addons = $this->getAddon($order->id); return $object; }
if ($date) { ?> <?php echo JText::sprintf('COM_BOOKPRO_DATE_SPRINTF', JFactory::getDate($date)->format('d-m-Y')); ?> <br /> <?php } ?> <?php if ($tour_id) { AImporter::model('tour'); $tourModel = new BookProModelTour(); $tour = $tourModel->getItem($tour_id); ?> <?php echo JText::_('COM_BOOKPRO_TOUR') . ':' . $tour->title; ?> <br /> <?php } ?> <?php if ($search) { ?> <?php