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


PHP BFCHelper::parseArrayList方法代码示例

本文整理汇总了PHP中BFCHelper::parseArrayList方法的典型用法代码示例。如果您正苦于以下问题:PHP BFCHelper::parseArrayList方法的具体用法?PHP BFCHelper::parseArrayList怎么用?PHP BFCHelper::parseArrayList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在BFCHelper的用法示例。


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

示例1: array

}
?>
		</span>
	</h2>
	<!-- Pagina di riassunto delle recensioni  -->
	<?php 
//$itemresult = $this->getModel()->getState('rating.resultGrouped');
//echo ("<pre>");
//echo (print_r($itemresult));
//echo ("</pre>");
//$searchid =  $this->params['searchid'];
$filters = $this->params['filters'];
//$listOrder	= $this->escape($this->state->get('list.ordering'));
//$listDirn	= $this->escape($this->state->get('list.direction'));
// preparo la lista per i filtri..
$list = BFCHelper::parseArrayList(JTEXT::_('COM_BOOKINGFORCONNECTOR_VIEW_CONSTANTS_RATING_TYPOLOGIESLIST'));
$listfiltered = $filters['typologyid'];
//foreach( $list as $key=>$value) {
//	$options1[] = JHTML::_( 'select.option', $key, $value );
//}
//$radiolist = JHTML::_('select.radiolist', $options1, 'filters[typologyid]',array('onchange' => 'this.form.submit();', 'class'=> 'rbfilter') , 'value', 'text', $listfiltered);
$genericlist = JHTML::_('select.genericlist', $list, 'filters[typologyid]', array('onchange' => 'this.form.submit();'), 'value', 'text', $listfiltered);
//echo ("<pre>");
//echo (print_r($list));
//echo ("</pre>");
$summaryRatings = $this->getModel()->getMerchantRatingAverageFromService();
?>
	<?php 
