?? receipt.php
字號(hào):
<?require("Cart.php");DBinfo();Brand();Root();mysql_connect("$DBHost","$DBUser","$DBPass");commonHeader("$Company","Your receipt - Thank You!");blueFont("Arial","<b>This is your receipt. Please print this receipt for your records.</b><br><br>");blueFont("Arial","<b>Order Number: </b>");redFont ("Arial","$ON<br><br>");echo "<table border='0' cellpadding='5' cellspacing='5' width='550'><tr>";echo "<td valign='top' align='right'>";if ($PayMethod == "Check") {fontFace("Arial","<b>Make check payable to: </b><br>");} else {echo "";}fontFace("Comic Sans MS,Arial","$Company<br>");if ($PayMethod == "Check") {fontFace("Arial","<b>Send check to: </b><br>");} else {echo "";}fontFace("Arial","$Address1<br>$Address2<br>");fontFace("Arial","$City $State, $Zip<br>");if ($Phone == "" ) {echo "";} else {fontFace("Arial","<b>Phone:</b> $Phone<br>");}if ($Web == "" ) {echo "";} else {fontFace("Arial","<b>World Wide Web:</b> $Web<br>");}if ($Email == "" ) {echo "";} else {fontFace("Arial","<b>E-mail:</b> $Email<br>");}$result=mysql("$DBName","SELECT Date FROM Orders WHERE OrderNumber='$ON'");while ($row=mysql_fetch_row($result)) {$ODa=$row[0]; }$pieces=explode(":",$ODa);fontFace("Arial","<b>Order Date:</b> $pieces[2]");echo "</td></tr><tr><td valign='top' align='left'>";$result=mysql("$DBName","SELECT * FROM Buyers WHERE BuyerID='$BI'");while ($row=mysql_fetch_row($result)) {$BNa=$row[0];$BA1=$row[1];$BA2=$row[2];$BCi=$row[3];$BSt=$row[4];$BZi=$row[5];$BEm=$row[6];$BDP=$row[7];$BEP=$row[8];$BCo=$row[9];$BPM=$row[10];$BCT=$row[11];$BCN=$row[12];$BCE=$row[13];$BOT=$row[14];$BDa=$row[15];$BON=$row[16];$BUI=$row[17];$BBI=$row[17];}fontSize("+2","","Arial","Order For:<br>");fontFace("Arial","$BNa<br>");fontFace("Arial","<b>Address:</b> $BA1<br>");if ($BA2 != "") {fontFace("Courier"," ");fontFace("Arial"," $BA2<br>");}fontFace("Courier"," ");fontFace("Arial"," $BCi $BSt, $BZi<br>");if ($BDP != "") {fontFace("Arial"," $BDP<br>");}if ($BEP != "") {fontFace("Arial"," $BEP<br>");}if ($BEm != "") {fontFace("Arial"," $BEm<br>");}echo "</td></tr></table>";blueFont("Arial","<b>You have ordered the following items...</b><br><br>");echo "<table border='1' cellpadding='5' cellspacing='5'><tr>";echo "<th>";redFont( "Arial", "Product Code");echo "</th>";echo "<th>";redFont( "Arial", "Product Name");echo "</th>";echo "<th>";redFont( "Arial", "Quantity");echo "</th>";echo "<th>";redFont( "Arial", "Cost");echo "</th>";echo "<th>";redFont( "Arial", "Shipping");echo "</th>";echo "<th>";redFont( "Arial", "Total");echo "</th>";echo "</th></tr>";$result=mysql("$DBName","SELECT * FROM Receipts WHERE BuyerID='$BI' AND OrderNumber='$ON'");while ($row=mysql_fetch_row($result)) {$RBI=$row[0];$RUI=$row[1];$RON=$row[2];$RDa=$row[3];$RII=$row[4];$RIS=$row[5];$RIN=$row[6];$RIC=$row[7];$RSC=$row[8];$RIQ=$row[9];$RTC=$row[10];$total=$total+$RTC;echo "<tr><td>";blueFont("Arial","$RIS");echo "</td><td>";blueFont("Arial","$RIN");echo "</td><td>";blueFont("Arial","$RIQ");echo "</td><td>";$RIC=number_format($RIC,"2",".","thousands_sep");blueFont("Arial","$$RIC");echo "</td><td>";$RSC=number_format($RSC,"2",".","thousands_sep");if ($RSC == "0.00") {$ES = "1";fontSize("-1","blue","Arial","$NoShipping");} else {blueFont("Arial","$$RSC"); }echo "</td><td>";$NRTC=number_format($RTC,"2",".","thousands_sep");if ($RSC == "0.00") {blueFont("Arial","$$NRTC");fontSize("-1","blue","Arial"," Plus Shipping");} else {blueFont("Arial","$$NRTC"); }echo "</td></tr>";}$Tot=number_format($total,"2",".","thousands_sep");echo "<tr><td colspan=\"4\"></td><td>";redFont("Arial","<b><i>Total:</i></b>");echo "</td><td>";if ($ES == "1") {blueFont("Arial","<b>$$Tot</b>");fontSize("-1","blue","Arial"," Plus Shipping");} else {blueFont("Arial","<b>$$Tot</b>"); }echo "</td></tr>";echo "</table>";if ($PM == "Check") {blueFont("Arial","<p>You have elected to pay via ");redFont ("Arial","Check or Money Order");blueFont("Arial",".<br>We will ship the products you ordered upon receipt of your payment.<br>");} elseif ($PM == "Credit") {blueFont("Arial","<p>You have elected to pay via ");redFont ("Arial","$CT");blueFont("Arial"," credit card.<br>We will ship the products you ordered upon credit approval.<br>");} else {blueFont ("Arial","<p>We will contact you to make payment arrangements.<br>");}if ($Co == '1') {blueFont("Arial","<p>We will contact you before fulfilling this order.<br>");} else {echo "";}echo "<br><br>";redFont("Arial","If you have questions about this order, please contact us at:<br>");blueFont("Arial","<a href=\"mailto:$Email\">$Email</a><br>");redFont("Arial","or<br>");blueFont("Arial","$Phone<br><br> <b>Please refer to order number</b>");redfont("Arial"," $ON");blueFont("Arial","<p><b>If you need acces to this document again, you can point your web browser to:</b><br>");$Relative=ereg_replace("^/","",$Relative);fontSize("-1","Red","Arial","<a href=\"/$Relative/receipt.php?BI=$BI&ON=$ON&PM=$PM&CT=$CT&Co=$Co\">$Web$Relative/receipt.php?BI=$BI&ON=$ON&PM=$PM&CT=$CT&Co=$Co</a>");echo "<center><p><hr width=\"70%\"><p>";blueFont("Arial","<a href=\"/$Relative\">Shopping Cart</a> | ");blueFont("Arial","<a href=\"$Web\">Home</a></center></td></tr></table></html>");?>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -