"; if (!defined("PARTNER")) { $text .= "Name: $name\n
"; $text .= "Company: $company\n
"; $text .= "Phone: $phone\n
"; $text .= "Info: $info\n\n"; } else { $text .= "Partner: ".PARTNER."\n\n
"; $text .= "Info: $info\n\n
"; } ob_start(); define ("VIEW_CART", true); include("php/categ.php"); $text .= ob_get_clean(); $cart_total = 0; $sql = "select * from products order by name"; $result = mysql_query($sql); while($r = mysql_fetch_array($result)) { if ($_COOKIE["pr"]["p".$r["id"]] <= 0) continue; $q = $_COOKIE["pr"]["p".$r["id"]]; $cart_total += $q * $r[PRICE]; //$text .= $r["code"] . ": " . $q . " x " . number_format($r[PRICE], 2, ',', ' ') . " Ls (" . $r["name"] . ")\n"; } $text .= "\nTotal: " . number_format($cart_total, 2, ',', ' ') . " EUR\n"; $text .= ""; $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=utf-8\r\n"; $headers .= "From: www.lukares.lv \r\n"; $kam="sm@era.lv,"; $kam.="pasutijumi@lukares.lv,dace@lukares.lv,ilze.kaprale@lukares.lv"; mail($kam, "On-line order:".(defined("PARTNER")? PARTNER : $company). " - ".$cart_total." EUR", $text, $headers); // _send_message("www.lukares.lv ", // "pasutijumi@lukares.lv,dace@lukares.lv,ik@lukares.lv", "On-line order", $text); } _document_begin("card"); if ($proc) { _document_content("form_text_proc"); } else { _content_begin(); define ("VIEW_CART", true); include ("php/categ.php"); ?>
 

EUR

: *
:
: *
: