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


PHP zen_get_country_list函数代码示例

本文整理汇总了PHP中zen_get_country_list函数的典型用法代码示例。如果您正苦于以下问题:PHP zen_get_country_list函数的具体用法?PHP zen_get_country_list怎么用?PHP zen_get_country_list使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了zen_get_country_list函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: zen_draw_input_field

<?php 
    echo zen_draw_input_field('company', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' id="company"') . '&nbsp;' . (zen_not_null(ENTRY_COMPANY_TEXT) ? '<span class="alert">' . ENTRY_COMPANY_TEXT . '</span>' : '');
    ?>
<br class="clearBoth" />
<?php 
}
?>
   

<label class="inputLabel" for="country"><?php 
echo ENTRY_COUNTRY;
?>
</label>
<?php 
$selected_country = $_POST['country'] ? $country : SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY;
echo zen_get_country_list('country', $selected_country, 'id="country"') . '&nbsp;' . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="alert">' . ENTRY_COUNTRY_TEXT . '</span>' : '');
?>
<br class="clearBoth" />

<label class="inputLabel" for="postcode"><?php 
echo ENTRY_POST_CODE;
?>
</label>
<?php 
echo zen_draw_input_field('postcode', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' id="postcode"') . '&nbsp;' . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' . ENTRY_POST_CODE_TEXT . '</span>' : '');
?>
<br class="clearBoth" />

