<td width="50%"><?php 
echo (ENTRY_LAST_NAME_MIN_LENGTH == 'true' ? '<strong>' . ENTRY_LAST_NAME . '</strong>&nbsp;<span class="inputRequirement">*</span>' : ENTRY_LAST_NAME) . (tep_not_null(ENTRY_LAST_NAME_TEXT) ? '&nbsp;' . ENTRY_LAST_NAME_TEXT : '');
?>
</td>
		<td width="50%"><?php 
echo tep_draw_input_field('lastname', tep_not_null($entry['entry_lastname']) ? $entry['entry_lastname'] : $customer_last_name, 'size="20"');
?>
</td>
	  </tr>
	  <tr>
		<td width="50%"><?php 
echo ENTRY_COUNTRY_MIN_LENGTH == 'true' ? '<strong>' . ENTRY_COUNTRY . '</strong>&nbsp;<span class="inputRequirement">*</span>' : ENTRY_COUNTRY;
?>
</td>
		<td width="50%"><?php 
echo tep_get_country_list('country', $entry['entry_country_id'], 'onchange="if (this.form.postcode) this.form.postcode.focus();"') . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<br />' . "\n" . '<small>' . ENTRY_COUNTRY_TEXT . '</small>' : '');
?>
</td>
	  </tr>
<?php 
if (ACCOUNT_POSTCODE == 'true') {
    ?>
	  <tr>
		<td width="50%"><?php 
    echo (ENTRY_POSTCODE_MIN_LENGTH == 'true' ? '<strong>' . ENTRY_POSTCODE . '</strong>&nbsp;<span class="inputRequirement">*</span>' : ENTRY_POSTCODE) . (tep_not_null(ENTRY_POSTCODE_TEXT) ? '&nbsp;' . ENTRY_POSTCODE_TEXT : '');
    ?>
</td>
		<td width="50%"><?php 
    echo tep_draw_input_field('postcode', $entry['entry_postcode'], 'size="20" onblur="loadCity(this.form, this.value);"');
    ?>
</td>
    ?>
        </div>
      </div>
      
<?php 
}
?>

      <div class="form-group has-feedback">
        <label for="inputCountry" class="control-label col-sm-3"><?php 
echo ENTRY_COUNTRY;
?>
</label>
        <div class="col-sm-9">
          <?php 
echo tep_get_country_list('country', isset($entry['entry_country_id']) ? $entry['entry_country_id'] : 0, 'aria-describedby="atCountry" id="inputCountry"');
echo FORM_REQUIRED_INPUT;
if (tep_not_null(ENTRY_COUNTRY_TEXT)) {
    echo '<span id="atCountry" class="help-block">' . ENTRY_COUNTRY_TEXT . '</span>';
}
?>
        </div>
      </div>

<?php 
if (isset($_GET['edit']) && $customer_default_address_id != $_GET['edit'] || isset($_GET['edit']) == false) {
    ?>

      <div class="form-group">
        <label for="primary" class="control-label col-sm-3"><?php 
    echo SET_AS_PRIMARY;
    ?>
      </div>
    </div>

<?php 
}
?>

    <div class="form-group has-feedback">
      <label for="inputCountry" class="control-label col-sm-3"><?php 
echo ENTRY_COUNTRY;
?>
</label>
      <div class="col-sm-9">
        <?php 
echo tep_get_country_list('country', NULL, 'required aria-required="true" id="inputCountry"');
echo FORM_REQUIRED_INPUT;
if (tep_not_null(ENTRY_COUNTRY_TEXT)) {
    echo '<span class="help-block">' . ENTRY_COUNTRY_TEXT . '</span>';
}
?>
      </div>
    </div>
  </div>

  <div class="page-header">
    <h4><?php 
echo CATEGORY_CONTACT;
?>
</h4>
  </div>
