home *** CD-ROM | disk | FTP | other *** search
/ Cool Page Magazine 16 / CoolPage_16.iso / dynadb / codes / addorder.cfm < prev    next >
Text File  |  1998-01-22  |  2KB  |  82 lines

  1. <!---------------------------└╔ªWíGAddorder.cfm--------------------->
  2. <!--            │o¡╙╡{ªí¼Oªb│B▓zíu╖s╝W¡q│µív¬║¿╞⌐y    --->
  3. <!----------------------------------------------------------------->
  4.  
  5.  
  6. <HTML>
  7. <HEAD>
  8. <TITLE>┐ΘñJ│f¬½├■ºO</TITLE>
  9. </HEAD>
  10. <BODY background="paper12l.jpg">
  11.  
  12.  
  13.     <CFQuery Name="GetCust" datasource="Dynamic database"> 
  14.         select * from customer
  15.     </CFQuery>
  16.  
  17.     <!---│]⌐w¿∞┤┴ñΘ┤┴ñδÑ≈¬║╣w│]¡╚--->
  18.     <cfset defaultmonth=month(now())+1>
  19.  
  20.  
  21. <CFFORM NAME="UpdateForm" ACTION="addordr2.cfm">
  22.       
  23.     ¡q│µ╜s╕╣íG      <CFINPUT TYPE="text" 
  24.                 NAME="order_id" 
  25.                 message="ºA┴┘¿S┐ΘñJ¡q│µ╕╣╜X"
  26.                 VALUE="" 
  27.                 REQUIRED="Yes"         
  28.                 SIZE="10"
  29.             MAXLENGTH="10">
  30. <br>
  31.     ┼U½╚╜s╕╣íG    <CFSELECT NAME="cust_id"
  32.                     REQUIRED="Yes"
  33.                     SIZE="1"
  34.                     MULTIPLE="no"
  35.                     QUERY="GetCust"
  36.                     SELECTED="1"
  37.                     VALUE="cust_id"
  38.                     DISPLAY="cust_id">      
  39.             </CFSELECT>
  40. <br>
  41.     ¡q│µñΘ┤┴íG    <CFINPUT TYPE="text" 
  42.                 NAME="order_date" 
  43.                 VALUE=#month(now())#/#day(now())#/#year(now())#
  44.                 REQUIRED="Yes" 
  45.                 VALIDATE="date" 
  46.                 MESSAGE="¡q│µñΘ┤┴«µªíñúÑ┐╜TíA└│¼░mm/dd/yyyy" 
  47.                 SIZE="10"
  48.                 MAXLENGTH="10">(mm/dd/yyyy)
  49.  
  50. <br>
  51.     ¿∞┤┴ñΘ┤┴íG    <CFINPUT TYPE="text" 
  52.                 NAME="due_date" 
  53.                 VALUE=#defaultmonth#/#day(now())#/#year(now())#
  54.                 REQUIRED="Yes" 
  55.                 VALIDATE="date" 
  56.                 MESSAGE="¿∞┤┴ñΘ┤┴«µªíñúÑ┐╜TíA└│¼░mm/dd/yyyy" 
  57.                 SIZE="10"
  58.                 MAXLENGTH="10">(mm/dd/yyyy)
  59. <br>
  60.     ÑI┤┌ñΦªííG    <CFSELECT NAME="payby"
  61.                     REQUIRED="Yes"
  62.                     SIZE="1"
  63.                     MULTIPLE="no"
  64.                     SELECTED="1">
  65.                 <OPTION VALUE="Visa" selected>Visa
  66.                 <OPTION VALUE="cash">Cash
  67.                 <OPTION VALUE="cheque">Cheque
  68.             </CFSELECT>
  69. <br>
  70. <INPUT TYPE="Submit" VALUE="└xªs">
  71. <hr>
  72. <P ALIGN="center"><A HREF="/dynadb/index.htm">ª^¿∞ÑD¡╢</A></P>
  73. <INPUT type="hidden" NAME="order_id_required" VALUE="ºA┴┘¿S┐ΘñJ¡q│µ╜s╕╣">
  74. <INPUT type="hidden" NAME="order_date_required" VALUE="ºA┴┘¿S┐ΘñJ¡q│µñΘ┤┴">
  75. <INPUT type="hidden" NAME="due_date_required" VALUE="ºA┴┘¿S┐ΘñJ¿∞┤┴ñΘ┤┴">
  76. <input type="hidden" name="order_date_date" value="¡q│µñΘ┤┴«µªí┐∙╗~">
  77. <input type="hidden" name="due_date_date" value="¿∞┤┴ñΘ┤┴«µªí┐∙╗~">
  78.       
  79. </CFFORM>
  80.  
  81. </BODY>
  82. </HTML>