コード例 #1
1
/**
* @copyright	Copyright (C) 2008-2009 CMSJunkie. All rights reserved.
* 
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
if (!checkUserAccess(JFactory::getUser()->id, "hotel_ratings")) {
    $msg = "You are not authorized to access this resource";
    $this->setRedirect('index.php?option=' . getBookingExtName(), $msg);
}
class JHotelReservationViewManageRatingQuestions extends JViewLegacy
{
    function display($tpl = null)
    {
        $this->items = $this->get('ReviewQuestions');
        $this->item = $this->get('ReviewQuestion');
        if (JRequest::getVar('layout') == "edit") {
            $this->editToolbar();
        } else {
            $this->addToolbar();
        }
        parent::display($tpl);
コード例 #2
0
 /**
  * Display the view
  */
 public function display($tpl = null)
 {
     $lang = JFactory::getLanguage();
     $this->rooms = $this->get('Items');
     $this->state = $this->get('State');
     $this->roomTypes = $this->get('RoomTypesOptions');
     //set hotels
     $hotels = $this->get('Hotels');
     $this->hotels = checkHotels(JFactory::getUser()->id, $hotels);
     JHotelReservationHelper::addSubmenu('reports');
     if (PROFESSIONAL_VERSION == 1) {
         $this->types = array("simple" => "Simple Report", "advanced" => "Advanced Report");
     } else {
         $this->types = array("simple" => "Simple Report");
     }
     if (checkUserAccess(JFactory::getUser()->id, "special_offers_report") && PROFESSIONAL_VERSION == 1) {
         $this->types["offers"] = "Offers Report";
     }
     switch ($this->state->get('filter.type')) {
         case "simple":
             $this->availabilityReport = $this->get('AvailabilityReport');
             break;
         case "advanced":
             $this->availabilityReport = $this->get('DetailedAvailabilityReport');
             break;
         case "offers":
             $this->offerReport = $this->get('OfferReport');
             break;
         default:
             $this->availabilityReport = $this->get('AvailabilityReport');
             break;
     }
     if (count($errors = $this->get('Errors'))) {
         JError::raiseError(500, implode("\n", $errors));
         return false;
     }
     parent::display($tpl);
     $this->addToolbar();
 }
コード例 #3
0
/**
* @copyright	Copyright (C) 2008-2009 CMSJunkie. All rights reserved.
* 
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
if (!checkUserAccess(JFactory::getUser()->id, "manage_arrival_options")) {
    $msg = "You are not authorized to access this resource";
    $this->setRedirect('index.php?option=' . getBookingExtName(), $msg);
}
class JHotelReservationViewManageArrivalOptions extends JViewLegacy
{
    function display($tpl = null)
    {
        if (JRequest::getString('task') != 'edit' && JRequest::getString('task') != 'add') {
            JToolBarHelper::title('J-Hotel Reservation : ' . JText::_('LNG_MANAGE_ARRIVAL_OPTIONS', true), 'generic.png');
            //JRequest::setVar( 'hidemainmenu', 1 );
            JToolBarHelper::custom('back', JUtil::getDashBoardIcon(), 'home', 'Back', false, false);
            $hotel_id =& $this->get('HotelId');
            if ($hotel_id > 0) {
                JToolBarHelper::deleteList(JText::_('LNG_ARE_YOU_SURE_YOU_WANT_TO_DELETE', true), 'Delete', 'Delete', 'Detele button', false, false);
                JToolBarHelper::editList();
コード例 #4
0
ファイル: display.php プロジェクト: nubissurveying/nubis
 function checkForm()
 {
     $returnStr = "";
     $active = checkUserAccess();
     if ($active) {
         $returnStr .= $this->disableForm();
     } else {
         $returnStr = $this->enableForm();
     }
     return $returnStr;
 }
コード例 #5
0
/**
* @copyright	Copyright (C) 2008-2009 CMSJunkie. All rights reserved.
* 
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
if (!checkUserAccess(JFactory::getUser()->id, "manage_excursions")) {
    $msg = "You are not authorized to access this resource";
    $this->setRedirect('index.php?option=' . getBookingExtName(), $msg);
}
class JHotelReservationViewExcursions extends JViewLegacy
{
    protected $items;
    protected $pagination;
    protected $state;
    protected $hotels;
    /**
     * Display the view
     */
    public function display($tpl = null)
    {
        $lang = JFactory::getLanguage();
コード例 #6
0
ファイル: default.php プロジェクト: jmangarret/webtuagencia24
    //echo $description;
    ?>
 &nbsp;</p>
				</a>
			</li>
			<?php 
}
?>

