Index: openacs.org-dev/www/templates/community-index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/community-index.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/www/templates/community-index.adp 12 Jul 2002 11:47:44 -0000 1.1 @@ -0,0 +1,290 @@ + +@pa.title@ +@pa.context_bar@ +
+ + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
OpenACS Community Forums
+ + + +

+ + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Community Job Postings
+ + + + + +   more jobs... +

+
+
+
+ +
+ +
+ + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
OpenACS Sites +
+ + + + + +   more sites... +

+ + + +
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
OpenACS Companies +
+ + + +An alphabetical listing of companies that can help you with OpenACS. + + + + + + +   more companies... +

+
+ +
+
+ + +
+
+ + + + + + + + + + Index: openacs.org-dev/www/templates/community-index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/community-index.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/www/templates/community-index.tcl 12 Jul 2002 11:47:44 -0000 1.1 @@ -0,0 +1,51 @@ +# /packages/editthispage/templates/article-index.tcl + +ad_page_contract { + @author Luke Pond (dlpond@pobox.com) + @creation-date 2001-06-01 + + This is the default page used to display an index listing + for an Edit This Page package instance. It assumes a + content type with no extended attributes, and presents + a listing of all content pages belonging to this package. +

+ If you want to use some other page instead, specify it with + the index_template package parameter. + +} { +} -properties { + pa:onerow + sites:multirow + jobs:multirow +} +##config for the boxes +set n_sites 6 +set n_jobs 4 +set n_companies 6 +# logan is changing this + + +set user_id [ad_conn user_id] + +etp::get_page_attributes +etp::get_content_items + +set sites_limit [expr $n_sites + 1] +set jobs_limit [expr $n_jobs + 1] +set companies_limit [expr $n_companies + 1] + +etp::get_content_items -package_id 2680 -result_name sites -limit $sites_limit +etp::get_content_items -package_id 2692 -result_name jobs -limit $jobs_limit +etp::get_content_items -package_id 2803 -result_name companies -limit $companies_limit + + + +db_multirow forums forums_select { + select forum_id, short_name, moderated_p, charter + from bboard_forums f + where + acs_permission__permission_p(forum_id,:user_id,'bboard_read_forum') = 't' + and bboard_id = 2369 + order by short_name +} + Index: openacs.org-dev/www/templates/default-content.adp =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/default-content.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/www/templates/default-content.adp 12 Jul 2002 11:47:44 -0000 1.1 @@ -0,0 +1,16 @@ + +@pa.title@ +@pa.context_bar@ + +
+@pa.title@
+ +@pa.context_bar@

+ + +@pa.description@ +
+ +@pa.content@ +
+
\ No newline at end of file Index: openacs.org-dev/www/templates/default-content.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/default-content.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/www/templates/default-content.tcl 12 Jul 2002 11:47:44 -0000 1.1 @@ -0,0 +1,21 @@ +# /packages/editthispage/templates/article-index.tcl + +ad_page_contract { + @author Luke Pond (dlpond@pobox.com) + @creation-date 2001-06-01 + + This is the default page used to display content pages + for an Edit This Page package instance. It assumes a + content type with no extended attributes, and presents + the content item with a standard article layout. +

+ If you want to use some other page instead, specify it with + the content_template package parameter. + +} { +} -properties { + pa:onerow +} + +etp::get_page_attributes + Index: openacs.org-dev/www/templates/default-index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/default-index.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/www/templates/default-index.adp 12 Jul 2002 11:47:44 -0000 1.1 @@ -0,0 +1,26 @@ + +@pa.title@ +@pa.context_bar@ +
+@pa.title@
+ +@pa.context_bar@ + + +

+ +@pa.content@ + + +

+ +@content_items.title@ + + - @content_items.description@ + +

+
+

+
+

+ Index: openacs.org-dev/www/templates/default-index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/default-index.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/www/templates/default-index.tcl 12 Jul 2002 11:47:44 -0000 1.1 @@ -0,0 +1,26 @@ +# /packages/editthispage/templates/article-index.tcl + +ad_page_contract { + @author Luke Pond (dlpond@pobox.com) + @creation-date 2001-06-01 + + This is the default page used to display an index listing + for an Edit This Page package instance. It assumes a + content type with no extended attributes, and presents + a listing of all content pages belonging to this package. +

+ If you want to use some other page instead, specify it with + the index_template package parameter. + +} { +} -properties { + pa:onerow + content_pages:multirow +} + +etp::get_page_attributes +etp::get_content_items + +#don't show context bar if 2ndlevel page +if {[ns_conn urlc] < 2} {set pa(context_bar) ""} + Index: openacs.org-dev/www/templates/faq-content.adp =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/faq-content.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/www/templates/faq-content.adp 12 Jul 2002 11:47:44 -0000 1.1 @@ -0,0 +1,10 @@ + +@pa.title@ +@pa.context_bar@ + +

