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 @@
+<master src="/www/templates/new-master">
+<property name="title">@pa.title@</property>
+<property name="context_bar">@pa.context_bar@</property>
+<br>
+<table cellpadding=0 cellspacing=0 border=0 width="100%">
+<tr>
+<td align="left" valign="top" bgcolor="#efefef" width="50%">
+
+<!-- FORUMS NESTED TABLE START -->
+<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
+<tr>
+<td align="left" valign="top" bgcolor="#66ccff"><img 
+src="images/spacer.gif" alt="" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#66ccff"><span 
+class="nav"><a href="/community/forums/" class="top">OpenACS Community Forums</a></span></td>
+
+<td align="left" valign="top" bgcolor="#66ccff"><img 
+src="images/spacer.gif" alt="" height="1" width="8"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#999999" colspan="3"><img 
+src="images/line.gif" alt="" height="2" width="210"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#efefef" colspan="3"><img
+src="images/spacer.gif" alt="" height="6" width="1"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#EFEFEF"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#EFEFEF">
+
+<span class="reg">
+<ul>
+<multiple name=forums>
+  <li><a href="/community/forums/forum?forum_id=@forums.forum_id@">@forums.short_name@</a>
+</multiple>
+</ul>
+<br><br></td>
+
+<td align="left" valign="top" bgcolor="#EFEFEF"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+</tr>
+</table>
+
+<!-- NESTED TABLE END -->
+
+</td>
+
+<!-- MARGIN -->
+<td align="left" valign="top" width="35"><img src="/templates/images/spacer.gif" alt="" 
+height="1" width="20" alt=""></td>
+
+<td align="center" valign="top" bgcolor="#efefef"  width="50%">
+
+<!-- JOB BOARDS NESTED TABLE START -->
+
+<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
+<tr>
+<td align="left" valign="top" bgcolor="#66ccff"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#66ccff"><span 
+class="nav"><a href="jobs" class="top">Community Job Postings</a></span></td>
+
+<td align="left" valign="top" bgcolor="#66ccff"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#999999" colspan="3"><img 
+src="/templates/images/line.gif" alt="" height="2" width="210"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#efefef" colspan="3"><img
+src="images/spacer.gif" alt="" height="6" width="1"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#EFEFEF"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#EFEFEF">
+
+<span>
+<ul>
+<multiple name=jobs>
+<if @jobs.rownum@ le @n_jobs@>
+  <li><a href="jobs/@jobs.url@">@jobs.title@</a> - @jobs.description@</li>
+</if>
+</multiple>
+</ul>
+
+<if @jobs:rowcount@ gt @n_jobs@>
+   &nbsp;&nbsp;<a href="jobs">more jobs</a>...
+  <br><br>
+</if>
+</span>
+</td>
+
+<td align="left" valign="top" bgcolor="#EFEFEF"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+</tr>
+</table>
+<!-- NESTED TABLE END -->
+</td>
+</tr>
+</TABLE>
+
+<br>
+
+<!-- START new TABLE FOR OPENACS SITES LISTING -->
+
+<table cellspacing="0" cellpadding="0" border="0" width="100%">
+<tr>
+<td valign="top" align="left" bgcolor="#efefef">
+<!-- OPENACS SITES LIST - NESTED TABLE START -->
+
+<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
+<tr>
+
+<td align="left" valign="top" bgcolor="#66ccff"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#66ccff"><span 
+class="nav"><a href="oacs_sites" class="top">OpenACS Sites</a>
+</span></td>
+
+<td align="left" valign="top" bgcolor="#66ccff"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#999999" colspan="3"><img 
+src="/templates/images/line.gif" alt="" height="2" width="210"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#efefef" colspan="3"><img
+src="images/spacer.gif" alt="" height="6" width="1"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#EFEFEF"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#EFEFEF">
+
+<span>
+<ul>
+<multiple name=sites>
+<if @sites.rownum@ le @n_sites@>
+  <li><a href="@sites.url@">@sites.title@</a> -- @sites.description@</li>
+</if>
+</multiple>
+</ul>
+
+<if @sites:rowcount@ gt @n_sites@>
+  &nbsp;&nbsp;<a href="oacs_sites">more sites</a>...</span>
+  <br><br>
+</if>
+
+</span>
+</td>
+
+<td align="left" valign="top" bgcolor="#EFEFEF"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+
+</tr>
+
+</table>
+
+<!-- NESTED TABLE END-->
+<br>
+</td>
+
+<!-- MARGIN -->
+<td align="left" valign="top" width="35"><img src="/templates/images/spacer.gif" alt=""
+height="1" width="20" alt=""></td>
+
+<!-- START CELL FOR OACS COMPANIES -->
+
+<td align="left" valign="top" bgcolor="#efefef">
+
+<!-- COMPANIES NESTED TABLE START -->
+
+<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
+<tr>
+
+<td align="left" valign="top" bgcolor="#66ccff"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#66ccff"><span 
+class="nav"><a href="companies" class="top">OpenACS Companies</a>
+</span></td>
+
+<td align="left" valign="top" bgcolor="#66ccff"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#999999" colspan="3"><img 
+src="/templates/images/line.gif" alt="" height="2" width="210"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#efefef" colspan="3"><img
+src="images/spacer.gif" alt="" height="6" width="1"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#efefef"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#efefef">
+
+
+<span>
+An alphabetical listing of companies that can help you with OpenACS.
+
+<!--
+<ul>
+<multiple name=companies>
+  <li><a href="@companies.url@">@companies.title@</a>
+  <if @companies.description@ not nil> - @companies.description@</if></li>
+</multiple>
+</ul>
+-->
+
+<ul>
+<multiple name=companies>
+<if @companies.rownum@ le @n_companies@>
+  <li><a href="@companies.url@">@companies.title@</a>
+  <if @companies.description@ not nil> - @companies.description@</if></li>
+</if>
+</multiple>
+</ul>
+
+<if @companies:rowcount@ gt @n_companies@>
+  &nbsp;&nbsp;<a href="companies">more companies</a>...  
+<br><br>
+</if>
+
+</span>
+</td>
+
+<td align="left" valign="top" bgcolor="#efefef"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+
+</tr>
+</table>
+<!-- NESTED TABLE END -->
+
+<br>
+</td>
+
+</tr>
+</table>
+
+
+
+
+
+
+
+
+
+
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.
+    <p>
+    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 @@
+<master src="/www/templates/new-master">
+<property name="title">@pa.title@</property>
+<property name="context_bar">@pa.context_bar@</property>
+
+<br>
+<span class="two">@pa.title@</span><br>
+<span class="footer">
+@pa.context_bar@</span><br><br>
+
+<span class="reg">
+<b>@pa.description@</b>
+<br>
+
+@pa.content@
+</span>
+<br clear="left">
\ 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.
+    <p>
+    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 @@
+<master src="/www/templates/new-master">
+<property name="title">@pa.title@</property>
+<property name="context_bar">@pa.context_bar@</property>
+<br>
+<span class="two">@pa.title@</span><br>
+<span class="footer">
+@pa.context_bar@
+</span>
+
+<p>
+<if @pa.content@ not nil>
+@pa.content@
+</if>
+
+<blockquote><p>
+<multiple name="content_items">
+<b><a href="@content_items.url@">@content_items.title@</a></b>
+<if @content_items.description@ not nil>
+ - @content_items.description@
+</if>
+<br><br>
+</multiple>
+</p>
+</blockquote>
+</p>
+
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.
+    <p>
+    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 @@
+<master>
+<property name="title">@pa.title@</property>
+<property name="context_bar">@pa.context_bar@</property>
+
+<blockquote>
+<b>Q:</b> <em>@pa.title@</em>
+<p>
+<b>A:</b> 
+@pa.content@
+</blockquote>
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 @@
+<master>
+<property name="title">@pa.title@</property>
+<property name="context_bar">@pa.context_bar@</property>
+
+<if @pa.content@ not nil>
+<span class="reg">@pa.content@</span>
+</if>
+<span class="two">
+Frequently Asked Questions:</span>
+<ol>
+<multiple name="content_items">
+<li><span class="reg">
+<a href="#@content_items.rownum@">@content_items.title@</a></span>
+</li>
+</multiple>
+</ol>
+<hr color="#999999" size="1" noshade>
+
+<span class="three">
+Questions and Answers:</span>
+<ol>
+<multiple name="content_items">
+<a name="@content_items.rownum@"></a>
+<li><span class="reg">
+<b>Q: <i>@content_items.title@</i></b>
+<br>
+<b>A:</b> 
+@content_items.content@
+<br><br></span>
+</li>
+</multiple>
+</ol>
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 @@
+<master>
+<property name="title">@pa.title@</property>
+<property name="context_bar">@pa.context_bar@</property>
+
+<table cellpadding=0 cellspacing=0 border=0>
+<tr>
+<!-- left side cell -->
+<td align="left" valign="top" width="190">
+
+<!-- nested left side table -->
+
+<TABLE WIDTH="190" BORDER="0" CELLSPACING="0" CELLPADDING="0">
+<tr>
+<td align="left" valign="top" bgcolor="#66ccff"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#66ccff"><span 
+class="nav"><a href="/features/" class="top">features</a></span></td>
+
+<td align="right" valign="top" bgcolor="#cccccc"><img 
+src="/templates/images/greyright.gif" alt="" height="8" width="8"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#999999" colspan="2"><img 
+src="/templates/images/spacer.gif" alt="" height="2" width="182"></td>
+
+<td align="left" valign="top" bgcolor="#cccccc" colspan="2"><img
+src="/templates/images/spacer.gif" alt="" height="2" width="8"></td>
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#dedede"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#dedede">
+<p>
+<multiple name=feature_items>
+<!--maxrows doesn't take a variable value, so have to do this-->
+<if @feature_items.rownum@ le @n_feature_items@>
+  <img src="/templates/images/spacer.gif" alt="" height="8" width="174">
+  <br clear="left">
+  <a href="@feature_items.url@" class="top"><b>@feature_items.title@</b></a><br>
+  @feature_items.description@<br>
+</if>
+</multiple>
+
+<if @feature_items:rowcount@ gt @n_feature_items@>
+<br>
+<a href="/features">more features...</a><br>
+</if>
+<br><br>
+</p>
+</td>
+<td align="left" valign="top" bgcolor="#cccccc"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+</tr>
+
+<tr>
+<td align="left" valign="top" bgcolor="#cccccc" colspan="3"><img
+src="/templates/images/grey.gif" alt="" height="8" width="8"></td>
+</tr>
+
+</table>
+</td>
+<!-- end left side cell -->
+
+<!-- MARGIN -->
+<td align="left" valign="top" width="30"><img src="/templates/images/spacer.gif" alt="" 
+height="1" width="30"></td>
+
+
+<!-- main text area - MAIN TEXT -->
+<td align="left" valign="top" width="100%">
+<span>@pa.content@</span>
+</td>
+
+<!-- MARGIN -->
+<td align="right" valign="top" width="30">
+<img src="/templates/images/spacer.gif" alt=""
+height="1" width="30"></td>
+
+<!-- right side cell -->
+<td align="right" valign="top" width="190">
+
+<!-- nested right side table -->
+
+<TABLE width="190" BORDER="0" CELLSPACING="0" CELLPADDING="0">
+<tr>
+
+<td align="left" valign="top" bgcolor="#66ccff" width="8"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#66ccff" width="174">
+<span class="nav"><a href="/community/forums/" class="top">
+forums</a>: recent posts</span></td>
+
+<td align="right" valign="top" bgcolor="#cccccc" width="8"><img 
+src="/templates/images/greyright.gif" alt="" height="8" width="8"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#999999" colspan="2"><img 
+src="/templates/images/spacer.gif" alt="" height="2" width="182"></td>
+
+<td align="left" valign="top" bgcolor="#cccccc" width="8"><img
+src="/templates/images/spacer.gif" alt="" height="2" width="8"></td>
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#dedede" width="8"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#dedede" width="174">
+<img src="/templates/images/spacer.gif" alt="" height="8" width="174"><br clear="left">
+
+<span class="small">
+
+<multiple name="forum_posts">
+<img src="/templates/images/dot.gif" alt="" width="10" height="11">&nbsp;<b>
+@forum_posts.sent_date_no_time@ -  <a 
+href="/community/forums/message?message_id=@forum_posts.message_id@&forum_id=@forum_posts.forum_id@">
+@forum_posts.title@</a></b> (@forum_posts.replies_pretty@)<br>posted in <a 
+href="/community/forums/forum?forum_id=@forum_posts.forum_id@">@forum_posts.forum_name@</a><br>
+<br>
+</multiple>
+
+</span></td>
+
+<td align="left" valign="top" bgcolor="#cccccc" width="8"><img 
+src="/templates/images/spacer.gif" alt="" height="8" width="8"></td>
+
+</tr>
+
+<tr>
+<td align="left" valign="top" bgcolor="#cccccc" colspan="3" width="190"><img
+src="/templates/images/grey.gif" alt="" height="8" width="8"></td>
+</tr>
+
+<tr>
+<td align="left" valign="top" bgcolor="#ffffff" colspan="3"><img 
+src="/templates/images/spacer.gif" alt="" height="15" width="190"></td>
+</tr>
+
+<tr>
+
+<td align="left" valign="top" bgcolor="#66ccff"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#66ccff"><span 
+class="nav"><a href="/news" class="top">news</a></span></td>
+
+<td align="right" valign="top" bgcolor="#cccccc"><img 
+src="/templates/images/greyright.gif" alt="" height="8" width="8"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#999999" colspan="2"><img 
+src="/templates/images/spacer.gif" alt="" height="2" width="182"></td>
+
+<td align="left" valign="top" bgcolor="#cccccc" colspan="1"><img
+src="/templates/images/spacer.gif" alt="" height="2" width="8"></td>
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#dedede"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#dedede">
+<img src="/templates/images/spacer.gif" alt="" height="8" width="174"><br clear="left">
+
+<span class="reg">
+<multiple name="news_items">
+<if @news_items.rownum@ le @n_news_items@>
+  <img src="/templates/images/dot.gif" alt="">&nbsp;
+  <a href="/news/@news_items.url@">@news_items.title@ 
+  - @news_items.publish_date@</a>
+  <br><br>
+</if>
+</multiple>
+
+<if @news_items:rowcount@ gt @n_news_items@>
+  <a href="/news">more news... </a><br>
+</if>
+</span>
+</td>
+
+<td align="left" valign="top" bgcolor="#cccccc"><img 
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+</tr>
+
+<tr>
+<td align="left" valign="top" bgcolor="#cccccc" colspan="3"><img
+src="/templates/images/grey.gif" alt="" height="8" width="8"></td>
+</tr>
+
+</table>
+</td>
+<!-- end right side cell -->
+</tr>
+</table>
+
+
+
+
+
+
+
+
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 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<HTML lang="en">
+<HEAD>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<title>@title@</title>
+
+<script language="JavaScript" type="text/javascript">
+if (navigator.appName == "Netscape"){
+      if (navigator.appVersion.indexOf ("5.0") != -1) {
+              document.writeln ('<LINK REL="StyleSheet" HREF="/templates/css/oacs_ns6.css" type="text/css">');
+      }
+      else {
+              document.writeln ('<LINK REL="StyleSheet" HREF="/templates/css/oacs_ns4.css" type="text/css">');
+      }
+}
+else {
+document.writeln ('<LINK REL="StyleSheet" HREF="/templates/css/oacs_ie5.css" type="text/css">');
+}
+</script>
+
+<noscript>
+<LINK REL="stylesheet" HREF="/templates/css/oacs_all.css" type="text/css">
+</noscript>
+</HEAD>
+
+<BODY BGCOLOR="#ffffff" link="#006699" alink="#0066cc" vlink="#003399" 
+style="margin:18px">
+
+
+<!-- BEGIN header -->
+<!-- _______________ BEGIN NAV BAR TABLE _________________  -->
+
+<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
+<TR>
+
+<if @top_dir@ eq "">
+<td align="center" valign="middle" bgcolor="#cccccc" width="8%"><span class="navon">
+<if @urlc@ gt 1><a href="/" class="on">home</a></if><else>home</else></span></td>
+</if>
+<else>
+<td align="center" valign="middle" bgcolor="#66ccff" width="8%"><span class="nav">
+<a href="/" class="top">home</a></span></td>
+</else>
+
+
+<if @top_dir@ eq "news">
+<td align="center" valign="middle" bgcolor="#cccccc" width="18%"><span class="navon">
+<if @urlc@ gt 1><a href="/news" class="on">news&amp;events</a></if><else>news&amp;events</else></span></td>
+</if>
+<else>
+<td align="center" valign="middle" bgcolor="#66ccff" width="18%"><span class="nav">
+<a href="/news" class="top">news&amp;events</a></span></td>
+</else>
+
+
+<if @top_dir@ eq "community">
+<td align="center" bgcolor="#cccccc" valign="middle" width="26%"><span class="navon">
+<if @urlc@ gt 1><a class="on" href="/community">forums&amp;community</a></if><else>forums&amp;community</else></span></td>
+</if>
+<else>
+<td align="center" valign="middle" bgcolor="#66ccff" width="26%"><span class="nav">
+<a href="/community" class="top">forums&amp;community</a></span></td>
+</else>
+
+
+<if @top_dir@ eq "sw">
+<td align="center" valign="middle" bgcolor="#cccccc" width="18%"><span class="navon">
+<if @urlc@ gt 1><a href="/sw" class="on">software</a></if><else>software</else></span></td>
+</if>
+<else>
+<td align="center" valign="middle" bgcolor="#66ccff" width="18%"><span class="nav">
+<a href="/sw" class="top">software</a></span></td>
+</else>
+
+
+<if @top_dir@ eq "oacs-doc">
+<td align="center" valign="middle" bgcolor="#cccccc" width="18%"><span class="navon">
+<if @urlc@ gt 1><a href="/oacs-doc" class="on">documentation</a></if><else>documentation</else></span></td>
+</if>
+<else>
+<td align="center" valign="middle" bgcolor="#66ccff" width="18%"><span class="nav">
+<a href="/oacs-doc/" class="top">documentation</a></span></td>
+</else>
+
+
+<if @top_dir@ eq "pvt">
+<td align="center" valign="middle" bgcolor="#cccccc" width="17%"><span class="navon">
+<if @urlc@ gt 1><a href="/pvt/home" class="on">my workspace</a></if><else>my workspace</else></span></td>
+</if>
+<else>
+<td align="center" valign="middle" bgcolor="#66ccff" width="17%"><span class="nav">
+<a href="/pvt/home" class="top">my workspace</a></span></td>
+</else>
+
+</tr>
+<tr>
+<td align="right" valign="top" colspan="6" bgcolor="#999999"><img src="/templates/images/spacer.gif" 
+alt="" height="2" width="1"></td>
+</tr>
+<tr>
+<td align="left" valign="top" colspan="6" bgcolor="#ffffff"><img src="/templates/images/spacer.gif" 
+alt="" height="8" width="1"></td>
+</tr>
+</table>
+
+<!-- _______________ END NAV TABLE __________________________ --> 
+<!-- ________________________________________________________ -->
+
+<!-- _______________START LOGO AND LOG IN ROW_______________  -->
+
+
+<table cellpadding=0 cellspacing=0 width="100%" border=0>
+<tr>
+<td align="left" valign="top"><a href="/">
+<img src="/templates/images/oacs_logo2.jpg" alt="OPEN ACS" 
+height="80" width="184" border="0"></a></td>
+
+<td align="center" valign="top">&nbsp; &nbsp; &nbsp;</td>
+
+<td align="center" valign="top">
+
+<!-- ____________________ SEARCH AREA ____________________ -->
+
+<form>
+<table cellpadding=0 cellspacing=0 border=0>
+<tr>
+
+<td align="center" valign="top">
+<span class="light">search site&gt;&gt; </span></td>
+
+<td align="center" valign="top"><input type="text" size=12>&nbsp;</td>
+
+<td align="center" valign="top"><input type="submit" value="go" class="button"></td>
+
+</tr>
+<tr>
+<td colspan=3>
+<!-- ____________________  d o w n l o a d  O A C S  l i n k  ____________________-->
+
+<img src="/templates/images/spacer.gif" width="1" height="12" alt=""><br clear="left">
+<if @top_dir@ eq "">
+<a href="/sw/"><span class="blue">&gt;&gt;download OpenACS
+</span></a>
+</if>
+&nbsp;&nbsp</td>
+</tr>
+</table>
+</form>
+<!-- ____________________ END SEARCH AREA ____________________ -->
+</td>
+
+
+<td align="right" valign="top">
+
+<!-- ________ IF LOGGED IN, SHOW NAME AT FAR RIGHT ___________ -->
+<if @user_name@ not nil>
+<form>
+<table cellpadding=0 cellspacing=0 border=0>
+<tr>
+<td align="left" valign="top" colspan="4">
+<img src="/templates/images/spacer.gif" alt="" width=1 height=1></td>
+</tr>
+
+<tr>
+<td align="right"><nobr><span class="light">&nbsp;logged in as @user_name@</span></nobr></td>
+
+<td align="right"><span class="light">&nbsp;&nbsp;|&nbsp;&nbsp;</span></td>
+
+<td align="right"><a href="/register/logout"><span class="light">log&nbsp;out</span></a></td>
+<td align="right">&nbsp;</td>
+
+</tr>
+</table>
+</form>
+</if>
+<else>
+
+
+<!-- SHOW LOG IN FIELDS -->
+
+<if @top_dir@ ne "register">
+<FORM method=post action="/register/user-login">
+
+@form_vars@
+<table cellpadding=0 cellspacing=0 border=0>
+<tr>
+
+<td align="right" valign="top">
+<span class="light">email:&nbsp;</span></td>
+
+<td align="left" valign="top">
+<INPUT type="text" name="email" tabindex="1" value="@email@"></td>
+
+<td valign="top" align="left">&nbsp;<input type="submit" value="log in" class="button" tabindex="3">&nbsp;
+</td>
+</tr>
+
+<tr>
+<td align="right" valign="top"><span class="light">password:&nbsp;</span></td>
+
+<td align="left" valign="top"><input type="password" name="password" tabindex="2"></td>
+
+<td valign="top" align="left">
+<span class="light">
+&nbsp;<input type=checkbox name=persistent_cookie_p value=1 checked>
+save?
+<a href="/register/explain-persistent-cookies">(more)</a>
+</td>
+
+</tr>
+</table>
+
+</form>
+</if> <!-- not on register page-->
+
+</else>
+<!-- __________ END LOG IN and USER NAME ____________ -->
+</td>
+</tr>
+</table>
+
+<table Cellpadding=0 cellspacing=0 border=0>
+<tr>
+<td align="left" valign="top" bgcolor="#ffffff"><img src="/templates/images/spacer.gif" alt="" height="1" width="1"></td>
+</tr>
+</table>
+<!-- ________ END HEADER  ___________ -->
+
+<slave>
+<br><br>
+<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
+<tr>
+<td align="LEFT" valign="top" bgcolor="#999999" colspan="2"><img src="/templates/images/spacer.gif" alt="" height="1" width="1"></td>
+</tr>
+<tr>
+<td align="LEFT" valign="top" colspan="2"><img src="/templates/images/spacer.gif" alt="" height="6" width="1"></td>
+</tr>
+<tr>
+<td align="left" valign="top"><span class="small">This site is 
+maintained by the Open ACS Community. 
+Any problems, email <a href="mailto:webmaster@openacs.org">webmaster@openacs.org</a>.<br></SPAN></TD>
+
+<TD ALIGN="RIGHT" width="100">
+<if @etp_link@ not nil><span class="small">
+<b>@etp_link@</b></span>
+</if>
+</td>
+</TR>
+</TABLE>
+
+</body>
+</html>
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 "^<a" $etp_link "<a class=\"top\"" etp_link
+
+# Setup for navigation bar
+
+set top_dir [lindex [ns_conn urlv] 0]
+set urlc [ns_conn urlc]
+
+
+
+
+
+
+
+
Index: openacs.org-dev/www/templates/news-content.adp
===================================================================
RCS file: /usr/local/cvsroot/openacs.org-dev/www/templates/news-content.adp,v
diff -u
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ openacs.org-dev/www/templates/news-content.adp	12 Jul 2002 11:47:44 -0000	1.1
@@ -0,0 +1,24 @@
+<master>
+<property name="title">@pa.title@</property>
+<property name="context_bar">@pa.context_bar@</property>
+
+<if @pa.subtitle@ not nil>
+<blockquote><b>@pa.subtitle@</b></blockquote>
+</if>
+<else>
+<p>
+</else>
+
+<b>
+
+<if @pa.location@ not nil>
+@pa.location@ - 
+</if>
+
+@pa.release_date@ - 
+
+</b>
+
+@pa.content@
+
+<p>
\ 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 @@
+<master>
+<property name="title">@pa.title@</property>
+<property name="context_bar">@pa.context_bar@</property>
+<br>
+<table cellpadding=0 cellspacing=0 border=0 width="100%">
+<tr>
+<!-- LEFT SIDE CELL WITH NEWS -->
+<td align="left" valign="top" width="100%">
+
+<!-- LEFT NESTED TABLE START -->
+
+<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
+
+<tr>
+<td align="left" valign="top" bgcolor="#66ccff"><img
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#66ccff"><span class="nav">
+OpenACS Community News
+<if @archive_p@ eq "t"> Archive</if>
+</span></td>
+
+<td align="left" valign="top" bgcolor="#66ccff"><img
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+</tr>
+
+<tr>
+<td align="left" valign="top" bgcolor="#999999" colspan="3"><img
+src="/templates/images/line.gif" alt="" height="2" WIDTH="210"></td>
+
+</tr>
+
+<tr>
+
+<td align="left" valign="top" bgcolor="#ffffff"><img
+src="/templates/images/spacer.gif" width="8" height="1"></td>
+
+<td align="left" valign="top" bgcolor="#ffffff">
+<img src="/templates/images/spacer.gif" width="8" height="5"><br clear="left">
+<span class="reg">
+<if @content_items:rowcount@ eq 0>
+<em>There are no current news items</em>
+</if>
+
+<ul>
+<multiple name="content_items">
+<li><span class="footer">@content_items.release_date@:</span> 
+<a href="@content_items.url@">@content_items.title@</a><br><br></li>
+</multiple>
+
+</ul>
+
+<if @archive_p@ ne "t"> 
+If you're looking for an old news article, check the 
+<a href="?archive_p=t">expired news</a>.
+</if> <else>
+You're viewing expired news items.  <a href="?archive_p=f">
+Click here for the fresh ones</a>.
+</else>
+</span>
+<br> 
+</td>
+
+<td align="left" valign="top" bgcolor="#ffffff"><img
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+</tr>
+</table>
+<!-- NESTED TABLE END -->
+
+<br>
+</TD>
+
+<!-- MARGIN -->
+<td align="left" valign="top" width="35"><img src="/templates/images/spacer.gif" alt=""
+height="1" width="20" alt=""></td>
+<!--END MARGIN-->
+
+
+<!--START EVENT SECTION - RIGHT SIDE CELL-->
+<td align="left" valign="top" width="250">
+
+<!-- NESTED EVENTS TABLE START -->
+
+<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
+<tr>
+<td align="left" valign="top" bgcolor="#66ccff"><img
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#66ccff"><span
+class="nav">Special Events</span></td>
+
+<td align="left" valign="top" bgcolor="#cccccc"><img 
+src="/templates/images/greyright.gif" alt="" height="8" width="8"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#999999" colspan="2"><img
+src="/templates/images/line.gif" alt="" height="2" width="250"></td>
+
+<td align="left" valign="top" bgcolor="cccccc"><img
+src="/templates/images/spacer.gif" alt="" height="2" WIDTH="8"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#DEDEDE"><img
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+
+<td align="left" valign="top" bgcolor="#DEDEDE">
+<img src="/templates/images/spacer.gif" alt="" height="8" width="234"><br clear="left">
+
+<span>
+<!-- _____________ EVENTS CONTENT GOES HERE ____________ -->
+<if @pa.content@ not nil>
+@pa.content@
+</if>
+</span>
+<!-- _____________ END EVENTS CONTENT  ____________ -->
+</td>
+
+<td align="left" valign="top" bgcolor="#cccccc"><img
+src="/templates/images/spacer.gif" alt="" height="1" width="8"></td>
+
+</tr>
+<TR>
+<td align="left" valign="top" bgcolor="#cccccc" COLSPAN="3"><img
+src="/templates/images/grey.gif" alt="" height="8" width="8"></td>
+</tr>
+
+</table>
+<!-- NESTED TABLE END -->
+<br>
+</td>
+<!-- end RIGHT cell -->
+</tr>
+</table>
+
+<!-- END MAIN CONTENT TABLE -->
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 @@
+<HTML>
+
+<HEAD>
+<title>--- O p e n A C S ---</title>
+
+<script language="JavaScript">
+
+
+if (navigator.appName == "Netscape"){ 
+	if (navigator.appVersion.indexOf ("5.0") != -1) {
+		document.writeln ('<LINK REL="StyleSheet" HREF="oacs_ns6.css" type="text/css">');alert("ns6");
+	}
+	else {
+		document.writeln ('<LINK REL="StyleSheet" HREF="oacs_ns4.css" type="text/css">');
+	}
+}
+
+else {
+document.writeln ('<LINK REL="StyleSheet" HREF="oacs_ie5.css" type="text/css">');
+}
+
+</script>
+
+</HEAD>
+
+
+<BODY BGCOLOR="#ffffff" TEXT="#000000" marginheight="18" marginwidth="18" topmargin="18" 
+leftmargin="22" rightmargin="22" bottommargin="18">
+
+
+<!-- BEGIN header -->
+<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
+<TR>
+<td align="center" valign="middle" bgcolor="#cccccc"><span class="nav">&nbsp;&nbsp;<a href="/" 
+class="top">home</a>&nbsp;&nbsp;</span></td>
+
+<td align="center" valign="middle" bgcolor="#33ccff"><span class="nav">&nbsp;&nbsp;<a href="/" class="top">
+what&nbsp;is&nbsp;OpenACS?</a>&nbsp;&nbsp;</span></td>
+
+<td align="center" valign="middle" bgcolor="#33ccff"><span class="nav">&nbsp;&nbsp;<a href="/" class="top">
+news&nbsp;&amp;&nbsp;events</a>&nbsp;&nbsp;</span></td>
+
+<td align="center" valign="middle" bgcolor="#33ccff"><span class="nav">&nbsp;&nbsp;<a href="/" 
+class="top">community</a>&nbsp;&nbsp;</span></td>
+
+<td align="center" valign="middle" bgcolor="#33ccff"><span class="nav">&nbsp;&nbsp;<a href="/" 
+class="top">software</a>&nbsp;&nbsp;</span></td>
+
+<td align="center" valign="middle" bgcolor="#33ccff"><span class="nav">&nbsp;&nbsp;<a href="/" 
+class="top">documentation</a>&nbsp;&nbsp;</span></td>
+
+</tr>
+<tr>
+
+<td align="right" valign="top" colspan="6" bgcolor="#999999"><img src="images/line.gif" height="2" width="750"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" colspan="6" bgcolor="#ffffff"><img src="images/spacer.gif" height="5" width="1"></td>
+
+</tr>
+</table>
+
+<!-- end header -->
+
+<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
+<tr>
+
+<!-- left side and logo column -->
+<td align="left" valign="top" height="100"><img src="images/oacs_logo.jpg" height="96" width="198"></td>
+
+<!-- MARGIN -->
+<td align="left" valign="top" rowspan="3"><img src="images/spacer.gif" height="1" width="20" alt=""></td>
+
+
+<!-- main text area - MAIN TEXT -->
+<td align="left" valign="top" rowspan="3">
+<br><br>
+<span class="three">What Is OpenACS?<br></span> <span class="reg">text main intro text main <a href="/">intro text main</a> 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 <a href="/">int ro text main</a> 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 </span>
+<br><br><br>
+<span class="three">Where can i get OpenACS?<br></span> <span class="reg">text main intr o te xt main intro text main intro text main intro text main intro tex t  main intro text ma in <a href="/">intro text main</a> 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 <a href="/">intro tex t main</a> 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 </span>
+<br><br><br>
+<span class="three">Who's afraid of OpenACS?<br></span> <span class="reg">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 <a href="/">intro text main</a>, <a href="/">intro text main</a> intro text main intro text </span>
+<br><br><br>
+
+<!-- search search search -->
+<TABLE WIDTH="210" align="center" bordercolor="#33ccff" BORDER="1" CELLSPACING="0" CELLPADDING="0" 
+bgcolor="#CCCCCC">
+<tr>
+<td align="center" valign="bottom">
+<form name="fake"><br>
+<span class="footer"><b>search site</b> <input type="text" size="15"><br><br></span>
+</form></td>
+</tr>
+</table>
+<!-- end search -->
+<br>
+
+</td>
+
+<!-- MARGIN -->
+<td align="left" valign="top" rowspan="3"><img src="images/spacer.gif" height="1" width="18" alt=""></td>
+
+<!-- log in and right column -->
+<td align="right" valign="top" height="100">
+<form name="fake">
+<span class="light"><br><b>log in</b>&nbsp;<input type="text" size="12"><br>
+<br>
+<b>password</b>&nbsp;<input type="text" size="12"></span>
+</form>
+<a href="#"><span class="blue"> >> download OpenACS</span></a></td>
+
+</tr>
+
+<tr>
+<td align="left" valign="top" height="15"><img src="images/spacer.gif" height="15" width="1"></td>
+<td align="left" valign="top" height="15"><img src="images/spacer.gif" height="15" width="1"></td>
+</tr>
+
+<tr>
+<!-- left side cell -->
+<td align="left" valign="top" WIDTH="210">
+
+<!-- nested left side table -->
+
+<TABLE WIDTH="210" BORDER="0" CELLSPACING="0" CELLPADDING="0">
+<tr>
+<td align="left" valign="top" bgcolor="#33ccff"><img src="images/spacer.gif" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#33ccff"><span class="three">featuring...</span></td>
+
+<td align="left" valign="top" bgcolor="#33ccff"><img src="images/spacer.gif" height="1" width="8"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#999999" colspan="3"><img src="images/line.gif" height="2" width="210"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#cccccc"><img src="images/spacer.gif" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#cccccc">
+<img src="images/spacer.gif" height="8" width="200"><br clear="left">
+
+<span class="reg"><a target="newwindow" href="http://www.furfly.net"><img src="images/furfly_logo.gif" height="73" width="59" align="left" border="0" alt="Furfly.net" hspace="5" vspace="1"></a>
+<a target="newwindow" href="http://www.furfly.net"><span class="pink">Furfly</span></a> 
+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 <a target="newwindow" href="http://www.furfly.net">www.furfly.net</a><br><br><br>
+
+<span class="pink">Why Not MySQL?</span><br>
+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<br><br>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<br><br><br><br>
+
+</span>
+
+
+
+</td>
+
+<td align="left" valign="top" bgcolor="#cccccc"><img src="images/spacer.gif" height="1" width="8"></td>
+
+</tr>
+</table>
+</td>
+<!-- end left side cell -->
+
+<!-- right side cell -->
+<td align="left" valign="top" WIDTH="210">
+
+<!-- nested right side table -->
+
+<TABLE WIDTH="210" BORDER="0" CELLSPACING="0" CELLPADDING="0">
+<tr>
+
+<td align="left" valign="top" bgcolor="#33ccff"><img src="images/spacer.gif" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#33ccff"><span class="three">recent postings...</span></td>
+
+<td align="left" valign="top" bgcolor="#33ccff"><img src="images/spacer.gif" height="1" width="8"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#999999" colspan="3"><img src="images/line.gif" height="2" width="210"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#cccccc"><img src="images/spacer.gif" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#cccccc">
+<img src="images/spacer.gif" height="8" width="200"><br clear="left">
+
+<span class="reg">
+
+text main intro text main intro text main intro
+<br>
+<br>
+text main intro text main introt ext main intc ro text mai 
+<br>
+<br>
+n intro te t main int ro text ma in intr o tex t main 
+<br>
+<br>
+ntro text main int ro text main intro 
+<br>
+<br>
+
+</span></td>
+
+<td align="left" valign="top" bgcolor="#cccccc"><img src="images/spacer.gif" height="1" width="8"></td>
+
+</tr>
+
+<tr>
+<td align="left" valign="top" bgcolor="#ffffff" colspan="3"><img src="images/spacer.gif" height="15" width="210"></td>
+</tr>
+
+<tr>
+
+<td align="left" valign="top" bgcolor="#33ccff"><img src="images/spacer.gif" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#33ccff"><span class="three">news...</span></td>
+
+<td align="left" valign="top" bgcolor="#33ccff"><img src="images/spacer.gif" height="1" width="8"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#999999" colspan="3"><img src="images/line.gif" height="2" width="210"></td>
+
+</tr>
+<tr>
+
+<td align="left" valign="top" bgcolor="#cccccc"><img src="images/spacer.gif" height="1" width="8"></td>
+
+<td align="left" valign="top" bgcolor="#cccccc">
+<img src="images/spacer.gif" height="8" width="200"><br clear="left">
+
+<span class="reg">
+
+text main intro text main intro text main intro
+<br>
+<br>
+text main intro text main introt ext main intc ro text mai 
+<br>
+<br>
+n intro te t main int ro text ma in intr o tex t main 
+<br>
+<br>
+ntro text main int ro text main intro 
+<br>
+<br>
+
+</span></td>
+
+<td align="left" valign="top" bgcolor="#cccccc"><img src="images/spacer.gif" height="1" width="8"></td>
+
+</tr>
+
+</table>
+</td>
+<!-- end right side cell -->
+
+</table>
+
+
+<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="0">
+
+<tr>
+<td align="right" valign="top" colspan="6" bgcolor="#ffffff"><img src="images/spacer.gif" height="10" width="600"></td>
+</tr>
+
+<tr>
+<td align="right" valign="top" colspan="6" bgcolor="#999999"><img src="images/spacer.gif" height="1" width="600"></td>
+</tr>
+<tr>
+<td align="left" valign="top" colspan="6"><span class="footer">This site is maintained by the Open ACS Community. Any problems, email <a href="mailto:webmaster@openacs.org">webmaster@openacs.org</a>.<br><br></span></td>
+
+</TR>
+</TABLE>
+
+
+
+</body>
+</html>
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