Index: openacs-4/packages/ecommerce/www/account.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/account.xql,v diff -u -r1.1 -r1.2 --- openacs-4/packages/ecommerce/www/account.xql 10 Jul 2001 20:42:02 -0000 1.1 +++ openacs-4/packages/ecommerce/www/account.xql 26 May 2002 04:36:50 -0000 1.2 @@ -1,45 +1,35 @@ + - - - select order_id, confirmed_date from ec_orders -where user_id=:user_id -and order_state not in ('in_basket','void','expired') -order by order_id - - + + + select order_id, confirmed_date + from ec_orders + where user_id=:user_id + and order_state not in ('in_basket','void','expired') + order by order_id + + - - - - select -gift_certificate_id, issue_date, amount -from ec_gift_certificates -where purchased_by=:user_id -and gift_certificate_state in ('authorized','authorized_plus_avs','authorized_minus_avs', 'confirmed') - - + + + select gift_certificate_id, issue_date, amount + from ec_gift_certificates + where purchased_by=:user_id + and gift_certificate_state in ('authorized', 'confirmed') + + - - - + + + select ml.category_id, c.category_name, ml.subcategory_id, s.subcategory_name, ml.subsubcategory_id, ss.subsubcategory_name + from ec_cat_mailing_lists ml + left join ec_categories c using(category_id) + left join ec_subcategories s using (subcategory_id) + left join ec_subsubcategories ss on (ml.subsubcategory_id = ss.subsubcategory_id) + where ml.user_id = :user_id + + -select - ml.category_id, - c.category_name, - ml.subcategory_id, - s.subcategory_name, - ml.subsubcategory_id, - ss.subsubcategory_name -from ec_cat_mailing_lists ml - LEFT JOIN ec_categories c using(category_id) - LEFT JOIN ec_subcategories s using (subcategory_id) - LEFT JOIN ec_subsubcategories ss on (ml.subsubcategory_id = ss.subsubcategory_id) -where ml.user_id = :user_id - - - - -