+Q: @pa.title@ +

+A: +@pa.content@ +

Index: openacs.org-dev/www/templates/faq-content.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/faq-content.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/www/templates/faq-content.tcl 12 Jul 2002 11:47:44 -0000 1.1 @@ -0,0 +1,17 @@ +# /packages/editthispage/templates/faq-content.tcl + +ad_page_contract { + @author Luke Pond (dlpond@pobox.com) + @creation-date 2001-07-05 + + This page can be used to display a single question from a FAQ. + However, the faq-index page displays all questions and answers + without linking to an individual question, so you'll have to + come up with some other way to use it (search engine results, perhaps) +} { +} -properties { + pa:onerow +} + +etp::get_page_attributes + Index: openacs.org-dev/www/templates/faq-index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/faq-index.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/www/templates/faq-index.adp 12 Jul 2002 11:47:44 -0000 1.1 @@ -0,0 +1,32 @@ + +@pa.title@ +@pa.context_bar@ + + +@pa.content@ + + +Frequently Asked Questions: +
    + +
  1. +@content_items.title@ +
  2. +
    +
+
+ + +Questions and Answers: +
    + + +
  1. +Q: @content_items.title@ +
    +A: +@content_items.content@ +

    +
  2. +
    +
Index: openacs.org-dev/www/templates/faq-index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/faq-index.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/www/templates/faq-index.tcl 12 Jul 2002 11:47:44 -0000 1.1 @@ -0,0 +1,21 @@ +# /packages/editthispage/templates/article-index.tcl + +ad_page_contract { + @author Luke Pond (dlpond@pobox.com) + @creation-date 2001-06-01 + + This is an interface for a list of Frequently Asked Questions. + We assume you want to see all the questions on a single page, + so there are no links to pages that display individual questions. + + This template uses no extended page attributes. The question + is stored in the page title, and the answer is stored in the content + field. +} { +} -properties { + pa:onerow + content_pages:multirow +} + +etp::get_page_attributes +etp::get_content_items content Index: openacs.org-dev/www/templates/homepage-index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/homepage-index.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/www/templates/homepage-index.adp 12 Jul 2002 11:47:44 -0000 1.1 @@ -0,0 +1,214 @@ + +@pa.title@ +@pa.context_bar@ + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
features
+

+ + + + +
+ @feature_items.title@
+ @feature_items.description@
+
+
+ + +
+more features...
+
+

+

+
+
+@pa.content@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +forums: recent posts
+
+ + + + +  +@forum_posts.sent_date_no_time@ - +@forum_posts.title@ (@forum_posts.replies_pretty@)
posted in @forum_posts.forum_name@
+
+
+ +
news
+
+ + + + +   + @news_items.title@ + - @news_items.publish_date@ +

