error_reporting(0); $result = mysql_query("SELECT * FROM cart_paypal"); $PAYPAL = mysql_fetch_array($result); $cartpref = new userdata("cart"); // ********************************************************************* // ** SOHOLAUNCH OPEN SOURCE CODE CONTENT MANAGEMENT SYSTEM ** // ** ** // ** Author: Mike Johnston ** // ** Email: mike@soholaunch.com; mike@mikejsolutions.com ** // ** ** // ** Portions of the overall system code are copyrighted and patented** // ** by Soholaunch.com, Inc. Please read and agree to all license ** // ** agreements before modifing or utilizing this program. ** // ** ** // ********************************************************************* // ---------------------------------------------------- // Start Search Column even with first sku result // We'll place a date stamp in there for looks, but // it could be an nbsp; if desired. The date gives // the illusion that everything is "current". // However, if we are using security and the user has // selected to display a client login button, that will // over-ride normal display // ---------------------------------------------------- $date = date("F j, Y"); # Display Date, Login button, or Welcome text? 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"; } } // End Display Login Button echo " | \n";
echo "
| \n"; echo " | \n"; echo "
|---|
| \n"; echo " "; echo " | \n"; echo "
| \n";
echo " ".lang("Browse Categories")." \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 " "; echo " | \n"; echo "
| \n";
echo " ".lang("Shopping Cart")." \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";
echo $checkout_button;
echo " \n";
} // End else-if $CART_KEYID != ""
echo " | \n";
echo "
| \n"; echo " "; echo " | \n"; echo "
| \n";
echo " ".lang("Telephone Orders")." \n"; echo " | \n";
echo "
| \n"; echo " ".$OPTIONS['BIZ_PHONE']."\n"; echo " | \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"; } else { echo " "; // For proper display formating (I like it, you may not) } echo " | \n";
echo "
\n";
if ( $cartpref->get("checkorcheque") == "" ) { $cartpref->set("checkorcheque", "check"); }
echo " ";
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";
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 "![]() "; // echo lang("We are currently only accepting check or money orders online.")."\n"; // echo " |
| \n"; echo " \n"; echo " |
\n";
// Verisign
if ($OPTIONS['PAYMENT_VLOGINID'] != "" && $OPTIONS['PAYMENT_VPARTNERID'] != "" && eregi("verisign", $OPTIONS['PAYMENT_PROCESSING_TYPE'])) {
echo "![]() \n"; } else { echo " "; // For proper display formating (I like it, you may not) } echo " | \n";
echo "
\n";
if ( $cartpref->get("checkorcheque") == "" ) { $cartpref->set("checkorcheque", "check"); }
echo " ";
echo " |
| \n"; echo "".lang("Shipping Information").""; echo " |
| \n"; echo "".lang("Returns & Exchanges").""; echo " |
| \n"; echo "".lang("Privacy Policy").""; echo " |
| \n"; echo "".$cartpref->get("other_policy_title").""; echo " | \n"; echo "