Index: openacs-4/packages/ecommerce/tcl/ecommerce-widgets-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/tcl/ecommerce-widgets-procs.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/ecommerce/tcl/ecommerce-widgets-procs.tcl 18 Jul 2001 00:03:07 -0000 1.2 +++ openacs-4/packages/ecommerce/tcl/ecommerce-widgets-procs.tcl 18 Jul 2001 18:19:01 -0000 1.3 @@ -8,18 +8,15 @@ @author ported by Jerry Asher (jerry@theashergroup.com) } -# creates an ecommerce search widget, using the specified category id -# and search text if necessary -proc ec_search_widget { {category_id ""} {search_text ""} } { +ad_proc ec_search_widget { {category_id ""} {search_text ""} } { creates an ecommerce search widget, using the specified category id and search text if necessary } { return "
Search: [ec_only_category_widget "f" $category_id]
" } -# default is a list of all the items you want selected -proc ec_only_category_widget { {multiple_p "f"} {default ""} } { +ad_proc ec_only_category_widget { {multiple_p "f"} {default ""} } { category widget } { if { $multiple_p == "f" } { set select_tag "\n" } else { @@ -78,7 +75,7 @@ # gives a drop-down list and, if category_id_list is specified, it will display # the templates associated with those categories (if any) first -proc ec_template_widget { {category_id_list ""} {default ""} } { +ad_proc ec_template_widget { {category_id_list ""} {default ""} } { gives a drop-down list and, if category_id_list is specified, it will display the templates associated with those categories (if any) first } { set to_return "\n" set sql "select * from states order by state_name" @@ -179,7 +176,7 @@ return $widget_value } -proc ec_reach_widget { {default ""} } { +ad_proc ec_reach_widget { {default ""} } { reach widget } { set to_return "\n