|
From: Chris W. <la...@us...> - 2001-10-11 15:17:55
|
Update of /cvsroot/openinteract/OpenInteract/template
In directory usw-pr-cvs1:/tmp/cvs-serv17827
Added Files:
form_select_options_plain_list
Log Message:
enable plain lists (as opposed to objects) to be used in SELECT creation
--- NEW FILE: form_select_options_plain_list ---
[%########################################
form_select_options_plain_list( value_list, label_list, picked )
Cycle through all objects in a list and display an <OPTION> for
each.
########################################-%]
[%- FOREACH idx = [ 0..value_list.max ] -%]
[%- SET label = ( label_list.$idx ) ? label_list.$idx : value_list.$idx;
SET value = value_list.$idx -%]
[%- INCLUDE form_select_option -%]
[%- END -%]
|