<th style="<?php echo $key_style; ?> " class="key"> <?php if ($elements['country'][1]) { echo CitruscartGrid::required(); } echo JText::_('COM_CITRUSCART_COUNTRY'); ?> </th> <td> <?php $url = "index.php?option=com_citruscart&format=raw&controller=pos&task=getzones&prefix={$this->form_prefix}&country_id="; $attribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => 'citruscartDoTask( \'' . $url . '\'+document.getElementById(\'' . $this->form_prefix . 'country_id\').value, \'' . $this->form_prefix . 'zones_wrapper\', \'\');'); echo CitruscartSelect::country($this->default_country_id, $this->form_prefix . 'country_id', $attribs, $this->form_prefix . 'country_id', false, true); ?> </td> </tr> <?php } if ($elements['zone'][0]) { ?> <tr> <th style="<?php echo $key_style; ?> " class="key"> <?php if ($elements['zone'][1]) { echo CitruscartGrid::required();
<button class="btn btn-danger" onclick="citruscartFormReset(this.form);"><?php echo JText::_('COM_CITRUSCART_RESET'); ?> </button> </td> <td> <?php $attribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => 'document.adminForm.submit();'); ?> <?php echo CitruscartSelect::booleans($state->filter_associated, 'filter_associated', $attribs, $idtag = null, false, '', 'COM_CITRUSCART_ASSOCIATED_ZONES_ONLY', 'COM_CITRUSCART_ALL_ZONES'); ?> </td> <td nowrap="nowrap"> <?php echo CitruscartSelect::country($state->filter_countryid, 'filter_countryid', $attribs, 'country_id', true); ?> </td> </tr> </table> <table class="table table-striped table-bordered"> <thead> <tr> <th style="width: 5px;"> <?php echo JText::_('COM_CITRUSCART_NUM'); ?> </th> <th style="width: 20px;"> <?php
</tr> <?php } ?> <tr> <th style="width: 100px; text-align: right;" class="key"> <?php echo JText::_('COM_CITRUSCART_COUNTRY'); ?> </th> <td> <?php // TODO Change this to use a task within the checkout controller rather than creating a new zones controller $url = "index.php?option=com_citruscart&format=raw&controller=addresses&task=getzones&country_id="; $attribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => 'citruscartDoTask( \'' . $url . '\'+document.getElementById(\'country_id\').value, \'zones_wrapper\', \'\');'); echo CitruscartSelect::country(@$row->country_id, 'country_id', $attribs, 'country_id', true, true); ?> </td> </tr> <tr> <th style="width: 100px; text-align: right;" class="key"> <?php echo JText::_('COM_CITRUSCART_ZONE'); ?> </th> <td> <div id="zones_wrapper"> <?php if (empty($row->zone_id)) { echo JText::_('COM_CITRUSCART_SELECT_COUNTRY_FIRST'); } else {
echo $this->row->get('shop_city', ''); ?> " size="25" /> </td> <td></td> </tr> <tr> <th style="width: 25%;"><?php echo JText::_('COM_CITRUSCART_COUNTRY'); ?> </th> <td><?php // TODO Change this to use a task within the checkout controller rather than creating a new zones controller $url = "index.php?option=com_citruscart&format=raw&controller=addresses&task=getzones&name=shop_zone&country_id="; $attribs = array('onchange' => 'citruscartDoTask( \'' . $url . '\'+document.getElementById(\'shop_country\').value, \'zones_wrapper\', \'\');'); echo CitruscartSelect::country($this->row->get('shop_country', ''), 'shop_country', $attribs, 'shop_country', true); ?> </td> <td></td> </tr> <tr> <th style="width: 25%;"><?php echo JText::_('COM_CITRUSCART_STATE_REGION'); ?> </th> <td> <div id="zones_wrapper"> <?php $shop_zone = $this->row->get('shop_zone', ''); if (empty($shop_zone)) { echo JText::_('COM_CITRUSCART_SELECT_COUNTRY_FIRST');
<td> <input type="text" name="billing_input_city" id="billing_input_city" size="48" maxlength="250" value="" /> </td> </tr> <tr> <th width="100" align="right" class="key"> <?php echo JText::_('COM_CITRUSCART_COUNTRY'); ?> : </th> <td><?php $url = "index.php?option=com_citruscart&format=raw&controller=zones&task=filterzones&hookgeozone=false&idprefix=billing_input_&countryid="; $attribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => 'citruscartDoTask( \'' . $url . '\'+document.getElementById(\'billing_input_country_id\').value, \'billing_zones_wrapper\', \'\');'); echo CitruscartSelect::country(0, 'billing_input_country_id', $attribs, 'billing_input_country_id', true); ?> </td> </tr> <tr> <th width="100" align="right" class="key"> <?php echo JText::_('COM_CITRUSCART_ZONE'); ?> : </th> <td> <div id="billing_zones_wrapper"></div> </td> </tr> <tr>
?> " size="48" maxlength="250" /> </td> </tr> <tr> <td style="width: 100px; text-align: right;" class="key"> <?php echo JText::_('COM_CITRUSCART_COUNTRY'); ?> : </td> <td> <?php $url = "index.php?option=com_citruscart&format=raw&controller=addresses&task=getzones&name=shop_zone&country_id="; $attribs = array('onchange' => 'citruscartDoTask( \'' . $url . '\'+document.getElementById(\'shipping_country_id\').value, \'shipping_zones_wrapper\', \'\');'); echo CitruscartSelect::country($row->orderinfo->shipping_country_id, 'shipping_country_id', $attribs, 'shipping_country_id', true); ?> </td> </tr> <tr> <td style="width: 100px; text-align: right;" class="key"> <?php echo JText::_('COM_CITRUSCART_ZONE'); ?> : </td> <td> <div id="shipping_zones_wrapper"> <?php if (empty($row->orderinfo->shipping_zone_id)) { echo JText::_('COM_CITRUSCART_SELECT_COUNTRY_FIRST');
</td> <td> <input type="text" name="code" id="code" size="10" maxlength="250" value="<?php echo $row->code; ?> " /> </td> </tr> <tr> <td width="100" align="right" class="key"> <label for="country_id"> <?php echo JText::_('COM_CITRUSCART_COUNTRY'); ?> : </label> </td> <td> <?php echo CitruscartSelect::country($row->country_id, 'country_id'); ?> </td> </tr> </table> <input type="hidden" name="id" value="<?php echo $row->zone_id; ?> " /> <input type="hidden" name="task" value="" /> </form>