function deleteRateDate() { $id = JRequest::getInt('id', 0); $db = JFactory::getDbo(); $query = $db->getQuery(true); if ($id) { $query->delete('#__bookpro_tourrate'); $query->where('id=' . $id); $db->setQuery($query); $db->query(); } $calendar_attributes = array('min_select_year' => JFactory::getDate('-1 years')->format('Y'), 'max_select_year' => JFactory::getDate('+1 years')->format('Y')); if (isset($_REQUEST['action']) and $_REQUEST['action'] == 'pn_get_month_cal') { require_once JPATH_COMPONENT_ADMINISTRATOR . '/classes/calendar.php'; AImporter::css('calendar'); $calendar = new PN_Calendar($calendar_attributes); echo $calendar->draw(array(), $_REQUEST['year'], $_REQUEST['month']); exit; } }
<?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: default.php 23-06-2012 23:33:14 **/ // No direct access to this file defined('_JEXEC') or die('Restricted access'); JHtmlBehavior::modal('a.amodal'); AImporter::helper('form', 'currency'); AImporter::css('common'); $config = JComponentHelper::getParams('com_bookpro'); ?> <form name="frontForm" method="post" action="index.php" id="paymentForm"> <div class="row-fluid"> <div class="span7"> <div class="well well-small"> <div class="well well-small" style="background-color: white; "> <?php echo $this->loadTemplate(strtolower($this->order->type)); ?> <?php echo $this->loadTemplate('cart'); ?> </div> </div>
function calendar() { $date = JDate::createFromFormat('Y', $_POST['year']); $min_date = clone $date; $min_date = $min_date->modify('-1 year'); $max_date = $date->modify('+1 year'); $calendar_attributes = array('min_select_year' => $min_date->format('Y'), 'max_select_year' => $max_date->format('Y')); if (isset($_REQUEST['action']) and $_REQUEST['action'] == 'pn_get_month_cal') { AImporter::classes('dayoffcalendar'); AImporter::css('calendar'); $calendar = new PN_Calendar($calendar_attributes); echo $calendar->draw(array(), $_REQUEST['year'], $_REQUEST['month']); exit; } }
<?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('Restricted access'); jimport('joomla.html.html'); AImporter::css('common', 'customer'); AImporter::helper('currency', 'date'); AImporter::model('tourpackage', 'tour', 'orderinfos', 'passengers'); AImporter::helper('tour', 'paystatus'); JHtml::_('jquery.framework'); $config = JComponentHelper::getParams('com_bookpro'); $company_name = $config->get('company_name'); $logo = $config->get('company_logo'); $address = $config->get('company_address'); $this->customer = $this->ordersComplex->customer; ?> <div style="border: 1px solid #ccc;" class="center"> <table class="table" cellpadding="10"> <tbody> <tr> <td style="border: none;"> <table class="table" cellpadding="5"> <tr> <td style="border: none;">
<?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: default.php 26 2012-07-08 16:07:54Z quannv $ **/ defined('_JEXEC') or die('Restricted access'); $bar =& JToolBar::getInstance('toolbar'); JHtml::_('jquery.framework'); JHtml::_('behavior.modal'); JToolbarHelper::title('Rate calendar'); AImporter::css('calendar'); BookProHelper::setSubmenu(1); require_once JPATH_COMPONENT_ADMINISTRATOR . '/classes/calendar.php'; ?> <script type="text/javascript"> var ajaxurl = "<?php echo JUri::base() . 'index.php?option=com_bookpro&controller=tour&task=calendar&tour_id=' . $this->tour->id; ?> "; var pn_appointments_calendar = null; jQuery(function() { pn_appointments_calendar = new PN_CALENDAR(); pn_appointments_calendar.init(); });
<?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('Restricted access'); JHtmlJquery::framework(); $config = JBFactory::getConfig(); AImporter::helper('tour', 'currency'); AImporter::js('footable'); AImporter::css('footable.core'); $total = 0; if (count($displayData) > 0) { ?> <script type="text/javascript"> jQuery(function () { jQuery('.footable').footable(); }); </script> <div class="box-heading"> <?php
* @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.'); $config = JBFactory::getConfig(); $passengers = $this->items; $orders = $this->order; $app = JFactory::getApplication(); $listOrder = $this->escape($this->state->get('list.ordering')); $listDirn = $this->escape($this->state->get('list.direction')); $document = JFactory::getDocument(); $document->addScript(JURI::root() . 'components/com_bookpro/assets/js/bootstrap-datepicker.js'); $document->addScript(JURI::root() . 'components/com_bookpro/assets/js/locales/bootstrap-datepicker.' . substr($lang->getTag(), 0, 2) . '.js'); $document->addStyleSheet(JURI::root() . 'components/com_bookpro/assets/css/datepicker.css'); AImporter::css('customer'); $js_dateformat = DateHelper::getConvertDateFormat('J'); $php_dateformat = DateHelper::getConvertDateFormat('P'); $manager_authorise = $this->authorise->order_manager; ?> <script type="text/javascript"> jQuery(document).ready(function($){ //search name if($('#filter_search').val() != ''){ $('#filter_search').focus(); } $('#filter_search').live("keypress", function(e) { if (e.keyCode == 13) { $("#adminForm").submit(); }
* @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('Restricted access'); JHtml::_('jquery.ui'); AImporter::css('common', 'tour'); JHtml::_('jquery.framework'); //JHtml::_('behavior.modal','a.modal_term'); AImporter::css('jquery-ui'); JHtmlBehavior::modal('a.modal_term'); //Start library gallery AImporter::css('jquery-ui', 'responsive-calendar', 'fotorama'); AImporter::js('responsive-calendar', 'fotorama', 'underscore-min'); //End library gallery AImporter::css('jquery.ui.datepicker'); $document = JFactory::getDocument(); $document->addScript(JURI::root() . 'components/com_bookpro/assets/js/jquery.ui.datepicker.js'); $action = 'index.php?option=com_bookpro&view=tourbook?Itemid=' . JFactory::getApplication()->input->get('Itemid'); $group_p = explode(';', trim($this->tour->pax_group)); ?> <script type="text/javascript"> jQuery(document).ready(function(){ }); </script> <div class="widgetbookpro-loading"></div> <form name="tourBook" id="tourBook" method="post" action="<?php echo $action;
<?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: default.php 23-06-2012 23:33:14 **/ // No direct access to this file defined('_JEXEC') or die('Restricted access'); AImporter::css('customer', 'tour'); AImporter::helper('date', 'bookpro', 'currency', 'form', 'js'); JHtml::_('jquery.framework'); $config = JComponentHelper::getParams('com_bookpro'); BookProHelper::addJqueryValidate(); JsHelper::checkTimeOutScript('tour'); $lang = JFactory::getLanguage(); $local = substr($lang->getTag(), 0, 2); BookProHelper::addJqueryValidate(); ?> <script type="text/javascript"> jQuery(document).ready(function($){ $("#frontForm").validate({ lang: '<?php echo $local; ?> ', rules: {
* @copyright Copyright (C) 2011 - 2012 Ngo Van Quan * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html * @version $Id: default.php 23-06-2012 23:33:14 **/ // No direct access to this file defined('_JEXEC') or die('Restricted access'); AImporter::helper('date', 'bookpro', 'currency', 'form', 'js', 'transport'); JHtml::_('jquery.framework'); JHtml::_('jquery.ui'); $lang = JFactory::getLanguage(); $local = substr($lang->getTag(), 0, 2); $doc = JFactory::getDocument(); $doc->addScript("http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"); $doc->addScript("http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.1/localization/messages_" . $local . ".js"); $doc->addScript(JURI::base() . "/components/com_bookpro/assets/js/jbtransport.js"); AImporter::css('jbtransport'); //check session timeout JsHelper::checkTimeOutScript(); $total_pass = $this->cart->adult + $this->cart->child; ?> <h1><?php echo JText::_('COM_BOOKPRO_TRANSPORT_CHOOSE_VEHICLE'); ?> </h1> <?php echo JLayoutHelper::render('transport_process_bar', 3, JPATH_ROOT . '/components/com_bookpro/layouts'); ?> <form name="transportVehicle" action='index.php' method="post" id="transportVehicle"> <div > <div class="row-fluid">