Index: openacs-4/packages/ecommerce/www/admin/index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/index.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/ecommerce/www/admin/index.adp 22 Apr 2008 10:48:32 -0000 1.1 @@ -0,0 +1,58 @@ + +@page_title@ +@context_bar;noquote@ + +t + +

@page_title@

+ +
+Documentation: /doc/ecommerce or @ec_url@doc/ +
+ +

business operations

+ + +

website administration

Index: openacs-4/packages/ecommerce/www/admin/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/index.tcl,v diff -u -r1.7 -r1.8 --- openacs-4/packages/ecommerce/www/admin/index.tcl 24 Feb 2005 13:33:14 -0000 1.7 +++ openacs-4/packages/ecommerce/www/admin/index.tcl 22 Apr 2008 10:48:32 -0000 1.8 @@ -9,29 +9,17 @@ } { } +set page_title "[ec_system_name] Administration" +set context_bar [template::adp_parse [acs_root_dir]/packages/[ad_conn package_key]/www/contextbar "Administration"] + ad_require_permission [ad_conn package_id] admin -doc_body_append "[ad_admin_header "[ec_system_name] Administration"] +set ec_url [ec_url] -

[ec_system_name] Administration

- - - - - -
[ad_context_bar Ecommerce([ec_system_name])]\[ help \]
- -
-Documentation: /doc/ecommerce or [ec_url]doc/ -
-" - # get data for user class links set user_classes_reqs_approval [ad_parameter -package_id [ec_id] UserClassAllowSelfPlacement ecommerce] set n_not_yet_approved [db_string non_approved_users_select "select count(*) from ec_user_class_user_map where user_class_approved_p is null or user_class_approved_p='f'"] -doc_body_append "

business operations

" - # links and info mainly related to website administration -doc_body_append "

website administration

-[ad_admin_footer] -" +set ec_system_name [ec_system_name] Index: openacs-4/packages/ecommerce/www/admin/index.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/index.xql,v diff -u -r1.2 -r1.3 --- openacs-4/packages/ecommerce/www/admin/index.xql 26 May 2002 04:36:50 -0000 1.2 +++ openacs-4/packages/ecommerce/www/admin/index.xql 22 Apr 2008 10:48:32 -0000 1.3 @@ -19,7 +19,7 @@ - select count(*) as n_products, round(avg(price),2) as avg_price + select count(*) as n_products, coalesce(round(avg(price),2), 0) as avg_price from ec_products_displayable