本文整理汇总了PHP中getBookingExtName函数的典型用法代码示例。如果您正苦于以下问题:PHP getBookingExtName函数的具体用法?PHP getBookingExtName怎么用?PHP getBookingExtName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getBookingExtName函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
?>
</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
示例16: getBookingExtName
echo $item->extra_pers_price;
?>
" />
</li>
</ul>
</div>
<?php
}
?>
</div>
</div>
<div class="clr"></div>
</div>
<input type="hidden" name="option" value="<?php
echo getBookingExtName();
?>
" />
<input type="hidden" name="task" value="" />
<input type="hidden" name="rate_id" id="rate_id" value="<?php
echo $this->state->get("filter.rate_id");
?>
" />
<?php
echo JHTML::_('form.token');
?>
</form>
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:29,代码来源:edit.php
示例17: getLanguages
function getLanguages()
{
$path = JLanguage::getLanguagePath(JPATH_ROOT);
$dirs = JFolder::folders($path);
foreach ($dirs as $dir) {
if (strlen($dir) != 5) {
continue;
}
$xmlFiles = JFolder::files($path . DS . $dir, '^([-_A-Za-z]*)\\.xml$');
$xmlFile = reset($xmlFiles);
if (empty($xmlFile)) {
continue;
}
$data = JApplicationHelper::parseXMLLangMetaFile($path . DS . $dir . DS . $xmlFile);
$oneLanguage = new stdClass();
$oneLanguage->language = $dir;
$oneLanguage->name = $data['name'];
$languageFiles = JFolder::files(JPATH_COMPONENT . DS . 'language' . DS . $dir, '^(.*)\\.' . getBookingExtName() . '\\.ini$');
$imageName = JFolder::files(JPATH_COMPONENT . DS . 'language' . DS . $dir, '^(.*)\\.' . getBookingExtName() . '\\.png$');
$languageFile = reset($languageFiles);
if (!empty($languageFile)) {
$linkEdit = 'index.php?option=' . getBookingExtName() . '&task=language.editLanguage&lngCode=' . $oneLanguage->language;
$oneLanguage->edit = ' <a class="modal" title="' . JText::_('LNG_EDIT_LANGUAGE_FILE', true) . '" href="' . $linkEdit . '" rel="{handler: \'iframe\', size:{x:800, y:500}}"><img id="image' . $oneLanguage->language . '" class="icon16" src="' . PATH_ASSETS_IMG . 'edit.png" alt="' . JText::_('LNG_EDIT_LANGUAGE_FILE', true) . '"/></a>';
} else {
$linkEdit = 'index.php?option=' . getBookingExtName() . '&task=language.editLanguage&lngCode=' . $oneLanguage->language;
$oneLanguage->edit = ' <a class="modal" title="' . JText::_('LNG_ADD_LANGUAGE_FILE', true) . '" href="' . $linkEdit . '" rel="{handler: \'iframe\', size:{x:800, y:500}}"><img id="image' . $oneLanguage->language . '" class="icon16" src="' . PATH_ASSETS_IMG . 'edit.png" alt="' . JText::_('LNG_EDIT_LANGUAGE_FILE', true) . '"/></a>';
}
$languages[] = $oneLanguage;
}
return $languages;
}
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:applicationsettings.php
示例18: defined
*
* 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));
JToolBarHelper::custom('managetaxes.back', JHotelUtil::getDashBoardIcon(), 'home', JText::_('LNG_HOTEL_DASHBOARD', true), false, false);
}
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:view.html.php
示例19: cancel
/**
* cancel editing a record
* @return void
*/
function cancel()
{
if (JRequest::getVar('task') == 'cancel') {
$msg = JText::_('LNG_OPERATION_CANCELLED', true);
}
$post = JRequest::get('post');
if (!isset($post['hotel_id'])) {
$post['hotel_id'] = 0;
}
$this->setRedirect('index.php?option=' . getBookingExtName() . '&controller=manageinvoices&view=manageinvoices&hotel_id=' . $post['hotel_id'], $msg);
}
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:15,代码来源:manageinvoices.php
示例20: getBookingExtName
}
}
JHTML::_('script', 'administrator/components/' . getBookingExtName() . '/assets/js/utils.js');
JHTML::_('stylesheet', 'administrator/components/' . getBookingExtName() . '/assets/css/style.css');
JHTML::_('stylesheet', 'administrator/components/' . getBookingExtName() . '/assets/css/general.css');
JHTML::_('stylesheet', 'administrator/components/' . getBookingExtName() . '/assets/css/joomlatabs.css');
//JHTML::_('script', 'administrator/components/'.getBookingExtName().'/assets/jquery-ui.min.js');
//JHTML::_('script', 'administrator/components/'.getBookingExtName().'/assets/tooltip.js');
//JHTML::_('stylesheet', 'administrator/components/'.getBookingExtName().'/assets/tooltip.css');
//JHTML::_('stylesheet', 'administrator/components/'.getBookingExtName().'/assets/jquery-ui.css');
//JHTML::_('stylesheet', 'administrator/components/'.getBookingExtName().'/assets/datepicker/css/datepicker.css');
//JHTML::_('stylesheet', 'administrator/components/'.getBookingExtName().'/assets/datepicker/css/layout.css');
//JHTML::_('script', 'administrator/components/'.getBookingExtName().'/assets/jquery.upload.js');
JHTML::_('script', 'administrator/components/' . getBookingExtName() . '/assets/js/jquery.blockUI.js');
//JHTML::_('stylesheet', 'administrator/components/'.getBookingExtName().'/assets/TabPane.css');
//JHTML::_('script', 'administrator/components/'.getBookingExtName().'/assets/TabPane.js');
JHTML::_('script', 'administrator/components/' . getBookingExtName() . '/assets/js/common.js');
//JHTML::_('script', 'administrator/components/'.getBookingExtName().'/assets/js/jquery.validate.min.js');
//JHTML::_('script', 'administrator/components/'.getBookingExtName().'/assets/js/additional-methods.min.js');
JHotelUtil::loadAdminLanguage();
JHotelUtil::loadClasses();
$doc = JFactory::getDocument();
$doc->addScriptDeclaration('
window.onload = function() {
jQuery.noConflict();
};
var baseUrl="' . (JURI::base() . 'index.php?option=' . getBookingExtName()) . '";
');
$controller = JControllerLegacy::getInstance('JHotelReservation');
$controller->execute(JFactory::getApplication()->input->get('task'));
$controller->redirect();
开发者ID:jmangarret,项目名称:webtuagencia24,代码行数:31,代码来源:jhotelreservation.php
注:本文中的getBookingExtName函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论