+
+
+ + + more news...
+
+
+
+
+ + + + + + + + Index: openacs.org-dev/www/templates/homepage-index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/homepage-index.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/www/templates/homepage-index.tcl 12 Jul 2002 11:47:44 -0000 1.1 @@ -0,0 +1,100 @@ + +# /www/templates/homepage-news.tcl + +ad_page_contract { + @author Pat Colgan (pat@museatech.net) + @creation-date 2001-09-01 + + This page is for the OpenACS homepage. In addition to + the Edit This Page functions, it has code for pulling + out featured articles and profiles, news, and bboard + posts. + +} { +} -properties { + pa:onerow + news_items:multirow + feature_items:multirow + n_news_items:onevalue + n_feature_items:onevalue + n_forum_posts:onevalue +} + +## config for the three call-out boxes +set n_news_items 2 +set n_feature_items 3 +set n_forum_posts 4 +set max_post_age_days 40 + + +etp::get_page_attributes + +set user_id [ad_conn user_id] + +# This query gets all messages less than max_post_age_days old +# from forums the user has permission to access. +# Added sent_date_no_time so the order sorts properly within +# one day + +db_multirow forum_posts messages_select " + select message_id, title, sent_date, + to_char(sent_date,'MM/DD/YY') as sent_date_no_time, + to_char(sent_date,'HH24:MM') as sent_time, + f.short_name as forum_name, f.forum_id, + case when num_replies = 2 then + '1 reply' + else + num_replies - 1 || ' ' || 'replies' + end + as replies_pretty, + + case when length(content) > 100 then + substring(content, 0, 100) || '...' + else + content + end + as content + from bboard_messages_all b, bboard_forums f + where acs_permission__permission_p(b.forum_id,:user_id,'bboard_read_forum') = 't' + and sent_date > now() - $max_post_age_days + and reply_to is null + and b.forum_id = f.forum_id + and f.bboard_id = 2369 + order by sent_date desc + limit $n_forum_posts + +" + + + +#Warning! lazy hardcode of package id! + +# this presents only non-expired news items +set where "sysdate() between to_date(attributes.release_date, 'YYYY-MM-DD') + and to_date(attributes.archive_date, 'YYYY-MM-DD')" +set orderby "to_date(attributes.release_date, 'YYYY-MM-DD') desc" + +# this limits the query to the desired number of items... +# ... plus one, so that we can use maxrows and rowcount +# in the adp to present a "more..." link if appropriate +# (maxrows without limiting the query could be performance killer) + +set news_limit [expr $n_news_items + 1] +set feature_limit [expr $n_feature_items + 1] + +# speaking of performance, when this is live these +# calls (including multirow above) should be cached. +# prob. a short cache for the forums. + + +etp::get_content_items -where $where -orderby $orderby \ + -limit $news_limit \ + -package_id 2494 -result_name news_items \ + release_date archive_date + + +etp::get_content_items -package_id 2648 -limit $feature_limit \ + -result_name feature_items + + + Index: openacs.org-dev/www/templates/new-master.adp =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/new-master.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/www/templates/new-master.adp 12 Jul 2002 11:47:44 -0000 1.1 @@ -0,0 +1,252 @@ + + + + +@title@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+homehome +home +news&eventsnews&events +news&events +forums&communityforums&community +forums&community +softwaresoftware +software +documentationdocumentation +documentation +my workspacemy workspace +my workspace
+ + + + + + + + + + + + + + + + + + +
+OPEN ACS      + + + +
+ + + + + + + + + + + + + +
+search site>>  
+ + +
+ +>>download OpenACS + + +  
+
+ +
+ + + +
+ + + + + + + + + + + + + + +
+
 logged in as @user_name@  |  log out 
+
+
+ + + + + + +
+ +@form_vars@ + + + + + + + + + + + + + + + + + + +
+email:  +   +
password:  + +save? +(more) +
+ +
+
+ +
+ +
+ + + + + +
+ + + +

+ + + + + + + + + + + + +
This site is +maintained by the Open ACS Community. +Any problems, email webmaster@openacs.org.
+ +@etp_link@ + +
+ + + Index: openacs.org-dev/www/templates/new-master.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/new-master.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/www/templates/new-master.tcl 12 Jul 2002 11:47:44 -0000 1.1 @@ -0,0 +1,50 @@ +ad_page_contract { + + OpenACS.org homepage + + @author modified by Patrick Colgan pat pat@museatech.net + @creation-date 9/6/2001 + + +} { + { email "" } +} -properties { + form_vars:onevalue + allow_persistent_login_p:onevalue + remember_password:onevalue + name:onevalue + first_names:onevalue + email:onevalue + home_url:onevalue + home_url_name:onevalue + oacs_admin_p:onevalue + pkid:onevalue +} + +oacs_set_login_vars + +set pkid [ad_conn package_id] + +if [template::util::is_nil title] { set title [ad_system_name] } +if [template::util::is_nil signatory] { set signatory [ad_system_owner] } +if ![info exists header_stuff] { set header_stuff {} } + +if [template::util::is_nil context_bar] { set context_bar "" } + + +# Edit This Page - format the etp link for style sheet +set etp_link [etp::get_etp_link] +regsub "^ +@pa.title@ +@pa.context_bar@ + + +
@pa.subtitle@
+
+ +

+ + + + + +@pa.location@ - + + +@pa.release_date@ - + + + +@pa.content@ + +

