Index: openacs-4/packages/ecommerce/www/admin/templates/add-2.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/templates/add-2.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/ecommerce/www/admin/templates/add-2.adp 19 Aug 2008 02:46:21 -0000 1.1 @@ -0,0 +1,15 @@ + + @title;noquote@ + @context;noquote@ +

@title@

+ +
+

Name: @template_name@

+

ADP template: +

+@template@ 
+
+
+ +
+
Index: openacs-4/packages/ecommerce/www/admin/templates/add-2.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/templates/add-2.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/ecommerce/www/admin/templates/add-2.tcl 9 Mar 2004 00:59:54 -0000 1.4 +++ openacs-4/packages/ecommerce/www/admin/templates/add-2.tcl 19 Aug 2008 02:46:21 -0000 1.5 @@ -10,79 +10,36 @@ } { template_name template:allhtml - } ad_require_permission [ad_conn package_id] admin set exception_count 0 set exception_text "" - if { ![info exists template] || [empty_string_p $template] } { incr exception_count - append exception_text "
  • You forgot to enter anything into the ADP template box.\n" + append exception_text "
  • The ADP template is empty. Backup and try again.
  • " } set f [ec_adp_function_p $template] if {$f != 0} { incr exception_count - append exception_text " -
  • We're sorry, but templates added here cannot - have functions in them for security reasons. Only HTML and - <%= \$variable %> style code may be used. We found $function in this template" - + append exception_text "
  • We found $function in this template. + For security reasons, the templates added here cannot + have functions in them. Only HTML and <%= \$variable %> style code may be used.
  • " } if { $exception_count > 0 } { ad_return_complaint $exception_count $exception_text return } -set page_html "[ad_admin_header "Confirm Template"] +set title "Confirm Template" +set context [list [list index "Product Templates"] $title] -

    Confirm Template

    - -[ad_context_bar [list "../" "Ecommerce([ec_system_name])"] [list "index.tcl" "Product Templates"] "Confirm Template"] - -
    -" - - set template_id [db_nextval ec_template_id_sequence] -append page_html "
    -[export_form_vars template_id template_name template] +set export_form_vars_html [export_form_vars template_id template_name template] -Name: - -

    - -

    -
    $template_name
    -
    - -

    - -ADP template: - -

    - -

    -
    -[ns_quotehtml $template]
    -
    -
    - -

    - -

    - -
    - -
    - -[ad_admin_footer] -" db_release_unused_handles -doc_return 200 text/html $page_html Index: openacs-4/packages/ecommerce/www/admin/templates/edit.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/templates/edit.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/packages/ecommerce/www/admin/templates/edit.adp 19 Aug 2008 02:51:01 -0000 1.1 @@ -0,0 +1,14 @@ + + @title;noquote@ + @context;noquote@ +

    @title@

    + +
    + @export_form_vars_html;noquote@ +

    Name:

    +

    ADP template:
    +

    +
    + +
    +
    Index: openacs-4/packages/ecommerce/www/admin/templates/edit.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/templates/edit.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/ecommerce/www/admin/templates/edit.tcl 9 Mar 2004 00:59:54 -0000 1.3 +++ openacs-4/packages/ecommerce/www/admin/templates/edit.tcl 19 Aug 2008 02:51:01 -0000 1.4 @@ -13,34 +13,10 @@ db_1row get_template_info "select template_name, template from ec_templates where template_id=:template_id" +set title "Edit Template" +set context [list [list index "Product Templates"] $title] -set page_html "[ad_admin_header "Edit Template"] +set export_form_vars_html [export_form_vars template_id] -

    Edit Template

    - -[ad_context_bar [list "../" "Ecommerce([ec_system_name])"] [list "index.tcl" "Product Templates"] [list "one.tcl?template_id=$template_id" "$template_name"] "Edit Template"] - -
    - -
    -[export_form_vars template_id] - -Name: - -

    - -ADP template:
    - - -

    - -

    - -
    - -
    - -[ad_admin_footer] -" db_release_unused_handles -doc_return 200 text/html $page_html +