• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP tep_get_country_zones函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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);
}
开发者ID:tapwag,项目名称:oscommerce_deutsch,代码行数:4,代码来源:general.php


示例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);
}
开发者ID:digideskio,项目名称:oscmax2,代码行数:4,代码来源:general.php


示例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);
}
开发者ID:haraldpdl,项目名称:oscommerce2,代码行数:4,代码来源:general.php


示例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 
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:edit_orders.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 &gt;= 4 && country_id.options[country_id.selectedIndex].value &gt; 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 &gt;= 4 && country_id.options[country_id.selectedIndex].value &gt; 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 . '&nbsp; ' . 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']));
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:self_delivery.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP tep_get_ip_address函数代码示例发布时间:2022-05-23
下一篇:
PHP tep_get_country_name函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap