defined('_JEXEC') or die; JHtml::_('jquery.framework'); //JHtml::_('jquery.ui'); $document = JFactory::getDocument(); $lang = JFactory::getLanguage(); $local = substr($lang->getTag(), 0, 2); //$document->addScript(JURI::root().'components/com_bookpro/assets/js/jquery.ui.datepicker.js'); require_once dirname(__FILE__) . '/helper/helper.php'; require_once JPATH_ADMINISTRATOR . '/components/com_bookpro/helpers/date.php'; require_once JPATH_ADMINISTRATOR . '/components/com_bookpro/helpers/debug.php'; require_once JPATH_ROOT . '/components/com_bookpro/models/transportcart.php'; $cart = JModelLegacy::getInstance('TransportCart', 'BookPro'); $cart->load(); //echo '<pre>';var_dump($cart);die; if (!isset($cart->filter['type'])) { $cart->filter['type'] = modJbTransportHelper::getDefaultType(); } $cart_from = isset($cart->filter['destfrom']) ? $cart->filter['destfrom'] : 0; $cart_to = isset($cart->filter['destto']) ? $cart->filter['destto'] : 0; $cart_pad_to = isset($cart->filter['pad_to']) ? $cart->filter['pad_to'] : 0; $cart_pad_from = isset($cart->filter['pad_from']) ? $cart->filter['pad_from'] : 0; $cart_adult = isset($cart->filter['adult']) ? $cart->filter['adult'] : 0; $cart_child = isset($cart->filter['child']) ? $cart->filter['child'] : 0; $cart_bag = isset($cart->filter['bag']) ? $cart->filter['bag'] : 0; $date_format = DateHelper::getConvertDateFormat('P'); $js_format = DateHelper::getConvertDateFormat('J'); $document->addScript(JURI::base() . 'modules/mod_jbtransport_search/assets/js/select2.js'); $document->addScript("http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"); //$document->addScript("http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.1/localization/messages_".$local.".js"); $document->addStyleSheet(JURI::root() . 'modules/mod_jbtransport_search/assets/js/timepicker/bootstrap-timepicker.css'); $document->addScript(JURI::base() . 'modules/mod_jbtransport_search/assets/js/timepicker/bootstrap-timepicker.js');
<?php } ?> <?php if ($params->get('bag_option')) { ?> <div class="pull-left" style="margin-right:10px"> <div class="control-group"> <label class="control-label"><?php echo JText::_('MOD_BOOKPRO_TRANSPORT_SEARCH_LUGGAGE'); ?> </label> <div class="controls"> <?php echo modJbTransportHelper::getLuggageBox($cart_bag); ?> </div> </div> </div> <?php } ?> </div> </div> <div class="center"> <button type="button" onclick="transportSubmit();" class="btn btn-primary btn-large" style="margin-bottom: 5px;width:200px"><?php echo JText::_('MOD_BOOKPRO_TRANSPORT_SEARCH_SEARCH'); ?> </button> </div>