code_for_checkbox

one of the documented procedures in this installation of the ACS
Usage:
code_for_checkbox   column   list_of_vals   items
What it does:
Helper proc to make-form that makes a checkbox for edit page code
Defined in: /web/philip/tcl/prototype-defs.tcl

Source code:


    set form_html "<td>"
    set count 0
    foreach val $list_of_vals {
        append form_html "\n<input name=$column value=\\\"$val\\\" type=checkbox>[lindex $items $count] "  
        incr count 
    } 
    append form_html "</td>\n" 
    set merged_html "\[bt_mergepiece \"$form_html\" \$selection\]\n"
    return $merged_html


philg@mit.edu