Index: openacs-4/packages/ecommerce/www/admin/problems/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/ecommerce/www/admin/problems/index.tcl,v diff -u -r1.1 -r1.2 --- openacs-4/packages/ecommerce/www/admin/problems/index.tcl 20 Apr 2001 20:51:14 -0000 1.1 +++ openacs-4/packages/ecommerce/www/admin/problems/index.tcl 26 May 2002 04:36:50 -0000 1.2 @@ -1,83 +1,75 @@ -# www/[ec_url_concat [ec_url] /admin]/problems/index.tcl - ad_page_contract { - This page dislpays the problems in the problem log, if display_all is - not set then only unresolved problems are displayed. - @author Jesse Koontz (jkoontz@arsdigita.com) - @creation-date July 21, 1999 - @cvs-id index.tcl,v 3.2.2.3 2000/08/18 20:23:44 stevenp Exp - @author ported by Jerry Asher (jerry@theashergroup.com) + This page dislpays the problems in the problem log, if display_all is + not set then only unresolved problems are displayed. + + @author Jesse Koontz (jkoontz@arsdigita.com) + @creation-date July 21, 1999 + @author ported by Jerry Asher (jerry@theashergroup.com) + @author revised by Bart Teeuwisse + @revision-date April 2002 + } { - display_all:optional + display_all:optional } ad_require_permission [ad_conn package_id] admin -doc_body_append "[ad_admin_header "Potental Problems"] +doc_body_append " + [ad_admin_header "Potental Problems"] +

Potential Problems

-

Potential Problems

+ [ad_admin_context_bar [list "[ec_url_concat [ec_url] /admin]/" Ecommerce([ec_system_name])] "Potential Problems"] +
" -[ad_admin_context_bar [list "[ec_url_concat [ec_url] /admin]/" Ecommerce([ec_system_name])] "Potential Problems"] +set problem_count [db_string problem_count " + select count(*) + from ec_problems_log"] +set unresolved_problem_count [db_string unresolved_count " + select count(*) + from ec_problems_log where resolved_date is null"] -
-" - -set problem_count [db_string unused_all "select count(*) from ec_problems_log"] -set unresolved_problem_count [db_string unused_null "select count(*) from ec_problems_log where resolved_date is null"] - if { ![info exists display_all] } { - set sql_clause "and resolved_date is null" + set sql_clause [db_map include_resolved_date] doc_body_append " - Unresolved Problems ($unresolved_problem_count) | All Problems ($problem_count) -

- " +

Unresolved Problems ($unresolved_problem_count) | + All Problems ($problem_count)

" } else { set sql_clause "" doc_body_append " - Unresolved Problems ($unresolved_problem_count) | All Problems ($problem_count) -

- " +

Unresolved Problems ($unresolved_problem_count) | + All Problems ($problem_count)

" } -doc_body_append " - + [ad_admin_footer]" -[ad_admin_footer] -" -