if (tep_not_null(ENTRY_CITY_TEXT)) {
    $xoopsTpl->assign("city_entry", '<span class="inputRequirement">' . ENTRY_CITY_TEXT . '</span>');
}
if (ACCOUNT_STATE == 'true') {
    $xoopsTpl->assign("state", 1);
    if ($process == true) {
        if ($entry_state_has_zones == true) {
            $zones_array = array();
            $zones_query = tep_db_query("select zone_name from " . TABLE_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']);
            }
            $xoopsTpl->assign("cstate", tep_draw_pull_down_menu('state', $zones_array));
        } else {
            $xoopsTpl->assign("cstate", tep_draw_input_field('state'));
        }
    } else {
        $xoopsTpl->assign("cstate", tep_draw_input_field('state', tep_get_zone_name($entry['entry_country_id'], $entry['entry_zone_id'], $entry['entry_state'])));
    }
    if (tep_not_null(ENTRY_STATE_TEXT)) {
        $xoopsTpl->assign("state_entry", '&nbsp;<span class="inputRequirement">' . ENTRY_STATE_TEXT);
    }
}
$xoopsTpl->assign("country", tep_get_country_list('country', $entry['entry_country_id']));
if (tep_not_null(ENTRY_COUNTRY_TEXT)) {
    $xoopsTpl->assign("country_entry", '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>');
}
if (isset($HTTP_GET_VARS['edit']) && $customer_default_address_id != $HTTP_GET_VARS['edit'] || isset($HTTP_GET_VARS['edit']) == false) {
    $xoopsTpl->assign("primary", 1);
    $xoopsTpl->assign("primary_field", tep_draw_checkbox_field('primary', 'on', false, 'id="primary"'));
}
 style="margin-left: 3px; margin-top: 1px; float: left;" title="Required" /></div>
            </div>
            </td>
        <?php 
}
?>
        <td>
            <label class="formLabel" for="billing_country"><?php 
echo Translate('Land');
?>
</label>
            <?php 
if (!tep_session_is_registered('customer_id')) {
    echo tep_get_country_list('billing_country', '', 'class="inputbox required" id="billing_country" condition="select_i0" type="select-one"');
} else {
    echo tep_get_country_list('billing_country', isset($billingAddress) && tep_not_null($billingAddress['country_id']) ? $billingAddress['country_id'] : ONEPAGE_DEFAULT_COUNTRY, 'class="inputbox required" id="billing_country" condition="select_i0"');
}
?>
        </td>
    </tr>
</table>
<?php 
if (!tep_session_is_registered('customer_id')) {
    ?>
	<?php 
    if (ONEPAGE_ACCOUNT_CREATE != 'required' && CUSTOMER_ACCOUNTS != 'false') {
        ?>
    	<div class="indent-small"></div>
		<p><input type="checkbox" name="billing_show_pw" id="billing_show_pw" value="1">
        <label for="billing_show_pw"><?php 
        echo Translate('Maak een account aan voor uw volgend bezoek');
                echo '<span id="atState" class="help-block">' . 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', NULL, 'id="inputState" placeholder="' . ENTRY_STATE_TEXT . '"');
    }
    ?>
      </div>
    </div>

<?php 
}
?>
    <div class="form-group">
      <label for="inputCountry" class="control-label col-sm-3"><?php 
echo ENTRY_COUNTRY;
?>
</label>
      <div class="col-sm-9">
        <?php 
echo tep_get_country_list('country', NULL, 'aria-describedby="atCountry" id="inputCountry"');
if (tep_not_null(ENTRY_COUNTRY_TEXT)) {
    echo '<span id="atCountry" class="help-block">' . ENTRY_COUNTRY_TEXT . '</span>';
}
?>
      </div>
    </div>
</div>
            <td class="main"><?php 
echo Translate('Woonplaats');
?>
:</td>
            <td class="main"><?php 
echo tep_draw_input_field('city', $entry['entry_city']) . '<span class="inputRequirement">' . ' *' . '</span>';
?>
</td>
          </tr>
          <tr>
            <td class="main"><?php 
echo Translate('Land');
?>
:</td>
            <td class="main"><?php 
echo tep_get_country_list('country', $entry['entry_country_id']) . '<span class="inputRequirement">' . ' *' . '</span>';
?>
</td>
          </tr>
<?php 
if (isset($HTTP_GET_VARS['edit']) && $customer_default_address_id != $HTTP_GET_VARS['edit'] || isset($HTTP_GET_VARS['edit']) == false) {
    ?>
          <tr>
            <td colspan="2"><?php 
    echo tep_draw_separator('pixel_trans.gif', '100%', '10');
    ?>
</td>
          </tr>
          <tr>
            <td colspan="2" class="main"><?php 
    echo tep_draw_checkbox_field('primary', 'on', false, 'id="primary"') . ' ' . Translate('Markeer als uw primaire adres');
Exemple #8
0
?>
&nbsp;</P></td>
				</tr>
				 <tr><td><P CLASS="main"><?php 
echo TEXT_ZIP_CODE;
?>
&nbsp;&nbsp;&nbsp;</P></td>
				 <td>&nbsp;</td><td><input type="text" name="zip" value="" size="6" maxlength="6"></td>
									 </tr>
					<tr>
            <td class="main"><?php 
echo ENTRY_COUNTRY;
?>
</td>
            <td>&nbsp;</td><td class="main"><?php 
echo tep_get_country_list('country', $subscribers_country_id) . '&nbsp;';
?>
</td>
          </tr>
									 <tr>
	 <td colspan=3 valign="center" align="right"><br><input type="image" border="0" src="includes/languages/english/images/buttons/button_confirm.gif" name="submit" align="ABSCENTER"></td>
	 </tr>
	 </table>
	 <BR>
            <P CLASS="smallText"><?php 
echo TEXT_ORIGIN_EXPLAIN_BOTTOM;
?>
</P>
            <br>
		</td>
      </tr>
</td>
  <td class="main"><?php 
        echo tep_draw_input_field('shipping_company', '', 'style="width:80%;float:left;"');
        ?>
</td>
 </tr>
<?php 
    }
    ?>
 <tr>
  <td class="main" nowrap><?php 
    echo ENTRY_COUNTRY;
    ?>
