";
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 .= "