if ($st_err == 1) {
echo "| ".lang("The state you selected to ship your order to does not appear to be valid.")." ".lang("Please correct and re-submit your information.")." |
";
}
if ($email_err == 1) {
echo "| ".lang("The email address you provided is not a valid email address.")." ".lang("Please correct and re-submit your information.")." |
";
}
// -------------------------------------------------------------------------------
// Only show remember me feature to "New Customers"
// -------------------------------------------------------------------------------
if (eregi("Y", $OPTIONS['DISPLAY_REMEMBERME']) && !session_is_registered("REPEATCUSTOMER")) {
echo " \n";
echo " | ".lang("Customer Registration")." | \n";
echo "
\n";
echo " \n";
echo " | \n";
if ( strtoupper($REMEMBERME) == "ON" || strtoupper($_SESSION['REMEMBERME']) == "ON" ) { $chk_rememberme = " checked"; } else { $chk_rememberme = ""; }
echo " \n";
echo " ".lang("Yes, I want you to remember my Billing & Shipping Information the next time I purchase something.")."\n";
echo " | \n";
echo "
\n";
echo " \n";
echo " \n";
echo " ".lang("Choose a password").": \n";
echo " \n";
echo " | \n";
echo "".lang("Verify your password").": \n";
echo '
|
';
if ($pwerror == 1) {
echo "".lang("The passwords that you entered do not match each other. Please check the spelling and re-submit.")."
";
}
if ($rm_err == 1) {
echo "".lang("You have elected to register as a customer but did not choose a password for your account. Please do so now.")."
";
}
echo "(".lang("If you are not using the customer registration feature, you may leave the password fields blank").") |
";
} // End Remember Me Row
// -------------------------------------------------------------------------------
// Build dynamic display options, like 'local country' and such
// -------------------------------------------------------------------------------
$result = mysql_query("SELECT * FROM cart_options");
$OPTIONS = mysql_fetch_array($result);
//040406 - Pull Currency Info
$localNat = $OPTIONS[LOCAL_COUNTRY];
$dispState = $OPTIONS[DISPLAY_STATE];
$dispZip = $OPTIONS[DISPLAY_ZIP];
$noShow = "";
if ( $dispState == "noshow" ) { $noShow = " colspan=\"2\""; }
if ( eregi("STATE~", $OPTIONS['DISPLAY_REQUIRED']) ) { $reqSate = "*"; }
$noZip = "";
if ( $OPTIONS['DISPLAY_ZIP'] == "noshow" ) { $noZip = " colspan=\"2\""; }
if ( eregi("ZIPCODE~", $OPTIONS['DISPLAY_REQUIRED']) ) { $reqZip = "*"; }
function getErr( $txt, $err, $return = "echo" ) {
global $err_read;
$chkThis = $err_read;
if ( eregi($err,$chkThis) ) {
$rez = "$txt";
} else {
$rez = "$txt";
}
if ( $return == "echo" ) {
echo $rez;
} else {
return $rez;
}
}
function getStates( $field ) {
$stateOpts = "";
global $dispState;
global ${$field};
if ($dispState != "tfield" && $dispState != "noshow") {
$stateOpts .= " \n";
} elseif ($dispState == "tfield") {
$stateOpts .= "\n";
} elseif ($dispState == "noshow") {
$stateOpts .= "\n";
}
echo $stateOpts;
}
function getNats( $field ) {
$natOpts = " \n";
echo $natOpts;
}
?>
| echo lang("Billing Information"); ?> |
/*
if ($err_read != "") {
echo "*Please complete all required fields and re-submit.
|
\n";
}
*/
?>
* getErr(lang("First Name").":","A"); ?>
|
* getErr(lang("Last Name").":","B"); ?>
|
echo lang("Company Name"); ?> ( echo lang("Optional"); ?>):
|
* getErr(lang("Address").":","C"); ?>
if ( $cartpref->get("nopobox_msg") != "no" ) {
echo "(".lang("No PO Boxes").")\n";
}
?>
|
>* getErr(lang("City").":","D"); ?>
|
# How should the Zip/Postal Code field be displayed?
#------------------------------------------------------
if ( $OPTIONS['DISPLAY_ZIP'] != "noshow" ) {
if ( $OPTIONS['DISPLAY_ZIP'] == "postal" ) {
$showZip = lang("Postal Code");
} elseif ( $OPTIONS['DISPLAY_ZIP'] == "zip" ) {
$showZip = lang("Zip Code");
} elseif ( $OPTIONS['DISPLAY_ZIP'] == "zippostal" ) {
$showZip = lang("Zip / Postal Code");
}
echo "".$reqZip."".getErr($showZip.":","F", "return")." \n";
echo " \n";
echo " | \n";
}
?>
if ($dispState != "noshow") {
echo "| \n";
echo " ".$reqSate.lang("State/Province").": \n";
getStates("BSTATE");
echo " \n";
echo " | \n";
}
?>
>* echo lang("Country"); ?>:
getNats("BCOUNTRY"); ?>
|
* getErr(lang("Billing Phone Number").":","G"); ?>
|
* echo lang("Email Address"); ?>:
if ($email_err == 1) {
echo "*".lang("INVALID EMAIL ADDRESS")." ";
}
?>
( echo lang("Used to send a copy of your invoice, and also serves as your username for future purchases."); ?>) |
| |
|
| echo lang("Shipping Information"); ?> |
echo "\n";
if ($shippingsame == "1") { $CHECKED = "CHECKED"; } else { $CHECKED = ""; }
?>
| echo lang("Click Here"); ?>
>
echo lang("to use Billing Information."); ?>
if ( $cartpref->get("nopobox_msg") != "no" ) {
echo lang("Note: we do not ship to P.O. Boxes.")."\n";
}
?>
|
| |
|
* getErr(lang("First Name").":","J"); ?>
|
* getErr(lang("Last Name").":","K"); ?>
|
echo lang("Company Name"); ?> ( echo lang("Optional"); ?>):
|
* getErr(lang("Address").":","L"); ?>
if ( $cartpref->get("nopobox_msg") != "no" ) {
echo "(".lang("No PO Boxes").")\n";
}
?>
|
>* getErr(lang("City").":","M"); ?>
|
# How should the Zip/Postal Code field be displayed?
#------------------------------------------------------
if ( $OPTIONS['DISPLAY_ZIP'] != "noshow" ) {
if ( $OPTIONS['DISPLAY_ZIP'] == "postal" ) {
$showZip = lang("Postal Code");
} elseif ( $OPTIONS['DISPLAY_ZIP'] == "zip" ) {
$showZip = lang("Zip Code");
} elseif ( $OPTIONS['DISPLAY_ZIP'] == "zippostal" ) {
$showZip = lang("Zip / Postal Code");
}
echo "".$reqZip."".getErr($showZip.":","N", "return")." \n";
echo " \n";
echo " | \n";
}
?>
if ($dispState != "noshow") {
echo "| \n";
echo " ".$reqSate.lang("State/Province").": \n";
getStates("SSTATE");
echo " \n";
echo " | \n";
}
?>
>* echo lang("Country"); ?>:
getNats("SCOUNTRY"); ?>
|
* getErr(lang("Ship-To Phone Number").":","M"); ?>
|
|
| |
|
|
|
| |
|