</td>
  <td class="main"><?php 
    echo tep_get_country_list('shipping_country', isset($shippingAddress['country_id']) ? $shippingAddress['country_id'] : ONEPAGE_DEFAULT_COUNTRY, 'class="required" style="width:80%;float:left;"');
    ?>
<div class="success_icon ui-icon-green ui-icon-circle-check" style="margin-left: 3px; margin-top: 1px; float: left;" title="false" /></td>
 </tr>
 <tr>
  <td class="main" ><?php 
    echo ENTRY_STREET_ADDRESS;
    ?>
</td>
  <td class="main"><?php 
    echo tep_draw_input_field('shipping_street_address', $shippingAddress['street_address'], 'class="required" style="width:80%;float:left;"');
    ?>
</td>
 </tr>
<?php 
    if (ACCOUNT_SUBURB == 'true') {
?>
" id="city" />
				</div>

				<div class="form-group <?php 
if ($messageStack->size('country') > 0) {
    echo 'has_error';
}
?>
">
					<label for="country" class="control-label"><?php 
echo Translate('Land');
?>
 <span class="text-danger">*</span></label>
					<?php 
echo tep_get_country_list('country', '', ' class="form-control" id="country" title="' . Translate('Gelieve een land uit de lijst te selecteren') . '"');
?>
				</div>

				<div class="form-group <?php 
if ($messageStack->size('telephone') > 0) {
    echo 'has_error';
}
?>
">
					<label for="telephone" class="control-label"><?php 
echo Translate('Telefoonnummer');
?>
 <span class="text-danger">*</span></label>
					<input class="form-control" type="text" name="telephone"  placeholder="bv. 000/00.00.00" value="<?php 
echo isset($_POST['telephone']) ? $_POST['telephone'] : '';
</label>
  <?php 
    if ($process == true) {
        if ($entry_state_has_zones == true) {
            $zones_array = array();
            $zones_query = tep_db_query("select zone_name from " . TABLE_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);
        } else {
            echo tep_draw_input_field('state');
        }
    } else {
        echo tep_draw_input_field('state');
    }
    ?>
</div>
<?php 
}
?>
<div class="form-group">
  <label><?php 
echo (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<sup class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</sup>' : '') . ENTRY_COUNTRY;
?>
</label>
  <?php 
echo tep_get_country_list('country', STORE_COUNTRY);
?>
 </div>
</td>
  <td class="main"><?php 
    echo tep_draw_input_field('billing_company', isset($billingAddress) ? $billingAddress['company'] : '', 'style="width:80%;float:left;"');
    ?>
</td>
 </tr>
<?php 
}
?>
 <tr>
  <td class="main" nowrap><?php 
echo ENTRY_COUNTRY;
?>
</td>
  <td class="main"><?php 
echo tep_get_country_list('billing_country', isset($billingAddress) && tep_not_null($billingAddress['country_id']) ? $billingAddress['country_id'] : ONEPAGE_DEFAULT_COUNTRY, 'class="required" style="float:left;width:80%"');
?>
<div class="success_icon ui-icon-green ui-icon-circle-check" style="margin-left: 3px; margin-top: 1px; float: left;" title="false" /></td>
 </tr>
 <tr>
  <td class="main" nowrap><?php 
echo ENTRY_STREET_ADDRESS;
?>
</td>
  <td class="main"><?php 
echo tep_draw_input_field('billing_street_address', isset($billingAddress) ? $billingAddress['street_address'] : '', 'class="required" style="width:80%;float:left;"');
?>
</td>
 </tr>
<?php 
if (ACCOUNT_SUBURB == 'true') {
        ?>
 class="required_icon ui-icon-red ui-icon-gear" <?php 
    }
    ?>
 style="margin-left: 1px; margin-top: 1px; float: left;" title="Required" /></div>
                        </div>
                        </td>
                    <?php 
}
?>
                </tr>
            </table>
        </td>
    </tr>
    <tr>
        <td>
            <label class="formLabel" for="shipping_country"><?php 