<?php 
if (ACCOUNT_STATE == 'true') {
    ?>
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:31,代码来源:tpl_modules_checkout_new_address.php

示例2: elseif

    } elseif (empty($_SESSION['cart_address_id']) && !empty($addresses)) {
        // no selected address yet, snag the first one
        reset($addresses);
        $first = current($addresses);
        $_SESSION['cart_address_id'] = $gBitCustomer->getField('customers_default_address_id', $first['address_book_id']);
    }
    if (isset($_SESSION['cart_address_id']) && ($selAddress = $gBitCustomer->getAddress($_SESSION['cart_address_id']))) {
        $order->delivery = array('postcode' => $selAddress['entry_postcode'], 'country' => array('countries_id' => $selAddress['entry_country_id'], 'title' => $selAddress['countries_name'], 'countries_iso_code_2' => $selAddress['countries_iso_code_2'], 'countries_iso_code_3' => $selAddress['countries_iso_code_3']), 'country_id' => $selAddress['entry_country_id'], 'format_id' => $selAddress['address_format_id']);
        if (!empty($_SESSION['cart_zone_id'])) {
            $order->delivery['zone_id'] = (int) $selAddress['entry_zone_id'];
        }
        $_SESSION['country_id'] = NULL;
    }
} else {
}
$gBitSmarty->assign_by_ref('countryMenu', zen_get_country_list('country_id', $order->delivery['country']['countries_id'], 'onChange="updateShippingQuote(this.form);"'));
// set the cost to be able to calculate free shipping
$order->info = array('total' => $gBitCustomer->mCart->show_total());
$freeShipping = FALSE;
// check free shipping based on order $total
if (defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') && MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true') {
    $pass = false;
    switch (MODULE_ORDER_TOTAL_SHIPPING_DESTINATION) {
        case 'national':
            if ($order->delivery['country_id'] == STORE_COUNTRY) {
                $pass = true;
            }
            break;
        case 'international':
            if ($order->delivery['country_id'] != STORE_COUNTRY) {
                $pass = true;
开发者ID:bitweaver,项目名称:commerce,代码行数:31,代码来源:shipping_estimator.php

示例3: zen_draw_input_field

        <td class="g_t_r b"><?php 
echo ENTRY_CITY;
?>
<span class="red">*</span></td>
        <td colspan="3"><?php 
echo zen_draw_input_field('city', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_city', '40') . ' chkrule="nnull/min3" chkname="City" id="city" class="l_input"');
?>
        </td>
      </tr>
      <tr>
        <td class="g_t_r b"><?php 
echo ENTRY_COUNTRY;
?>
</td>
        <td colspan="3"><?php 
echo zen_get_country_list('zone_country_id', $selected_country, ' chkname="Country / Region" chkrule="isselect" id="country"  class="l_select" onchange="update_zone(this.form);"');
?>
        </td>
      </tr>
			<tr id="zone_id_tr">
			  <td class="g_t_r b"><?php 
echo ENTRY_STATE . (zen_not_null(ENTRY_STATE_TEXT) ? '&nbsp;<span class="red">' . ENTRY_STATE_TEXT . '</span>' : '');
?>
</td>
			  <td colspan="3"><select id="stateZone" class="l_select" chkname="State/Province/Region" chkrule="isselect"  name="zone_id">  </select>
			</td></tr>
			<tr id="zone_id_tr1" style="display:none;">
			  <td align="right"><strong><?php 
echo ENTRY_STATE . (zen_not_null(ENTRY_STATE_TEXT) ? '&nbsp;<span class="red">' . ENTRY_STATE_TEXT . '</span>' : '');
?>
</strong></td>
开发者ID:happyxlq,项目名称:lt_svn,代码行数:31,代码来源:tpl_modules_checkout_new_address.php

示例4: echo_shipping_address_form


//.........这里部分代码省略.........
    <label class="control-label col-sm-4" for="street-address"><?php 
        echo self::required_text(ENTRY_STREET_ADDRESS_TEXT) . ENTRY_STREET_ADDRESS;
        ?>
</label>
    <div class='col-sm-8'>
    <?php 
        echo zen_draw_input_field('street_address', $entry->fields['entry_street_address'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_street_address', '40') . ' class="form-control" id="street-address"');
        ?>
    </div>
    </div>

    <?php 
        if (ACCOUNT_SUBURB == 'true') {
            ?>
    <div class='form-group'>
    <label class="control-label col-sm-4" for="suburb"><?php 
            echo self::required_text(ENTRY_SUBURB_TEXT) . ENTRY_SUBURB;
            ?>
</label>
    <div class='col-sm-8'>
    <?php 
            echo zen_draw_input_field('suburb', $entry->fields['entry_suburb'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_suburb', '40') . ' class="form-control" id="suburb"');
            ?>
    </div>
    </div>
    <?php 
        }
        ?>

    <div class='form-group'>
    <label class="control-label col-sm-4" for="city"><?php 
        echo self::required_text(ENTRY_CITY_TEXT) . ENTRY_CITY;
        ?>
</label>
    <div class='col-sm-8'>
    <?php 
        echo zen_draw_input_field('city', $entry->fields['entry_city'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_city', '40') . ' class="form-control" id="city"');
        ?>
    </div></div>

    <?php 
        if (ACCOUNT_STATE == 'true') {
            if ($flag_show_pulldown_states == true) {
                ?>
          <div class='form-group'>
          <label class="control-label col-sm-4" for="stateZone" class="form-control" id="zoneLabel">
            <?php 
                echo self::required_text(ENTRY_STATE_TEXT) . ENTRY_STATE;
                ?>
          </label>
          <div class='col-sm-8'>
    <?php 
                echo zen_draw_pull_down_menu('zone_id', zen_prepare_country_zones_pull_down($selected_country), $zone_id, 'class="form-control" id="stateZone"');
                echo '</div></div>';
            }
            ?>

    <div class='form-group' id='stateLabel'>
    <label class="control-label col-sm-4" for="state"><?php 
            echo self::required_text(ENTRY_STATE_TEXT) . ENTRY_STATE;
            ?>
</label>
    <!-- Elements with ids of `stText` & `stBreak` are required by Zencart,
         leaving them out breaks the auto-populating of the State dropdown when editing
         an address. -->
    <span id='stText'></span><span id='stBreak'></span>
    <div class='col-sm-8'>
    <?php 
            echo zen_draw_input_field('state', zen_get_zone_name($entry->fields['entry_country_id'], $entry->fields['entry_zone_id'], $entry->fields['entry_state']), zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' class="form-control" id="state"');
            if ($flag_show_pulldown_states == false) {
                echo zen_draw_hidden_field('zone_id', $zone_name, ' ');
            }
            ?>
    </div></div>
    <?php 
        }
        ?>

    <div class='form-group'>
    <label class="control-label col-sm-4" for="postcode"><?php 
        echo self::required_text(ENTRY_POST_CODE_TEXT) . ENTRY_POST_CODE;
        ?>
</label>
    <div class='col-sm-8'>
    <?php 
        echo zen_draw_input_field('postcode', $entry->fields['entry_postcode'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' class="form-control" id="postcode"');
        ?>
    </div></div>

    <div class='form-group'>
    <label class="control-label col-sm-4" for="country"><?php 
        echo self::required_text(ENTRY_COUNTRY_TEXT) . ENTRY_COUNTRY;
        ?>
</label>
    <div class='col-sm-8'>
    <?php 
        echo zen_get_country_list('zone_country_id', isset($entry->fields['entry_country_id']) ? $entry->fields['entry_country_id'] : $selected_country, 'class="form-control" id="country" ' . ($flag_show_pulldown_states == true ? 'onchange="update_zone(this.form);"' : ''));
        ?>
    </div></div><?php 
    }
开发者ID:Southern-Exposure-Seed-Exchange,项目名称:Zencart-Bootstrap-Theme,代码行数:101,代码来源:sese_bootstrap_forms.php

示例5: zen_html_quotes

        ?>
			<input name="update_billing_country" size="45" value="<?php 
        echo zen_html_quotes($order->billing['country']);
        ?>
">
		<?php 
    }
    ?>
	</td>
    <td valign="top"><strong><?php 
    echo ENTRY_CUSTOMER_COUNTRY;
    ?>
:&nbsp;</strong></td>
    <td valign="top"><?php 
    if (is_array($order->delivery['country']) && array_key_exists('id', $order->delivery['country'])) {
        echo zen_get_country_list('update_delivery_country', $order->delivery['country']['id']);
    } else {
        ?>
			<input name="update_delivery_country" size="45" value="<?php 
        echo zen_html_quotes($order->delivery['country']);
        ?>
">
		<?php 
    }
    ?>
  </tr>
</table>
</td></tr></table>
<!-- End Addresses Block -->

      <tr>
开发者ID:bislewl,项目名称:super_edit_orders_with_ty,代码行数:31,代码来源:edit_orders.php

示例6: zen_draw_input_field

    ?>
</td>
  </tr>
<?php 
}
?>
  <tr>
    <td class="main"><?php 
echo ENTRY_POST_CODE;
?>
</td>
    <td class="main"><?php 
echo zen_draw_input_field('postcode', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40')) . '&nbsp;' . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>' : '');
?>
</td>
  </tr>
  <tr>
    <td class="main"><?php 
echo ENTRY_COUNTRY;
?>
</td>
<?php 
$selected_country = $_POST['country'] ? $country : SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY;
?>
    <td class="main"><?php 
echo zen_get_country_list('country', $selected_country) . '&nbsp;' . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>' : '');
?>
</td>
  </tr>
</table>
开发者ID:bitweaver,项目名称:commerce,代码行数:30,代码来源:blk_address_format_us_css.php

示例7: zen_draw_input_field

                    </label>
					<?php 
echo zen_draw_input_field('postcode', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' id="postcode"  class="inputlogin"');
?>
				</div>
				<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 country">
					<label class="inputLabel" for="country">
						<?php 
echo ENTRY_COUNTRY;
?>
						<?php 
echo zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="alert-text">' . ENTRY_COUNTRY_TEXT . '</span>' : '';
?>
                    </label>
					<?php 
echo zen_get_country_list('zone_country_id', $selected_country, 'id="country" class="inputlogin" style="width:41.5%" ' . ($flag_show_pulldown_states == true ? 'onchange="update_zone(this.form);"' : ''));
?>
				</div>
			</div>
		</div>
	</div>

	<?php 
if (ACCOUNT_COMPANY == 'true') {
    ?>
	<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 company-details">
		<div class="content">
            <h4><?php 
    echo CATEGORY_COMPANY;
    ?>
</h4>
开发者ID:quangn92,项目名称:visualyou,代码行数:31,代码来源:tpl_modules_create_account.php

示例8: while

     $addresses = $db->execute("select address_book_id, entry_city as city, entry_postcode as postcode, entry_state as state, entry_zone_id as zone_id, entry_country_id as country_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $_SESSION['customer_id'] . "'");
     // only display addresses if more than 1
     if ($addresses->RecordCount() > 1) {
         while (!$addresses->EOF) {
             $addresses_array[] = array('id' => $addresses->fields['address_book_id'], 'text' => zen_address_format(zen_get_address_format_id($addresses->fields['country_id']), $addresses->fields, 0, ' ', ' '));
             $addresses->MoveNext();
         }
         $ShipTxt .= '<tr><td colspan="3" class="main" nowrap="nowrap">' . CART_SHIPPING_METHOD_ADDRESS . '&nbsp;' . zen_draw_pull_down_menu('address_id', $addresses_array, $selected_address, 'onchange="return shipincart_submit(\'\');"') . '</td></tr>';
     }
     $ShipTxt .= '<tr valign="top"><td class="main">' . CART_SHIPPING_METHOD_TO . '</td><td colspan="2" class="main">' . zen_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br />') . '</td></tr>';
 } else {
     // not logged in
     //      $ShipTxt.=zen_output_warning(CART_SHIPPING_OPTIONS_LOGIN);
     $ShipTxt .= '<tr><td colspan="3" class="main">' . CART_ITEMS . $total_count . '</td></tr>' . "\n\n";
     if ($_SESSION['cart']->get_content_type() != 'virtual') {
         $ShipTxt .= '<tr><td class="main">' . ENTRY_COUNTRY . '</td><td colspan="2" class="main">' . zen_get_country_list('country_id', $selected_country, 'style="width=200"') . '</td></tr>' . "\n\n";
         //add state zone_id
         $state_array[] = array('id' => '', 'text' => PULL_DOWN_SHIPPING_ESTIMATOR_SELECT);
         $state_values = $db->Execute("select zone_name, zone_id from " . TABLE_ZONES . " where zone_country_id = '{$selected_country}' order by zone_country_id DESC, zone_name");
         while (!$state_values->EOF) {
             $state_array[] = array('id' => $state_values->fields['zone_id'], 'text' => $state_values->fields['zone_name']);
             $state_values->MoveNext();
         }
         $ShipTxt .= '<tr><td colspan="1" class="main">' . ENTRY_STATE . '</td><td colspan="2" class="main">' . zen_draw_pull_down_menu('state', $state_array) . '</td></tr>';
         if (CART_SHIPPING_METHOD_ZIP_REQUIRED == "true") {
             $ShipTxt .= '<tr><td colspan="1" class="main">' . ENTRY_POST_CODE . '</td><td colspan="2" class="main">' . zen_draw_input_field('zip_code', $selected_zip, 'size="7"') . '</td></tr>';
         }
         //        $ShipTxt.='&nbsp;<a href="_" onclick="return shipincart_submit(\'\');">'.CART_SHIPPING_METHOD_RECALCULATE.'</a></td></tr>';
         $ShipTxt .= '<tr><td colspan="3" class="main"><a href="_" onclick="return shipincart_submit(\'\');">' . zen_image_button(BUTTON_IMAGE_UPDATE, BUTTON_UPDATE_ALT) . ' </a></td></tr>';
         $ShipTxt .= '<tr><td colspan="3">' . zen_draw_separator('pixel_trans.gif') . '</tr></td>';
     }
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:shipping_estimator.php

示例9: zen_draw_input_field

<label class="inputLabel" title="postcode"><?php 
echo ENTRY_POST_CODE;
?>
</label>
<?php 
echo zen_draw_input_field('postcode', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' class="fc_input_text_border"') . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' . ENTRY_POST_CODE_TEXT . '</span>' : '');
?>
<br class="clearBoth" />

<label class="inputLabel" title="country"><?php 
echo ENTRY_COUNTRY;
?>
</label>
<?php 
echo zen_get_country_list('zone_country_id', $_SESSION['customer_country_id'], 'class="fc_input_text_border" style="width:300px;" ' . ($flag_show_pulldown_states == true ? 'onchange="update_zone(this.form);"' : '')) . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="alert">' . ENTRY_COUNTRY_TEXT . '</span>' : '');
?>
<br class="clearBoth" />
  <?php 
echo zen_draw_checkbox_field('address_new', '1', false, 'class="address_new"') . TEXT_ADDRESS_NEW;
?>
<br class="clearBoth" />
  <div class="buttonRow forward"><?php 
echo zen_draw_hidden_field('fecaction', 'submit') . zen_image_submit(BUTTON_IMAGE_SUBMIT, BUTTON_CONTINUE_ALT);
?>
</div>
  <div class="buttonRow forward"><?php 
echo zen_image_button(BUTTON_IMAGE_CANCEL, BUTTON_CANCEL_ALT, 'class="cancelChangeShippingAddr"');
?>
</div>
  <br class="clearBoth" />   
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:30,代码来源:tpl_modules_change_checkout_new_address.php

示例10: zen_draw_hidden_field

echo CART_SHIPPING_OPTIONS;
?>
</h2>

<?php 
echo zen_draw_hidden_field('products_id', (int) $_GET['products_id'], 'id="products_id"');
?>

<label class="inputLabel" for="product_qty"><?php 
echo 'Product QTY: ';
?>
</label>
<?php 
echo zen_draw_input_field('product_qty', '1', 'id="product_qty" size="5"');
?>

<label class="inputLabel" for="zone_country_id"><?php 
echo ENTRY_COUNTRY;
?>
</label>
<?php 
echo zen_get_country_list('zone_country_id', $selected_country, 'id="zone_country_id"');
?>

<input type="button" id="shipping_estimator" value="Estimator" />

<br class="clearBoth" />
</div>
<div id="productShippingMethods"></div>

开发者ID:happyxlq,项目名称:lt_svn,代码行数:29,代码来源:tpl_modules_product_shipping_input.php

示例11: zen_get_country_list

        $addclass = "hiddenField";
    }
    ?>
            <div class="<?php 
    echo $addclass;
    ?>
 fec-field">
                <label class="inputLabel" for="country_shipping"><?php 
    echo ENTRY_COUNTRY;
    ?>
 <span class="alert"><?php 
    echo ENTRY_COUNTRY_TEXT;
    ?>
</span></label>
                <?php 
    echo zen_get_country_list('zone_country_id_shipping', $selected_country_shipping, 'id="country_shipping" ' . ($flag_show_pulldown_states_shipping == true ? 'onchange="update_zone_shipping(this.form);"' : '')) . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '' : '');
    ?>
            </div>
        <!-- end/country shipping -->
        
            
        <?php 
    if (ACCOUNT_STATE == 'true') {
        if ($flag_show_pulldown_states_shipping == true) {
            ?>
                  
                    <div class="fec-field">
                        <label class="inputLabel" for="stateZoneShipping" id="zoneLabelShipping"><?php 
            echo ENTRY_STATE;
            ?>
 <?php 
开发者ID:krakatoa14,项目名称:fec,代码行数:31,代码来源:tpl_modules_create_account.php

示例12: addcslashes

						 break InnerFour;
						 }
					 }
					break OuterTwo;
				}//end if
				}/* Express Shipping Cost - End */
		}
  }
}


var shipping_info='<h2 class="blue">Payment methods available in <?php 
echo addcslashes(STORE_NAME, '\'');
?>
:</h2><?php 
echo $paymentInfoString . addcslashes(PRODUCTS_INFO_POPUP_PAYMENT_METHODS, '\'');
?>
';
var payment_option='<h2 class="blue">Shipping Methods:</h2><div class="margin_t gray_bg pad_10px line_180">Shipping To:<br/><?php 
echo preg_replace("/\n/", "", zen_get_country_list('zone_country_id', $selected_country, 'id="country_id" onchange="return changeShippingCost();" class="select3"'));
?>
<br/><div class="fl" style="width:90px;">Qty:<br/><input type="text" class="input3" name="shippingCostQty" value="<?php 
echo zen_get_products_quantity_order_min($_GET['products_id']);
?>
" id="shippingCostQty" onkeyup="value=value.replace(/[^\\d]/g,\'\');changeShippingCost();"/></div><div class="fl" style="width:90px;">Weight:<br/><span id="weight"class="red">Waiting for input</span></div><br class="clear"/>Standard shipping:  Normally takes 7 to 10 days.<br/><span id="standard" class="red">Waiting for input</span><br/>Express shipping:  Normally takes 2 to 4 days.<br/><span id="express" class="red">Waiting for input</span></div><?php 
echo addcslashes(PRODUCTS_INFO_POPUP_SHIPPING_METHODS, '\'');
?>
</div>';

</script>
开发者ID:happyxlq,项目名称:lt_svn,代码行数:30,代码来源:jscript_main.php

示例13: elseif

        }
    } elseif (!empty($_REQUEST['address_type'])) {
        $addressType = $_REQUEST['address_type'];
        $entry = $order->{$addressType};
        if (isset($entry['country']['countries_id'])) {
            $countryId = $entry['country']['countries_id'];
        } elseif (is_string($entry['country'])) {
            $countryId = zen_get_country_id($entry['country']);
        } else {
            $countryId = NULL;
        }
        if (defined('ACCOUNT_STATE') && ACCOUNT_STATE == 'true') {
            $statePullDown = zen_draw_input_field('state', $entry['state']);
            $gBitSmarty->assign('statePullDown', $statePullDown);
        }
        $gBitSmarty->assign('countryPullDown', zen_get_country_list('country_id', $countryId));
        $gBitSmarty->assign_by_ref('address', $entry);
        $gBitSmarty->display('bitpackage:bitcommerce/order_address_edit.tpl');
    } else {
        print "<span class='alert alert-danger'>Empty Option</span>";
    }
    exit;
}
require DIR_FS_ADMIN_INCLUDES . 'header.php';
// Put this after header.php because we have a custom <header> when viewing an order
define('HEADING_TITLE', 'Order' . (!empty($_REQUEST['oID']) ? ' #' . $_REQUEST['oID'] : 's'));
if (!empty($order)) {
    require BITCOMMERCE_PKG_PATH . 'classes/CommerceProductManager.php';
    $productManager = new CommerceProductManager();
    $optionsList = $productManager->getOptions();
    $optionsList[0] = "Add new order option...";
开发者ID:bitweaver,项目名称:commerce,代码行数:31,代码来源:orders.php

示例14: zen_get_country_list

	<label for="country" class="col-xs-12 col-sm-4 col-md-3 control-label"><?php 
echo ENTRY_COUNTRY;
?>
		<?php 
if (zen_not_null(ENTRY_COUNTRY_TEXT)) {
    ?>
<span class="required"><?php 
    echo ENTRY_COUNTRY_TEXT;
    ?>
</span><?php 
}
?>
	</label>
	<div class="col-xs-12 col-sm-8 col-md-9">
		<?php 
echo zen_get_country_list('zone_country_id', $selected_country, 'id="country" class="form-control" ' . ($flag_show_pulldown_states == true ? 'onchange="update_zone(this.form);"' : ''));
?>
		
	</div>
</div>
<?php 
if (ACCOUNT_STATE == 'true') {
    ?>
	<?php 
    if ($flag_show_pulldown_states == true) {
        ?>
	<div class="form-group">
		<label for="stateZone" id="zoneLabel" class="col-xs-12 col-sm-4 col-md-3 control-label"><?php 
        echo ENTRY_STATE;
        ?>
			<?php 
开发者ID:wwxgitcat,项目名称:zencart_v1.0,代码行数:31,代码来源:tpl_modules_checkout_new_address.php

示例15: getCountryInputHtml

 function getCountryInputHtml($pAddressHash)
 {
     if (!($selectedCountry = BitBase::getIdParameter($pAddressHash, 'country_id'))) {
         if (!($selectedCountry = BitBase::getIdParameter($pAddressHash, 'entry_country_id'))) {
             $selectedCountry = defined('STORE_COUNTRY') ? STORE_COUNTRY : NULL;
         }
     }
     return zen_get_country_list('country_id', $selectedCountry, ' onchange="updateStates(this.value)" ');
 }
开发者ID:bitweaver,项目名称:commerce,代码行数:9,代码来源:CommerceCustomer.php


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