<?php 
echo "<div class='user-options-container'><ul>";
?>
	<?php 
if (checkUserAccess(JFactory::getUser()->id, "reservations_reports")) {
    echo quickiconButton("index.php?option=" . getBookingExtName() . "&view=reports", 'reservationsreports_48_48_icon.gif', JText::_('LNG_RESERVATIONS_CALENDAR_SIMPLE', true), JText::_('LNG_RESERVATIONS_CALENDAR_SIMPLE', true), JText::_('LNG_RESERVATIONS_REPORTS_DESC', true));
}
?>
	<?php 
if (checkUserAccess(JFactory::getUser()->id, "reservations_reports") && PROFESSIONAL_VERSION == 1) {
    echo quickiconButton("index.php?option=" . getBookingExtName() . "&task=reservationsreports.incomeReport", 'managecurrencies_48_48_icon.gif', JText::_('LNG_RESERVATIONS_INCOME_REPORT', true), JText::_('LNG_RESERVATIONS_INCOME_REPORT', true), JText::_('LNG_RESERVATIONS_REPORTS_DESC', true));
}
?>
	<?php 
if (checkUserAccess(JFactory::getUser()->id, "reservations_reports") && PROFESSIONAL_VERSION == 1) {
    echo quickiconButton("index.php?option=" . getBookingExtName() . "&task=reservationsreports.countryReservationReport", 'manageroomfeatures_48_48_icon.gif', JText::_('LNG_RESERVATIONS_BY_COUNTRY_REPORT', true), JText::_('LNG_RESERVATIONS_BY_COUNTRY_REPORT', true), JText::_('LNG_RESERVATIONS_REPORTS_DESC', true));
}
echo "</ul></div>";
?>


