home *** CD-ROM | disk | FTP | other *** search
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-
- <HTML>
- <HEAD>
- <TITLE>Online Store</TITLE>
- </HEAD>
-
- <BODY BGCOLOR="#FFCC00" LINK="Maroon" BACKGROUND="images/storebg.gif" LEFTMARGIN=5 TOPMARGIN=0>
-
-
- <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
- <TR>
- <TD WIDTH=130 HEIGHT=15 NOWRAP ALIGN="RIGHT">
- <CFINCLUDE TEMPLATE="_showcart.cfm">
- </TD>
- <TD WIDTH="70" NOWRAP> </TD>
- <TD VALIGN="top" WIDTH=350>
- <BR>
- <BR>
-
-
- <CFSET INVOICEITEMS = "">
- <CFLOOP INDEX="CurrItem" FROM="1" TO="#ListLen(Session.StoreItems)#">
-
- <CFQUERY DATASOURCE="CFexamples" NAME="FindItem">
- SELECT StoreItems.*, StoreManufacturers.Name
- FROM StoreItems, StoreManufacturers
- WHERE StoreItems.ManufacturerID = StoreManufacturers.ManufacturerID
- AND ItemID = #ListGetAt(Session.StoreItems,CurrItem)#
- </CFQUERY>
-
- <CFSET INVOICEITEMS = INVOICEITEMS & FINDITEM.PARTNUM & ": " & FINDITEM.ITEMNAME & CHR(13) & CHR(10)>
-
- </CFLOOP>
-
- <CFMAIL
- FROM="store@domain.com"
- TO="#Form.Email#"
- SUBJECT="Order Confirmation"
- SERVER="mailserver.com">Dear #Firstname# #Lastname#,
- Thank You!
- We have received the
- following order:
-
- #InvoiceItems#
- </CFMAIL>
-
- <FONT FACE="Arial, Helvetica" COLOR="white" SIZE="-1"><B>Thanks for your order! You should
- receive a confirmation e-mail shortly.</B></FONT>
-
- </td>
- </tr>
- </table>
-
- <!--- Since this is not a real online store, processing ends
- here. If this were a real store, there would be a CFQUERY
- to add the order to an Orders database, as well as credit
- card processing.
-
- Credit card transactions can be handled via CyberCash using
- the custom tag CFX_ONCR_CYBERCASH, available for purchase
- from Online Creations' website (http://www.oncr.com). --->
-
- </BODY>
- </HTML>
-