Index: openacs-4/packages/ecommerce/www/admin/customer-service/gift-certificate-add.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/customer-service/gift-certificate-add.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/ecommerce/www/admin/customer-service/gift-certificate-add.adp 20 Aug 2008 22:32:42 -0000 1.1 @@ -0,0 +1,14 @@ + + @title;noquote@ + @context;noquote@ +

@title@

+ +

Please confirm that you wish to add @price_html;noquote@ to +@user_link;noquote@'s gift certificate account (expires $expiration_to_print).

+ +
+ @export_form_vars_html;noquote@ +
+ +
+
Index: openacs-4/packages/ecommerce/www/admin/customer-service/gift-certificate-add.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/customer-service/gift-certificate-add.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/ecommerce/www/admin/customer-service/gift-certificate-add.tcl 9 Mar 2004 00:59:47 -0000 1.4 +++ openacs-4/packages/ecommerce/www/admin/customer-service/gift-certificate-add.tcl 20 Aug 2008 22:32:42 -0000 1.5 @@ -19,47 +19,20 @@ # make sure there's an amount if { ![info exists amount] || [empty_string_p $amount] } { - ad_return_complaint 1 "
  • You forgot to specify an amount." + ad_return_complaint 1 "
  • No gift certificate value specified.
  • " return } +set title "Confirm New Gift Certificate" +set context [list [list index "Customer Service"] $title] - -set page_title "Confirm New Gift Certificate" -append doc_body "[ad_admin_header $page_title] -

    $page_title

    - -[ad_context_bar [list "../index.tcl" "Ecommerce([ec_system_name])"] [list "index.tcl" "Customer Service Administration"] $page_title] - -
    -" - - set expiration_to_print [db_string get_exipre_from_Db "select [ec_decode $expires "" "null" $expires] from dual"] set expiration_to_print [ec_decode $expiration_to_print "" "never" [util_AnsiDatetoPrettyDate $expiration_to_print]] -append doc_body "Please confirm that you wish to add [ec_pretty_price $amount [ad_parameter -package_id [ec_id] Currency ecommerce]] to -[db_string get_full_name "select first_names || ' ' || last_name from cc_users where user_id=:user_id"]'s gift certificate account (expires $expiration_to_print). +set currency [parameter::get -package_id [ec_id] -parameter Currency -default "USD"] +set price_html [ec_pretty_price $amount $currency] -

    +set user_link "[db_string get_full_name "select first_names || ' ' || last_name from cc_users where user_id=:user_id"]" -

    -[export_form_vars user_id amount expires] -
    - -
    +set export_form_vars_html [export_form_vars user_id amount expires] -
    - -[ad_admin_footer] -" - - - -doc_return 200 text/html $doc_body - - - - - -