Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
/**
 * @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$
 **/
AImporter::helper('tour');
defined('_JEXEC') or die('Restricted access');
$order = $displayData;
$order_id = $order->id;
$rowFields = TourHelper::getCustomfieldsByOrderid($order_id);
$form = new RADForm($rowFields, null, '');
$fields = $form->getFields();
//var_dump($rowFields); die;
?>
	<legend>
		<span><?php 
echo JText::_('COM_BOOKPRO_CUSTOM_FIELDS');
?>
 </span>
	</legend>
<div class="form-horizontal">
	<?php 
foreach ($fields as $field) {
    echo $field->getControlGroup();
}
?>
</div>