Beispiel #1
0
?>
" 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 
Beispiel #2
0
" 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);
" />
                <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 
" />
                <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 
Beispiel #5
0
            <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 
        </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');