本文整理汇总了PHP中tep_get_country_zones函数的典型用法代码示例。如果您正苦于以下问题:PHP tep_get_country_zones函数的具体用法?PHP tep_get_country_zones怎么用?PHP tep_get_country_zones使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tep_get_country_zones函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tep_cfg_pull_down_zone_list
function tep_cfg_pull_down_zone_list($zone_id)
{
return tep_draw_pull_down_menu('configuration_value', tep_get_country_zones(STORE_COUNTRY), $zone_id);
}
示例2: tep_cfg_pull_down_zone_list_one_page
function tep_cfg_pull_down_zone_list_one_page($zone_id)
{
return tep_draw_pull_down_menu('configuration_value', tep_get_country_zones(ONEPAGE_AUTO_SHOW_DEFAULT_COUNTRY), $zone_id);
}
示例3: tep_cfg_pull_down_zone_list
function tep_cfg_pull_down_zone_list($zone_id)
{
return HTML::selectField('configuration_value', tep_get_country_zones(STORE_COUNTRY), $zone_id);
}
示例4: stripslashes
<td colspan="2" valign="top" class="dataTableContent" nowrap><input name="update_billing_city" size="15" value="<?php
echo stripslashes($order->billing['city']);
?>
" <?php
if (ORDER_EDITOR_USE_AJAX == 'true') {
?>
onChange="updateOrdersField('billing_city', encodeURIComponent(this.value))"<?php
}
?>
>,</td>
<td valign="top" class="dataTableContent"><span id="billingStateMenu">
<?php
if (ORDER_EDITOR_USE_AJAX == 'true') {
echo tep_draw_pull_down_menu('update_billing_zone_id', tep_get_country_zones($order->billing['country_id']), $order->billing['zone_id'], 'style="width: 200px;" onChange="updateOrdersField(\'billing_state\', this.options[this.selectedIndex].text);"');
} else {
echo tep_draw_pull_down_menu('update_billing_zone_id', tep_get_country_zones($order->billing['country_id']), $order->billing['zone_id'], 'style="width: 200px;"');
}
?>
</span><span id="billingStateInput"><input name="update_billing_state" size="15" value="<?php
echo stripslashes($order->billing['state']);
?>
" <?php
if (ORDER_EDITOR_USE_AJAX == 'true') {
?>
onChange="updateOrdersField('billing_state', encodeURIComponent(this.value))"<?php
}
?>
></span></td>
</tr>
<tr class="dataTableRow">
<td class="dataTableContent" valign="middle" align="right" nowrap><?php
示例5: array
$parent_cities_array = array(array('id' => '', 'text' => '- - - - - - - - - '));
reset($country_cities);
while (list($country_city_id, $country_city_name) = each($country_cities)) {
$parent_cities_array[] = array('id' => $country_city_id, 'text' => $country_city_name);
}
$city_field = tep_draw_pull_down_menu('city_id', $parent_cities_array, $dInfo->postcode, 'onchange="if (this.options[this.selectedIndex].value.length >= 4 && country_id.options[country_id.selectedIndex].value > 0) { getXMLDOM(\'' . tep_href_link(FILENAME_SELF_DELIVERY, 'action=load&type=postcode') . '&postcode=\'+this.options[this.selectedIndex].value+\'&country=\'+country_id.options[country_id.selectedIndex].value, \'delivery_postcode\'); getXMLDOM(\'' . tep_href_link(FILENAME_SELF_DELIVERY, 'action=load&type=state') . '&postcode=\'+this.options[this.selectedIndex].value+\'&country=\'+country_id.options[country_id.selectedIndex].value, \'delivery_state\'); getXMLDOM(\'' . tep_href_link(FILENAME_SELF_DELIVERY, 'action=load&type=suburb') . '&postcode=\'+this.options[this.selectedIndex].value+\'&country=\'+country_id.options[country_id.selectedIndex].value, \'delivery_suburb\'); getXMLDOM(\'' . tep_href_link(FILENAME_SELF_DELIVERY, 'action=load&type=city') . '&postcode=\'+this.options[this.selectedIndex].value+\'&country=\'+country_id.options[country_id.selectedIndex].value, \'delivery_city\'); }""');
}
if (empty($city_field)) {
$city_field = tep_draw_input_field('city', $dInfo->city, 'size="30"');
}
$heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_EDIT_SELF_DELIVERY . '</strong>');
$contents = array('form' => tep_draw_form('delivery', FILENAME_SELF_DELIVERY, 'page=' . $HTTP_GET_VARS['page'] . ($action == 'new' ? '' : '&dID=' . $dInfo->self_delivery_id) . '&action=' . ($action == 'new' ? 'insert' : 'save')));
$contents[] = array('text' => $action == 'new' ? TEXT_INFO_INSERT_INTRO : TEXT_INFO_EDIT_INTRO);
$contents[] = array('text' => '<br>' . TEXT_INFO_SELF_DELIVERY_COUNTRY . '<br>' . tep_draw_pull_down_menu('country_id', $countries, $dInfo->country_id));
$contents[] = array('text' => TEXT_INFO_SELF_DELIVERY_POSTCODE . '<br><span id="delivery_postcode">' . tep_draw_input_field('postcode', $dInfo->postcode, 'size="10" onkeyup="if (this.value.length >= 4 && country_id.options[country_id.selectedIndex].value > 0) { getXMLDOM(\'' . tep_href_link(FILENAME_SELF_DELIVERY, 'action=load&type=state') . '&postcode=\'+this.value+\'&country=\'+country_id.options[country_id.selectedIndex].value, \'delivery_state\'); getXMLDOM(\'' . tep_href_link(FILENAME_SELF_DELIVERY, 'action=load&type=suburb') . '&postcode=\'+this.value+\'&country=\'+country_id.options[country_id.selectedIndex].value, \'delivery_suburb\'); getXMLDOM(\'' . tep_href_link(FILENAME_SELF_DELIVERY, 'action=load&type=city') . '&postcode=\'+this.value+\'&country=\'+country_id.options[country_id.selectedIndex].value, \'delivery_city\'); }"') . '</span>');
$contents[] = array('text' => TEXT_INFO_SELF_DELIVERY_STATE . '<br><span id="delivery_state">' . tep_draw_pull_down_menu('zone_id', tep_get_country_zones($dInfo->country_id), $dInfo->zone_id) . '</span>');
$contents[] = array('text' => TEXT_INFO_SELF_DELIVERY_SUBURB . '<br><span id="delivery_suburb">' . tep_draw_input_field('suburb', $dInfo->suburb, 'size="30"') . '</span>');
$contents[] = array('text' => TEXT_INFO_SELF_DELIVERY_CITY . '<br><span id="delivery_city">' . $city_field . '</span>');
$contents[] = array('text' => TEXT_INFO_SELF_DELIVERY_STREET_ADDRESS . '<br>' . tep_draw_textarea_field('street_address', 'soft', '30', '4', $dInfo->street_address));
$contents[] = array('text' => TEXT_INFO_SELF_DELIVERY_TELEPHONE . '<br>' . tep_draw_input_field('telephone', $dInfo->telephone, 'size="30"'));
$contents[] = array('text' => TEXT_INFO_SELF_DELIVERY_STATUS . '<br>' . tep_draw_radio_field('self_delivery_status', '1', $dInfo->self_delivery_status == '1') . TEXT_INFO_SELF_DELIVERY_STATUS_YES . ' ' . tep_draw_radio_field('self_delivery_status', '0', $dInfo->self_delivery_status == '0') . TEXT_INFO_SELF_DELIVERY_STATUS_NO);
$contents[] = array('text' => TEXT_INFO_SELF_DELIVERY_DESCRIPTION . '<br>' . tep_draw_textarea_field('self_delivery_description', 'soft', '30', '4', $dInfo->self_delivery_description));
$contents[] = array('text' => TEXT_INFO_SELF_DELIVERY_COST . '<br>' . tep_draw_input_field('self_delivery_cost', $dInfo->self_delivery_cost > 0 ? (string) (double) $dInfo->self_delivery_cost : '', 'size="5"'));
$contents[] = array('text' => TEXT_INFO_SELF_DELIVERY_FREE . '<br>' . tep_draw_input_field('self_delivery_free', $dInfo->self_delivery_free > 0 ? (string) (double) $dInfo->self_delivery_free : '', 'size="5"'));
$contents[] = array('text' => TEXT_INFO_SELF_DELIVERY_DAYS . '<br>' . tep_draw_input_field('self_delivery_days', $dInfo->self_delivery_days > 0 ? (int) $dInfo->self_delivery_days : '', 'size="2"'));
$contents[] = array('text' => tep_draw_checkbox_field('self_delivery_only_periodicals', '1', $dInfo->self_delivery_only_periodicals == '1') . TEXT_INFO_SELF_DELIVERY_ONLY_PERIODICALS);
$contents[] = array('align' => 'center', 'text' => '<br>' . ($action == 'new' ? tep_image_submit('button_insert.gif', IMAGE_INSERT) : tep_image_submit('button_update.gif', IMAGE_UPDATE)) . ' <a href="' . tep_href_link(FILENAME_SELF_DELIVERY, 'page=' . $HTTP_GET_VARS['page'] . ($action == 'new' ? '' : '&dID=' . $dInfo->self_delivery_id)) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_DELETE_SELF_DELIVERY . '</strong>');
$contents = array('form' => tep_draw_form('status', FILENAME_SELF_DELIVERY, 'dID=' . $dInfo->self_delivery_id . '&action=deleteconfirm&page=' . $HTTP_GET_VARS['page']));