uShopInputTravel4.class
The uShopInputTravel4 applet is ideal for offering tour/cruise
reservations. You can use the rates parameter to specify different
rates based on the start date and the occupancy. Notice that the total
price automatically gets updated when the dates and/or number of persons
change.
Parameters
- id - A unique id for the item (or Tour). Can be up to 8 characters.
- name - The name for the item (or Tour). Can be up to 15 characters.
- 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 single occupancy
is singleprice1, the rate for double occupancy is doubleprice1,
and the rate for triple occupancy 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.
- people - The default number of people (as displayed in the number of
people 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 = "uShopInputTravel4.class" WIDTH=400 HEIGHT=160>
<PARAM NAME=id VALUE="T0001">
<PARAM NAME=name VALUE="Alaska">
<PARAM NAME=people VALUE="1">
<PARAM NAME=rates VALUE="January 12=$1175.00,$1100.00,$1000.00;
January 15=$1280.00,$1200.00,$1100.00;
January 17=$1175.00,$1100.00,$1000.00;
January 25=$1190.00,$1120.00,$1020.00;
February 1=$1385.00,$1300.00,$1200.00">
<PARAM NAME=label VALUE=" ADD ">
<PARAM NAME=textcolor VALUE="black">
<PARAM NAME=background VALUE="153,204,255">
<PARAM NAME=popupwindow VALUE="NO">
</APPLET>