if (isset($summaryRatings)) {
    ?>
	<?php 
开发者ID:Bookingfor,项目名称:joomla-extension-v-2,代码行数:31,代码来源:ratings.php

示例2: AND

$this->document->setDescription(BFCHelper::getLanguage($this->item->Description, $this->language));
$merchant = $this->item;
$db = JFactory::getDBO();
$uriMerchant = 'index.php?option=com_bookingforconnector&view=merchantdetails';
$db->setQuery('SELECT id FROM #__menu WHERE link LIKE ' . $db->Quote($uriMerchant . '%') . ' AND (language=' . $db->Quote($this->language) . ' OR language=' . $db->Quote('*') . ') AND published = 1 LIMIT 1');
$itemIdMerchant = $db->getErrorNum() ? 0 : intval($db->loadResult());
//$itemIdMerchant = intval($db->loadResult());
$uriMerchant .= '&merchantId=' . $merchant->MerchantId . ':' . BFCHelper::getSlug($merchant->Name);
if ($itemIdMerchant != 0) {
    $uriMerchant .= '&Itemid=' . $itemIdMerchant;
}
$uriMerchantthanks = $uriMerchant . '&layout=thanks';
$uriMerchant .= '&layout=contacts';
$route = JRoute::_($uriMerchant);
$routeThanks = JRoute::_($uriMerchantthanks);
$cNationList = BFCHelper::parseArrayList(JTEXT::_('COM_BOOKINGFORCONNECTOR_VIEW_CONSTANTS_NATIONSLIST'));
//$cLanguageList = BFCHelper::parseArrayList(JTEXT::_('COM_BOOKINGFORCONNECTOR_VIEW_CONSTANTS_LANGUAGESLIST'));
$cultureCode = strtolower(substr($this->language, 0, 2));
$nationCode = strlen($this->language) == 5 ? strtolower(substr($this->language, 3, 2)) : $cultureCode;
$keys = array_keys($cNationList);
$nations = array_values(array_filter($keys, function ($item) use($nationCode) {
    return strtolower($item) == $nationCode;
}));
$nation = !empty(count($nations)) ? strtoupper($nations[0]) : strtoupper($cultureCode);
$culture = "";
$formRoute = "index.php?option=com_bookingforconnector&task=sendOffer";
$privacy = BFCHelper::GetPrivacy($this->language);
?>
<div class="com_bookingforconnector_merchantdetails com_bookingforconnector_merchantdetails-t<?php 
echo $this->item->MerchantTypeId;
?>
开发者ID:Bookingfor,项目名称:joomla-extension-v-2,代码行数:31,代码来源:package.php

示例3: AND

$this->document->setDescription(BFCHelper::getLanguage($this->item->Description, $this->language));
$db = JFactory::getDBO();
$uriMerchant = 'index.php?option=com_bookingforconnector&view=merchantdetails';
$db->setQuery('SELECT id FROM #__menu WHERE link LIKE ' . $db->Quote($uriMerchant . '%') . ' AND (language=' . $db->Quote($this->language) . ' OR language=' . $db->Quote('*') . ') AND published = 1 LIMIT 1');
$itemIdMerchant = $db->getErrorNum() ? 0 : intval($db->loadResult());
//$itemIdMerchant = intval($db->loadResult());
$uriMerchant .= '&merchantId=' . $merchant->MerchantId . ':' . BFCHelper::getSlug($merchant->Name);
if ($itemIdMerchant != 0) {
    $uriMerchant .= '&Itemid=' . $itemIdMerchant;
}
$uriMerchantthanks = $uriMerchant . '&layout=thanks';
$uriMerchant .= '&layout=contacts';
$route = JRoute::_($uriMerchant);
$routeThanks = JRoute::_($uriMerchantthanks);
$cNationList = BFCHelper::parseArrayList(JTEXT::_('COM_BOOKINGFORCONNECTOR_VIEW_CONSTANTS_NATIONSLIST'));
$cLanguageList = BFCHelper::parseArrayList(JTEXT::_('COM_BOOKINGFORCONNECTOR_VIEW_CONSTANTS_LANGUAGESLIST'));
$nation = "";
$culture = "";
$checkinId = uniqid('checkin');
$checkoutId = uniqid('checkout');
$checkin = new DateTime();
$checkout = new DateTime();
$checkout->modify('+1 day');
$formRoute = "index.php?option=com_bookingforconnector&task=sendContact";
$privacy = BFCHelper::GetPrivacy($this->language);
?>
<div class="com_bookingforconnector_merchantdetails">
	<?php 
echo $this->loadTemplate('head');
?>
	<div class="com_bookingforconnector_merchantdetails-contacts">
开发者ID:Bookingfor,项目名称:joomla-extension,代码行数:31,代码来源:contacts.php

示例4: defined

<?php

/**
 * @package   Bookingforconnector
 * @copyright Copyright (c)2006-2016 Ipertrade
 * @license   GNU General Public License version 3, or later
 */
defined('_JEXEC') or die('Restricted access');
$pathbase = JPATH_SITE . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'com_bookingforconnector' . DIRECTORY_SEPARATOR;
require_once $pathbase . '/helpers/htmlHelper.php';
$cNationList = BFCHelper::parseArrayList(JTEXT::_('COM_BOOKINGFORCONNECTOR_VIEW_CONSTANTS_NATIONSLIST'));
//$cLanguageList = BFCHelper::parseArrayList(JTEXT::_('COM_BOOKINGFORCONNECTOR_VIEW_CONSTANTS_LANGUAGESLIST'));
$cTreatmentsList = BFCHelper::parseArrayList(JTEXT::_('COM_BOOKINGFORCONNECTOR_DEFAULT_FORM_TREATMENTSLIST'));
$cultureCode = strtolower(substr($this->language, 0, 2));
$nationCode = strlen($this->language) == 5 ? strtolower(substr($this->language, 3, 2)) : $cultureCode;
$keys = array_keys($cNationList);
$nations = array_values(array_filter($keys, function ($item) use($nationCode) {
    return strtolower($item) == $nationCode;
}));
$nation = !empty(count($nations)) ? strtoupper($nations[0]) : strtoupper($cultureCode);
$culture = "";
$checkinId = uniqid('checkin');
$checkoutId = uniqid('checkout');
$checkoutspan = '+1 day';
$checkin = new DateTime();
$checkout = new DateTime();
$paxes = 2;
$paxages = array();
$formRoute = "index.php?option=com_bookingforconnector&task=sendScalarRequest";
$privacy = BFCHelper::GetPrivacy($this->language);
$merchantCategoryId = 0;
开发者ID:Bookingfor,项目名称:joomla-extension-v-2,代码行数:31,代码来源:default_scalarrequest.php

示例5: AND

$uriMerchant = 'index.php?option=com_bookingforconnector&view=merchantdetails';
$db->setQuery('SELECT id FROM #__menu WHERE link LIKE ' . $db->Quote($uriMerchant . '%') . ' AND (language=' . $db->Quote($this->language) . ' OR language=' . $db->Quote('*') . ') AND published = 1 LIMIT 1');
$itemIdMerchant = $db->getErrorNum() ? 0 : intval($db->loadResult());
$uriMerchant .= '&merchantId=' . $merchant->MerchantId . ':' . BFCHelper::getSlug($merchant->Name);
if ($itemIdMerchant != 0) {
    $uriMerchant .= '&Itemid=' . $itemIdMerchant;
}
$uriMerchantthanks = $uriMerchant . '&layout=thanks';
$uriMerchantthanksKo = $uriMerchant . '&layout=errors';
$uriMerchant .= '&layout=contacts';
$route = JRoute::_($uriMerchant);
$routeThanks = JRoute::_($uriMerchantthanks);
$routeThanksKo = JRoute::_($uriMerchantthanksKo);
$cNationList = BFCHelper::parseArrayList(JTEXT::_('COM_BOOKINGFORCONNECTOR_VIEW_CONSTANTS_NATIONSLIST'));
$cLanguageList = BFCHelper::parseArrayList(JTEXT::_('COM_BOOKINGFORCONNECTOR_VIEW_CONSTANTS_LANGUAGESLIST'));
$cCCTypeList = BFCHelper::parseArrayList(JTEXT::_('COM_BOOKINGFORCONNECTOR_DEFAULT_FORM_CCTYPELIST'));
$nation = "";
$culture = "";
$checkinId = uniqid('checkin');
$checkoutId = uniqid('checkout');
$checkin = new DateTime();
$minyear = date("y");
$maxyear = $minyear + 5;
$checkout = new DateTime();
$checkout->modify('+1 day');
$formRoute = "index.php?option=com_bookingforconnector&task=sendOrder";
$privacy = BFCHelper::GetPrivacy($this->language);
$additionalPurpose = BFCHelper::GetAdditionalPurpose($this->language);
$policy = BFCHelper::GetPolicy($resource->ResourceId, $this->language);
$stayrequest = htmlspecialchars(json_encode(BFCHelper::getState('stayrequest', 'resource')), ENT_COMPAT, 'UTF-8');
$staysuggested = '';
开发者ID:Bookingfor,项目名称:joomla-extension,代码行数:31,代码来源:form_inforequest.php

示例6: count

    $documentRelease = $crew->DocumentRelease;
    $plate = $crew->Plate;
    //targa
    $exported = $crew->Exported;
    if (!empty($crew->ChildCrews)) {
        $crews = $crew->ChildCrews;
        $paxNumber = count($crews);
    }
}
$actionform = $this->actionform;
//integer list
$crewslist = JHTML::_('select.integerlist', 0, 10, 1, 'crewslist', null, $paxNumber);
// nation list
$this->aNationList = BFCHelper::parseArrayList(JTEXT::_('COM_BOOKINGFORCONNECTOR_VIEW_CONSTANTS_NATIONSLIST'));
$this->aLanguageList = BFCHelper::parseArrayList(JTEXT::_('COM_BOOKINGFORCONNECTOR_VIEW_CONSTANTS_LANGUAGESLIST'));
$this->aDocumentsList = BFCHelper::parseArrayList(JTEXT::_('COM_BOOKINGFORCONNECTOR_VIEW_CONSTANTS_DOCUMENTSLIST'));
$nationsList = JHTML::_('select.genericlist', $this->aNationList, 'nation', 'class="' . COM_BOOKINGFORCONNECTOR_BOOTSTRAP_COL . '12"', 'value', 'text', $nation);
$languagesList = JHTML::_('select.genericlist', $this->aLanguageList, 'culture', 'class="' . COM_BOOKINGFORCONNECTOR_BOOTSTRAP_COL . '12"', 'value', 'text', $culture);
$documentsList = JHTML::_('select.genericlist', $this->aDocumentsList, 'documentId', 'class="' . COM_BOOKINGFORCONNECTOR_BOOTSTRAP_COL . '12"', 'value', 'text', $documentId);
$privacy = BFCHelper::GetPrivacy($this->language);
?>
   
<!-- {emailcloak=off} -->

<div class="container-fluid">  
<?php 
if ($actionform == "insert") {
    ?>
	<div class="alert alert-success">
    	<a href="#" class="close" data-dismiss="alert">x</a>
        Dati inseriti.
开发者ID:Bookingfor,项目名称:joomla-extension,代码行数:31,代码来源:default.php


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