コード例 #7
0
/**
* @copyright	Copyright (C) 2008-2009 CMSJunkie. All rights reserved.
* 
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
if (!checkUserAccess(JFactory::getUser()->id, "reservations_reports")) {
    $msg = "You are not authorized to access this resource";
    $this->setRedirect('index.php?option=' . getBookingExtName(), $msg);
}
class JHotelReservationViewReservationsReports extends JViewLegacy
{
    function display($tpl = null)
    {
        JHotelReservationHelper::addSubmenu('reports');
        $this->setToolbar();
        $function = $this->getLayout();
        if (method_exists($this, $function)) {
            $tpl = $this->{$function}();
        }
        $this->setLayout('default');
        parent::display($tpl);
コード例 #8
0
/**
 * @copyright	Copyright (C) 2008-2009 CMSJunkie. All rights reserved.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
// No direct access
defined('_JEXEC') or die('Restricted access');
if (!checkUserAccess(JFactory::getUser()->id, "manage_offers")) {
    $msg = "You are not authorized to access this resource";
    $this->setRedirect('index.php?option=' . getBookingExtName(), $msg);
}
JHTML::_('script', 'administrator/components/' . getBookingExtName() . '/assets/js/jquery.selectlist.js');
JHTML::_('script', 'administrator/components/' . getBookingExtName() . '/assets/js/jquery.upload.js');
JHTML::_('script', 'administrator/components/' . getBookingExtName() . '/assets/js/manageextraoptions.js');
jimport('joomla.html.pane');
class JHotelReservationViewOffer extends JViewLegacy
{
    function display($tpl = null)
    {
        $this->appSettings = JHotelUtil::getInstance()->getApplicationSettings();
        $this->item = $this->get('Item');
        $this->extraOptions = $this->get('ExtraOptions');
        $this->pictures = $this->get('OfferPictures');
コード例 #9
0
ファイル: default.php プロジェクト: jmangarret/webtuagencia24
        ?>
							</TD>
							<TD align=center>
								<?php 
        echo $offer->offer_datas == '0000-00-00' ? "&nbsp;" : JHotelUtil::getDateGeneralFormat($offer->offer_datas);
        ?>
								<?php 
        echo JText::_('LNG_TO', true);
        ?>
	
								<?php 
        echo $offer->offer_datae == '0000-00-00' ? "&nbsp;" : JHotelUtil::getDateGeneralFormat($offer->offer_datae);
        ?>
							</TD>
								<?php 
        if (checkUserAccess(JFactory::getUser()->id, "manage_featured_hotels")) {
            ?>
									<td align=center><img border=1
										src="<?php 
            echo JURI::base() . "components/" . getBookingExtName() . "/assets/img/" . ($offer->top == false ? "unchecked.gif" : "checked.gif");
            ?>
"
										onclick="document.location.href = '<?php 
            echo JRoute::_('index.php?option=' . getBookingExtName() . '&task=offers.changeTopState&offer_id=' . $offer->offer_id . '&hotel_id=' . $offer->hotel_id);
            ?>
 '" />
									</td>
									<td align=center><img border=1
										src="<?php 
            echo JURI::base() . "components/" . getBookingExtName() . "/assets/img/" . ($offer->featured == false ? "unchecked.gif" : "checked.gif");
            ?>
コード例 #10
0
ファイル: default.php プロジェクト: jmangarret/webtuagencia24
							onclick="	
													document.location.href = '<?php 
            echo JRoute::_('index.php?option=' . getBookingExtName() . '&task=hotels.state&hotel_id=' . $hotel->hotel_id);
            ?>
 '
												" />
						</td>
						<?php 
        }
        ?>
						<TD align="center" nowrap="nowrap">
						<?php 
        if (checkUserAccess(JFactory::getUser()->id, "manage_featured_hotels")) {
            ?>
							<?php 
            if (checkUserAccess(JFactory::getUser()->id, "availability_section")) {
                ?>
								<a	href='<?php 
                echo JRoute::_('index.php?option=' . getBookingExtName() . '&view=availability&hotel_id=' . $hotel->hotel_id);
                ?>
'
									title="<?php 
                echo JText::_('LNG_AVAILABILITY');
                ?>
"
								> 
									<b><?php 
                echo JText::_('LNG_AVAILABILITY');
                ?>
</b>
								</a>
コード例 #11
0
/**
* @copyright	Copyright (C) 2008-2009 CMSJunkie. All rights reserved.
* 
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
if (!checkUserAccess(JFactory::getUser()->id, "manage_room_discounts")) {
    $msg = "You are not authorized to access this resource";
    $this->setRedirect('index.php?option=' . getBookingExtName(), $msg);
}
JHTML::_('script', 'administrator/components/' . getBookingExtName() . '/assets/js/jquery.selectlist.js');
JHTML::_('script', 'administrator/components/' . getBookingExtName() . '/assets/js/manageDiscounts.js');
class JHotelReservationViewManageRoomDiscounts extends JViewLegacy
{
    function display($tpl = null)
    {
        if (JRequest::getString('task') != 'edit' && JRequest::getString('task') != 'add') {
            JToolBarHelper::title('J-HotelReservation :' . JText::_('LNG_MANAGE_ROOM_DISCOUNTS', true), 'generic.png');
            // JRequest::setVar( 'hidemainmenu', 1 );
            JHotelReservationHelper::addSubmenu('roomdiscounts');
            $hotel_id = $this->get('HotelId');
            if ($hotel_id > 0) {
コード例 #12
0
<?php 
/**
* @copyright	Copyright (C) 2008-2009 CMSJunkie. All rights reserved.
* 
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
if (!checkUserAccess(JFactory::getUser()->id, "special_offers_report")) {
    $msg = "You are not authorized to access this resource";
    $this->setRedirect('index.php?option=' . getBookingExtName(), $msg);
}
?>
	<div id="editcell">
		<fieldset class="adminform">
			<legend><?php 
echo JText::_('LNG_RESERVATIONS_OFFERS_ACCESS_DETAILS', true);
?>
</legend>
			<div style='text-align:left'>
				<?php 
foreach ($this->offerReport as $k => $details) {
    if (strcmp($k, 'media_refers') == 0) {
        continue;
コード例 #13
0
/**
* @copyright	Copyright (C) 2008-2009 CMSJunkie. All rights reserved.
* 
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
if (!checkUserAccess(JFactory::getUser()->id, "currency_settings")) {
    $msg = "You are not authorized to access this resource";
    $this->setRedirect('index.php?option=' . getBookingExtName(), $msg);
}
class JHotelReservationViewManageCurrencies extends JViewLegacy
{
    function display($tpl = null)
    {
        if (JRequest::getString('task') != 'edit' && JRequest::getString('task') != 'add') {
            JToolBarHelper::title('J-Hotel Reservation : ' . JText::_('LNG_CURRENCY_SETTINGS', true), 'generic.png');
            // JRequest::setVar( 'hidemainmenu', 1 );
            JToolBarHelper::addNew('managecurrencies.edit');
            JToolBarHelper::editList('managecurrencies.edit');
            JToolBarHelper::deleteList('', 'managecurrencies.delete', JText::_('LNG_DELETE', true));
            JToolBarHelper::custom('managecurrencies.back', JHotelUtil::getDashBoardIcon(), 'home', JText::_('LNG_HOTEL_DASHBOARD', true), false, false);
            $items = $this->get('Datas');
コード例 #14
0
ファイル: default.php プロジェクト: jmangarret/webtuagencia24
				}
				
				if(jQuery('#number_of_rooms').validationEngine('validate')){
					$$('dt.tabs')[2].fireEvent('click');
					jQuery('#number_of_rooms').focus();
					return false; 
					
				}
				if(jQuery('#children_category').validationEngine('validate')){
					$$('dt.tabs')[2].fireEvent('click');
					jQuery('#children_category').focus();
					return false; 
				}

				<?php 
if (checkUserAccess(JFactory::getUser()->id, "hotel_extra_info")) {
    ?>
					$$('dt.tabs')[4].fireEvent('click');
					
					if(jQuery('#commission').validationEngine('validate')){
						$$('dt.tabs')[4].fireEvent('click');
						jQuery('#commission').focus();					
						return false; 
					}
				<?php 
}
?>
				$$('dt.tabs')[0].fireEvent('click');
				jQuery('#hotel_name').focus();
				submitform( pressbutton );
				return;
コード例 #15
0
ファイル: helper.php プロジェクト: jmangarret/webtuagencia24
 /**
  * Configure the Linkbar.
  *
  * @param   string	The name of the active view.
  */
 public static function addSubmenu($vName)
 {
     if (checkUserAccess(JFactory::getUser()->id, "application_settings")) {
         JSubMenuHelper::addEntry(JText::_('LNG_SUBMENU_SETTINGS', true), 'index.php?option=com_jhotelreservation&view=applicationsettings', $vName == 'applicationsettings');
     }
     if (checkUserAccess(JFactory::getUser()->id, "manage_hotels")) {
         JSubMenuHelper::addEntry(JText::_('LNG_SUBMENU_HOTELS', true), 'index.php?option=com_jhotelreservation&view=hotels', $vName == 'hotels');
     }
     if (checkUserAccess(JFactory::getUser()->id, "manage_rooms")) {
         JSubMenuHelper::addEntry(JText::_('LNG_SUBMENU_ROOMS', true), 'index.php?option=com_jhotelreservation&view=rooms', $vName == 'rooms');
     }
     if (checkUserAccess(JFactory::getUser()->id, "availability_section")) {
         JSubMenuHelper::addEntry(JText::_('LNG_SUBMENU_AVAILABILITY', true), 'index.php?option=com_jhotelreservation&view=availability', $vName == 'availability');
     }
     if (checkUserAccess(JFactory::getUser()->id, "payment_processors") && STARTER_VERSION == 0) {
         JSubMenuHelper::addEntry(JText::_('LNG_PAYMENT_PROCESSORS', true), 'index.php?option=com_jhotelreservation&view=paymentprocessors', $vName == 'paymentprocessors');
     }
     if (checkUserAccess(JFactory::getUser()->id, "manage_offers") && PROFESSIONAL_VERSION == 1) {
         JSubMenuHelper::addEntry(JText::_('LNG_SUBMENU_OFFERS', true), 'index.php?option=com_jhotelreservation&view=offers', $vName == 'offers');
     }
     if (checkUserAccess(JFactory::getUser()->id, "manage_extra_options") && PROFESSIONAL_VERSION == 1) {
         JSubMenuHelper::addEntry(JText::_('LNG_SUBMENU_EXTAS', true), 'index.php?option=com_jhotelreservation&view=extraoptions', $vName == 'extraoptions');
     }
     /*if (checkUserAccess(JFactory::getUser()->id,"manage_excursions") && PROFESSIONAL_VERSION==1){
     			JSubMenuHelper::addEntry(
     				JText::_('LNG_COURSE_EXCURSION_PANEL',true),
     				'index.php?option=com_jhotelreservation&view=excursions',
     				$vName == 'excursions'
     			);
     		}*/
     if (checkUserAccess(JFactory::getUser()->id, "manage_room_discounts") && PROFESSIONAL_VERSION == 1) {
         JSubMenuHelper::addEntry(JText::_('LNG_SUBMENU_ROOM_DISCOUNTS', true), 'index.php?option=com_jhotelreservation&controller=manageroomdiscounts&view=manageroomdiscounts', $vName == 'roomdiscounts');
     }
     if (checkUserAccess(JFactory::getUser()->id, "manage_email_templates")) {
         JSubMenuHelper::addEntry(JText::_('LNG_SUBMENU_EMAILS_TEMPLATES', true), 'index.php?option=com_jhotelreservation&controller=manageemails&view=manageemails', $vName == 'emailtemplates');
     }
     if (checkUserAccess(JFactory::getUser()->id, "hotel_ratings") && PROFESSIONAL_VERSION == 1) {
         JSubMenuHelper::addEntry(JText::_('LNG_SUBMENU_HOTEL_REVIEWS', true), 'index.php?option=com_jhotelreservation&task=managehotelratings.menuhotelratings', $vName == 'reviews');
     }
     if (checkUserAccess(JFactory::getUser()->id, "manage_hotel_users") && PORTAL_VERSION == 1) {
         JSubMenuHelper::addEntry(JText::_('LNG_SUBMENU_HOTEL_USER_ACCESS', true), 'index.php?option=com_jhotelreservation&view=usersmanagement', $vName == 'useraccess');
     }
     if (checkUserAccess(JFactory::getUser()->id, "manage_reservations")) {
         JSubMenuHelper::addEntry(JText::_('LNG_SUBMENU_MANAGE_RESERVATION', true), 'index.php?option=com_jhotelreservation&view=reservations', $vName == 'reservations');
     }
     if (checkUserAccess(JFactory::getUser()->id, "reservations_reports") && STARTER_VERSION != 1) {
         JSubMenuHelper::addEntry(JText::_('LNG_SUBMENU_RESERVATION_REPORTS', true), 'index.php?option=com_jhotelreservation&view=reservationsreports', $vName == 'reports');
     }
     if (checkUserAccess(JFactory::getUser()->id, "manage_invoices") && PORTAL_VERSION == 1) {
         JSubMenuHelper::addEntry(JText::_('LNG_SUBMENU_INVOICES', true), 'index.php?option=com_jhotelreservation&controller=manageinvoices&view=manageinvoices', $vName == 'invoices');
     }
     if (checkUserAccess(JFactory::getUser()->id, "updates_hotelreservation")) {
         JSubMenuHelper::addEntry(JText::_('LNG_UPDATE', true), 'index.php?option=com_jhotelreservation&view=updates', $vName == 'updates');
     }
     /*
     		if (checkUserAccess(JFactory::getUser()->id,"payment_processors") && STARTER_VERSION!=1){
     			JSubMenuHelper::addEntry(
     					JText::_('LNG_SUBMENU_PAYMENT_PROCESSORS',true),
     					'index.php?option=com_jhotelreservation&view=paymentprocessors&controler=paymentprocessors',
     					$vName == 'paymentprocessors'
     			);
     		}
     		
     		if (checkUserAccess(JFactory::getUser()->id,"updates_hotelreservation")){
     			JSubMenuHelper::addEntry(
     			JText::_('LNG_SUBMENU_UPDATES',true), 'index.php?option=com_jhotelreservation&view=updates',
     			$vName == 'reports'
     			);
     		}*/
 }
