Example #1
0
$locTypes = array('russia', 'countries', 'regions', 'cities');
?>

<div class="emspost-sender-city">
    <p>
        <strong><?php 
echo JText::_('JBZOO_ELEMENT_SHIPPING_EMSPOST_SENDER');
?>
:</strong>
        <?php 
echo $this->_getDefaultCityName();
?>
    </p>
</div>

<div id="<?php 
echo $uiqueId;
?>
">
    <?php 
foreach ($locTypes as $type) {
    if ($this->config->get($type)) {
        $list = JBCartElementShippingEmsPost::getLocations($type);
        echo '<div class="emspost-' . $type . '">' . $this->app->jbhtml->select($list, $this->getControlName($type), array('class' => 'jsEms-' . $type), $this->get($type)) . '</div>';
    }
}
?>
</div>

<?php 
echo $this->app->jbassets->widget('#' . $uiqueId, 'JBZooShippingTypeEms', array('url_price' => $this->getAjaxUrl('ajaxGetPrice'), 'text_free' => JText::_('JBZOO_FREE')), true);