<?php defined('_JEXEC') or die('Restricted access'); AImporter::helper('date', 'js', 'html'); Aimporter::model('application'); class BookproViewCustomService extends JViewLegacy { function display($tpl = null) { $model = new BookProModelApplication(); $this->content = $model->getItemByCode('CUSTOMIZE_SERVICES'); parent::display($tpl); } function getServices() { $options = array((object) array('value' => '', 'title' => JText::_('COM_BOOKPRO_CUSTOMIZE_SELECT')), (object) array('value' => 'TOUR', 'title' => JText::_('COM_BOOKPRO_CUSTOMIZE_TOUR')), (object) array('value' => 'EXECUTIVE_CAR', 'title' => JText::_('COM_BOOKPRO_CUSTOMIZE_EXECUTIVE_CAR')), (object) array('value' => 'LIMO', 'title' => JText::_('COM_BOOKPRO_CUSTOMIZE_LIMO')), (object) array('value' => 'OTHER', 'title' => JText::_('COM_BOOKPRO_CUSTOMIZE_OTHER'))); return JHTML::_('select.genericlist', $options, 'orderinfo[type]', 'required class="inputbox required" ', 'value', 'title', null, 'orderinfo_type'); } }
<?php /** * * @package Bookpro * @author Ngo Van Quan * @link http://joombooking.com * @copyright Copyright (C) 2011 - 2012 Ngo Van Quan * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html * @version $Id$ **/ defined('_JEXEC') or die('Direct Access to this location is not allowed.'); AImporter::model('transports'); Aimporter::helper('math'); class BookproViewRoute extends JViewLegacy { protected $item; protected $form; public function display($tpl = null) { $this->item = $this->get('Item'); $this->form = $this->get('Form'); $model = new BookProModelTransports(); $this->dest = $model->getGroupAirportList(); if (count($errors = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); }