/**
  * Generates the form for multi sites
  *
  * @since	5.0
  * @access	public
  * @param	string
  * @return	
  */
 public function getForm($elementName, $value = '', $elementText = '')
 {
     if (!$this->exists()) {
         return false;
     }
     if (!$elementText) {
         $elementText = JText::_('COM_EASYSOCIAL_SELECT_SITE');
     }
     $form = MultisitesHelperUtils::getComboSiteIDs($value, $elementName, $elementText);
     if (!$form) {
         return false;
     }
     return $form;
 }
Exemple #2
0
                echo $i;
                ?>
]" value="<?php 
                echo @$row->price_access;
                ?>
" />
						<?php 
            } else {
                echo '--';
            }
            ?>
					</td>
					<?php 
        }
        if (!empty($site_id_value)) {
            echo '<td>' . str_replace('class="inputbox"', 'class="inputbox chzn-done"', MultisitesHelperUtils::getComboSiteIDs(@$row->price_site_id, 'price[price_site_id][' . $i . ']', JText::_('SELECT_A_SITE'))) . '</td>';
        }
        ?>
					<td>
						<?php 
        if (!empty($row->price_id)) {
            echo $row->price_id . '<input type="hidden" id="price[price_id][' . $i . ']" name="price[price_id][' . $i . ']" value="' . $row->price_id . '" />';
        } else {
            echo '--';
        }
        ?>
					</td>
					<td>
						<a href="#" onclick="hikashop.deleteRow(this); return false;"><img src="<?php 
        echo HIKASHOP_IMAGES;
        ?>
Exemple #3
0
									<?php 
    echo JText::_('QUANTITY_LAYOUT_ON_PRODUCT_PAGE');
    ?>
							</td>
							<td>
								<?php 
    echo $this->quantityDisplayType->display('data[category][category_quantity_layout]', @$this->element->category_quantity_layout);
    ?>
							</td>
						</tr>
<?php 
}
if (file_exists(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_multisites' . DS . 'helpers' . DS . 'utils.php')) {
    include_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_multisites' . DS . 'helpers' . DS . 'utils.php';
    if (class_exists('MultisitesHelperUtils') && method_exists('MultisitesHelperUtils', 'getComboSiteIDs')) {
        $comboSiteIDs = MultisitesHelperUtils::getComboSiteIDs(@$this->element->category_site_id, 'data[category][category_site_id]', JText::_('SELECT_A_SITE'));
        if (!empty($comboSiteIDs) && (empty($this->element->category_parent_id) || $this->element->category_parent_id != 1) && (empty($this->element->category_type) || in_array($this->element->category_type, array('product', 'brand', 'manufacturer')))) {
            ?>
								<tr>
									<td class="key">
											<?php 
            echo JText::_('SITE_ID');
            ?>
									</td>
									<td>
										<?php 
            echo $comboSiteIDs;
            ?>
									</td>
								</tr>
<?php 
Exemple #4
0
            if (isset($filterObj->filter_html_dropdown)) {
                echo $filterObj->filter_html_dropdown;
            }
        }
    }
}
?>
				<?php 
echo $this->taxType->display("taxation_type", $this->pageInfo->filter->taxation_type, false);
?>
				<?php 
echo $this->ratesType->display("tax_namekey", $this->pageInfo->filter->tax_namekey, false);
if (file_exists(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_multisites' . DS . 'helpers' . DS . 'utils.php')) {
    include_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_multisites' . DS . 'helpers' . DS . 'utils.php';
    if (class_exists('MultisitesHelperUtils') && method_exists('MultisitesHelperUtils', 'getComboSiteIDs')) {
        $comboSiteIDs = MultisitesHelperUtils::getComboSiteIDs(@$this->pageInfo->filter->taxation_site_id, 'taxation_site_id', JText::_('SELECT_A_SITE'), 'onchange="document.adminForm.submit();"');
        if (!empty($comboSiteIDs)) {
            echo $comboSiteIDs;
        }
    }
}
?>

			</td>
		</tr>
	</table>
	<?php 
$columns = 8;
?>
	<table id="hikashop_taxation_listing" class="adminlist table table-striped table-hover" cellpadding="1">
		<thead>
Exemple #5
0
			</td>
			<td>
								<textarea rows="3" cols="60" id="jform_params_taxation_note" name="data[taxation][taxation_note]" title="<?php 
echo JText::_('TAX_NOTE_TTIPS');
?>
"><?php 
echo @$this->element->taxation_note;
?>
</textarea>
			</td>
		</tr>
<?php 
if (file_exists(JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_multisites' . DS . 'helpers' . DS . 'utils.php')) {
    include_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_multisites' . DS . 'helpers' . DS . 'utils.php';
    if (class_exists('MultisitesHelperUtils') && method_exists('MultisitesHelperUtils', 'getComboSiteIDs')) {
        $comboSiteIDs = MultisitesHelperUtils::getComboSiteIDs(@$this->element->taxation_site_id, 'data[taxation][taxation_site_id]', JText::_('SELECT_A_SITE'));
        if (!empty($comboSiteIDs)) {
            ?>
								<tr>
									<td class="key">
											<?php 
            echo JText::_('SITE_ID');
            ?>
									</td>
									<td>
										<?php 
            echo $comboSiteIDs;
            ?>
									</td>
								</tr>
								<?php 
Exemple #6
0
        ?>
[{id}][price_min_quantity]" value="" /></td>
<?php 
    }
    if (hikashop_level(2) && $acls['acl']) {
        ?>
			<td  class="hika_acl"><?php 
        echo $this->joomlaAcl->displayButton($form_key . '[{id}][price_access]', 'all');
        ?>
</td>
<?php 
    }
    if ($jms_integration) {
        ?>
			<td class="hika_jms"><?php 
        echo str_replace('class="inputbox"', 'class="inputbox no-chzn" style="width:90px;"', MultisitesHelperUtils::getComboSiteIDs(0, $form_key . '[{id}][price_site_id]', JText::_('SELECT_A_SITE')));
        ?>
</td>
<?php 
    }
    ?>
			<td>
				<a href="#" onclick="window.hikashop.deleteRow(this); return false;"><img src="<?php 
    echo HIKASHOP_IMAGES;
    ?>
delete.png" alt="<?php 
    echo JText::_('HIKA_DELETE');
    ?>
"></a>
			</td>
		</tr>
            $this->element->discount_site_id = defined('MULTISITES_ID') ? MULTISITES_ID : null;
            ?>
						<tr style="display:none">
								<td colspan="2">
									<input type="hidden" name="data[discount][discount_site_id]" value="<?php 
            echo @$this->element->discount_site_id;
            ?>
" />
								</td>
						</tr>
<?php 
        }
    } else {
        include_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_multisites' . DS . 'helpers' . DS . 'utils.php';
        if (class_exists('MultisitesHelperUtils') && method_exists('MultisitesHelperUtils', 'getComboSiteIDs')) {
            $comboSiteIDs = MultisitesHelperUtils::getComboSiteIDs(@$this->element->discount_site_id, 'data[discount][discount_site_id]', JText::_('SELECT_A_SITE'));
            if (!empty($comboSiteIDs)) {
                ?>
						<tr>
							<td class="key">
								 <?php 
                echo JText::_('SITE_ID');
                ?>
							</td>
							<td>
								<?php 
                echo $comboSiteIDs;
                ?>
							</td>
						</tr>
<?php