home *** CD-ROM | disk | FTP | other *** search
/ Computer Shopper 139 / dpcs0999.iso / Web / CFserver / data1.cab / Examples / store / orderconfirm.cfm < prev    next >
Encoding:
Text File  |  1999-04-12  |  1.7 KB  |  66 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
  2.  
  3. <HTML>
  4. <HEAD>
  5.     <TITLE>Online Store</TITLE>
  6. </HEAD>
  7.  
  8. <BODY BGCOLOR="#FFCC00" LINK="Maroon" BACKGROUND="images/storebg.gif" LEFTMARGIN=5 TOPMARGIN=0>
  9.  
  10.  
  11. <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
  12. <TR>
  13.     <TD WIDTH=130 HEIGHT=15 NOWRAP ALIGN="RIGHT">
  14.     <CFINCLUDE TEMPLATE="_showcart.cfm">
  15.     </TD>
  16.     <TD WIDTH="70" NOWRAP> </TD>
  17.     <TD VALIGN="top" WIDTH=350>
  18.     <BR>
  19.     <BR>
  20.  
  21.  
  22.     <CFSET INVOICEITEMS = "">
  23.     <CFLOOP INDEX="CurrItem" FROM="1" TO="#ListLen(Session.StoreItems)#">
  24.  
  25.         <CFQUERY DATASOURCE="CFexamples" NAME="FindItem">
  26.         SELECT StoreItems.*, StoreManufacturers.Name
  27.         FROM StoreItems, StoreManufacturers
  28.         WHERE StoreItems.ManufacturerID = StoreManufacturers.ManufacturerID
  29.         AND ItemID = #ListGetAt(Session.StoreItems,CurrItem)#
  30.         </CFQUERY>
  31.  
  32.         <CFSET INVOICEITEMS = INVOICEITEMS & FINDITEM.PARTNUM & ": " & FINDITEM.ITEMNAME & CHR(13) & CHR(10)>
  33.         
  34.     </CFLOOP>
  35.  
  36.     <CFMAIL
  37.         FROM="store@domain.com"
  38.         TO="#Form.Email#"
  39.         SUBJECT="Order Confirmation"
  40.         SERVER="mailserver.com">Dear #Firstname# #Lastname#,
  41. Thank You!
  42. We have received the
  43. following order:
  44.  
  45. #InvoiceItems#
  46. </CFMAIL>
  47.  
  48.     <FONT FACE="Arial, Helvetica" COLOR="white" SIZE="-1"><B>Thanks for your order! You should
  49.     receive a confirmation e-mail shortly.</B></FONT>
  50.  
  51.     </td>
  52. </tr>
  53. </table>
  54.  
  55. <!--- Since this is not a real online store, processing ends
  56.     here. If this were a real store, there would be a CFQUERY
  57.     to add the order to an Orders database, as well as credit
  58.     card processing.
  59.     
  60.     Credit card transactions can be handled via CyberCash using
  61.     the custom tag CFX_ONCR_CYBERCASH, available for purchase
  62.     from Online Creations' website (http://www.oncr.com). --->
  63.  
  64. </BODY>
  65. </HTML>
  66.