Index: openacs-4/packages/acs-tcl/tcl/table-display-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/Attic/table-display-procs.tcl,v diff -u -r1.5 -r1.6 --- openacs-4/packages/acs-tcl/tcl/table-display-procs.tcl 19 Aug 2002 23:46:50 -0000 1.5 +++ openacs-4/packages/acs-tcl/tcl/table-display-procs.tcl 2 Sep 2002 13:20:39 -0000 1.6 @@ -57,7 +57,7 @@ set url [ad_conn url] } - append html "\n\n" + append html "
\n\n" foreach option $option_list { append html " \n" @@ -67,7 +67,7 @@ append html "\n" foreach option $option_list { - append html " \n" } else { - set Trow_default "\n" + set Trow_default "\n" } } else { set Trow_default "\n" @@ -450,12 +450,12 @@ set Tcolumn [lindex $Tcol 0] switch $Tformat { "" {set Tdisplay_field " \n"} - r {set Tdisplay_field " \n"} - l {set Tdisplay_field " \n"} - c {set Tdisplay_field " \n"} - tf {set Tdisplay_field " \n"} - 01 {set Tdisplay_field " \n"} - bz {set Tdisplay_field " \n"} + r {set Tdisplay_field " \n"} + l {set Tdisplay_field " \n"} + c {set Tdisplay_field " \n"} + tf {set Tdisplay_field " \n"} + 01 {set Tdisplay_field " \n"} + bz {set Tdisplay_field " \n"} default {set Tdisplay_field " [subst $Tformat]\n"} } @@ -561,11 +561,11 @@ } } -proc_doc ad_table_span {str {td_html "align=left"}} { +proc_doc ad_table_span {str {td_html "align=\"left\""}} { given string the function generates a row which spans the whole table. } { - return "" + return "" } proc_doc ad_table_form {datadef {type select} {return_url {}} {item_group {}} {item {}} {columns {}} {allowed {}}} { @@ -592,9 +592,9 @@ # now spit out the form fragment. if {![empty_string_p $item]} { append html "

Editing $item

" - append html "" - append html "" - append html "" + append html "" + append html "" + append html "" append html "[export_form_vars item_group item]" if {![empty_string_p $return_url]} { append html "[export_form_vars return_url]" @@ -614,13 +614,13 @@ if {![empty_string_p $item]} { set item_original $item append html "[export_form_vars item_original]" - append html "" + append html "" } else { - append html "" + append html "" } append html "
[lindex $option 1]
\[" + append html " \[" # find out what the current option value is. # check if a default is set otherwise the first value is used @@ -194,7 +194,7 @@ -Tmax_rows 0 -Ttable_extra_html {} -Theader_row_extra {bgcolor="#f8f8f8"} - -Ttable_break_html "

" + -Ttable_break_html "

" -Tpre_row_code {} -Trow_code {[subst $Trow_default]} -Tpost_data_ns_sets {} @@ -434,7 +434,7 @@ if {[empty_string_p [lindex $Tband_colors $Tband_color]]} { set Trow_default "

[set $Tcolumn][set $Tcolumn][set $Tcolumn][set $Tcolumn][util_PrettyBoolean [set $Tcolumn]][util_PrettyTclBoolean [set $Tcolumn]] [blank_zero [set $Tcolumn]][set $Tcolumn][set $Tcolumn][set $Tcolumn][util_PrettyBoolean [set $Tcolumn]][util_PrettyTclBoolean [set $Tcolumn]] [blank_zero [set $Tcolumn]]
$str
$str
" - append html "" + append html "" if {![empty_string_p $item]} { set item_original item append html "[export_form_vars item_original]" @@ -629,15 +629,15 @@ if {[string compare $type select] == 0} { # select table - set options "" foreach opt $sel_list { - append options " " } for {set i 0} { $i < $max_columns} {incr i} { if {$i < $n_sel_columns} { set match [lindex [lindex $datadef [lindex $sel_columns $i]] 0] - regsub "(" + append options "" } for {set i 0} { $i < $max_columns} {incr i} { if {$i < $n_sel_columns} { set match [lindex [lindex $datadef [lindex $sel_columns $i]] 0] - regsub "( type=radio )(value=\"$match\">)" $options "\\1 checked \\2" out + regsub "( type=\"radio\" )(value=\"$match\">)" $options "\\1 checked=\"checked\" \\2" out } else { set out $options } @@ -717,9 +717,9 @@ # now spit out the form fragment. if {![empty_string_p $item]} { append html "

Editing $item

" - append html "" - append html "" - append html "" + append html "" + append html "" + append html "" append html "[export_form_vars item_group item]" if {![empty_string_p $return_url]} { append html "[export_form_vars return_url]" @@ -739,38 +739,38 @@ if {![empty_string_p $item]} { set item_original $item append html "[export_form_vars item_original]" - append html "" + append html "" } else { - append html "" + append html "" } append html "
Name:
Name:
" - append html "" + append html "" if {![empty_string_p $item]} { set item_original item append html "[export_form_vars item_original]" append html "" } - set options "" foreach opt $sel_list { - append options " " } for {set i 0} { $i < $max_columns} {incr i} { if {$i < $n_sel_columns} { set match [lindex $sel_columns $i] - regsub "(\n"
Name:
Name:
 Editing the name will rename the sort
[expr $i + 1]" switch [lindex $direction $i] { asc { - append html "" + append html "" } default { - append html "" + append html "" } } @@ -949,7 +949,7 @@ proc_doc ad_custom_form {return_url item_group item} { sets up the head of a form to feed to /tools/form-custom.tcl } { - append html "\n" + append html "\n" if {![empty_string_p $return_url]} { append html "[export_form_vars return_url]\n" } @@ -958,7 +958,7 @@ } set item_original $item append html "[export_form_vars item_group item item_original]\n" - append html "" + append html "" } proc_doc ad_dimensional_settings {define current} { @@ -968,9 +968,9 @@ NB...this does not close either the table or the form... } { foreach opt $define { - append html "
[lindex $opt 1]" - append html "
[lindex $opt 1]" + append html "