本文整理汇总了PHP中flexicontent_html::limit_selector方法的典型用法代码示例。如果您正苦于以下问题:PHP flexicontent_html::limit_selector方法的具体用法?PHP flexicontent_html::limit_selector怎么用?PHP flexicontent_html::limit_selector使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类flexicontent_html
的用法示例。
在下文中一共展示了flexicontent_html::limit_selector方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
// ***********************************************************************************************************
// Form for Text search, Field Filters, Alpha-Index, Items Total Statistics, Selectors(e.g. per page, orderby)
// ***********************************************************************************************************
// Text search, Field Filters
$params =& $this->params;
$form_id = $form_name = 'adminForm';
$filters =& $this->filters;
$text_search_val = $this->lists['filter'];
include "filters.php";
// Alpha-Index
if ($this->params->get('show_alpha', 1)) {
echo $this->loadTemplate('alpha_html5');
}
$limit_selector = flexicontent_html::limit_selector($this->params, $formname = 'adminForm', $autosubmit = 1);
$orderby_selector = flexicontent_html::ordery_selector($this->params, $formname = 'adminForm', $autosubmit = 1, $extra_order_types = array(), $sfx = '');
$orderby_selector_2nd = flexicontent_html::ordery_selector($this->params, $formname = 'adminForm', $autosubmit = 1, $extra_order_types = array(), $sfx = '_2nd');
$clayout_selector = flexicontent_html::layout_selector($this->params, $formname = 'adminForm', $autosubmit = 1, 'clayout');
$tooltip_class = FLEXI_J30GE ? 'hasTooltip' : 'hasTip';
?>
<?php
if (count($this->items) && ($this->params->get('show_item_total', 1) || $limit_selector || $orderby_selector || $orderby_selector_2nd || $clayout_selector)) {
?>
<!-- BOF items total-->
<div id="item_total" class="item_total group">
<?php
if ($this->params->get('show_item_total', 1)) {
示例2: display
//.........这里部分代码省略.........
$checked_class = $checked ? 'fc_highlight' : '';
$lists['txtflds'] = '<ul class="fc_field_filter fc_checkradio_group">';
$lists['txtflds'] .= ' <li class="fc_checkradio_option fc_checkradio_special">';
$lists['txtflds'] .= ' <input href="javascript:;" onclick="fc_toggleClass(this, \'fc_highlight\', 1);" ';
$lists['txtflds'] .= ' id="_txtflds_0" type="checkbox" name="txtflds[0]" value="" ';
$lists['txtflds'] .= ' value="" '.$checked_attr.' class="fc_checkradio" />';
$lists['txtflds'] .= ' <label class="'.$checked_class.'" for="_txtflds_0">';
$lists['txtflds'] .= ' -'.JText::_('FLEXI_ALL').'-';
$lists['txtflds'] .= ' </label>';
$lists['txtflds'] .= ' </li>';
foreach($fields_text as $field) {
$checked = in_array($field->name, $form_txtflds);
$checked_attr = $checked ? 'checked=checked' : '';
$checked_class = $checked ? ' fc_highlight' : '';
$lists['txtflds'] .= ' <li class="fc_checkradio_option">';
$lists['txtflds'] .= ' <input href="javascript:;" onclick="fc_toggleClass(this, \'fc_highlight\');" ';
$lists['txtflds'] .= ' id="_txtflds_'.$field->id.'" type="checkbox" name="txtflds[]" ';
$lists['txtflds'] .= ' value="'.$field->name.'" '.$checked_attr.' class="fc_checkradio" />';
$lists['txtflds'] .= ' <label class="class=""'.$checked_class.'" for="_txtflds_'.$field->id.'">';
$lists['txtflds'] .= ' '.JText::_($field->label);
$lists['txtflds'] .= ' </label>';
$lists['txtflds'] .= ' </li>';
}
$lists['txtflds'] .= '</ul>';
*/
}
// *** Selector of FLEXIcontent Results Ordering
if ($orderby_override = $params->get('orderby_override', 1)) {
$lists['orderby'] = flexicontent_html::ordery_selector($params, $form_id, $autosubmit = 0);
}
// *** Selector of Pagination Limit
if ($limit_override = $params->get('limit_override', 1)) {
$lists['limit'] = flexicontent_html::limit_selector($params, $form_id, $autosubmit = 0);
}
// *** Selector of non-FLEXIcontent Results Ordering
if ($show_searchordering = $params->get('show_searchordering', 1)) {
// built select lists
$orders = array();
$orders[] = JHTML::_('select.option', 'newest', JText::_('FLEXI_ADV_NEWEST_FIRST'));
$orders[] = JHTML::_('select.option', 'oldest', JText::_('FLEXI_ADV_OLDEST_FIRST'));
$orders[] = JHTML::_('select.option', 'popular', JText::_('FLEXI_ADV_MOST_POP'));
$orders[] = JHTML::_('select.option', 'alpha', JText::_('FLEXI_ADV_ALPHA'));
$orders[] = JHTML::_('select.option', 'category', JText::_('FLEXI_ADV_SEARCH_SEC_CAT'));
$lists['ordering'] = JHTML::_('select.genericlist', $orders, 'o', 'class="fc_field_filter use_select2_lib"', 'value', 'text', $searchordering, 'ordering');
}
// *** Selector for usage of Search Text
if ($show_searchphrase = $params->get('show_searchphrase', 1)) {
$searchphrase_names = array('natural' => 'FLEXI_NATURAL_PHRASE', 'natural_expanded' => 'FLEXI_NATURAL_PHRASE_GUESS_RELEVANT', 'all' => 'FLEXI_ALL_WORDS', 'any' => 'FLEXI_ANY_WORDS', 'exact' => 'FLEXI_EXACT_PHRASE');
$phrases = array();
foreach ($searchphrase_names as $searchphrase_value => $searchphrase_name) {
$_obj = new stdClass();
$_obj->value = $searchphrase_value;
$_obj->text = $searchphrase_name;
$phrases[] = $_obj;
}
$lists['searchphrase'] = JHTML::_('select.genericlist', $phrases, 'p', 'class="fc_field_filter use_select2_lib"', 'value', 'text', $searchphrase, 'searchphrase', $_translate = true);
/*$lists['searchphrase'] = '<ul class="fc_field_filter fc_checkradio_group">';
foreach ($searchphrase_names as $searchphrase_value => $searchphrase_name) {
$lists['searchphrase'] .= ' <li class="fc_checkradio_option fc_checkradio_special">';
$checked = $searchphrase_value == $searchphrase;
$checked_attr = $checked ? 'checked=checked' : '';
$checked_class = $checked ? 'fc_highlight' : '';
$lists['searchphrase'] .= ' <input href="javascript:;" onclick="fc_toggleClassGrp(this.parentNode, \'fc_highlight\');" id="searchphrase_'.$searchphrase_value.'" type="radio" name="p" value="'.$searchphrase_value.'" '.$checked_attr.' />';
$lists['searchphrase'] .= ' <label class="'.$checked_class.'" style="display:inline-block; white-space:nowrap;" for="searchphrase_'.$searchphrase_value.'">';
$lists['searchphrase'] .= JText::_($searchphrase_name);
示例3: array
// exclude from autosubmit because we need to get single category SEF url before submitting, and then submit ...
$_fld_size = "";
$_fld_onchange = ' onchange="update_' . $form_name . '();" ';
$_fld_name = $catid_fieldname;
}
$_fld_attributes = ' class="' . $_fld_classes . '" ' . $_fld_size . $_fld_onchange . $_fld_multiple;
$allowedtree = modFlexifilterHelper::decideCats($params);
$selected_cats = $mcats_selection ? $cids : ($catid ? $catid : "");
$top = false;
$cats_select_field = flexicontent_cats::buildcatselect($allowedtree, $_fld_name, $selected_cats, $top, $_fld_attributes, $check_published = true, $check_perms = false, array(), $require_all = false);
} else {
if ($catid) {
$cat_hidden_field = '<input type="hidden" name="cid" value="' . $catid . '"/>';
}
}
$limit_selector = flexicontent_html::limit_selector($params, $form_name, $autosubmit);
$orderby_selector = flexicontent_html::ordery_selector($params, $form_name, $autosubmit);
// 2. Get category, this is needed so that we get only the allowed filters of the category
// allowed filters are set in the category options (configuration)
$saved_cid = JRequest::getVar('cid', '');
// save cid ...
$saved_layout = JRequest::getVar('layout');
// save layout ...
$saved_option = JRequest::getVar('option');
// save option ...
$saved_view = JRequest::getVar('view');
// save layout ...
$target_layout = $mcats_selection || !$catid ? 'mcats' : '';
JRequest::setVar('layout', $target_layout);
JRequest::setVar($target_layout == 'mcats' ? 'cids' : 'cid', $limit_filters_to_cat ? $catid : 0);
JRequest::setVar('option', 'com_flexicontent');
示例4: if
// Form for Text search, Field Filters, Alpha-Index, Items Total Statistics, Selectors(e.g. per page, orderby)
// ***********************************************************************************************************
// Text search, Field Filters
$params = & $this->params;
$form_id = $form_name = 'adminForm';
$filters = & $this->filters;
$text_search_val = $this->lists['filter'];
include "filters.php";
// Alpha-Index
if ($this->params->get('show_alpha', 1)) :
echo $this->loadTemplate('alpha');
endif;
$limit_selector = flexicontent_html::limit_selector( $this->params );
$orderby_selector = flexicontent_html::ordery_selector( $this->params, $formname='adminForm', $autosubmit=1, $extra_order_types=array(), $sfx='');
$orderby_selector_2nd = flexicontent_html::ordery_selector( $this->params, $formname='adminForm', $autosubmit=1, $extra_order_types=array(), $sfx='_2nd');
?>
<?php if (count($this->items) && ($this->params->get('show_item_total', 1) || $limit_selector || $orderby_selector || $orderby_selector_2nd )) : ?>
<!-- BOF items total-->
<div id="item_total" class="item_total group">
<?php if ($this->params->get('show_item_total', 1)) : ?>
<span class="fc_item_total_data">
<?php echo @$this->resultsCounter ? $this->resultsCounter : $this->pageNav->getResultsCounter(); // custom Results Counter ?>
</span>
<?php endif; ?>