Index: openacs-4/contrib/packages/classified-ads/www/categories.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/classified-ads/www/categories.adp,v
diff -u -r1.2 -r1.3
--- openacs-4/contrib/packages/classified-ads/www/categories.adp 17 Jul 2003 21:30:13 -0000 1.2
+++ openacs-4/contrib/packages/classified-ads/www/categories.adp 21 Jul 2003 16:08:07 -0000 1.3
@@ -2,57 +2,130 @@
@title@
@context@
-
Categories
-
-
- No categories have been defined.
-
-
-
-
-
-
Index: openacs-4/contrib/packages/classified-ads/www/categories.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/classified-ads/www/categories.tcl,v
diff -u -r1.1 -r1.2
--- openacs-4/contrib/packages/classified-ads/www/categories.tcl 16 Jul 2003 04:52:32 -0000 1.1
+++ openacs-4/contrib/packages/classified-ads/www/categories.tcl 21 Jul 2003 16:08:07 -0000 1.2
@@ -3,6 +3,7 @@
Classified Ads Administration
@author Deds Castillo (deds@infiniteinfo.com)
+ @author Roberto Mello
@creation-date 2002-10-08
@cvs-id $Id$
@@ -13,13 +14,18 @@
set root_folder_id [classified-ads::get_root_folder_id]
set package_category_id [classified-ads::categories::package_category_exists_p]
set package_category_p 0
+set title "Categories"
if {[empty_string_p $keyword_id]} {
set keyword_id $package_category_id
set package_category_p 1
} elseif {[string equal [classified-ads::main_keyword_exists_p] $keyword_id]} {
- ad_return_complaint 1 "no access to the root id"
+ ad_return_complaint 1 " No access to the root id"
ad_script_abort
+} else {
+ # Select info for this category
+ classified-ads::categories::get -keyword_id $keyword_id -array category_info
+ set title $category_info(heading)
}
db_multirow categories select_categories {}
@@ -33,8 +39,6 @@
-var_name assigned_ads
set return_url "[ad_conn url]?[ad_conn query]"
-
-set title "Categories"
set context [classified-ads::categories::generate_trail -keyword_id $keyword_id]
ad_return_template
Index: openacs-4/contrib/packages/classified-ads/www/admin/categories.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/classified-ads/www/admin/categories.tcl,v
diff -u -r1.2 -r1.3
--- openacs-4/contrib/packages/classified-ads/www/admin/categories.tcl 17 Jul 2003 23:11:35 -0000 1.2
+++ openacs-4/contrib/packages/classified-ads/www/admin/categories.tcl 21 Jul 2003 16:08:07 -0000 1.3
@@ -3,6 +3,7 @@
Classified Ads Administration
@author Deds Castillo (deds@infiniteinfo.com)
+ @author Roberto Mello
@creation-date 2002-10-08
@cvs-id $Id$
Index: openacs-4/contrib/packages/classified-ads/www/admin/field-addedit-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/classified-ads/www/admin/field-addedit-postgresql.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/contrib/packages/classified-ads/www/admin/field-addedit-postgresql.xql 21 Jul 2003 16:08:07 -0000 1.1
@@ -0,0 +1,16 @@
+
+
+
+
+
+ select ca_attributes__create_attribute (:content_type::varchar, :attribute_name::varchar, :datatype::varchar, :pretty_name::varchar, :pretty_plural::varchar, :sort_order::int4, :default_value::varchar, 'type_specific'::varchar, 'cr_ca_ads'::varchar, :column_spec::varchar, :package_id::int4) as attribute_id
+
+
+
+
+
+ select ca_attributes__register_widget (:attribute_id, :widget, :label, :html_options, :select_options, :validate, :optional_p)
+
+
+
+
Index: openacs-4/contrib/packages/classified-ads/www/admin/field-addedit.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/classified-ads/www/admin/field-addedit.xql,v
diff -u -r1.1 -r1.2
--- openacs-4/contrib/packages/classified-ads/www/admin/field-addedit.xql 16 Jul 2003 04:52:32 -0000 1.1
+++ openacs-4/contrib/packages/classified-ads/www/admin/field-addedit.xql 21 Jul 2003 16:08:07 -0000 1.2
@@ -51,17 +51,5 @@
-
-
- select ca_attributes__create_attribute (:content_type::varchar, :attribute_name::varchar, :datatype::varchar, :pretty_name::varchar, :pretty_plural::varchar, :sort_order::int4, :default_value::varchar, 'type_specific'::varchar, 'cr_ca_ads'::varchar, :column_spec::varchar, :package_id::int4) as attribute_id
-
-
-
-
-
- select ca_attributes__register_widget (:attribute_id, :widget, :label, :html_options, :select_options, :validate, :optional_p)
-
-
-
Index: openacs-4/contrib/packages/classified-ads/www/doc/index.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/contrib/packages/classified-ads/www/doc/index.adp,v
diff -u -r1.2 -r1.3
--- openacs-4/contrib/packages/classified-ads/www/doc/index.adp 18 Jul 2003 02:47:33 -0000 1.2
+++ openacs-4/contrib/packages/classified-ads/www/doc/index.adp 21 Jul 2003 16:08:07 -0000 1.3
@@ -41,11 +41,24 @@
Make it possible to place an ad under a category, instead of placing
under no category then assigning it to one. (DONE - Roberto)
Fix all the FIXME's in the code.
- Give users a better UI for placing and viewing ads (will be done soon - Roberto)
+ Give users a better UI for placing and viewing ads (DONE - Roberto)
Add searching functionality.
Integrate with notifications so users can be notified of new ads.
Integrate with RSS so news aggregators can pick up new items (crazy idea? -Roberto)
Give users a confirmation screen when placing new ads.
- Better admin user interface, especially for managing categories (DONE - Roberto)
+ Main index page shows last x placed ads.
+ Category index page shows last x placed ads. Select box with all subcategories and
+ number of ads in them. Notifications link. Table on the right shows available
+ actions (Search, Post, Edit/Delete Your Posts, Get E-mail Alerts, New Since Last Visit).
+ general-comments integration.
+ Make it so custom fields can be added on a per-category basis.
+ general-ratings for users (for the future).
+Admin UI:
+ - Better admin user interface for managing categories (DONE - Roberto)
+
- Main Admin page: "View ads from last x days", "All ads", "All ads by category", "Pick out users who
+ have posted at least x times between date_1 and date_2", "View alerts", "Manage Categories",
+ "Add moderators for this category", "Edit this category", "Delete this category".
+
+