Page Blocks

Hosting sponsored by:

Point In Space

GUI Demonstrations

ValueLists

The following value lists were generated by the accompanying source code. You can view the page source to see the HTML results.

  • follows separate of logic and display practices
  • supply lists from arrays, config files, data tables
  • config files and data tables allow for site and module-specific lists
  • use multiple lanagues
  • add any HTML attribute
  • disable individual checks or radios as needed
  • automatically adds labels to checks and radios

Set source code height to:

// object creation: var:'x_birthMonth' = (fwp_valueList: -file = 'genl', -list = 'monthLongShort', -titleOption = 'Your Birth Month...', -tabIndex = 1, -attributes = (map: 'name' = 'x_birthMonth')); // object drawing: $x_birthMonth->drawAsPopup // several other tag options are not shown, consult the docs

// object creation: var:'x_weekdays' = (fwp_valueList: -asHorizontal, -file = 'genl', -list = 'daysShort', -currentValue = 'Tue' -tabIndex = 2, -attributes = (map: 'name' = 'x_weekdays')); // object drawing: $x_weekdays->drawAsCheckboxes // several other tag options are not shown, consult the docs

// object creation: var:'x_restrictedOptions' = (fwp_valueList: -asHorizontal, -file = 'genl', -list = 'daysShort', -tabIndex = 9, -attributes = (map: 'name' = 'x_restrictedOptions')); // object drawing: $x_restrictedOptions->(drawAsCheckboxes: -disabled = 'Sun, Sat', -currentValue = 'Tue\rThu'); // several other tag options are not shown, consult the docs

// object creation: var:'x_eventDay' = (fwp_valueList: -asVertical, -file = 'genl', -list = 'daysLong', -currentValue = 'Monday' -tabIndex = 16, -attributes = (map: 'name' = 'x_eventDay')); // object drawing: $x_eventDay->drawAsRadioBtns // several other tag options are not shown, consult the docs

// object creation: var:'x_faveCar' = (fwp_valueList: -allowMultiple, -list = (array: 'Porsche','Ferrari','Bugatti','McLaren'), -currentValue = 'Ferrari\rMcLaren', -tabIndex = 23, -attributes = (map: 'name' = 'x_faveCar', 'multiple' = 'multiple', 'size' = 6)); // object drawing: $x_faveCar->drawAsListBox // several other tag options are not shown, consult the docs

© 2002-2012, pageblocks.org