\ No newline at end of file Index: openacs.org-dev/www/templates/news-content.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/news-content.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/www/templates/news-content.tcl 12 Jul 2002 11:47:44 -0000 1.1 @@ -0,0 +1,15 @@ +# /packages/editthispage/templates/news-content.tcl + +ad_page_contract { + @author Luke Pond (dlpond@pobox.com) + @creation-date 2001-08-30 + + Displays a single news item. + +} { +} -properties { + pa:onerow +} + +etp::get_page_attributes + Index: openacs.org-dev/www/templates/news-index.adp =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/news-index.adp,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/www/templates/news-index.adp 12 Jul 2002 11:47:44 -0000 1.1 @@ -0,0 +1,141 @@ + +@pa.title@ +@pa.context_bar@ +
+ + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+OpenACS Community News + Archive +
+
+ + +There are no current news items + + + + + +If you're looking for an old news article, check the +expired news. + +You're viewing expired news items. +Click here for the fresh ones. + + +
+
+ + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Special Events
+
+ + + + +@pa.content@ + + + +
+ +
+
+ + Index: openacs.org-dev/www/templates/news-index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/news-index.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/www/templates/news-index.tcl 12 Jul 2002 11:47:44 -0000 1.1 @@ -0,0 +1,31 @@ +# /packages/editthispage/templates/news-index.tcl + +ad_page_contract { + @author Luke Pond (dlpond@pobox.com) + @creation-date 2001-08-30 + + This is an example of using extended attributes in an ETP template. + + Displays all news items for which the release date is in + the past and the archive date is in the future. + + If "archive_p=t" is in the url, displays all news items for + which the release date is in the past. + +} { + {archive_p "f"} +} -properties { + pa:onerow + content_pages:multirow +} + +if { $archive_p == "f" } { + set where "sysdate() between to_date(attributes.release_date, 'YYYY-MM-DD') and to_date(attributes.archive_date, 'YYYY-MM-DD')" +} else { + set where "sysdate() >= to_date(attributes.archive_date, 'YYYY-MM-DD')" +} + +set orderby "to_date(attributes.release_date, 'YYYY-MM-DD') desc" + +etp::get_page_attributes +etp::get_content_items -where $where -orderby $orderby release_date archive_date Index: openacs.org-dev/www/templates/oacs_logo.jpg =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/oacs_logo.jpg,v diff -u Binary files differ Index: openacs.org-dev/www/templates/oacs_test.txt =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/Attic/oacs_test.txt,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs.org-dev/www/templates/oacs_test.txt 12 Jul 2002 11:47:44 -0000 1.1 @@ -0,0 +1,287 @@ + + + +--- O p e n A C S --- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
  home     +what is OpenACS?     +news & events    community    software    documentation  
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+

+What Is OpenACS?
text main intro text main intro text main intro text main intro text mai n intro te xt m ain intro text main intro te xt main intro text main intro text main intro text main in tro text main int ro text mai n intro t ex t main in tro text m ain intro te xt main intro text int ro text main main in tro text main intro te xt main intro text main intro text m ain in tro text main int ro text m ain intro text main in ro text main intro text main intro text main intro text main intro text ma in in tro te xt main intro text main intro text main intro text main intro text main intro text main intro text main intro text main in tro text main intro +


+Where can i get OpenACS?
text main intr o te xt main intro text main intro text main intro text main intro tex t main intro text ma in intro text main intro text main int ro text main intro text main int ro text main intro text ma in intro text main in tro text main intro text main intro text main intro text main in tro text main intro intro tex t main text main intro text ma in intro text main intro text m ain intro te xt main intro text main intro text main intro text main intro text main intro text main intro text main intro text main intro text main intro te xt main int ro text main intro text main intro text main intro text main intro text main intro text main intro +


+Who's afraid of OpenACS?
text main intro text main intro te xt main intro text main intro text main intro text main intr o text ma in intro text main intro text main, intro text main intro text main intro text +


+ + + + + + +
+

+search site

+
+ +
+ +
+
+
log in 
+
+password 
+
+ >> download OpenACS
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
featuring...
+
+ +Furfly.net +Furfly +text main intro text main introt ext main intc ro text mai n intro te t main int ro text ma in intr o tex t main i ntro text main int ro text main intro text ma inintro text main intro www.furfly.net


+ +Why Not MySQL?
+text main intro text main introt ext main intc ro text mai n intro te t main int ro text ma in intr o tex t main i ntro text main int ro text main intro text ma inintro text main intro

text main intro text main introt ext main intc ro text mai n intro te t main int ro text ma in intr o tex t main i ntro text main int ro text main intro text ma inintro text main intro



+ +
+ + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
recent postings...
+
+ + + +text main intro text main intro text main intro +
+
+text main intro text main introt ext main intc ro text mai +
+
+n intro te t main int ro text ma in intr o tex t main +
+
+ntro text main int ro text main intro +
+
+ +
news...
+
+ + + +text main intro text main intro text main intro +
+
+text main intro text main introt ext main intc ro text mai +
+
+n intro te t main int ro text ma in intr o tex t main +
+
+ntro text main int ro text main intro +
+
+ +
+
+ + + + + + + + + + + + + + + +
This site is maintained by the Open ACS Community. Any problems, email webmaster@openacs.org.

+ + + + + Index: openacs.org-dev/www/templates/openacs_logo_large.gif =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/openacs_logo_large.gif,v diff -u Binary files differ Index: openacs.org-dev/www/templates/spacer.gif =================================================================== RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/spacer.gif,v diff -u Binary files differ