\n"; echo " \n"; echo " \n"; # PREF: Show login button? if ( !eregi("Y", $OPTIONS['DISPLAY_LOGINBUTTON']) ) { # NO: "Welcome..." or date if ( isset($_SESSION['SOHO_AUTH']) && isset($_SESSION['SOHO_PW']) && isset($_SESSION['OWNER_NAME']) ) { $dis = "".lang("Welcome").",
".$OWNER_NAME.""; $dis .= "(Log-out)\n"; } else { $dis = $date; } echo " ".$dis."\n"; } else { # YES: "Welcome..." or [Client Login] if ( isset($_SESSION['SOHO_AUTH']) && isset($_SESSION['SOHO_PW']) && isset($_SESSION['OWNER_NAME']) ) { # "Welcome..." echo "".lang("Welcome").",
".$OWNER_NAME."\n"; echo "(".lang("Log-out").")\n"; } else { # [Client Login] echo "
\n"; echo "\n"; echo "
\n"; } } // End Display Login Button echo " \n"; echo " \n"; echo "\n\n"; ?> \n"; // ---------------------------------------------------- // Is the Search Box Display On or Off // ---------------------------------------------------- if (eregi("Y", $OPTIONS[DISPLAY_SEARCH])) { ?> \n"; echo " \n"; echo "
\n"; echo " \n"; echo " ".lang("Search Products")."
\n"; echo " \n"; echo "
\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo "
 "; echo " \n"; echo " \n"; } // End Display Search Option // ---------------------------------------------------- // Is the Cateogry Links Display On or Off // ---------------------------------------------------- if (eregi("Y", $OPTIONS[DISPLAY_CATEGORIES])) { ?> \n"; echo " \n"; echo " ".lang("Browse Categories")."
\n"; echo " \n"; echo "\n"; echo "\n"; echo " \n"; $catlist = mysql_query("SELECT * FROM cart_category ORDER BY category"); while ($thiscat = mysql_fetch_array($catlist)) { if (strlen($thiscat[category]) > 2) { // Category names should be more than 2 chars long echo "  $thiscat[category]
\n"; } } echo " \n"; echo "\n"; echo "\n"; echo " \n"; echo "  "; echo " \n"; echo "\n"; } // ---------------------------------------------------- // Is the Catalog Only feature On or Off // ---------------------------------------------------- if (!eregi("Y", $OPTIONS[PAYMENT_CATALOG_ONLY])) { ?> \n"; echo " \n"; echo " ".lang("Shopping Cart")."
\n"; echo " \n"; echo "\n"; echo "\n"; echo " \n"; if ($CART_KEYID == "") { echo "
".lang("Your cart is empty.")."

\n"; } else { $tmp_qty = split(";", $CART_QTY); $tmp_name = split(";", $CART_PRODNAME); $tmp_price = split(";", $CART_UNITPRICE); $tmp_sub = split(";", $CART_UNITSUBTOTAL); $tmp_subcat = split(";", $CART_SUBCAT); $display_subtotal = 0; // Reset Display sub_total; we'll calculate that on the fly $line_items = count($tmp_qty); // Count the number of array vars we have after split $line_items = $line_items - 2; // Subtract 2 because (a)we start count at 0 (b) we always have a trailing semi-colon; for ($z=0;$z<=$line_items;$z++) { if ($tmp_subcat[$z] != "") { $tmp_subcat[$z] = "- $tmp_subcat[$z]"; } echo " ($tmp_qty[$z]) $tmp_name[$z] $tmp_subcat[$z]
\n"; $display_subtotal = $display_subtotal + $tmp_sub[$z]; } $display_subtotal = number_format($display_subtotal, 2 ); echo "
".lang("Sub-Total").": ".$dSign."$display_subtotal