echo Translate('Land');
?>
</label>
            <?php 
if (!tep_session_is_registered('customer_id')) {
    echo tep_get_country_list('shipping_country', '', 'class="inputbox required" id="shipping_country" condition="select_i0" type="select-one"');
} else {
    echo tep_get_country_list('shipping_country', isset($shippingAddress['country_id']) ? $shippingAddress['country_id'] : ONEPAGE_DEFAULT_COUNTRY, 'class="inputbox required" id="shipping_country" condition="select_i0"');
}
?>
        </td>
    </tr>
</table>
<div class="indent-small"></div>
if (ACCOUNT_GENDER == 'true') {
    if (isset($gender)) {
        $male = $gender == 'm' ? true : false;
        $female = $gender == 'f' ? true : false;
    } else {
        $male = false;
        $female = false;
    }
    $address_fields['gender'] = array('title' => (ENTRY_GENDER_MIN_LENGTH == 'true' ? '<strong>' . ENTRY_GENDER . '</strong>&nbsp;<span class="inputRequirement">*</span>' : ENTRY_GENDER) . (tep_not_null(ENTRY_GENDER_TEXT) ? '&nbsp;' . ENTRY_GENDER_TEXT : ''), 'field' => tep_draw_radio_field('gender', 'm', $male) . '&nbsp;&nbsp;' . MALE . '&nbsp;&nbsp;' . tep_draw_radio_field('gender', 'f', $female) . '&nbsp;&nbsp;' . FEMALE);
}
$address_fields['first_name'] = array('title' => (ENTRY_FIRST_NAME_MIN_LENGTH == 'true' ? '<strong>' . ENTRY_FIRST_NAME . '</strong>&nbsp;<span class="inputRequirement">*</span>' : ENTRY_FIRST_NAME) . (tep_not_null(ENTRY_FIRST_NAME_TEXT) ? '&nbsp;' . ENTRY_FIRST_NAME_TEXT : ''), 'field' => tep_draw_input_field('firstname', isset($firstname) ? $firstname : $customer_first_name, 'size="20"'));
if (ACCOUNT_MIDDLE_NAME == 'true') {
    $address_fields['middle_name'] = array('title' => (ENTRY_MIDDLE_NAME_MIN_LENGTH == 'true' ? '<strong>' . ENTRY_MIDDLE_NAME . '</strong>&nbsp;<span class="inputRequirement">*</span>' : ENTRY_MIDDLE_NAME) . (tep_not_null(ENTRY_MIDDLE_NAME_TEXT) ? '&nbsp;' . ENTRY_MIDDLE_NAME_TEXT : ''), 'field' => tep_draw_input_field('middlename', isset($middlename) ? $middlename : $customer_middle_name, 'size="20"'));
}
$address_fields['last_name'] = array('title' => (ENTRY_LAST_NAME_MIN_LENGTH == 'true' ? '<strong>' . ENTRY_LAST_NAME . '</strong>&nbsp;<span class="inputRequirement">*</span>' : ENTRY_LAST_NAME) . (tep_not_null(ENTRY_LAST_NAME_TEXT) ? '&nbsp;' . ENTRY_LAST_NAME_TEXT : ''), 'field' => tep_draw_input_field('lastname', isset($lastname) ? $lastname : $customer_last_name, 'size="20"'));
$address_fields['country'] = array('title' => ENTRY_COUNTRY_MIN_LENGTH == 'true' ? '<strong>' . ENTRY_COUNTRY . '</strong>&nbsp;<span class="inputRequirement">*</span>' : ENTRY_COUNTRY, 'field' => tep_get_country_list('country', '', 'onchange="if (this.form.postcode) this.form.postcode.focus();"') . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<br />' . "\n" . '<small>' . ENTRY_COUNTRY_TEXT . '</small>' : ''));
if (ACCOUNT_POSTCODE == 'true') {
    $address_fields['postcode'] = array('title' => (ENTRY_POSTCODE_MIN_LENGTH == 'true' ? '<strong>' . ENTRY_POSTCODE . '</strong>&nbsp;<span class="inputRequirement">*</span>' : ENTRY_POSTCODE) . (tep_not_null(ENTRY_POSTCODE_TEXT) ? '&nbsp;' . ENTRY_POSTCODE_TEXT : ''), 'field' => tep_draw_input_field('postcode', '', 'size="20" onblur="loadCity(this.form, this.value);"') . (in_array(DOMAIN_ZONE, array('ru', 'by', 'ua', 'kz', 'us')) ? ' &nbsp; <small style="float: right;"><a href="#" onclick="var countryField = checkout_address.country; if (countryField.type==\'hidden\') countrySelected = countryField.value; else if (countryField.type==\'select-one\') countrySelected = countryField.options[countryField.selectedIndex].value; else countrySelected = 0; if (parseInt(countrySelected) &gt; 0) { document.getElementById(\'checkPostcode\').style.display = \'block\'; getXMLDOM(\'' . tep_href_link(FILENAME_LOADER, 'action=load_states', $request_type) . '&country=\'+countryField.value, \'postcodes\'); } else { alert(\'Пожалуйста, выберите страну!\'); } return false;">Я не знаю свой индекс</a></small>' : '') . '<div id="checkPostcode" style="background: #ECECEC; padding: 10px; border: 1px solid #D6D6D6; display: none; position: absolute;"><div id="postcodes"></div><a href="#" style="display: block; text-align: center;" onclick="document.getElementById(\'checkPostcode\').style.display=\'none\'; return false;">закрыть [x]</a></div>');
}
if (ACCOUNT_STATE == 'true') {
    $country_id = 0;
    if ($process != true) {
        $countries_check_query = tep_db_query("select countries_id from " . TABLE_COUNTRIES . "");
        if (tep_db_num_rows($countries_check_query) == 1) {
            $countries_check = tep_db_fetch_array($countries_check_query);
            $country_id = $countries_check['countries_id'];
        }
        if ($country_id > 0) {
            $zones_check_query = tep_db_query("select count(*) as total from " . TABLE_ZONES . " where zone_country_id = '" . (int) $country_id . "'");
            $zones_check = tep_db_fetch_array($zones_check_query);
            if ($zones_check['total'] > 0) {
            }
            echo tep_draw_pull_down_menu('state', $zones_array, 'class="form-control"');
        } else {
            echo tep_draw_input_field('state');
        }
    } else {
        echo tep_draw_input_field('state');
    }
    if (tep_not_null(ENTRY_STATE_TEXT)) {
    }
    ?>

  </div>
<?php 
}
?>
 <div class="form-group full-width margin-bottom"><label class="sr-only"></label>

    <?php 
echo ENTRY_COUNTRY;
?>
	<?php 
echo tep_get_country_list('country', isset($entry['entry_country_id']) ? $entry['entry_country_id'] : '', 'class="form-control"') . '&nbsp;' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '' : '');
?>
  </div>
