本文整理汇总了PHP中CitruscartSelect::category方法的典型用法代码示例。如果您正苦于以下问题:PHP CitruscartSelect::category方法的具体用法?PHP CitruscartSelect::category怎么用?PHP CitruscartSelect::category使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CitruscartSelect
的用法示例。
在下文中一共展示了CitruscartSelect::category方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
?>
" method="post" id="siteForm" name="productSearch" onSubmit="if(this.elements['filter'].value == '<?php
echo JText::_('COM_CITRUSCART_SKU_MODEL_OR_KEYWORD');
?>
') this.elements['filter'].value = '';">
<div class="form-group">
<label for="searchInput">
<?php
echo JText::_('COM_CITRUSCART_SEARCH') . ': ';
?>
</label>
<?php
if ($category_filter != '0') {
?>
<?php
echo CitruscartSelect::category($category_filter, 'filter_category', array('id' => 'citruscart_product_search', 'class' => 'form-control input-xs'), '', false, false, 'All Categories', '', '1');
?>
<?php
} else {
?>
<input type="hidden" name="filter_category" value="1" />
<?php
}
?>
</div>
<div class="form-group">
<label>
<input placeholder="<?php
echo JText::_('MOD_CITRUSCART_SEARCH_SEARCH_PLACHOLDER');
?>
" type="text" class="form-control input-sm" name="filter" value="<?php
示例2: array
" type="text" size="48" maxlength="250" />
</td>
</tr>
<tr>
<td style="width: 100px; text-align: right;" class="key">
<label for="parent_id">
<?php
echo JText::_('COM_CITRUSCART_PARENT');
?>
:
</label>
</td>
<td>
<?php
$disabled = array($row->category_id);
echo CitruscartSelect::category($row->parent_id, 'parent_id', '', 'parent_id', false, true, 'Select Category', 'COM_CITRUSCART_NO_PARENT', null, $disabled);
?>
</td>
</tr>
<tr>
<td style="width: 100px; text-align: right;" class="key">
<label for="enabled">
<?php
echo JText::_('COM_CITRUSCART_ENABLED');
?>
:
</label>
</td>
<td>
<?php
echo CitruscartSelect::btbooleanlist('category_enabled', '', $row->category_enabled);
示例3: array
" />
<button class="btn btn-primary" onclick="this.form.submit();"><?php
echo JText::_('COM_CITRUSCART_SEARCH');
?>
</button>
<button class="btn btn-danger" onclick="citruscartFormReset(this.form);"><?php
echo JText::_('COM_CITRUSCART_RESET');
?>
</button>
</td>
<td nowrap="nowrap">
<?php
$attribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => 'document.adminForm.submit();');
?>
<?php
echo CitruscartSelect::category($state->filter_parentid, 'filter_parentid', $attribs, 'parentid', true, true);
?>
</td>
</tr>
</table>
<table class="table table-striped table-bordered" style="clear: both;">
<thead>
<tr>
<th style="width: 5px;">
<?php
echo JText::_('COM_CITRUSCART_NUM');
?>
</th>
<th style="width: 20px;">
<?php
示例4: array
" />
<button class="btn btn-primary" onclick="this.form.submit();"><?php
echo JText::_('COM_CITRUSCART_SEARCH');
?>
</button>
<button class="btn btn-danger" onclick="citruscartFormReset(this.form);"><?php
echo JText::_('COM_CITRUSCART_RESET');
?>
</button>
</td>
<td nowrap="nowrap">
<?php
$attribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => 'document.adminForm.submit();');
?>
<?php
echo CitruscartSelect::category($state->filter_category, 'filter_category', $attribs, 'filter_category', true, true);
?>
</td>
</tr>
</table>
<table class="table table-striped table-bordered" style="clear: both;">
<thead>
<tr>
<th style="width: 5px;">
<?php
echo JText::_('COM_CITRUSCART_NUM');
?>
</th>
<th style="width: 20px;">
<?php
示例5: array
<input id="filter_name" name="filter_name" value="<?php
echo $state->filter_name;
?>
" size="25" class="text_area" />
</div>
<div class="row filtermulticategory" >
<label class="control-label"><?php
echo JText::_('COM_CITRUSCART_CATEGORY');
?>
: </label>
<?php
$catattribut = array('class' => 'inputbox', 'size' => '1', 'multiple' => 'yes', 'size' => 5);
?>
<?php
echo CitruscartSelect::category($state->filter_multicategory, 'filter_multicategory[]', $catattribut, 'filter_multicategory', true);
?>
</div>
<div class="row filtershipping" >
<label class="control-label"><?php
echo JText::_('COM_CITRUSCART_REQUIRES_SHIPPING');
?>
: </label>
<?php
echo CitruscartSelect::booleans($state->filter_ships, 'filter_ships', '', 'ships', true, "Doesn't Matter", 'Yes', 'No');
?>
</div>
<div class="row filtersku" >
<label class="control-label"><?php
示例6:
</td>
</tr>
<?php
if (empty($row->product_id)) {
// doing a new product, so collect default info
?>
<tr>
<td class="dsc-key">
<label for="category_id"> <?php
echo JText::_('COM_CITRUSCART_PRODUCT_CATEGORY');
?>
:
</label>
</td>
<td><?php
echo CitruscartSelect::category('', 'category_id', '', 'category_id');
?>
<div class="note well">
<?php
echo JText::_('COM_CITRUSCART_SET_INITIAL_CATEGORY_NOW_ADDITIONAL_ONES_LATER');
?>
</div>
</td>
</tr>
<?php
} else {
// display lightbox link to manage categories
?>
<tr>
<td class="dsc-key"><?php
echo JText::_('COM_CITRUSCART_CATEGORIES');