<form class="form-inline" id="productFilters" name="productfilters"  action="<?php 
echo JRoute::_('index.php');
?>
" method="post">
		<input type="hidden" name="filter_catid" id="sort_filter_catid"  value ="<?php 
echo $filter_catid;
?>
" />
		<?php 
if ($this->params->get('list_show_filter_search')) {
    ?>
		<?php 
    $search = htmlspecialchars($this->state->search);
    ?>
   		<?php 
    echo J2html::text('search', $search, array('class' => 'j2store-product-search-input'));
    ?>
			<input  type="button" value="<?php 
    echo JText::_('J2STORE_FILTER_GO');
    ?>
"
									class="btn btn-success"
								    onclick="jQuery(this.form).submit();" />
				<input  type="button" value="<?php 
    echo JText::_('J2STORE_FILTER_RESET');
    ?>
"
							class="btn btn-inverse"
						    onclick="resetJ2storeFilter();" />

        <?php 
예제 #2
0
echo J2Html::text('search', $search, array('id' => 'search', 'class' => 'input j2store-product-filters'));
?>

			<?php 
echo J2Html::button('go', JText::_('J2STORE_FILTER_GO'), array('class' => 'btn btn-success', 'onclick' => 'this.form.submit();'));
?>
			<?php 
echo J2Html::button('reset', JText::_('J2STORE_FILTER_RESET'), array('id' => 'reset-filter-search', 'class' => 'btn btn-inverse', "onclick" => "jQuery('#search').attr('value','');this.form.submit();"));
?>
			</div>
		</td>
		<td>
			<div class="input-prepend">
				<span class="add-on">
					<?php 
echo J2html::label(JText::_('J2STORE_PRODUCT_TYPE'), 'product_type', array('class' => 'control-label'));
?>
				</span>
				<?php 
echo J2Html::select()->clearState()->type('genericlist')->name('product_type')->attribs(array('class' => 'input-small j2store-product-filters', 'onchange' => 'this.form.submit();'))->value($this->state->product_type)->setPlaceHolders($this->product_types)->getHtml();
?>
				</div>
		</td>
		<td>
			<?php 
echo J2Html::button('reset', JText::_('J2STORE_FILTER_RESET_ALL'), array('id' => 'reset-all-filter', 'class' => 'btn btn-danger', 'onclick' => 'j2storeResetAllFilters();'));
?>
		</td>
		<td>
			<?php 
if ($this->state->since || $this->state->until || $this->state->visible || $this->state->taxprofile_id || $this->state->vendor_id || $this->state->manufacturer_id || $this->state->productid_from || $this->state->productid_to || $this->state->pricefrom || $this->state->priceto || $this->state->visible) {
예제 #3
0
</label></td>
						<td><?php 
echo J2Html::text('data[field][field_name]', $this->item->field_name, array('class' => 'input', 'id' => 'field_name'));
?>
</td>
					</tr>
					<tr>
						<td class="key"><?php 
echo JText::_('J2STORE_CUSTOM_FIELDS_TABLE');
?>
</td>
						<td><?php 
echo $this->item->field_table;
?>
							<?php 
echo J2html::hidden('data[field][field_table]', $this->item->field_table);
?>
						</td>
					</tr>
					<tr class="columnname">
						<td class="key"><?php 
echo JText::_('J2STORE_CUSTOM_FIELDS_COLUMN');
?>
</td>
						<td>
						<?php 
if (empty($this->item->j2store_customfield_id)) {
    ?>
							<?php 
    echo J2Html::text('data[field][field_namekey]', $this->item->field_namekey, array('class' => 'input', 'id' => 'field_namekey'));
    ?>
예제 #4
0
    ?>
			<?php 
    $checked = JHTML::_('grid.id', $i, $item->j2store_shippingrate_id);
    ?>
			 <tr class='row<?php 
    echo $k;
    ?>
'>
				<td style="text-align: center;">
					<?php 
    echo $checked;
    ?>
				</td>
	           	<td>
	           		<?php 
    echo J2html::hidden('standardrates[' . $item->j2store_shippingrate_id . '][j2store_shippingrate_id]', $item->j2store_shippingrate_id);
    ?>
           			<?php 
    echo J2Html::select()->clearState()->type('genericlist')->name('standardrates[' . $item->j2store_shippingrate_id . '][geozone_id]')->value($item->geozone_id)->hasOne('Geozones')->setRelations(array('fields' => array('key' => 'j2store_geozone_id', 'name' => array('geozone_name'))))->getHtml();
    ?>
              		<?php 
    echo J2Html::hidden('standardrates[' . $item->j2store_shippingrate_id . '][shippingmethod_id]', $sid);
    ?>
            	</td>
            	 	<?php 
    if ($row->shipping_method_type == 1 || $row->shipping_method_type == 2 || $row->shipping_method_type == 4 || $row->shipping_method_type == 5) {
        ?>
            	<td>
            		<?php 
        echo J2Html::text('standardrates[' . $item->j2store_shippingrate_id . '][shipping_rate_weight_start]', $item->shipping_rate_weight_start);
        ?>
예제 #5
0
		            	<td>
		            		<?php 
        echo J2Html::hidden('filter_value[' . $filter_value->j2store_filter_id . '][j2store_filter_id]', $filter_value->j2store_filter_id);
        ?>
		            		<?php 
        echo J2Html::text('filter_value[' . $filter_value->j2store_filter_id . '][filter_name]', $filter_value->filter_name);
        ?>
		            	</td>
		            	<td>
			            	<?php 
        echo J2Html::text('filter_value[' . $filter_value->j2store_filter_id . '][ordering]', $filter_value->ordering, array('class' => 'input-mini'));
        ?>
		            	</td>
		            	<td>
							<?php 
        echo J2html::button('delete', JText::_('J2STORE_REMOVE'), array('class' => 'btn btn-danger', "id" => "filterValueDeleteBtn-{$filter_value->j2store_filter_id}", 'onclick' => 'DeleteFilterValue(' . $filter_value->j2store_filter_id . ',' . $product_filter_value_row . ')'));
        ?>
		            	</td>
		            </tr>
		          </tbody>
		          <?php 
        $product_filter_value_row++;
        ?>
		          <?php 
    }
    ?>
		          <?php 
}
?>
		          <tfoot>
		            <tr>
예제 #6
0
				</tr>
			</tfoot>
			<tbody>
				<?php 
foreach ($this->productitems as $key => $item) {
    ?>
				<?php 
    $canChange = 1;
    ?>
				<tr>
					<td>
						<?php 
    echo JHtml::_('grid.id', $item->j2store_product_id, $item->j2store_product_id);
    ?>
						<?php 
    echo J2html::hidden('tmp_product_title[' . $item->j2store_product_id . ']', $item->product_name, array('class' => 'tmp_product_title'));
    ?>
					</td>
					<td>
						<a href="javascript:void(0)"
							onclick="window.parent.jSelectItem('<?php 
    echo $item->j2store_product_id;
    ?>
', '<?php 
    echo str_replace(array("'", "\""), array("\\'", ""), $item->product_name);
    ?>
', '<?php 
    echo JRequest::getCmd('object', 'id');
    ?>
');"
							>
echo J2html::price('priceto', $this->state->priceto, array('class' => 'input-small j2store-product-filters'));
?>
</td>
						</tr>
					</tbody>
				</table>
		</div>
	<div class="span6">
		<table class="adminlist table table-striped table-bordered table-condensed">
			<tr>
				<td colspan="2">
					<?php 
echo JText::_('J2STORE_PRODUCT_SKU');
?>
					<?php 
echo J2html::text('sku', $this->state->sku, array('class' => 'input j2store-product-filters'));
?>
				</td>
			</tr>
			<tr>
				<td>
					<?php 
echo JText::_('J2STORE_PRODUCT_MANUFACTURER');
?>
					<?php 
echo J2Html::select()->clearState()->type('genericlist')->name('manufacturer_id')->value($this->state->manufacturer_id)->attribs(array('class' => 'input-small j2store-product-filters', 'onchange' => 'this.form.submit();'))->setPlaceHolders(array('' => JText::_('J2STORE_SELECT_OPTION')))->hasOne('Manufacturers')->setRelations(array('fields' => array('key' => 'j2store_manufacturer_id', 'name' => array('company'))))->getHtml();
?>
				</td>
				<td>
					<?php 
echo JText::_('J2STORE_PRODUCT_VENDOR');