</div>
</div>
</div>


            echo tep_draw_input_field('state', NULL, 'id="inputState" aria-describedby="atState" placeholder="' . ENTRY_STATE . '"');
        }
    } else {
        echo tep_draw_input_field('state', NULL, 'id="inputState" aria-describedby="atState" placeholder="' . ENTRY_STATE . '"');
    }
    if (tep_not_null(ENTRY_STATE_TEXT)) {
        echo '<span id="atState" class="help-block">' . ENTRY_STATE_TEXT . '</span>';
    }
    ?>
      </div>
    </div>

<?php 
}
?>
    <div class="form-group">
      <label for="inputCountry" class="control-label col-sm-3"><?php 
echo ENTRY_COUNTRY;
?>
</label>
      <div class="col-sm-9">
        <?php 
echo tep_get_country_list('country', STORE_COUNTRY, 0, 'id="inputCountry" aria-describedby="atCountry"');
if (tep_not_null(ENTRY_COUNTRY_TEXT)) {
    echo '<span id="atCountry" class="help-block">' . ENTRY_COUNTRY_TEXT . '</span>';
}
?>
      </div>
    </div>
</div>
        }
    } 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']) : '');
    }
    ?>
  </div>
  <?php 
}
?>
  <div class="form-group">
    <label><?php 
echo (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<sup class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</sup>' : '') . ENTRY_COUNTRY;
?>
</label>
    <?php 
echo tep_get_country_list('country', isset($entry['entry_country_id']) ? $entry['entry_country_id'] : STORE_COUNTRY);
?>
 </div>
  <?php 
if (isset($HTTP_GET_VARS['edit']) && $customer_default_address_id != $HTTP_GET_VARS['edit'] || isset($HTTP_GET_VARS['edit']) == false) {
    ?>
  <div class="checkbox">
    <label> <?php 
    echo tep_draw_checkbox_field('primary', 'on', false, 'id="primary"');
    ?>
 <?php 
    echo SET_AS_PRIMARY;
    ?>
 </label>
  </div>
  <?php 
        echo FORM_REQUIRED_INPUT;
    }
    ?>
      </div>
    </div>
<?php 
}
?>
    <div class="form-group has-feedback">
      <label for="inputCountry" class="control-label col-sm-3"><?php 
