本文整理汇总了PHP中TiendaSelect::country方法的典型用法代码示例。如果您正苦于以下问题:PHP TiendaSelect::country方法的具体用法?PHP TiendaSelect::country怎么用?PHP TiendaSelect::country使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TiendaSelect
的用法示例。
在下文中一共展示了TiendaSelect::country方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
</th>
<th style="text-align: left;">
<input id="filter_name" name="filter_name" value="<?php
echo @$state->filter_name;
?>
" size="25"/>
</th>
<th>
<input id="filter_code" name="filter_code" value="<?php
echo @$state->filter_code;
?>
" size="15"/>
</th>
<th>
<?php
echo TiendaSelect::country(@$state->filter_countryid, 'filter_countryid', $attribs, 'country_id', true);
?>
</th>
</tr>
<tr>
<th colspan="20" style="font-weight: normal;">
<div style="float: right; padding: 5px;"><?php
echo @$this->pagination->getResultsCounter();
?>
</div>
<div style="float: left;"><?php
echo @$this->pagination->getListFooter();
?>
</div>
</th>
</tr>
示例2: function
<?php
echo TiendaGrid::required();
?>
<?php
}
?>
</label>
<?php
$url = "index.php?option=com_tienda&format=raw&controller=checkout&task=getzones&prefix={$this->form_prefix}&country_id=";
$onchange = 'tiendaPutAjaxLoader( \'' . $this->form_prefix . 'zones_wrapper\' );tiendaDoTask( \'' . $url . '\'+document.getElementById(\'' . $this->form_prefix . 'country_id\').value, \'' . $this->form_prefix . 'zones_wrapper\', \'\', \'\', false, function() {tiendaCheckoutAutomaticShippingRatesUpdate( \'' . $this->form_prefix . 'country_id\' ); });';
if ($one_page) {
$onchange = 'tiendaPutAjaxLoader( \'' . $this->form_prefix . 'zones_wrapper\' );' . 'tiendaDoTask( \'' . $url . '\'+document.getElementById(\'' . $this->form_prefix . 'country_id\').value, \'' . $this->form_prefix . 'zones_wrapper\', \'\', \'\', false, ' . 'function() {tiendaCheckoutAutomaticShippingRatesUpdate( \'' . $this->form_prefix . 'country_id\' ); ' . '
});';
}
$attribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => $onchange);
echo TiendaSelect::country($this->default_country_id, $this->form_prefix . 'country_id', $attribs, $this->form_prefix . 'country_id', false, true);
?>
</div>
<?php
}
?>
<?php
if ($elements['city'][0]) {
?>
<div>
<label class="key" for="<?php
echo $this->form_prefix;
?>
city">
<?php
示例3: array
?>
" />
</td>
</tr>
<tr>
<th style="width: 100px; text-align: right;" class="key">
<?php
echo JText::_('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_tienda&format=raw&controller=pos&task=getzones&prefix=&country_id=";
$attribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => 'tiendaDoTask( \'' . $url . '\'document.getElementById(\'country_id\').value, \'zones_wrapper\', \'\');');
echo TiendaSelect::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::_('ZONE');
?>
</th>
<td>
<div id="zones_wrapper">
<?php
if (empty($row->zone_id)) {
echo JText::_("SELECT COUNTRY FIRST");
} else {
示例4: array
?>
" size="48" maxlength="250" />
</td>
</tr>
<tr>
<td style="width: 100px; text-align: right;" class="key">
<?php
echo JText::_('COM_TIENDA_COUNTRY');
?>
:
</td>
<td>
<?php
$url = "index.php?option=com_tienda&format=raw&controller=addresses&task=getzones&name=shop_zone&country_id=";
$attribs = array('onchange' => 'tiendaDoTask( \'' . $url . '\'+document.getElementById(\'shipping_country_id\').value, \'shipping_zones_wrapper\', \'\');');
echo TiendaSelect::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_TIENDA_ZONE');
?>
:
</td>
<td>
<div id="shipping_zones_wrapper">
<?php
if (empty($row->orderinfo->shipping_zone_id)) {
echo JText::_('COM_TIENDA_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_TIENDA_COUNTRY');
?>
:
</th>
<td><?php
$url = "index.php?option=com_tienda&format=raw&controller=zones&task=filterzones&hookgeozone=false&idprefix=billing_input_&countryid=";
$attribs = array('class' => 'inputbox', 'size' => '1', 'onchange' => 'tiendaDoTask( \'' . $url . '\'+document.getElementById(\'billing_input_country_id\').value, \'billing_zones_wrapper\', \'\');');
echo TiendaSelect::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_TIENDA_ZONE');
?>
:
</th>
<td>
<div id="billing_zones_wrapper"></div>
</td>
</tr>
<tr>
示例6: array
echo $this->row->get('shop_city', '');
?>
" size="25" />
</td>
<td></td>
</tr>
<tr>
<th style="width: 25%;"><?php
echo JText::_('COM_TIENDA_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_tienda&format=raw&controller=addresses&task=getzones&name=shop_zone&country_id=";
$attribs = array('onchange' => 'tiendaDoTask( \'' . $url . '\'+document.getElementById(\'shop_country\').value, \'zones_wrapper\', \'\');');
echo TiendaSelect::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_TIENDA_STATE_REGION');
?>
</th>
<td>
<div id="zones_wrapper">
<?php
$shop_zone = $this->row->get('shop_zone', '');
if (empty($shop_zone)) {
echo JText::_('COM_TIENDA_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_TIENDA_COUNTRY');
?>
:
</label>
</td>
<td>
<?php
echo TiendaSelect::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>