uShopInputTravel3.class
The uShopInputTravel3 applet is ideal for offering tour/cruise
reservations. You can use the rates parameter to specify the list of
departure dates from which the customer can choose and the price
per person for each departure date. 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 tours/trips. The format of this
parameter is "tour1@price1,tour2@price2,tour3@price3,...." - which
is interpreted as tour1 is price1 per person, tour2 is price2 per
person, tour3 is price3 per person, and so on. You can specify
as many tour@rate pairs as you like - just be sure to separate each
one with a comma (,). See below for an example.
- people - The default number of people (as displayed in the number of
people edit box).
- field1 - The text label that appears next to the tour selection menu. The
default value is "Select Start Date:", but we made it configurable
to make the applet more flexible.
- 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 = "uShopInputTravel3.class" WIDTH=400 HEIGHT=140>
<PARAM NAME=id VALUE="T0001">
<PARAM NAME=name VALUE="Alaska">
<PARAM NAME=people VALUE="1">
<PARAM NAME=field1 VALUE="Select Start Date:">
<PARAM NAME=rates VALUE="Jan 12@$1175.00,
Jan 15@$1280.00,
Jan 17@$1175.00,
Jan 25@$1190.00,
Feb 1@$1385.00">
<PARAM NAME=label VALUE=" ADD ">
<PARAM NAME=textcolor VALUE="black">
<PARAM NAME=background VALUE="153,204,255">
<PARAM NAME=popupwindow VALUE="NO">
</APPLET>