echo ENTRY_COUNTRY;
?>
</label>
      <div class="col-sm-9">
        <?php 
echo tep_get_country_list('country', NULL, 'required aria-required="true" aria-describedby="atCountry" id="inputCountry"');
echo FORM_REQUIRED_INPUT;
if (tep_not_null(ENTRY_COUNTRY_TEXT)) {
    echo '<span id="atCountry" class="help-block">' . ENTRY_COUNTRY_TEXT . '</span>';
}
?>
      </div>
    </div>
  </div>

  <h2><?php 
echo CATEGORY_CONTACT;
?>
</h2>
  
  <div class="contentText">
          <td class="main"><?php 
    echo Translate('Postcode');
    ?>
</td>
          <td class="main"><?php 
    echo tep_draw_input_field('postcode') . '&nbsp;<span class="inputRequirement">*</span>';
    ?>
</td>
         </tr>
         <tr>
          <td class="main"><?php 
    echo Translate('Land');
    ?>
</td>
          <td class="main"><?php 
    echo tep_get_country_list('country') . '&nbsp;<span class="inputRequirement">*</span>';
    ?>
</td>
         </tr>
        </table></td>
        <td width="10"><?php 
    echo tep_draw_separator('pixel_trans.gif', '10', '1');
    ?>
</td>
       </tr>
      </table></td>
      <td><?php 
    echo tep_draw_separator('pixel_trans.gif', '10', '1');
    ?>
</td>
     </tr>
    }
    ?>
        </td>
      </tr>

<?php 
}
?>

      <tr>
        <td class="fieldKey"><?php 
echo ENTRY_COUNTRY;
?>
</td>
        <td class="fieldValue"><?php 
echo tep_get_country_list('country', isset($entry['entry_country_id']) ? $entry['entry_country_id'] : STORE_COUNTRY) . '&nbsp;' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>' : '');
?>
</td>
      </tr>

