コード例 #1
0
					<td>
						<?php 
        if (isset($poption->type) && ($poption->type == 'select' || $poption->type == 'radio' || $poption->type == 'checkbox')) {
            ?>
						<?php 
            echo J2StorePopup::popup("index.php?option=com_j2store&view=products&task=setproductoptionvalues&product_id=" . $this->item->j2store_product_id . "&productoption_id=" . $poption->j2store_productoption_id . "&layout=productoptionvalues&tmpl=component", JText::_("J2STORE_OPTION_SET_VALUES"), array());
            ?>
						<?php 
        }
        ?>

					</td>

					<td>
						<?php 
        $parent_options = J2StoreHelperSelect::getParentOption($poption->j2store_productoption_id, $poption->parent_id, $poption->option_id);
        echo J2Html::select()->clearState()->type('genericlist')->name($this->form_prefix . '[item_options][' . $poption->j2store_productoption_id . '][parent_id]')->value($poption->parent_id)->setPlaceHolders($parent_options)->attribs(array('class' => 'input-small'))->getHtml();
        ?>
						</td>

						<td>
						<?php 
        if (isset($poption->type) && !in_array($poption->type, array('select', 'radio', 'checkbox'))) {
            ?>
							<?php 
            if (isset($poption->parent_id) && !empty($poption->parent_id)) {
                ?>
								<?php 
                echo J2StorePopup::popup("index.php?option=com_j2store&view=products&task=setparentoptionvalues&productoption_id=" . $poption->j2store_productoption_id . "&layout=parentproductopvalues&tmpl=component", JText::_("J2STORE_OPTION_PARENT_OPTION_VALUES"), array());
                ?>
							<?php 
コード例 #2
0
ファイル: form.php プロジェクト: davetheapple/oakencraft
<?php

/**
 * @package J2Store
 * @copyright Copyright (c)2014-17 Ramesh Elamathi / J2Store.org
 * @license GNU GPL v3 or later
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
JHTML::_('behavior.modal');
$countries = J2StoreHelperSelect::getCountries();
?>
<div class="j2store">
<form class="form-horizontal" id="adminForm" name="adminForm" method="post" action="index.php">
	<input type="hidden" name="option" value="com_j2store">
	<input type="hidden" name="view" value="geozone">
	<input type="hidden" name="task" value="">
	<input type="hidden" name="j2store_geozone_id" value="<?php 
echo $this->item->j2store_geozone_id;
?>
" />
	<?php 
echo JHtml::_('form.token');
?>

		<div class="row-fluid">
			<div class="span6">
				<h1><?php 
echo JText::_('J2STORE_GEOZONE');
?>
</h1>
コード例 #3
0
ファイル: form.php プロジェクト: davetheapple/oakencraft
			<td>
				<?php 
echo J2Html::text('group_name', $this->item->group_name, array('class' => 'required'));
?>
			</td>
		</tr>
		<tr>
			<td valign="top" align="right" class="key">
				<?php 
echo JText::_('J2STORE_OPTION_STATE');
?>
:
			</td>
			<td>
				<?php 
echo J2StoreHelperSelect::publish('enabled', $this->item->enabled);
?>
			</td>
		</tr>
	</table>

</fieldset>
<fieldset id="filter-value">
	<div class="row-fluid">
		<div class="span9">
			<legend><h3><?php 
echo JText::_('J2STORE_ADD_NEW_PRODUCT_FILTER_VALUES');
?>
</h3></legend>
				<table id="pFilerValue" class="list table table-bordered table-stripped">
		          <thead>
コード例 #4
0
 function view()
 {
     $app = JFactory::getApplication();
     require_once JPATH_ADMINISTRATOR . '/components/com_j2store/helpers/select.php';
     JToolBarHelper::title(JText::_('J2STORE_SHIPM_SHIPPING_METHODS'), 'j2store-logo');
     $id = $app->input->getInt('id', '0');
     $sid = $app->input->getInt('sid', '0');
     $this->includeCustomModel('ShippingMethods');
     $this->includeCustomTables();
     //$model = JModelLegacy::getInstance('ShippingMethods', 'J2StoreModel');
     $model = F0FModel::getTmpInstance('ShippingMethods', 'J2StoreModel');
     $tpath = JPATH_SITE . '/plugins/j2store/' . $this->_element . '/' . $this->_element . '/tables';
     $model->addTablePath($tpath);
     $shippingmethod_table = $model->getTable('ShippingMethod', 'J2StoreTable');
     $shippingmethod_table->load($sid);
     $data = array();
     $data['published'] = JHTML::_('select.booleanlist', 'published', 'class=""', $shippingmethod_table->published);
     $data['taxclass'] = J2StoreHelperSelect::taxclass($shippingmethod_table->tax_class_id, 'tax_class_id');
     $data['shippingtype'] = J2StoreHelperSelect::shippingtype($shippingmethod_table->shipping_method_type, 'shipping_method_type', '', 'shipping_method_type', false);
     $options = array();
     $options[] = JHtml::_('select.option', 'no', JText::_('JNO'));
     $options[] = JHtml::_('select.option', 'store', JText::_('J2STORE_SHIPPING_STORE_ADDRESS'));
     $data['address_override'] = JHtmlSelect::genericlist($options, 'address_override', array(), 'value', 'text', $shippingmethod_table->address_override);
     // Form
     $form = array();
     $form['action'] = $this->baseLink();
     $form['shippingTask'] = 'save';
     //We are calling a view from the ShippingMethods we isn't actually the same  controller this has, however since all it does is extend the base view it is
     // all good, and we don't need to remake getView()
     $view = $this->getView('ShippingMethods', 'html');
     $view->hidemenu = true;
     $view->hidestats = true;
     $view->setModel($model, true);
     $view->assign('item', $shippingmethod_table);
     $view->assign('data', $data);
     $view->assign('form2', $form);
     $view->setLayout('view');
     $view->display();
 }