home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cool Page Magazine 16
/
CoolPage_16.iso
/
dynadb
/
codes
/
addorder.cfm
< prev
next >
Wrap
Text File
|
1998-01-22
|
2KB
|
82 lines
<!---------------------------└╔ªWíGAddorder.cfm--------------------->
<!-- │o¡╙╡{ªí¼Oªb│B▓zíu╖s╝W¡q│µív¬║¿╞⌐y --->
<!----------------------------------------------------------------->
<HTML>
<HEAD>
<TITLE>┐ΘñJ│f¬½├■ºO</TITLE>
</HEAD>
<BODY background="paper12l.jpg">
<CFQuery Name="GetCust" datasource="Dynamic database">
select * from customer
</CFQuery>
<!---│]⌐w¿∞┤┴ñΘ┤┴ñδÑ≈¬║╣w│]¡╚--->
<cfset defaultmonth=month(now())+1>
<CFFORM NAME="UpdateForm" ACTION="addordr2.cfm">
¡q│µ╜s╕╣íG <CFINPUT TYPE="text"
NAME="order_id"
message="ºA┴┘¿S┐ΘñJ¡q│µ╕╣╜X"
VALUE=""
REQUIRED="Yes"
SIZE="10"
MAXLENGTH="10">
<br>
┼U½╚╜s╕╣íG <CFSELECT NAME="cust_id"
REQUIRED="Yes"
SIZE="1"
MULTIPLE="no"
QUERY="GetCust"
SELECTED="1"
VALUE="cust_id"
DISPLAY="cust_id">
</CFSELECT>
<br>
¡q│µñΘ┤┴íG <CFINPUT TYPE="text"
NAME="order_date"
VALUE=#month(now())#/#day(now())#/#year(now())#
REQUIRED="Yes"
VALIDATE="date"
MESSAGE="¡q│µñΘ┤┴«µªíñúÑ┐╜TíA└│¼░mm/dd/yyyy"
SIZE="10"
MAXLENGTH="10">(mm/dd/yyyy)
<br>
¿∞┤┴ñΘ┤┴íG <CFINPUT TYPE="text"
NAME="due_date"
VALUE=#defaultmonth#/#day(now())#/#year(now())#
REQUIRED="Yes"
VALIDATE="date"
MESSAGE="¿∞┤┴ñΘ┤┴«µªíñúÑ┐╜TíA└│¼░mm/dd/yyyy"
SIZE="10"
MAXLENGTH="10">(mm/dd/yyyy)
<br>
ÑI┤┌ñΦªííG <CFSELECT NAME="payby"
REQUIRED="Yes"
SIZE="1"
MULTIPLE="no"
SELECTED="1">
<OPTION VALUE="Visa" selected>Visa
<OPTION VALUE="cash">Cash
<OPTION VALUE="cheque">Cheque
</CFSELECT>
<br>
<INPUT TYPE="Submit" VALUE="└xªs">
<hr>
<P ALIGN="center"><A HREF="/dynadb/index.htm">ª^¿∞ÑD¡╢</A></P>
<INPUT type="hidden" NAME="order_id_required" VALUE="ºA┴┘¿S┐ΘñJ¡q│µ╜s╕╣">
<INPUT type="hidden" NAME="order_date_required" VALUE="ºA┴┘¿S┐ΘñJ¡q│µñΘ┤┴">
<INPUT type="hidden" NAME="due_date_required" VALUE="ºA┴┘¿S┐ΘñJ¿∞┤┴ñΘ┤┴">
<input type="hidden" name="order_date_date" value="¡q│µñΘ┤┴«µªí┐∙╗~">
<input type="hidden" name="due_date_date" value="¿∞┤┴ñΘ┤┴«µªí┐∙╗~">
</CFFORM>
</BODY>
</HTML>