インターネット、WEBサイトの設置運用サービス

2019/07

24

HOME > プログラム変更履歴 > アドレスフォーマット変更 > address_book_details.php

address_book_details.php

includes/modules/address_book_details.php

氏名(姓)、氏名(名前)の入力順序入れ替え

<div class="form-group row">
<label for="inputLastName" class="col-form-label col-sm-3 text-left text-sm-right"><?php echo ENTRY_LAST_NAME; ?></label>
<div class="col-sm-9">
<?php echo tep_draw_input_field('lastname', (isset($entry['entry_lastname']) ? $entry['entry_lastname'] : ''), 'id="inputLastName" placeholder="' . ENTRY_LAST_NAME_TEXT . '"'); ?>
<?php echo FORM_REQUIRED_INPUT; ?>
</div>
</div>
<div class="form-group row">
<label for="inputFirstName" class="col-form-label col-sm-3 text-left text-sm-right"><?php echo ENTRY_FIRST_NAME; ?></label><div class="col-sm-9">
<?php echo tep_draw_input_field('firstname', (isset($entry['entry_firstname']) ? $entry['entry_firstname'] : ''), 'id="inputFirstName" placeholder="' . ENTRY_FIRST_NAME_TEXT . '"'); ?>
<?php echo FORM_REQUIRED_INPUT; ?>
</div>
</div>

住所の入力順序の入れ替え

<div class="form-group row">
<label for="inputZip" class="col-form-label col-sm-3 text-left text-sm-right"><?php echo ENTRY_POST_CODE; ?></label>
<div class="col-sm-9">
<?php
echo tep_draw_input_field('postcode', (isset($entry['entry_postcode']) ? $entry['entry_postcode'] : ''), 'id="inputZip" placeholder="' . ENTRY_POST_CODE_TEXT . '"');
echo FORM_REQUIRED_INPUT;
?>
</div>
</div>

<?php
if (ACCOUNT_STATE == 'true') {
?>

<div class="form-group row">
<label for="inputState" class="col-form-label col-sm-3 text-left text-sm-right"><?php echo ENTRY_STATE; ?></label>
<div class="col-sm-9">
<?php
if ($process == true) {
if ($entry_state_has_zones == true) {
$zones_array = array();
$zones_query = tep_db_query("select zone_name from zones where zone_country_id = '" . (int)$country . "' order by zone_name");
while ($zones_values = tep_db_fetch_array($zones_query)) {
$zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
}
echo tep_draw_pull_down_menu('state', $zones_array, 0, 'id="inputState" aria-describedby="atState"');
if (tep_not_null(ENTRY_STATE_TEXT)) echo '<span id="atState" class="form-text">' . ENTRY_STATE_TEXT . '</span>';
} else {
echo tep_draw_input_field('state', NULL, 'id="inputState" placeholder="' . ENTRY_STATE_TEXT . '"');
}
} else {
echo tep_draw_input_field('state', (isset($entry['entry_country_id']) ? tep_get_zone_name($entry['entry_country_id'], $entry['entry_zone_id'], $entry['entry_state']) : ''), 'id="inputState" placeholder="' . ENTRY_STATE_TEXT . '"');
}
?>
</div>
</div>

<?php
}
?> <div class="form-group row">
<label for="inputCity" class="col-form-label col-sm-3 text-left text-sm-right"><?php echo ENTRY_CITY; ?></label>
<div class="col-sm-9">
<?php
echo tep_draw_input_field('city', (isset($entry['entry_city']) ? $entry['entry_city'] : ''), 'id="inputCity" placeholder="' . ENTRY_CITY_TEXT. '"');
echo FORM_REQUIRED_INPUT;
?>
</div>
</div>

<div class="form-group row">
<label for="inputStreet" class="col-form-label col-sm-3 text-left text-sm-right"><?php echo ENTRY_STREET_ADDRESS; ?></label>
<div class="col-sm-9">
<?php
echo tep_draw_input_field('street_address', (isset($entry['entry_street_address']) ? $entry['entry_street_address'] : ''), 'id="inputStreet" placeholder="' . ENTRY_STREET_ADDRESS_TEXT . '"');
echo FORM_REQUIRED_INPUT;
?>
</div>
</div>

<?php
if (ACCOUNT_SUBURB == 'true') {
?>

<div class="form-group row">
<label for="inputSuburb" class="col-form-label col-sm-3 text-left text-sm-right"><?php echo ENTRY_SUBURB; ?></label>
<div class="col-sm-9">
<?php
echo tep_draw_input_field('suburb', (isset($entry['entry_suburb']) ? $entry['entry_suburb'] : ''), 'id="inputSuburb" placeholder="' . ENTRY_SUBURB_TEXT . '"');
?>
</div>
</div>

<?php
}
?>