コード例 #16
0
?>
				</TD>
			</TR>
			<TR>
				<TD nowrap class="key"><?php 
echo JText::_('LNG_HOTEL_PAYMENT_OPTIONS', true);
?>
:</TD>
				<TD nowrap align=left>
					<div id="paymentOption-holder" class="option-holder">
						<?php 
echo $this->paymentoptions->displayPaymentOptions($this->item->paymentOptions, $this->item->selectedPaymentOptions);
?>
					</div>
				<?php 
if (checkUserAccess(JFactory::getUser()->id, "manage_options")) {
    ?>
			
					<div class="manage-option-holder">
						<a href="javascript:" onclick="showManagePaymentOptions()"><?php 
    echo isset($this->item->hotel_id) ? JText::_('LNG_MANAGE_PAYMENT_OPTIONS', true) : "";
    ?>
</a>
					</div>		
				<?php 
}
?>
			
				</TD>
			</TR>
			<TR>
コード例 #17
0
ファイル: default.php プロジェクト: jmangarret/webtuagencia24
?>
						
			   	 		 
					
			<?php 
if (checkUserAccess(JFactory::getUser()->id, "add_reservations")) {
    echo quickiconButton("index.php?option=" . getBookingExtName() . "&view=reservation&sourceId=0&layout=edit", 'addreservation.png', JText::_('LNG_ADD_RESERVATIONS'));
}
?>
			<?php 
