uShopInputTravel2.class
The uShopInputTravel2 applet is ideal for offering hotel
reservations. You can use the rates parameter to specify different rates
based on the time of the year and the occupancy. Notice that the total
price automatically gets updated when the dates, occupancy and/or number
of nights change. Also notice that the date will default to today's date.
Parameters
- id - A unique id for the item (or Hotel). Can be up to 8 characters.
- name - The name for the item (or Hotel). Can be up to 15 characters.
- years - A list of years from which the customer can choose. You can
specify as many years as you like, just separate each year
with a comma. For example "1999,2000,2001,2002".
- rates - This parameter allows you to setup a table to specify
different rates for different dates and occupancies. The format
of this parameter is "date1=singleprice1,doubleprice1,tripleprice1;
date2=singleprice2,doubleprice2,tripleprice2;.....". Which is
interpreted as starting at date1 the rate for a single occupancy
room is singleprice1, the rate for a double occupancy room is doubleprice1,
and the rate for a triple occupancy room is tripleprice1. (And then
so on for the next date....). You can specify as many
date=single,double,triple rates as you like - just be sure to separate
each one with a semicolon (;). Note that you must always specify
single, double, and triple occupancy rates for each date. See below
for an example.
- nights - The default number of nights (as displayed in the number of
nights edit box).
- label - The label that will appear on the ADD button. The default value
is "ADD".
- textcolor - The color of the applet's text. You can specify an
RGB value separated by commas ("integer,integer,integer" where
each integer is a value between 0 and 255) or specify one of
the predefined colors: white, black, lightGray, gray, darkGray,
red, green, blue, yellow, magenta, cyan, pink, and orange. The
default value is "black".
- background - The background color of the applet. You can specify an
RGB value separated by commas ("integer,integer,integer" where
each integer is a value between 0 and 255) or specify one of
the predefined colors: white, black, lightGray, gray, darkGray,
red, green, blue, yellow, magenta, cyan, pink, and orange. The
default value is "white".
- popupwindow - This parameter lets you specify whether you want a pop-up window
to be displayed each time an item is added to the shopping cart. This
pop-up window is useful if the store does not use FRAMES and does not
always display the shopping cart. Set this parameter to "YES" if you
want the pop-up window displayed.
Note: Optional parameters are in italics
Example
<APPLET CODE = "uShopInputTravel2.class" WIDTH=420 HEIGHT=180>
<PARAM NAME=id VALUE="H10356">
<PARAM NAME=name VALUE="Holiday Inn">
<PARAM NAME=nights VALUE="1">
<PARAM NAME=years VALUE="1999,2000,2001,2002,2003">
<PARAM NAME=rates VALUE="01/01/1999=$65.00,$45.00,$35.00;
04/01/1999=$80.00,$70.00,$60.00;
07/01/1999=$90.00,$80.00,$70.00;
07/15/1999=$80.00,$70.00,$60.00;
10/01/1999=$65.00,$45.00,$35.00;
11/15/1999=$50.00,$40.00,$30.00;
12/31/1999=$65.00,$45.00,$35.00;
04/02/2000=$82.00,$72.00,$62.00">
<PARAM NAME=label VALUE=" ADD ">
<PARAM NAME=textcolor VALUE="black">
<PARAM NAME=background VALUE="153,204,255">
<PARAM NAME=popupwindow VALUE="NO">
</APPLET>