当前位置: 首页>>代码示例>>PHP>>正文


PHP getBookingExtName函数代码示例

本文整理汇总了PHP中getBookingExtName函数的典型用法代码示例。如果您正苦于以下问题:PHP getBookingExtName函数的具体用法?PHP getBookingExtName怎么用?PHP getBookingExtName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了getBookingExtName函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: quickiconButton

function quickiconButton($link, $image, $text, $description = null)
{
    $lang = JFactory::getLanguage();
    ?>
    				
    				<li class="option-button">
    					<a href="<?php 
    echo $link;
    ?>
" class="box box-inset">
    						<?php 
    echo JHTML::_('image', 'administrator/components/' . getBookingExtName() . '/assets/img/' . $image, $text);
    ?>
	
    						<h3>
    							<?php 
    echo $text;
    ?>
    						</h3>
    						<p> <?php 
    //echo $description;
    ?>
 &nbsp;</p>
    					</a>
    				</li>
    				<?php 
}
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:27,代码来源:default.php

示例2: language

 function language()
 {
     $app = JFactory::getApplication();
     $code = JRequest::getString('code');
     if (empty($code)) {
         $app->enqueueMessage(JText::_('Code not specified', true));
         return;
     }
     $file = new stdClass();
     $file->name = $code;
     $path = JPATH_COMPONENT_ADMINISTRATOR . DS . 'language' . DS . $code . DS . $code . getBookingExtName() . '.ini';
     $file->path = $path;
     jimport('joomla.filesystem.file');
     $showLatest = true;
     $loadLatest = false;
     if (JFile::exists($path)) {
         $file->content = JFile::read($path);
         if (empty($file->content)) {
             $app->enqueueMessage('File not found : ' . $path);
         }
     } else {
         $loadLatest = true;
         $file->content = JFile::read(JPATH_COMPONENT_ADMINISTRATOR . DS . 'language' . 'en-GB' . DS . 'en-GB.' . getBookingExtName() . '.ini');
     }
     $this->assignRef('file', $file);
     $tpl = "language";
     return $tpl;
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:28,代码来源:view.html.php

示例3: submitReview

 function submitReview()
 {
     $model = $this->getModel('hotelratings');
     $model->submitReview();
     $msg = "Thank you for your review. Your feedback is appreciated.";
     $confirmationId = JRequest::getVar('confirmation_id');
     $this->setRedirect('index.php?option=' . getBookingExtName() . '&controller=hotelratings&view=hotelratings&submitreviewform=true&confirmation_id=' . $confirmationId, $msg);
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:8,代码来源:hotelcustomer.php

示例4: submitReview

 function submitReview()
 {
     $model = $this->getModel('hotelratings');
     $model->submitReview();
     $msg = JText::_('LNG_REVIEW_THANK_YOU', true);
     $confirmationId = JRequest::getVar('confirmation_id');
     $this->setRedirect('index.php?option=' . getBookingExtName() . '&controller=hotelratings&view=hotelratings&submitreviewform=true&confirmation_id=' . $confirmationId, $msg);
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:8,代码来源:hotelratings.php

示例5: changeState

 function changeState()
 {
     $hotelratings = $this->getModel('managehotelratings');
     $hotelratings->changeState();
     $hotelId = JRequest::getVar('hotel_id');
     $msg = JText::_('LNG_REVIEW_PUBLISH_STATE', true);
     $this->setRedirect('index.php?option=' . getBookingExtName() . '&controller=managehotelratings&view=managehotelratings&hotel_id=' . $hotelId, $msg);
     parent::display();
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:9,代码来源:managehotelratings.php

示例6: includeFunctions

 function includeFunctions()
 {
     $doc = JFactory::getDocument();
     $doc->addStyleSheet('components/' . getBookingExtName() . '/assets/js/validation/css/validationEngine.jquery.css');
     $tag = JHotelUtil::getJoomlaLanguage();
     $doc->addScript('components/' . getBookingExtName() . '/assets/js/validation/js/languages/jquery.validationEngine-' . $tag . '.js');
     $doc->addScript('components/' . getBookingExtName() . '/assets/js/validation/js/jquery.validationEngine.js');
     $doc->addScript('components/' . getBookingExtName() . '/assets/js/jquery.selectlist.js');
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:9,代码来源:view.html.php

示例7: delete

 function delete()
 {
     $model = $this->getModel('manageroomfeatures');
     if ($model->remove()) {
         $msg = JText::_('LNG_FEATURE_ROOM_HAS_BEEN_DELETED', true);
     } else {
         $msg = JText::_('LNG_ERROR_DELETE_FEATURE_ROOM', true);
     }
     // Check the table in so it can be edited.... we are done with it anyway
     $this->setRedirect('index.php?option=' . getBookingExtName() . '&controller=manageroomfeatures&view=manageroomfeatures', $msg);
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:11,代码来源:manageroomfeatures.php

示例8: save

 /**
  * save a record (and redirect to main page)
  * @return void
  */
 function save()
 {
     $model = $this->getModel('tools');
     $post = JRequest::get('post');
     if ($model->store($post)) {
         $msg = JText::_('LNG_TAX_SAVED', true);
         $this->setRedirect('index.php?option=' . getBookingExtName() . '&controller=managetaxes&view=managetaxes', $msg);
     } else {
         $msg = "";
         JError::raiseWarning(500, JText::_('LNG_ERROR_SAVING_TAX', true));
         $this->setRedirect('index.php?option=' . getBookingExtName() . '&controller=managetaxes&view=managetaxes', $msg);
     }
     // Check the table in so it can be edited.... we are done with it anyway
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:18,代码来源:mytools.php

示例9: isUserLoggedIn

 public static function isUserLoggedIn($retunUrl = null)
 {
     $user = JFactory::getUser();
     if (!$user->id) {
         $app = JFactory::getApplication();
         $msg = JText::_('LNG_UNAUTHORIZED_ACCESS', true);
         if ($retunUrl == null) {
             $retunUrl = base64_encode(JRoute::_('index.php?option=' . getBookingExtName() . '&view=customeraccount'));
         }
         $app->redirect(JRoute::_("index.php?option=com_users&view=login&return=" . $retunUrl), $msg);
     } else {
         return true;
     }
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:14,代码来源:UserService.php

示例10: delete

 function delete()
 {
     $model = $this->getModel('managehotelusers');
     $post = JRequest::get('post');
     if (!isset($post['hotel_id'])) {
         $post['hotel_id'] = 0;
     }
     if ($model->remove()) {
         $msg = JText::_('LNG_USER_HAS_BEEN_DELETED', true);
     } else {
         $msg = JText::_('LNG_ERROR_DELETE_USER', true);
     }
     // Check the table in so it can be edited.... we are done with it anyway
     $this->setRedirect('index.php?option=' . getBookingExtName() . '&controller=managehotelusers&view=managehotelusers&hotel_id=' . $post['hotel_id'], $msg);
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:15,代码来源:managehotelusers.php

示例11: display

 function display($tpl = null)
 {
     $this->state = $this->get('State');
     $this->reservationDetails = $this->get("ReservationDetails");
     $this->paymentMethods = $this->get('paymentMethods');
     $this->guestTypes = JHotelReservationHelper::getGuestTypes();
     $this->userData = UserDataService::getUserData();
     $this->hotel = HotelService::getHotel($this->userData->hotelId);
     $this->appSettings = JHotelUtil::getInstance()->getApplicationSettings();
     $doc = JFactory::getDocument();
     $tag = JHotelUtil::getJoomlaLanguage();
     $doc->addStyleSheet('administrator/components/' . getBookingExtName() . '/assets/js/validation/css/validationEngine.jquery.css');
     $doc->addScript('administrator/components/' . getBookingExtName() . '/assets/js/validation/js/languages/jquery.validationEngine-' . $tag . '.js');
     $doc->addScript('administrator/components/' . getBookingExtName() . '/assets/js/validation/js/jquery.validationEngine.js');
     parent::display($tpl);
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:16,代码来源:view.html.php

示例12: editReservation

    function editReservation()
    {
        $this->item = $this->get('Item');
        $this->state = $this->get('State');
        $this->appSettings = JHotelUtil::getInstance()->getApplicationSettings();
        $this->roomTypes = $this->get('RoomTypesOptions');
        $this->guestTypes = JHotelReservationHelper::getGuestTypes();
        $hotels = $this->get('Hotels');
        $this->hotels = checkHotels(JFactory::getUser()->id, $hotels);
        if (count($errors = $this->get('Errors'))) {
            JError::raiseError(500, implode("\n", $errors));
            return false;
        }
        $doc = JFactory::getDocument();
        $doc->addScriptDeclaration('
			var baseUrl="' . (JURI::base() . '/administrator/index.php?option=' . getBookingExtName()) . '";
		');
        $doc->addScript('administrator/components/' . getBookingExtName() . '/assets/js/reservation.js');
        $tpl = 'editreservation';
        return $tpl;
    }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:21,代码来源:view.html.php

示例13: delete

 function delete()
 {
     // Check for request forgeries
     JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN', true));
     // Get items to remove from the request.
     $cid = JRequest::getVar('cid', array(), '', 'array');
     if (!is_array($cid) || count($cid) < 1) {
         JError::raiseWarning(500, JText::_('LNG_NO_HOTEL_SELECTED', true));
     }
     $model = $this->getModel('hotels');
     // Make sure the item ids are integers
     jimport('joomla.utilities.arrayhelper');
     JArrayHelper::toInteger($cid);
     if ($model->remove($cid)) {
         $msg = JText::_('LNG_HOTEL_HAS_BEEN_DELETED', true);
     } else {
         $msg = JText::_('LNG_ERROR_DELETE_HOTEL', true);
     }
     // Check the table in so it can be edited.... we are done with it anyway
     $this->setRedirect('index.php?option=' . getBookingExtName() . '&task=hotels.viewHotels', $msg);
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:21,代码来源:hotels.php

示例14: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     $canDo = JHotelReservationHelper::getActions();
     JRequest::setVar('hidemainmenu', true);
     $user = JFactory::getUser();
     $isNew = $this->item->room_id == 0;
     JToolBarHelper::title(JText::_('LNG_ROOM', true) . " : " . (!$isNew ? JText::_('LNG_EDIT', true) : JText::_('LNG_ADD_NEW', true)), 'menu.png');
     if ($canDo->get('core.create')) {
         JToolBarHelper::apply('room.apply');
         JToolBarHelper::save('room.save');
         JToolBarHelper::save2new('room.save2new');
     }
     if (!$isNew) {
         JToolBarHelper::custom('room.editrateprices', 'edit', 'stats', 'JTOOLBAR_EDIT_RATE_DETAILS', false);
     }
     JToolBarHelper::cancel('room.cancel');
     JToolBarHelper::divider();
     JToolBarHelper::help('JHELP_ROOM_EDIT');
     $doc = JFactory::getDocument();
     $doc->addScript('components/' . getBookingExtName() . '/assets/js/jquery.upload.js');
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:26,代码来源:view.html.php

示例15: changeTopState

 function changeTopState()
 {
     $model = $this->getModel('offers');
     if ($model->changeTopState()) {
         $msg = JText::_('LNG_STATE_CHANGED_SUCCESSFULLY', true);
     } else {
         $msg = JText::_('LNG_ERROR_CHANGE_OFFER_STATE', true);
     }
     $this->setMessage($msg);
     //JRequest::setVar( 'view', 'offers' );
     $this->setRedirect('index.php?option=' . getBookingExtName() . '&controller=offers&view=offers&hotel_id=' . $model->getState('filter.hotel_id'), $msg);
 }
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:12,代码来源:offers.php


注:本文中的getBookingExtName函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。