本文整理汇总了PHP中CitruscartSelect::country方法的典型用法代码示例。如果您正苦于以下问题:PHP CitruscartSelect::country方法的具体用法?PHP CitruscartSelect::country怎么用?PHP CitruscartSelect::country使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CitruscartSelect
的用法示例。
在下文中一共展示了CitruscartSelect::country方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<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();
示例2: array
<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
示例3: array
</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 {
示例4: array
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');
示例5: array
<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>
示例6: array
?>
" 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');
示例7:
</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>