?? cart.php
字號:
<?/* Replace these variables with information about your company */$Company ="Your Company";$Address1="555 Any St.";$Address2="PO Box 3";$City ="AnyTown";$State ="OR";$Zip ="97777";$Phone ="(777) 555-1212";$Web ="http://www.yoursite.com/";$Email ="contact@you.com";$NoShipping = "Shipping Extra";function Brand() {global $Company,$Address1,$Address2,$City,$State,$Zip,$Phone,$Web,$Email,$NoShipping;}/* Replace these variables with information for connecting to yourdatabase server */$DBHost="your.database.host";$DBUser="database.username";$DBPass="database.password";$DBName="database.name";function DBInfo() {global $DBHost,$DBUser,$DBPass,$DBName;}/* Replace these variables with the absolute and relative paths to yourMyCart scripts */$WebRoot="/usr/local/htdoc/Cart";$Relative="/Cart";$WebHost="www.yoursite.com";function Root() {global $WebRoot,$Relative,$WebHost;}function redFont($font,$text) {echo "<FONT FACE=\"$font\" COLOR=\"red\">$text</FONT>";}function blueFont($font,$text) {echo "<FONT FACE=\"$font\" COLOR=\"blue\">$text</FONT>";}function colorFont($color,$font,$text) {echo "<FONT FACE=\"$font\" COLOR=\"$color\">$text</FONT>";}function fontFace($font,$text) {echo "<FONT FACE=\"$font\">$text</FONT>";}function fontSize($size,$color,$font,$text) {echo "<FONT FACE=\"$font\" COLOR=\"$color\" SIZE=\"$size\">$text</FONT>";}function commonHeader($Company,$title) {echo "<HTML><TITLE>$Company Shopping Cart - $title</TITLE><BODY BGCOLOR=\"#FFFFFF\">";}function receiptHeader($Company,$title) {echo "<HTML><TITLE>$Company Receipt - $title</TITLE><BODY BGCOLOR=\"#FFFFFF\">";}function commonFooter($Relative,$UID) {echo "<center><br><br><hr width=\"70%\"><br>";echo "<b><a href=\"$Relative/checkout.php?UID=$UID\">Go To The Check Out Stand</a></b><br><br>";echo "<b><a href=\"$Relative/viewCart.php?UID=$UID\">View The Contents Of Your Cart</a></b><br><br>";fontFace("Arial","<a href=\"$Relative/index.php?UID=$UID\">Our Catalog</a>");fontFace("Arial"," | <a href=\"/\">Home</a>");echo "<br><br></center></BODY></HTML>";}function adminFooter($Relative) {echo "<center><br><br><hr width=\"70%\"><br>";fontFace("Arial"," | <a href=\"$Relative\">Our Catalog</a>");fontFace("Arial"," | <a href=\"$Relative/admin/\">Shopping Cart Admin</a>");fontFace("Arial"," | <a href=\"http://modems.rosenet.net/mysql/\">MySQL Utilities</a>");fontFace("Arial"," | <a href=\"http://www.rosenet.net/\">Rosenet</a>");echo "<br><br></center></BODY></HTML>";}function receiptFooter($Company) {echo "<br><br><center>";fontFace("Arial","Thank you for ordering from <b>$Company</b>");echo "</center><br><br>";}?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -