uShopInputTravel1.class
The uShopInputTravel1 applet is ideal for offering hotel
reservations. You can specify different rates for different times of
the years via the rates parameter. Notice that the total price
automatically gets updated when the dates 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. The format of this
parameter is "date1@price1,date2@price2,date3@price3,...." - which
is interpreted as starting at date1 the rate is price1, starting
at date2 the rate is price2, starting at date3 the rate is price3,
and so on. You can specify as many date@rate pairs as you like -
just be sure to separate each one with a comma (,). 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 = "uShopInputTravel1.class" WIDTH=400 HEIGHT=140>
<PARAM NAME=id VALUE="M0008">
<PARAM NAME=name VALUE="Motel 8">
<PARAM NAME=nights VALUE="1">
<PARAM NAME=years VALUE="1999,2000,2001,2002,2003">
<PARAM NAME=rates VALUE="01/01/1999@$65.00,
04/01/1999@$80.00,
07/01/1999@$90.00,
07/15/1999@$80.00,
10/01/1999@$65.00,
11/15/1999@$50.00,
12/31/1999@$65.00,
04/02/2000@$82.00">
<PARAM NAME=label VALUE=" ADD ">
<PARAM NAME=textcolor VALUE="black">
<PARAM NAME=background VALUE="153,204,255">
<PARAM NAME=popupwindow VALUE="NO">
</APPLET>