if (checkUserAccess(JFactory::getUser()->id, "manage_reservations")) {
    echo quickiconButton("index.php?option=" . getBookingExtName() . "&view=reservations", 'reservations.png', JText::_('LNG_MANAGE_RESERVATIONS', true), JText::_('LNG_MANAGE_RESERVATIONS_DESC', true));
}
?>
			<?php 
if (checkUserAccess(JFactory::getUser()->id, "updates_hotelreservation")) {
    echo quickiconButton("index.php?option=" . getBookingExtName() . "&view=updates", 'downloads.png', JText::_('LNG_UPDATE', true), JText::_('LNG_UPDATE_DESC', true));
}
?>
			<?php 
echo quickiconButton("index.php?option=" . getBookingExtName() . "&about&view=about", 'about.png', JText::_('LNG_ABOUT', true), JText::_('LNG_ABOUT_DESC', true));
?>
	  				
		<?php 
echo "</ul></div>";
?>
	  				
		<div id="chartPanel"> 
			<div id="chartdiv">
				<div style='text-align:center;padding-top:150px;width:100%'><img src='<?php 
echo JURI::base() . "/components/" . getBookingExtName();
コード例 #18
0
/**
* @copyright	Copyright (C) 2008-2009 CMSJunkie. All rights reserved.
* 
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
if (!checkUserAccess(JFactory::getUser()->id, "manage_taxes")) {
    $msg = "You are not authorized to access this resource";
    $this->setRedirect('index.php?option=' . getBookingExtName(), $msg);
}
class JHotelReservationViewManageTaxes extends JViewLegacy
{
    function display($tpl = null)
    {
        if (JRequest::getString('task') != 'edit' && JRequest::getString('task') != 'add') {
            JToolBarHelper::title('J-HotelReservation : ' . JText::_('LNG_MANAGE_TAXES', true), 'generic.png');
            JRequest::setVar('hidemainmenu', 1);
            $hotel_id = $this->get('HotelId');
            if ($hotel_id > 0) {
                JToolBarHelper::addNew('managetaxes.edit');
                JToolBarHelper::editList('managetaxes.edit');
                JToolBarHelper::deleteList('', 'managetaxes.delete', JText::_('LNG_DELETE', true));
コード例 #19
0
* 
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
require_once JPATH_COMPONENT_ADMINISTRATOR . '/helpers/helper.php';
JHTML::_('script', 'administrator/components/' . getBookingExtName() . '/assets/js/reservation.js');
if (!checkUserAccess(JFactory::getUser()->id, "manage_reservations")) {
    $msg = "You are not authorized to access this resource";
    $this->setRedirect('index.php?option=' . getComponentName(), $msg);
}
class JHotelReservationViewReservation extends JViewLegacy
{
    protected $item;
    protected $state;
    /**
     * Display the view
     */
    public function display($tpl = null)
    {
        $lang = JFactory::getLanguage();
        $this->item = $this->get('Item');
        $this->state = $this->get('State');
コード例 #20
0
/**
* @copyright	Copyright (C) 2008-2009 CMSJunkie. All rights reserved.
* 
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
if (!checkUserAccess(JFactory::getUser()->id, "manage_email_templates")) {
    $msg = "You are not authorized to access this resource";
    $this->setRedirect('index.php?option=' . getBookingExtName(), $msg);
}
class JHotelReservationViewManageEmails extends JViewLegacy
{
    function display($tpl = null)
    {
        if (JRequest::getString('task') != 'edit' && JRequest::getString('task') != 'add') {
            JToolBarHelper::title('J-Hotel Reservation : ' . JText::_('LNG_MANAGE_EMAILS_TEMPLATES', true), 'generic.png');
            $hotel_id = $this->get('HotelId');
            JHotelReservationHelper::addSubmenu('emailtemplates');
            if ($hotel_id > 0) {
                JToolBarHelper::addNew('manageemails.edit');
                JToolBarHelper::editList('manageemails.edit');
                JToolBarHelper::deleteList('', 'manageemails.delete', JText::_('LNG_DELETE', true));
コード例 #21
0
/**
* @copyright	Copyright (C) 2008-2009 CMSJunkie. All rights reserved.
* 
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
if (!checkUserAccess(JFactory::getUser()->id, "manage_airport_transfers")) {
    $msg = "You are not authorized to access this resource";
    $this->setRedirect('index.php?option=' . getBookingExtName(), $msg);
}
class JHotelReservationViewManageAirportTransferTypes extends JViewLegacy
{
    function display($tpl = null)
    {
        if (JRequest::getString('task') != 'edit' && JRequest::getString('task') != 'add') {
            JToolBarHelper::title('J-Hotel Reservation : ' . JText::_('LNG_MANAGE_AIRPORT_TRANSFER_TYPES', true), 'generic.png');
            //JRequest::setVar( 'hidemainmenu', 1 );
            $hotel_id = $this->get('HotelId');
            if ($hotel_id > 0) {
                JToolBarHelper::addNew('manageairporttransfertypes.edit');
                JToolBarHelper::editList('manageairporttransfertypes.edit');
                JToolBarHelper::deleteList('', 'manageairporttransfertypes.delete', JText::_('LNG_DELETE', true));
コード例 #22
0
<?php

/**
 * @paymentprocessor    JBusinessDirectory
 * @subpaymentprocessor  com_jhotereservation
 *
 * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;
/**
 * The HTML  View.
 */
if (!checkUserAccess(JFactory::getUser()->id, "payment_processors")) {
    $msg = "You are not authorized to access this resource";
    $this->setRedirect('index.php?option=' . getBookingExtName(), $msg);
}
require_once JPATH_COMPONENT_ADMINISTRATOR . '/helpers/helper.php';
class JHotelReservationViewPaymentProcessor extends JViewLegacy
{
    protected $item;
    protected $state;
    /**
     * Display the view
     */
    public function display($tpl = null)
    {
        $this->item = $this->get('Item');
        $this->state = $this->get('State');
        $this->statuses = JHotelReservationHelper::getStatuses();
        $this->modes = JHotelReservationHelper::getModes();
コード例 #23
0
<?php

/**
* @copyright	Copyright (C) 2008-2009 CMSJunkie. All rights reserved.
* 
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
if (!checkUserAccess(JFactory::getUser()->id, "about_hotelreservation")) {
    $msg = "You are not authorized to access this resource";
    $this->setRedirect('index.php?option=' . getBookingExtName(), $msg);
}
class JHotelReservationViewAbout extends JViewLegacy
{
    function display($tpl = null)
    {
        JToolBarHelper::title('J-Hotel Reservation' . JText::_('LNG_ABOUT', true), 'generic.png');
        // JRequest::setVar( 'hidemainmenu', 1 );
        JToolBarHelper::custom('jhotelreservation.back', JHotelUtil::getDashBoardIcon(), 'home', 'Back', false, false);
        parent::display($tpl);
    }
}
コード例 #24
0
        header("Location: convoy.php?id=" . $convoyID);
        exit;
    }
    var_dump($_POST);
    die;
}
$locationsArray = [];
foreach (scandir("locations") as $file) {
    $locations = json_decode(file_get_contents("locations/" . $file), true);
    foreach ((array) $locations as $loc) {
        $locationsArray[] = "" . $loc['city'];
    }
    sort($locationsArray);
}
$servers = json_decode(file_get_contents("https://api.ets2mp.com/servers/"), true);
if (!checkUserAccess($ipRestricted)) {
    echo '<section class="container"><h1>Convoy Creation</h1><p class="alert-red">You do not have permission to create a convoy.</p></section>';
    require "assets/footer.php";
    die;
}
?>
<section class="container">
    <h1>Convoy Creation</h1>
    <p style="text-align:center;">Fill in the form below to create a convoy for <?php 
echo $vtcName;
?>
</p>
    <form action="create.php" method="POST">
        <table class="createForm">
			<tr>
                <td>Display Username</td>
コード例 #25
0
<?php

/*------------------------------------------------------------------------
# JHotelReservation
# author CMSJunkie
# copyright Copyright (C) 2013 cmsjunkie.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://www.cmsjunkie.com
# Technical Support:  Forum - http://www.cmsjunkie.com/forum/hotel_reservation/?p=1
# Technical Support:  Forum Multiple - http://www.cmsjunkie.com/forum/joomla-multiple-hotel-reservation/?p=1
-------------------------------------------------------------------------*/
defined('_JEXEC') or die('Restricted access');
if (!checkUserAccess(JFactory::getUser()->id, "application_settings")) {
    $msg = "You are not authorized to access this resource";
    $this->setRedirect('index.php?option=' . getBookingExtName(), $msg);
}
JHTML::_('script', 'administrator/components/' . getBookingExtName() . '/assets/js/jquery.upload.js');
class JHotelReservationViewApplicationSettings extends JViewLegacy
{
    function display($tpl = null)
    {
        $item = $this->get('Data');
        $this->item = $item;
        $elements = new stdClass();
        //hotel important informations
        $elements->show_price_per_person = JHTML::_('select.booleanlist', "show_price_per_person", '', $item->show_price_per_person);
        $elements->charge_only_reservation_cost = JHTML::_('select.booleanlist', "charge_only_reservation_cost", '', $item->charge_only_reservation_cost);
        $elements->send_invoice_to_email = JHTML::_('select.booleanlist', "send_invoice_to_email", '', $item->send_invoice_to_email);
        $this->elements = $elements;
        $this->languages = $this->get('Languages');
        $this->addToolbar();
コード例 #26
0
/**
* @copyright	Copyright (C) 2008-2009 CMSJunkie. All rights reserved.
* 
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
* See the GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
if (!checkUserAccess(JFactory::getUser()->id, "manage_hotels")) {
    $msg = "You are not authorized to access this resource";
    $this->setRedirect('index.php?option=' . getBookingExtName(), $msg);
}
require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'models' . DS . 'hoteltranslations.php';
JHTML::_('script', 'http://maps.google.com/maps/api/js?sensor=true&libraries=places');
class JHotelReservationViewHotel extends JViewLegacy
{
    function display($tpl = null)
    {
        $item = $this->get('Data');
        $this->item = $item;
        $appSettings = JHotelUtil::getApplicationSettings();
        $this->lodgingtypes = $this->getModel('lodgingtypes');
        $this->facilities = $this->getModel('facilities');
        $this->accomodationtypes = $this->getModel('accomodationtypes');
コード例 #27
-1
/**
 * @copyright	Copyright (C) 2008-2009 CMSJunkie. All rights reserved.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
// No direct access
defined('_JEXEC') or die('Restricted access');
if (!checkUserAccess(JFactory::getUser()->id, "manage_rooms") && !checkUserAccess(JFactory::getUser()->id, "availability_section")) {
    $msg = "You are not authorized to access this resource";
    $this->setRedirect('index.php?option=' . getBookingExtName(), $msg);
}
class JHotelReservationViewRoomRatePrices extends JViewLegacy
{
    protected $item;
    protected $state;
    protected $rate;
    /**
     * Display the view
     */
    public function display($tpl = null)
    {
        //$this->form	= $this->get('Form');
        $this->items = $this->get('Items');