ossp-pkg/tabea/test/tabea-cfg.in
# Test config
# Text Field: INPUT TYPE=TEXT
# <p>Street Address: <input name=street><br>
# Postal City code: <input name=city size=16 maxlength=16><br>
# Zip Code: <input name=zip size=10 maxlength=10 value="99999-9999"><br>
item {
name street
visible "Street Address:"
type text
}
item {
name city
visible "Postal City code:"
type text[16][16]
}
item {
name zip
visible "Zip Code:"
type text[10][10]
value {
name "99999-9999"
}
}
# Password Field: INPUT TYPE=PASSWORD
# <p>Name: <input name=login> Password: <input type=password name=passwd>
item {
name login
visible "Name:"
type text
}
item {
name passwd
visible "Password:"
type password
}
# Check Box: INPUT TYPE=CHECKBOX
# <p>What flavors do you like?
# <input type=checkbox name=flavor value=vanilla checked>Vanilla<br>
# <input type=checkbox name=flavor value=strawberry>Strawberry<br>
# <input type=checkbox name=flavor value=chocolate checked>Chocolate<br>
item {
name flavor
visible "What flavors do you like?"
type checkbox
value {
name vanilla
visible "Vanilla"
checked
}
value {
name strawberry
visible "Strawberry"
}
value {
name chocolate
visible "Chocolate"
checked
}
}
# Radio Button: INPUT TYPE=RADIO
# <p>Which is your favorite?
# <input type=radio name=flavor value=vanilla checked>Vanilla<br>
# <input type=radio name=flavor value=strawberry>Strawberry<br>
# <input type=radio name=flavor value=chocolate>Chocolate<br>
item {
name flavor
visible "Which is your favorite?"
type radio
value {
name vanilla
visible "Vanilla"
checked
}
value {
name strawberry
visible "Strawberry"
}
value {
name chocolate
visible "Chocolate"
}
}
# Image Pixel: INPUT TYPE=IMAGE
# <input type=image name=point value=map.gif>
item {
name point
visible "Choose a point on the map:"
type image
value {
name "map.gif"
}
}
# Hidden Field: INPUT TYPE=HIDDEN (FIXME do we really need this?)
# <input type=hidden name=context value="l2k3j4l2k3j4l2k3j4lk23">
item {
name context
type hidden
value {
name "l2k3j4l2k3j4l2k3j4lk23"
}
}
# Submit Button: INPUT TYPE=SUBMIT
# <input type=submit name=recipient value=internal><br>
# <input type=submit name=recipient value=world>
item {
name recipient
type submit
value {
name internal
}
value {
name world
}
}
# Reset Button: INPUT TYPE=RESET
# <input type=reset>
item {
description "You may clear the form and start over at any time:"
type reset
}
# Selection: SELECT
# Option: OPTION
# <SELECT NAME="flavor" SIZE="2">
# <OPTION>Vanilla
# <OPTION>Strawberry
# <OPTION value="RumRasin">Rum and Raisin
# <OPTION selected>Peach and Orange
# </SELECT>
item {
name flavor
type select[2] //or type selectmultipe[2]
value {
name "Vanilla"
}
value {
name "Strawberry"
}
value {
name RumRasin
visible "Rum and Raisin"
}
value {
name "Peach and Orange"
selected
}
}
# Text Area: TEXTAREA
# <TEXTAREA NAME="address" ROWS=6 COLS=64>
# HaL Computer Systems
# 1315 Dell Avenue
# Campbell, California 95008
# </TEXTAREA>
item {
name "address"
type textarea[64][6]
value {
name "HaL Computer Systems\n1315 Dell Avenue\nCampbell, California 95008"
}
}