当前位置: 首页>>代码示例>>PHP>>正文


PHP TiendaSelect::country方法代码示例

本文整理汇总了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>
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:default.php

示例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 
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:form_address.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 {
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:address.php

示例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');
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:form_addresses.php

示例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>
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:form_address_billing.php

示例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');
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:all.php

示例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>
开发者ID:annggeel,项目名称:tienda,代码行数:31,代码来源:form.php


注:本文中的TiendaSelect::country方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。