<?php 
if (isset($HTTP_GET_VARS['edit']) && $customer_default_address_id != $HTTP_GET_VARS['edit'] || isset($HTTP_GET_VARS['edit']) == false) {
    ?>

      <tr>
        <td class="fieldValue" colspan="2"><?php 
    echo tep_draw_checkbox_field('primary', 'on', false, 'id="primary"') . ' ' . SET_AS_PRIMARY;
    ?>
</td>
      </tr>
if (tep_not_null(ENTRY_POST_CODE_TEXT)) {
    $xoopsTpl->assign("cna_postcode_entry", '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>');
}
$xoopsTpl->assign("cna_city", tep_draw_input_field('city'));
if (tep_not_null(ENTRY_CITY_TEXT)) {
    $xoopsTpl->assign("cna_city_entry", '<span class="inputRequirement">' . ENTRY_CITY_TEXT . '</span>');
}
if (ACCOUNT_STATE == 'true') {
    $xoopsTpl->assign("cna_state", 1);
    if ($process == true) {
        if ($entry_state_has_zones == true) {
            $zones_array = array();
            $zones_query = tep_db_query("select zone_name from " . TABLE_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']);
            }
            $xoopsTpl->assign("cna_state_list", tep_draw_pull_down_menu('state', $zones_array));
        } else {
            $xoopsTpl->assign("cna_state_list", tep_draw_input_field('state'));
        }
    } else {
        $xoopsTpl->assign("cna_state_list", tep_draw_input_field('state'));
    }
    if (tep_not_null(ENTRY_STATE_TEXT)) {
        $xoopsTpl->assign("cna_state_entry", '&nbsp;<span class="inputRequirement">' . ENTRY_STATE_TEXT);
    }
}
$xoopsTpl->assign("cna_country", tep_get_country_list('country'));
if (tep_not_null(ENTRY_COUNTRY_TEXT)) {
    $xoopsTpl->assign("cna_country_entry", '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>');
}
:</label></td>
                                                    <td><label for="fax" class="formLabel"><?php 
echo Translate('Faxnummer');
?>
:</label></td>
                                                </tr>
                                                <tr>
                                                    <td valign="top">
                                                        <?php 
$country_title = Translate('Gelieve een land uit de lijst te selecteren');
if ($messageStack->size('country') > 0) {
    $country_class = ' error';
} else {
    $country_class = '';
}
echo tep_get_country_list('country', '', ' class="inputbox' . $country_class . '" style="width:170px;" condition="select_i0" id="country" title="' . $country_title . '"');
?>
                                                        <span class="inputRequirement">&nbsp;*</span>
                                                    </td>
                                                    <td valign="top">
																											<input class="inputbox<?php 
if ($messageStack->size('telephone') > 0) {
    echo ' error';
}
?>
" type="text" name="telephone" size="30" style="width:170px;" title="" condition="reg[a-zA-Z0-9]{5}_required" value="<?php 
echo $_POST['telephone'];
?>
" id="telephone" />
																											<?php 
/*
    ?>
        </div>
      </div>

<?php 
}
?>

      <div class="form-group has-feedback">
        <label for="inputCountry" class="control-label col-sm-3"><?php 
echo ENTRY_COUNTRY;
?>
</label>
        <div class="col-sm-9">
          <?php 
echo tep_get_country_list('country', isset($entry['entry_country_id']) ? $entry['entry_country_id'] : STORE_COUNTRY, 'required aria-required="true" id="inputCountry"');
echo FORM_REQUIRED_INPUT;
if (tep_not_null(ENTRY_COUNTRY_TEXT)) {
    echo '<span class="help-block">' . ENTRY_COUNTRY_TEXT . '</span>';
}
?>
        </div>
      </div>

<?php 
if (isset($_GET['edit']) && $_SESSION['customer_default_address_id'] != $_GET['edit'] || isset($_GET['edit']) == false) {
    ?>

      <div class="form-group">
        <label class="control-label col-sm-3"><?php 
    echo SET_AS_PRIMARY;
echo tep_image(DIR_WS_ICONS . 'ajax-loader.gif');
?>
</div></td>
	    <td class="main">
	    <?php 
if ($is_read_only == true) {
    echo tep_get_country_name($affiliate['affiliate_country_id']);
} elseif ($error == true) {
    if ($entry_country_error == true) {
        echo tep_get_country_list('a_country') . '&nbsp;' . ENTRY_COUNTRY_ERROR;
    } else {
        echo tep_get_country_name($a_country) . tep_draw_hidden_field('a_country');
    }
} else {
    // +Country-State Selector
    echo tep_get_country_list('country', $entry['entry_country_id'], 'onChange="getStates(this.value,\'states\');"') . '&nbsp;' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>' : '');
    // -Country-State Selector
}
?>


          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td class="formAreaTitle"><br><?php 
echo CATEGORY_CONTACT;
?>
</td>
            echo tep_draw_input_field('state', NULL, 'id="inputState" placeholder="' . ENTRY_STATE . '"');
        }
    } else {
        echo tep_draw_input_field('state', NULL, 'id="inputState" placeholder="' . ENTRY_STATE . '"');
    }
    if (tep_not_null(ENTRY_STATE_TEXT)) {
        echo '<span class="help-block">' . ENTRY_STATE_TEXT . '</span>';
    }
    ?>
      </div>
    </div>

<?php 
}
?>
    <div class="form-group">
      <label for="inputCountry" class="control-label col-sm-3"><?php 
echo ENTRY_COUNTRY;
?>
</label>
      <div class="col-sm-9">
        <?php 
echo tep_get_country_list('country', STORE_COUNTRY, 0, 'id="inputCountry"');
if (tep_not_null(ENTRY_COUNTRY_TEXT)) {
    echo '<span class="help-block">' . ENTRY_COUNTRY_TEXT . '</span>';
}
?>
      </div>
    </div>
</div>
Exemple #26
0
         while ($addresses = tep_db_fetch_array($addresses_query)) {
             $addresses_array[] = array('id' => $addresses['address_book_id'], 'text' => tep_address_format(tep_get_address_format_id($addresses['country_id']), $addresses, 0, ' ', ' '));
         }
         $ShipTxt .= '<tr><td colspan="3" class="main" nowrap>' . CART_SHIPPING_METHOD_ADDRESS . '&nbsp;' . tep_draw_pull_down_menu('address_id', $addresses_array, $selected_address, 'onchange="return shipincart_submit(\'\');"') . '</td></tr>';
     }
     $ShipTxt .= '<tr valign="top"><td class="main"><b>' . CART_SHIPPING_METHOD_TO . '</b>&nbsp;</td><td colspan="2" class="main">' . tep_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br>') . '</td></tr>';
 } else {
     // not logged in
     $ShipTxt .= CART_SHIPPING_OPTIONS_LOGIN;
     if (CARTSHIP_SHOWIC == 'true') {
         //azer for 2.20:      $ShipTxt.='<tr><td class="main">' . ($total_count == 1 ? ' <b>Item:</b></td><td colspan="2" class="main">' : ' <b>Items:</b></td><td colspan="2" class="main">') . $total_count . $showweight . '</td></tr>';
         $ShipTxt .= '<tr><td class="main" nowrap>' . ($total_count == 1 ? ' <b>' . CART_ITEM . '</b></td><td colspan="2" class="main" nowrap>' : ' <b>' . CART_ITEM . '</b></td><td colspan="2" class="main">') . $total_count . $showweight . '</td></tr>';
     }
     if ($cart->get_content_type() != 'virtual') {
         if (CARTSHIP_SHOWCDD == 'true') {
             $ShipTxt .= '<tr><td colspan="3" class="main" nowrap>' . ENTRY_COUNTRY . '&nbsp;' . tep_get_country_list('country_id', $selected_country, 'style="width=200"') . '<br />';
         }
         //add state zone_id
         $state_array[] = array('id' => '', 'text' => 'Please Select');
         $state_query = tep_db_query("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 = tep_db_fetch_array($state_query)) {
             $state_array[] = array('id' => $state_values['zone_id'], 'text' => $state_values['zone_name']);
         }
         if (CARTSHIP_SHOWSDD == 'true') {
             $ShipTxt .= ENTRY_STATE . '&nbsp;' . tep_draw_pull_down_menu('state', $state_array) . '<br />';
         }
         if (CARTSHIP_SHOWZDD == 'true') {
             $ShipTxt .= ENTRY_POST_CODE . '&nbsp;' . tep_draw_input_field('zip_code', $selected_zip, 'size="5"');
         }
         //        $ShipTxt.='&nbsp;<a href="_" onclick="return shipincart_submit(\'\');">'.CART_SHIPPING_METHOD_RECALCULATE.'</a></td></tr>';
         if (CARTSHIP_SHOWUB == 'true') {
    } else {
        echo tep_draw_input_field('state');
    }
    // -Country-State Selector
    if (tep_not_null(ENTRY_STATE_TEXT)) {
        echo '&nbsp;<span class="inputRequirement">' . ENTRY_STATE_TEXT;
    }
    ?>
    </td>
  </tr>
<?php 
}
?>
  <tr>
    <td class="main"><?php 
echo ENTRY_COUNTRY;
?>
</td>
				<?php 
// +Country-State Selector
?>
    <td class="main"><?php 
echo tep_get_country_list('country', $country, 'onChange="return refresh_form(checkout_address);"') . '&nbsp;' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>' : '');
?>
</td>
				<?php 
// -Country-State Selector
?>
  </tr>
</table>
          <td class="main"><?php 
echo Translate('Postcode');
?>
</td>
          <td class="main"><?php 
echo tep_draw_input_field('postcode', $address['entry_postcode']) . '&nbsp;<span class="inputRequirement">*</span>';
?>
</td>
         </tr>
         <tr>
          <td class="main"><?php 
echo Translate('Land');
?>
</td>
          <td class="main"><?php 
echo tep_get_country_list('country', $address['entry_country_id']) . '&nbsp;<span class="inputRequirement">*</span>';
?>
</td>
         </tr>
        </table></td>
        <td width="10"><?php 
echo tep_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
       </tr>
      </table></td>
      <td><?php 
echo tep_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
     </tr>
            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);
        } else {
            echo tep_draw_input_field('state');
        }
    } else {
        echo tep_draw_input_field('state');
    }
    if (tep_not_null(ENTRY_STATE_TEXT)) {
        echo '&nbsp;<span class="inputRequirement">' . ENTRY_STATE_TEXT;
    }
    ?>
    </td>
  </tr>
<?php 
}
?>
  <tr>
    <td class="main"><?php 
echo ENTRY_COUNTRY;
?>
</td>
    <td class="main"><?php 
echo tep_get_country_list('country') . '&nbsp;' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>' : '');
?>
</td>
  </tr>
</table>
    echo '<label class="sr-only"></label>' . tep_draw_input_field('postcode', '', 'class="form-control" placeholder="' . ENTRY_POST_CODE . '"', isset($account['entry_postcode']) ? $account['entry_postcode'] : '', 'maxlength="10"');
}
?>
</div>
<div class="form-group">
<?php 
if ($is_read_only) {
    echo tep_get_country_name($account['entry_country_id']);
} elseif ($error) {
    if ($entry_country_error) {
        echo tep_get_country_list('country') . '&nbsp;' . ENTRY_COUNTRY_ERROR;
    } else {
        echo tep_get_country_name($country) . tep_draw_hidden_field('country');
    }
} else {
    echo '<label class="sr-only"></label>' . tep_get_country_list('country', '', 'class="form-control" placeholder="' . ENTRY_COUNTRY . '"', isset($account['entry_country_id']) ? $account['entry_country_id'] : '');
}
?>
</div>
  </div>
 </div>

  <div class="col-sm-6 col-lg-6">
    <div style="padding-right:10px;">

<h3 class="small-margin-top"><?php 
echo CATEGORY_CONTACT;
?>
</h3>

<div class="form-group">