\n"; # Got to https url for checkout? if (strlen($OPTIONS[PAYMENT_SSL]) > 4) { $OPTIONS[PAYMENT_SSL] = chop($OPTIONS[PAYMENT_SSL]); $OPTIONS[PAYMENT_SSL] = ltrim($OPTIONS[PAYMENT_SSL]); $OPTIONS[PAYMENT_SSL] = rtrim($OPTIONS[PAYMENT_SSL]); $SSL_VARIABLE = $OPTIONS[PAYMENT_SSL] . "/shopping/"; $SSL_CHECKOUT_LINK = $SSL_VARIABLE."pgm-checkout.php?sid=".session_id(); } else { $SSL_VARIABLE = ""; $SSL_CHECKOUT_LINK = "pgm-checkout.php"; } echo "
[ ".lang("VIEW OR EDIT CART")." ]\n"; $pass_prod = eregi_replace("\"", "#Q#", $CART_PRODNAME); // Make sure quotes get passed to SSL # ( (->) Checkout ] $checkout_button = "
\n"; $checkout_button .= "\n"; $checkout_button .= "\n"; $checkout_button .= "\n"; $checkout_button .= "\n"; $checkout_button .= "\n"; $checkout_button .= "\n"; $checkout_button .= "\n"; $checkout_button .= "\n"; $checkout_button .= "\n"; $checkout_button .= "\n"; $checkout_button .= "\n"; $checkout_button .= "
\n"; echo $checkout_button; echo "
\n"; } // End else-if $CART_KEYID != "" echo "\n"; echo "\n"; } // End Catalog Ony Test // -------------------------------------------------------------- // If Business Phone Number Has been Given for telephone orders // -------------------------------------------------------------- if ($OPTIONS['BIZ_PHONE'] != "") { ?> \n"; echo " \n"; echo "  "; echo " \n"; echo "\n"; echo "\n"; echo " \n"; echo " ".lang("Telephone Orders")."
\n"; echo " \n"; echo "\n"; echo "\n"; echo " \n"; echo " ".$OPTIONS['BIZ_PHONE']."\n"; echo " \n"; echo "\n"; } // ----------------------------------------------------------- // Display Credit Card Images if Selected in Payment Options // ----------------------------------------------------------- if ($OPTIONS['PAYMENT_CREDIT_CARDS'] != "" && !eregi("Y", $OPTIONS['PAYMENT_CATALOG_ONLY']) && !eregi("Y", $OPTIONS['PAYMENT_CHECK_ONLY'])) { ?> \n"; echo "
".lang("We Accept").":
\n"; for ($z=0;$z<=$NUMCARDS;$z++) { if ($CARDNAME[$z] != "") { // Make sure we don't count blanks $THISCARD = strtolower($CARDNAME[$z]); // Make cardname lower case (match filename) echo ""; $tmp_rowcount++; // Increment Row Count if ($tmp_rowcount == 2) { echo "
"; // If two images are on row, place a
tag $tmp_rowcount = 0; // Reset Row Count } } // End Blank If } // End For Loop // ------------------------------------------------------------------------------------- // If we're taking credit cards through VeriSign(tm), then lets display the approved // VeriSign(tm) Image to our shoppers. Again, a sign that employees vendor trust. // ------------------------------------------------------------------------------------- if ($OPTIONS['PAYMENT_VLOGINID'] != "" && $OPTIONS['PAYMENT_VPARTNERID'] != "" && eregi("verisign", $OPTIONS['PAYMENT_PROCESSING_TYPE'])) { echo "
\n"; } if (eregi("use_paypal",$OPTIONS['PAYMENT_PROCESSING_TYPE'])) { echo "

\n"; } else { echo "
"; // For proper display formating (I like it, you may not) } echo "\n"; echo "\n"; if(!eregi("Y",$OPTIONS['PAYMENT_CHECK_ONLY']) && eregi("use_check",$OPTIONS['PAYMENT_PROCESSING_TYPE'])){ echo "\n"; echo "\n"; if ( $cartpref->get("checkorcheque") == "" ) { $cartpref->set("checkorcheque", "check"); } echo ""; echo "\n"; } } else { // --------------------------------------------------------------------- // If no credit cards are being taken because of "Catalog Only" option // or check/money order only option, then process visual display here // --------------------------------------------------------------------- if (eregi("Y", $OPTIONS['PAYMENT_CATALOG_ONLY'])) { ?> \n"; echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo "\n"; echo lang("We are currently not accepting online orders.")."\n"; echo "\n"; echo "\n"; echo "\n"; echo " \n"; echo "\n"; } // End if Catalog Only if (eregi("Y", $OPTIONS['PAYMENT_CHECK_ONLY'])) { ?> \n"; echo "\n"; echo " \n"; echo "\n"; echo "\n"; echo "\n"; if ( $cartpref->get("checkorcheque") == "" ) { $cartpref->set("checkorcheque", "check"); } echo "
"; echo lang("We are currently only accepting check or money orders online.")."\n"; echo "\n"; // echo "\n"; // echo "\n"; // echo "
"; // echo lang("We are currently only accepting check or money orders online.")."\n"; // echo "\n"; echo "\n"; echo "\n"; echo " \n"; echo "\n"; }else{ // No credit card displays, not catalog display, not check only echo "\n"; echo "\n"; // Verisign if ($OPTIONS['PAYMENT_VLOGINID'] != "" && $OPTIONS['PAYMENT_VPARTNERID'] != "" && eregi("verisign", $OPTIONS['PAYMENT_PROCESSING_TYPE'])) { echo "
\n"; } // PayPal if (eregi("use_paypal",$OPTIONS[PAYMENT_PROCESSING_TYPE])) { echo "

\n"; } else { echo "
"; // For proper display formating (I like it, you may not) } echo "\n"; echo "\n"; if(!eregi("Y",$OPTIONS['PAYMENT_CHECK_ONLY']) && eregi("use_check",$OPTIONS['PAYMENT_PROCESSING_TYPE'])){ echo "\n"; echo "\n"; if ( $cartpref->get("checkorcheque") == "" ) { $cartpref->set("checkorcheque", "check"); } echo ""; echo "\n"; } } } // End Credit Cards // ------------------------------------------------------------------- // Display Links to Shipping, Privacy and other policies regardless // unless "Catalog Only" if selected in Payment Options // ------------------------------------------------------------------- ?> get("disable_shipping") != "yes" ) { echo "\n"; echo "\n"; echo "".lang("Shipping Information").""; echo "\n"; } if ( $return_policy_definedBool ) { echo "\n"; echo "".lang("Returns & Exchanges").""; echo "\n"; } } echo "\n"; echo "\n"; echo "".lang("Privacy Policy").""; echo "\n"; // ------------------------------------------------------------------ // Only display "other policies" link if text exists for the policy // ------------------------------------------------------------------ if ( $other_policy_definedBool ) { echo "\n"; echo "".$cartpref->get("other_policy_title").""; echo "\n"; echo "\n"; } // ------------------------------------------------------------------ echo "\n\n"; ?>