head	1.14;
access;
symbols
	dlr:1.1.1
	TIGRIS_0_9_2_4:1.3.2.1
	TIGRIS_0_9_2_3:1.3
	HELM_PEER_PORT_BRANCH:1.1.1.2
	TURBINE_PEER:1.6
	TIGRIS_0_9_2_1:1.6
	TIGRIS_0_9_2:1.3.0.2
	TIGRIS_0_9_0:1.1.1.1.0.4
	TIGRIS_0_8_4:1.1.1.1.0.2
	NEWHELM:1.1.1.1
	TIGRIS_NOV_12_2000:1.1.1;
locks; strict;
comment	@# @;


1.14
date	2001.02.28.22.16.48;	author elicia;	state dead;
branches;
next	1.13;

1.13
date	2001.02.21.01.08.31;	author dlr;	state Exp;
branches;
next	1.12;

1.12
date	2001.02.15.19.55.11;	author susank;	state Exp;
branches;
next	1.11;

1.11
date	2001.02.02.22.45.23;	author elicia;	state Exp;
branches;
next	1.10;

1.10
date	2001.02.01.17.54.19;	author jrobbins;	state Exp;
branches;
next	1.9;

1.9
date	2001.02.01.01.18.33;	author elicia;	state Exp;
branches;
next	1.8;

1.8
date	2001.01.31.22.43.24;	author elicia;	state Exp;
branches;
next	1.7;

1.7
date	2001.01.30.02.35.30;	author elicia;	state Exp;
branches;
next	1.6;

1.6
date	2001.01.27.02.18.11;	author elicia;	state Exp;
branches
	1.6.2.1;
next	1.5;

1.5
date	2001.01.26.23.50.38;	author elicia;	state Exp;
branches;
next	1.4;

1.4
date	2001.01.23.02.38.53;	author elicia;	state Exp;
branches;
next	1.3;

1.3
date	2001.01.07.18.24.42;	author jrobbins;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	2000.12.30.05.07.36;	author elicia;	state Exp;
branches;
next	1.1;

1.1
date	2000.11.12.21.18.19;	author dlr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.11.12.21.18.19;	author dlr;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.02.21.00.36.58;	author dlr;	state Exp;
branches;
next	;

1.3.2.1
date	2001.02.01.18.49.25;	author jrobbins;	state Exp;
branches;
next	;

1.6.2.1
date	2001.01.31.02.05.51;	author leonardr;	state Exp;
branches;
next	1.6.2.2;

1.6.2.2
date	2001.02.12.17.20.31;	author leonardr;	state Exp;
branches;
next	1.6.2.3;

1.6.2.3
date	2001.02.12.18.05.58;	author leonardr;	state Exp;
branches;
next	1.6.2.4;

1.6.2.4
date	2001.02.15.21.56.24;	author elicia;	state dead;
branches;
next	1.6.2.5;

1.6.2.5
date	2001.02.17.20.11.18;	author leonardr;	state Exp;
branches;
next	1.6.2.6;

1.6.2.6
date	2001.02.20.22.35.48;	author leonardr;	state Exp;
branches;
next	;


desc
@@


1.14
log
@rename to ProjectdocumentList
@
text
@<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="85%">
  <TR>
    <TD class="Header" nowrap>Project Documents: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
	#if ($acl.hasPermission("Project Document - Approve", $currentProject))
	{
    <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectDocumentAdd")">Add New Document</a> | <A HREF="$currentProject.getProjectPageURL("ProjectSectionAdd")">Add New Section</a></TD>
    } #else {
        #if ($acl.hasPermission("Project Document - Suggest", $currentProject))
        {
    <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectDocumentAdd")">Suggest New Document</a> | <A HREF="$currentProject.getProjectPageURL("ProjectSectionAdd")">Suggest New Section</a></TD>
        }
    }
       
  </TR>
</TABLE>

#set $topDocuments = $currentProject.getTopLevelDocuments()
#set $topSections = $currentProject.getSections()
#if (!$topSections.isEmpty())
{
    #set $thereAreSections = true
}
#if (!$topDocuments.isEmpty())
{
    #set $thereAreDocuments = true
}

#if ($thereAreDocuments || $thereAreSections)
{

#if ($acl.hasPermission("Project Document - Edit", $currentProject))
{
  #set $canEdit = true
}
#if ($acl.hasPermission("Project Document - Approve", $currentProject))
{
  #set $canApprove = true
}
<P>
<TABLE WDITH="100%" CELLSPACING="0" CELLPADDING="2" BORDER="0">

  <TR>
    <TD CLASS="InputHeader" VALIGN="top">Table of Contents:</TD>
  </TR>
</TABLE>
<P>
<TABLE CELLSPACING="0" CELLPADDING="2" BORDER="0" width="85%">

         #if (!$topDocuments.isEmpty())
         {
            #foreach $document in $topDocuments
            {
              #set $suggestedByUser = false
              #if ($document.getProposedByUser().getID().equals($acl.getUserID())) 
              {
                 #set $suggestedByUser = true
              }
               <TR>
                 #if ($document.isApproved())
                 {
		         <TD class="PlainText"><IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
                 } #else {
                   #if ($canApprove)
                   {
                    <TD class="PlainText"><IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")"><font color="red">Pending Approval</a>:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
                   } #else {
                     #if ($suggestedByUser)
                     {
                    <TD class="PlainText"><IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
                     }
                   }
                 }
                 #if ($canEdit || $suggestedByUser)
                 {
                    #set $editURL = $currentProject.getProjectPageURL("ProjectDocumentEdit", "documentID=$document.getID()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getID()")
                    <TD class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                 }
               </TR>
                <TR>
                 <TD COLSPAN="3">
                  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
                   <TR>
                    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
                   </TR>
                  </TABLE>
                 </TD>
                </TR>

            }
         }

         #if (!$topSections.isEmpty())
         {
            #foreach $section in $topSections
            {
              #set $suggestedByUser = false
              #if ($section.getProposedByUser().getID().equals($acl.getUserID())) 
              {
                 #set $suggestedByUser = true
              }
               <TR>
                 #if ($section.isApproved())
                 {
		         <TD class="PlainText"><IMG SRC="$schemeAndDomain;/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<B>$section.getName()</B>
#if ($section.getDescription() && !$section.getDescription().equals(""))
{
 : $section.getDescription()
}
</B></TD>
                 } #else {
                   #if ($canApprove)
                   {
                     <TD class="PlainText"><font color="red"><IMG SRC="$schemeAndDomain;/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font><B>$section.getName()</B>
#if ($section.getDescription() && !$section.getDescription().equals(""))
{
 : $section.getDescription()
}
</B></TD>
                  } #else {
                     #if ($suggestedByUser)
                     {
                     <TD class="PlainText"><font color="red"><IMG SRC="$schemeAndDomain;/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B> $section.getName()</B>
#if ($section.getDescription() && !$section.getDescription().equals(""))
{
 : $section.getDescription()
}
</B></TD>
                     }
                  }
          
                 }
                 #if ($canEdit || $suggestedByUser)
                 {
                    #set $editURL = $currentProject.getProjectPageURL("ProjectSectionEdit", "sectionID=$section.getID()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectSectionDelete", "sectionID=$section.getID()")
                    <TD  class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                 }
               </TR>
                <TR>
                 <TD COLSPAN="3">
                  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
                   <TR>
                    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
                   </TR>
                  </TABLE>
                 </TD>
                </TR>
                #set $documents = $section.getDocuments()
                #if (!$documents.isEmpty())
                {
                  #foreach $document in $documents
                  {
                     #set $suggestedByUser = false
                     #if ($document.getProposedByUser().getID().equals($acl.getUserID())) 
                     {
                        #set $suggestedByUser = true
                     }
                  <TR>
                 #if ($document.isApproved())
                 {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
                 } #else {
                   #if ($canApprove)
                   {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16"><font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font><A HREF="$document.getLink($currentProject)">$document.getName()</A> 
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
: $document.getDescription()
}
</TD>
                   } #else {
                     #if ($suggestedByUser)
                     {
                    <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)"> $document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
                     }
                   }
                  }
                  #if ($canEdit || $suggestedByUser)
                  {
                    #set $editURL = $currentProject.getProjectPageURL("ProjectDocumentEdit", "documentID=$document.getID()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getID()")
                    <TD  class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                 }
                  </TR>
                <TR>
                 <TD COLSPAN="3">
                  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
                   <TR>
                    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
                   </TR>
                  </TABLE>
                 </TD>
                </TR>
                  }
                }
                #set $subsections = $section.getSubsections()
                #if (!$subsections.isEmpty())
                {
                  #foreach $subsection in $subsections
                  {
                     #set $suggestedByUser = false
                     #if ($subsection.getProposedByUser().getID().equals($acl.getUserID())) 
                     {
                        #set $suggestedByUser = true
                     }
                  <TR>
                 #if ($subsection.isApproved())
                 {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="$schemeAndDomain;/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<B>$subsection.getName()</B>
#if ($subsection.getDescription() && !$subsection.getDescription().equals(""))
{
: $subsection.getDescription()
}
</B></TD>
                 } #else {
                   #if ($canApprove)
                   {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="$schemeAndDomain;/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font> <B>$subsection.getName()</B>
#if ($subsection.getDescription() && !$subsection.getDescription().equals(""))
{
: $subsection.getDescription()
}
</B></TD>
                   } #else {
                     #if ($suggestedByUser)
                     {
                     <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="$schemeAndDomain;/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B> $subsection.getName()</B>
#if ($subsection.getDescription() && !$subsection.getDescription().equals(""))
{
 : $subsection.getDescription()
}
</B></TD>
                     }
                   }
                 }
                   #if ($canEdit || $suggestedByUser)
                   {
                    #set $editURL = $currentProject.getProjectPageURL("ProjectSectionEdit", "sectionID=$subsection.getID()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectSectionDelete", "sectionID=$subsection.getID()")
                    <TD  class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                   }
                  </TR>
                <TR>
                 <TD COLSPAN="3">
                  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
                   <TR>
                    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
                   </TR>
                  </TABLE>
                 </TD>
                </TR>
                  #set $documents = $subsection.getDocuments()
                  #if (!$documents.isEmpty())
                  { 
                    #foreach $document in $documents
                    {
                     #set $suggestedByUser = false
                     #if ($document.getProposedByUser().getID().equals($acl.getUserID())) 
                     {
                        #set $suggestedByUser = true
                     }
                      <TR>
                         #if ($document.isApproved())
                         {
		               <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
                         } #else {
                           #if ($canApprove)
                           {
		                      <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font><IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
                           } #else {
                             #if ($suggestedByUser)
                             {
                             <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;Pending Approval</a>:</font><B> $document.getName()</B>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</B></TD>
                             }
                           }
                         } 
                         #if ($canEdit || $suggestedByUser)
                         {
                           #set $editURL = $currentProject.getProjectPageURL("ProjectDocumentEdit", "documentID=$document.getID()")
                           #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getID()")
                           <TD  class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                         }
                      </TR>
                <TR>
                 <TD COLSPAN="3">
                  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
                   <TR>
                    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
                   </TR>
                  </TABLE>
                 </TD>
                </TR>
                    }
                   }
                 }
               }
           }            
        }
</TABLE>
} #else {
<P>
<TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="2" BORDER="0">
<TR>
 <TD>
  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
   <TR>
    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
   </TR>
  </TABLE>
 </TD>
</TR>

<TR>
 <TD class="PlainText" >
 <i>There are no documents for this project.</i>
</TR>

<TR>
 <TD>
  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
   <TR>
    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
   </TR>
  </TABLE>
 </TD>
</TR>
</TABLE>
}
@


1.13
log
@This is the highest revision from the HELM_PEER_PORT_BRANCH.  The previous import caused too many conflicts to resolve manually
@
text
@@


1.12
log
@updated URLs for new HelpTOC, added wm string to create fully qualified paths for images
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d4 1
a4 1
	#if ($acl.hasPermissionForProject("Project Document - Approve", $currentProject.getID()))
d8 1
a8 1
        #if ($acl.hasPermissionForProject("Project Document - Suggest", $currentProject.getID()))
d31 1
a31 1
#if ($acl.hasPermissionForProject("Project Document - Edit", $currentProject.getID()))
d35 1
a35 1
#if ($acl.hasPermissionForProject("Project Document - Approve", $currentProject.getID()))
d54 1
a54 1
              #if ($document.getSuggestedBy().getID().equals($acl.getUserID())) 
d113 1
a113 1
              #if ($section.getSuggestedBy().getID().equals($acl.getUserID())) 
d170 1
a170 1
                     #if ($document.getSuggestedBy().getID().equals($acl.getUserID())) 
d228 1
a228 1
                     #if ($subsection.getSuggestedBy().getID().equals($acl.getUserID())) 
d284 1
a284 1
                     #if ($document.getSuggestedBy().getID().equals($acl.getUserID())) 
@


1.11
log
@fixed spacing
@
text
@d61 1
a61 1
		         <TD class="PlainText"><IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A>
d70 1
a70 1
                    <TD class="PlainText"><IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")"><font color="red">Pending Approval</a>:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A>
d79 1
a79 1
                    <TD class="PlainText"><IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A>
d120 1
a120 1
		         <TD class="PlainText"><IMG SRC="/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<B>$section.getName()</B>
d129 1
a129 1
                     <TD class="PlainText"><font color="red"><IMG SRC="/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font><B>$section.getName()</B>
d138 1
a138 1
                     <TD class="PlainText"><font color="red"><IMG SRC="/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B> $section.getName()</B>
d177 1
a177 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A>
d186 1
a186 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16"><font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font><A HREF="$document.getLink($currentProject)">$document.getName()</A> 
d195 1
a195 1
                    <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)"> $document.getName()</A>
d235 1
a235 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<B>$subsection.getName()</B>
d244 1
a244 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font> <B>$subsection.getName()</B>
d253 1
a253 1
                     <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B> $subsection.getName()</B>
d291 1
a291 1
		               <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A>
d300 1
a300 1
		                      <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font><IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A>
d309 1
a309 1
                             <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;Pending Approval</a>:</font><B> $document.getName()</B>
@


1.10
log
@applied style to Edit | Delete links, made : be conditional on description existence
@
text
@d138 1
a138 1
                     <TD class="PlainText"><font color="red"><IMG SRC="/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B>$section.getName()</B>
d195 1
a195 1
                    <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A>
d253 1
a253 1
                     <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B>$subsection.getName()</B>
d309 1
a309 1
                             <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;Pending Approval</a>:</font><B>$document.getName()</B>
@


1.9
log
@fixed CSS class for links
@
text
@d61 6
a66 1
		         <TD class="PlainText"><IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d70 6
a75 1
                    <TD class="PlainText"><IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")"><font color="red">Pending Approval</a>:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d79 6
a84 1
                    <TD class="PlainText"><IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d120 6
a125 1
		         <TD class="PlainText"><IMG SRC="/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<B>$section.getName()</B> : $section.getDescription()</B></TD>
d129 6
a134 1
                     <TD class="PlainText"><font color="red"><IMG SRC="/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font><B>$section.getName()</B> : $section.getDescription()</B></TD>
d138 6
a143 1
                     <TD class="PlainText"><font color="red"><IMG SRC="/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B>$section.getName()</B> : $section.getDescription()</B></TD>
d152 1
a152 1
                    <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
d177 6
a182 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d186 6
a191 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16"><font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font><A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d195 6
a200 1
                    <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d208 1
a208 1
                    <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
d235 6
a240 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<B>$subsection.getName()</B>: $subsection.getDescription()</B></TD>
d244 6
a249 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font> <B>$subsection.getName()</B>: $subsection.getDescription()</B></TD>
d253 6
a258 1
                     <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B>$subsection.getName()</B> : $subsection.getDescription()</B></TD>
d266 1
a266 1
                    <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
d291 6
a296 1
		               <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d300 6
a305 1
		                      <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font><IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d309 6
a314 1
                             <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;Pending Approval</a>:</font><B>$document.getName()</B> : $document.getDescription()</B></TD>
d322 1
a322 1
                           <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
@


1.8
log
@added "There are no documents" message

fixed linked spaces
@
text
@d163 1
a163 1
                    <TD class="StatText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
@


1.7
log
@now pre-selected data entered prior to an error
@
text
@d17 14
d40 1
a40 1
<TABLE CELLSPACING="0" CELLPADDING="2" BORDER="0">
d46 1
a46 1

a48 1
         #set $topDocuments = $currentProject.getTopLevelDocuments()
d61 1
a61 1
		         <TD class="PlainText"><A HREF="$document.getLink($currentProject)"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;$document.getName()</A> : $document.getDescription()</TD>
d65 1
a65 1
                    <TD class="PlainText"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval</a>:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d69 1
a69 1
                    <TD class="PlainText"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d77 1
a77 1
                    <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
a92 1
         #set $topSections = $currentProject.getSections()
d105 1
a105 1
		         <TD class="PlainText"><IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;<B>$section.getName()</B> : $section.getDescription()</B></TD>
d109 1
a109 1
                     <TD class="PlainText"><font color="red"><IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;<a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font><B>$section.getName()</B> : $section.getDescription()</B></TD>
d113 1
a113 1
                     <TD class="PlainText"><font color="red"><IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B>$section.getName()</B> : $section.getDescription()</B></TD>
d147 1
a147 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/page.gif" border="0" width="16" height="16"><A HREF="$document.getLink($currentProject)">&nbsp;$document.getName()</A> : $document.getDescription()</TD>
d151 1
a151 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/page.gif" border="0" width="16" height="16"><font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font><A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d155 1
a155 1
                    <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d163 1
a163 1
                    <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
d190 1
a190 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;<B>$subsection.getName()</B>: $subsection.getDescription()</B></TD>
d194 1
a194 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font> <B>$subsection.getName()</B>: $subsection.getDescription()</B></TD>
d198 1
a198 1
                     <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="/branding/images/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B>$subsection.getName()</B> : $subsection.getDescription()</B></TD>
d231 1
a231 1
		               <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="$document.getLink($currentProject)"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;$document.getName()</A> : $document.getDescription()</TD>
d235 1
a235 1
		                      <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font> <A HREF="$document.getLink($currentProject)"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;$document.getName()</A> : $document.getDescription()</TD>
d239 1
a239 1
                             <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;Pending Approval</a>:</font><B>$document.getName()</B> : $document.getDescription()</B></TD>
d266 29
@


1.6
log
@added checks for suggestedBy - user who suggests documents can edit them before they are approved
@
text
@a35 1

@


1.6.2.1
log
@Converted permission checking somewhat.
@
text
@d4 1
a4 1
	#if ($acl.hasPermissionForProject("Project Document - Approve", $currentProject))
d8 1
a8 1
        #if ($acl.hasPermissionForProject("Project Document - Suggest", $currentProject))
d17 1
a17 1
#if ($acl.hasPermissionForProject("Project Document - Edit", $currentProject))
d21 1
a21 1
#if ($acl.hasPermissionForProject("Project Document - Approve", $currentProject))
@


1.6.2.2
log
@Got rid of calls to deprecated permission checking methods.
@
text
@d4 1
a4 1
	#if ($acl.hasPermission("Project Document - Approve", $currentProject))
d8 1
a8 1
        #if ($acl.hasPermission("Project Document - Suggest", $currentProject))
d17 1
a17 1
#if ($acl.hasPermission("Project Document - Edit", $currentProject))
d21 1
a21 1
#if ($acl.hasPermission("Project Document - Approve", $currentProject))
@


1.6.2.3
log
@Changed calls to getUserID to calls to getID
@
text
@d42 1
a42 1
              #if ($document.getSuggestedBy().getID().equals($acl.getID())) 
d87 1
a87 1
              #if ($section.getSuggestedBy().getID().equals($acl.getID())) 
d129 1
a129 1
                     #if ($document.getSuggestedBy().getID().equals($acl.getID())) 
d172 1
a172 1
                     #if ($subsection.getSuggestedBy().getID().equals($acl.getID())) 
d213 1
a213 1
                     #if ($document.getSuggestedBy().getID().equals($acl.getID())) 
@


1.6.2.4
log
@changed name to ProjectDocumentList
@
text
@@


1.6.2.5
log
@Ported changes from head.
@
text
@a16 14
#set $topDocuments = $currentProject.getTopLevelDocuments()
#set $topSections = $currentProject.getSections()
#if (!$topSections.isEmpty())
{
    #set $thereAreSections = true
}
#if (!$topDocuments.isEmpty())
{
    #set $thereAreDocuments = true
}

#if ($thereAreDocuments || $thereAreSections)
{

d26 1
a26 1
<TABLE WDITH="100%" CELLSPACING="0" CELLPADDING="2" BORDER="0">
d32 1
a32 1
<P>
d35 2
d42 1
a42 1
              #if ($document.getSuggestedBy().getID().equals($acl.getUserID())) 
d49 1
a49 6
		         <TD class="PlainText"><IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
d53 1
a53 6
                    <TD class="PlainText"><IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")"><font color="red">Pending Approval</a>:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
d57 1
a57 6
                    <TD class="PlainText"><IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
d65 1
a65 1
                    <TD class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
d81 1
d87 1
a87 1
              #if ($section.getSuggestedBy().getID().equals($acl.getUserID())) 
d94 1
a94 6
		         <TD class="PlainText"><IMG SRC="$schemeAndDomain;/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<B>$section.getName()</B>
#if ($section.getDescription() && !$section.getDescription().equals(""))
{
 : $section.getDescription()
}
</B></TD>
d98 1
a98 6
                     <TD class="PlainText"><font color="red"><IMG SRC="$schemeAndDomain;/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font><B>$section.getName()</B>
#if ($section.getDescription() && !$section.getDescription().equals(""))
{
 : $section.getDescription()
}
</B></TD>
d102 1
a102 6
                     <TD class="PlainText"><font color="red"><IMG SRC="$schemeAndDomain;/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B> $section.getName()</B>
#if ($section.getDescription() && !$section.getDescription().equals(""))
{
 : $section.getDescription()
}
</B></TD>
d111 1
a111 1
                    <TD  class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
d129 1
a129 1
                     #if ($document.getSuggestedBy().getID().equals($acl.getUserID())) 
d136 1
a136 6
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
d140 1
a140 6
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16"><font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font><A HREF="$document.getLink($currentProject)">$document.getName()</A> 
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
: $document.getDescription()
}
</TD>
d144 1
a144 6
                    <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)"> $document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
d152 1
a152 1
                    <TD  class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
d172 1
a172 1
                     #if ($subsection.getSuggestedBy().getID().equals($acl.getUserID())) 
d179 1
a179 6
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="$schemeAndDomain;/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<B>$subsection.getName()</B>
#if ($subsection.getDescription() && !$subsection.getDescription().equals(""))
{
: $subsection.getDescription()
}
</B></TD>
d183 1
a183 6
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="$schemeAndDomain;/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font> <B>$subsection.getName()</B>
#if ($subsection.getDescription() && !$subsection.getDescription().equals(""))
{
: $subsection.getDescription()
}
</B></TD>
d187 1
a187 6
                     <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="$schemeAndDomain;/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B> $subsection.getName()</B>
#if ($subsection.getDescription() && !$subsection.getDescription().equals(""))
{
 : $subsection.getDescription()
}
</B></TD>
d195 1
a195 1
                    <TD  class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
d213 1
a213 1
                     #if ($document.getSuggestedBy().getID().equals($acl.getUserID())) 
d220 1
a220 6
		               <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
d224 1
a224 6
		                      <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font><IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
d228 1
a228 6
                             <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;Pending Approval</a>:</font><B> $document.getName()</B>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</B></TD>
d236 1
a236 1
                           <TD  class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
a254 29
} #else {
<P>
<TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="2" BORDER="0">
<TR>
 <TD>
  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
   <TR>
    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
   </TR>
  </TABLE>
 </TD>
</TR>

<TR>
 <TD class="PlainText" >
 <i>There are no documents for this project.</i>
</TR>

<TR>
 <TD>
  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
   <TR>
    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
   </TR>
  </TABLE>
 </TD>
</TR>
</TABLE>
}
@


1.6.2.6
log
@Corrected method name.
@
text
@d54 1
a54 1
              #if ($document.getProposedByUser().getID().equals($acl.getUserID())) 
d113 1
a113 1
              #if ($section.getProposedByUser().getID().equals($acl.getUserID())) 
d170 1
a170 1
                     #if ($document.getProposedByUser().getID().equals($acl.getUserID())) 
d228 1
a228 1
                     #if ($subsection.getProposedByUser().getID().equals($acl.getUserID())) 
d284 1
a284 1
                     #if ($document.getProposedByUser().getID().equals($acl.getUserID())) 
@


1.5
log
@added Pending message for unapproved documents

added icons
@
text
@d4 1
a4 1
	#if ($acl.hasPermissionForProject("Project Document - Suggest", $currentProject.getID()))
d6 6
a11 2
    <TD ALIGN="right" class="ProjectName">
<A HREF="$currentProject.getProjectPageURL("ProjectDocumentAdd")">Add New Document</a> | <A HREF="$currentProject.getProjectPageURL("ProjectSectionAdd")">Add New Section</a></TD>
d13 1
d86 5
d99 7
a105 1
                   }
d107 1
a107 1
                 #if ($canEdit)
d128 5
d136 1
a136 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="$document.getLink($currentProject)"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">&nbsp;$document.getName()</A> : $document.getDescription()</TD>
d140 6
a145 1
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font><A HREF="$document.getLink($currentProject)"><IMG SRC="/branding/images/page.gif" border="0" width="16" height="16">$document.getName()</A> : $document.getDescription()</TD>
d148 1
a148 1
                  #if ($canEdit)
d171 5
d184 5
d191 1
a191 1
                   #if ($canEdit)
d212 5
d225 5
d231 2
a232 2
                         }
                         #if ($canEdit)
a253 1

a254 20

<P><BR>
Comments:</P>

<UL>
	<LI>Buttons are only labeled &quot;Add&quot; if user has permissions, otherwise they are &quot;suggest&quot;
	<UL>
		<LI>Should there be a way to suggest removal? yes. &quot;Delete Document&quot; -&gt; &quot;Suggest Removal&quot;
	</UL>
	<LI>this servlet replaces PROJECTNAME/www/project_docs.html, if that file does not exist
	<LI>TODO: define way to reorder or reorganize files
	<LI>pending line only shown if items are pending
	<LI>future: maybe automatically manage formats for uploaded files, e.g. view word document as .doc, .html. .txt,
	or .pdf
</UL>


</BODY>

</HTML>
@


1.4
log
@checking for approval status of documents
@
text
@d7 1
a7 1
<A HREF="$currentProject.getProjectPageURL("ProjectDocumentAdd")">Add a Document</a> | <A HREF="$currentProject.getProjectPageURL("ProjectSectionAdd")">Add a Section</a></TD>
d36 5
a40 2
               #set $location = $document.getLocation()
              
d44 1
a44 1
		         <TD class="PlainText" colspan="3"><A HREF="$document.getLink($currentProject)">$document.getName()</A> : $document.getDescription()</TD>
d48 6
a53 1
                    <TD class="PlainText" colspan="3"><font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font> <A HREF="$document.getLink()">$document.getName()</A> : $document.getDescription()</TD>
d56 1
a56 1
                 #if ($canEdit)
d63 10
d84 1
a84 1
		         <TD class="PlainText" colspan="3">$section.getName()</B> : $section.getDescription()</B></TD>
d88 1
a88 1
                     <TD class="PlainText" colspan="3"><font color="red"><a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font>$section.getName()</B> : $section.getDescription()</B></TD>
d98 9
a112 1
                   <TD width="10">&nbsp;</TD>
d115 1
a115 1
		           <TD class="PlainText" colspan="2"><li><A HREF="$document.getLink()">$document.getName()</A> : $document.getDescription()</TD>
d119 1
a119 1
		           <TD class="PlainText" colspan="2"><li><font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font><A HREF="$document.getLink()">$document.getName()</A> : $document.getDescription()</TD>
d129 9
a145 1
                   <TD width="10">&nbsp;</TD>
d148 1
a148 1
		           <TD class="PlainText"  colspan="2"><li><B>$subsection.getName()</B>: $subsection.getDescription()</B></TD>
d152 1
a152 1
		           <TD class="PlainText"  colspan="2"><li><font color="red"><a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font> <B>$subsection.getName()</B>: $subsection.getDescription()</B></TD>
d162 9
a176 2
                       <TD width="10">&nbsp;</TD>
                       <TD width="10">&nbsp;</TD>
d179 1
a179 1
		               <TD class="PlainText"><li><A HREF="$document.getLink()">$document.getName()</A> : $document.getDescription()</TD>
d183 1
a183 1
		                      <TD class="PlainText"><li><font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font> <A HREF="$document.getLink()">$document.getName()</A> : $document.getDescription()</TD>
d193 9
@


1.3
log
@applied a little style
@
text
@d7 1
a7 1
<A HREF="$currentProject.getProjectPageURL("ProjectDocumentAdd")">Add a Document</a> | <A HREF="$currentProject.getProjectPageURL("ProjectDocumentSectionAdd")">Add a Section</a></TD>
d16 4
a19 1

d31 1
d36 2
d39 9
a47 1
		         <TD class="PlainText" colspan="3"><A HREF="$document.getLocation()">$document.getName()</A> : $document.getDescription()</TD>
d51 2
a52 1
                    <TD class="StatText"><A HREF = "$editURL">Edit</A> | <A HREF = "$currentProject.getProjectPageURL("ProjectDocumentDelete")">Delete</A></TD>
d64 9
a72 1
		         <TD class="PlainText" colspan="3"><B>$section.getName()</B> : $section.getDescription()</TD>
d76 2
a77 1
                    <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$currentProject.getProjectPageURL("ProjectDocumentDelete")">Delete</A></TD>
d87 9
a95 1
		           <TD class="PlainText" colspan="2"><li><A HREF="$document.getLocation()">$document.getName()</A> : $document.getDescription()</TD>
d99 2
a100 1
                    <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$currentProject.getProjectPageURL("ProjectDocumentDelete")">Delete</A></TD>
d112 9
a120 1
		           <TD class="PlainText"  colspan="2"><li><B>$subsection.getName()</B>: $subsection.getDescription()</TD>
d123 3
a125 2
                    #set $editURL = $currentProject.getProjectPageURL("ProjectSectionEdit", "sectionID=$section.getID()")
                    <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$currentProject.getProjectPageURL("ProjectDocumentDelete")">Delete</A></TD>
d136 9
a144 1
		               <TD class="PlainText"><li><A HREF="$document.getLocation()">$document.getName()</A> : $document.getDescription()</TD>
d148 2
a149 1
                           <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$currentProject.getProjectPageURL("ProjectDocumentDelete")">Delete</A></TD>
a169 1
	<LI>fonts and colors are determined by stylesheet
a170 2
	<LI>TODO: define database representation of TOC and documents
	<LI>TODO: define approval status in database
@


1.3.2.1
log
@moved changed from HEAD for ProjectDocuments and ProjectDownloads
@
text
@d4 1
a4 1
	#if ($acl.hasPermissionForProject("Project Document - Approve", $currentProject.getID()))
d6 2
a7 6
    <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectDocumentAdd")">Add New Document</a> | <A HREF="$currentProject.getProjectPageURL("ProjectSectionAdd")">Add New Section</a></TD>
    } #else {
        #if ($acl.hasPermissionForProject("Project Document - Suggest", $currentProject.getID()))
        {
    <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectDocumentAdd")">Suggest New Document</a> | <A HREF="$currentProject.getProjectPageURL("ProjectSectionAdd")">Suggest New Section</a></TD>
        }
a8 1
       
a11 14
#set $topDocuments = $currentProject.getTopLevelDocuments()
#set $topSections = $currentProject.getSections()
#if (!$topSections.isEmpty())
{
    #set $thereAreSections = true
}
#if (!$topDocuments.isEmpty())
{
    #set $thereAreDocuments = true
}

#if ($thereAreDocuments || $thereAreSections)
{

d16 1
a16 4
#if ($acl.hasPermissionForProject("Project Document - Approve", $currentProject.getID()))
{
  #set $canApprove = true
}
d18 1
a18 1
<TABLE WDITH="100%" CELLSPACING="0" CELLPADDING="2" BORDER="0">
d24 1
a24 1
<P>
d27 1
a31 5
              #set $suggestedByUser = false
              #if ($document.getSuggestedBy().getID().equals($acl.getUserID())) 
              {
                 #set $suggestedByUser = true
              }
d33 2
a34 30
                 #if ($document.isApproved())
                 {
		         <TD class="PlainText"><IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
                 } #else {
                   #if ($canApprove)
                   {
                    <TD class="PlainText"><IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")"><font color="red">Pending Approval</a>:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
                   } #else {
                     #if ($suggestedByUser)
                     {
                    <TD class="PlainText"><IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
                     }
                   }
                 }
                 #if ($canEdit || $suggestedByUser)
d37 1
a37 2
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getID()")
                    <TD class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
a39 10
                <TR>
                 <TD COLSPAN="3">
                  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
                   <TR>
                    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
                   </TR>
                  </TABLE>
                 </TD>
                </TR>

d43 1
a47 5
              #set $suggestedByUser = false
              #if ($section.getSuggestedBy().getID().equals($acl.getUserID())) 
              {
                 #set $suggestedByUser = true
              }
d49 2
a50 31
                 #if ($section.isApproved())
                 {
		         <TD class="PlainText"><IMG SRC="/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<B>$section.getName()</B>
#if ($section.getDescription() && !$section.getDescription().equals(""))
{
 : $section.getDescription()
}
</B></TD>
                 } #else {
                   #if ($canApprove)
                   {
                     <TD class="PlainText"><font color="red"><IMG SRC="/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font><B>$section.getName()</B>
#if ($section.getDescription() && !$section.getDescription().equals(""))
{
 : $section.getDescription()
}
</B></TD>
                  } #else {
                     #if ($suggestedByUser)
                     {
                     <TD class="PlainText"><font color="red"><IMG SRC="/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B>$section.getName()</B>
#if ($section.getDescription() && !$section.getDescription().equals(""))
{
 : $section.getDescription()
}
</B></TD>
                     }
                  }
          
                 }
                 #if ($canEdit || $suggestedByUser)
d53 1
a53 2
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectSectionDelete", "sectionID=$section.getID()")
                    <TD  class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
a55 9
                <TR>
                 <TD COLSPAN="3">
                  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
                   <TR>
                    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
                   </TR>
                  </TABLE>
                 </TD>
                </TR>
a60 5
                     #set $suggestedByUser = false
                     #if ($document.getSuggestedBy().getID().equals($acl.getUserID())) 
                     {
                        #set $suggestedByUser = true
                     }
d62 3
a64 30
                 #if ($document.isApproved())
                 {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
                 } #else {
                   #if ($canApprove)
                   {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16"><font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font><A HREF="$document.getLink($currentProject)">$document.getName()</A> 
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
: $document.getDescription()
}
</TD>
                   } #else {
                     #if ($suggestedByUser)
                     {
                    <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
                     }
                   }
                  }
                  #if ($canEdit || $suggestedByUser)
d67 1
a67 2
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getID()")
                    <TD  class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
a69 9
                <TR>
                 <TD COLSPAN="3">
                  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
                   <TR>
                    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
                   </TR>
                  </TABLE>
                 </TD>
                </TR>
a76 5
                     #set $suggestedByUser = false
                     #if ($subsection.getSuggestedBy().getID().equals($acl.getUserID())) 
                     {
                        #set $suggestedByUser = true
                     }
d78 3
a80 10
                 #if ($subsection.isApproved())
                 {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<B>$subsection.getName()</B>
#if ($subsection.getDescription() && !$subsection.getDescription().equals(""))
{
: $subsection.getDescription()
}
</B></TD>
                 } #else {
                   #if ($canApprove)
d82 2
a83 23
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font> <B>$subsection.getName()</B>
#if ($subsection.getDescription() && !$subsection.getDescription().equals(""))
{
: $subsection.getDescription()
}
</B></TD>
                   } #else {
                     #if ($suggestedByUser)
                     {
                     <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B>$subsection.getName()</B>
#if ($subsection.getDescription() && !$subsection.getDescription().equals(""))
{
 : $subsection.getDescription()
}
</B></TD>
                     }
                   }
                 }
                   #if ($canEdit || $suggestedByUser)
                   {
                    #set $editURL = $currentProject.getProjectPageURL("ProjectSectionEdit", "sectionID=$subsection.getID()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectSectionDelete", "sectionID=$subsection.getID()")
                    <TD  class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
a85 9
                <TR>
                 <TD COLSPAN="3">
                  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
                   <TR>
                    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
                   </TR>
                  </TABLE>
                 </TD>
                </TR>
a90 5
                     #set $suggestedByUser = false
                     #if ($document.getSuggestedBy().getID().equals($acl.getUserID())) 
                     {
                        #set $suggestedByUser = true
                     }
d92 4
a95 30
                         #if ($document.isApproved())
                         {
		               <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
                         } #else {
                           #if ($canApprove)
                           {
		                      <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font><IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
                           } #else {
                             #if ($suggestedByUser)
                             {
                             <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;Pending Approval</a>:</font><B>$document.getName()</B>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</B></TD>
                             }
                           }
                         } 
                         #if ($canEdit || $suggestedByUser)
d98 1
a98 2
                           #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getID()")
                           <TD  class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
a100 9
                <TR>
                 <TD COLSPAN="3">
                  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
                   <TR>
                    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
                   </TR>
                  </TABLE>
                 </TD>
                </TR>
d107 1
d109 23
a131 29
} #else {
<P>
<TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="2" BORDER="0">
<TR>
 <TD>
  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
   <TR>
    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
   </TR>
  </TABLE>
 </TD>
</TR>

<TR>
 <TD class="PlainText" >
 <i>There are no documents for this project.</i>
</TR>

<TR>
 <TD>
  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
   <TR>
    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
   </TR>
  </TABLE>
 </TD>
</TR>
</TABLE>
}
@


1.2
log
@made functional and fixed UI
@
text
@d37 1
a37 1
                    <TD><A HREF = "$editURL">Edit</A> | <A HREF = "$currentProject.getProjectPageURL("ProjectDocumentDelete")">Delete</A></TD>
@


1.1
log
@Initial revision
@
text
@d1 15
a15 2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
d17 2
a18 7
<HEAD>
	<META HTTP-EQUIV="Content-Type" CONTENT="text/html;CHARSET=iso-8859-1">
<META NAME="VPSiteProject" CONTENT="file:///D|/jr/cvs/swallow_9010/www/www/Project.vpp">

	<META NAME="GENERATOR" Content="Visual Page 2.0 for Windows">
	<TITLE>untitled</TITLE>
</HEAD>
d20 87
a106 1
<BODY BGCOLOR="white">
a107 37
<P>
<TABLE BORDER="0" CELLPADDING="2" CELLSPACING="0" WIDTH="100%">
	<TR>
		<TD BGCOLOR="#CCCCCC"><B>ProjectDocuments</B></TD>
		<TD BGCOLOR="#CCCCCC">
			<P ALIGN="RIGHT">&nbsp;&nbsp;
		</TD>
	</TR>
	<TR>
		<TD HEIGHT="100" COLSPAN="2" BGCOLOR="#F0F0F0">
			<P>Table of Contents:</P>
			<UL>
				<LI>Section one
				<UL>
					<LI><A HREF="file.html">Item one one</A>: optional one-line description of this item
					<LI>Subtitle one two
					<UL>
						<LI><A HREF="file.html">Item one two one</A>: optional one-line description of this item
					</UL>
					<LI><A HREF="file.html">Item one three</A>
				</UL>
				<LI>Section two
				<UL>
					<LI><A HREF="file.html">Item two one</A>
				</UL>
				<LI>Section three
				<UL>
					<LI><A HREF="file.html">item three one</A>
				</UL>
				<LI>%n sections and %m documents pending approval from the project owner
			</UL>
			<BLOCKQUOTE>
				<P>[<A HREF="/servlets/ProjectDocumentSectionAdd">Add New Section</A>]&nbsp;&nbsp;[<A HREF="/servlets/ProjectDocumentAdd">Add
				New Document</A>]&nbsp;&nbsp;[<A HREF="/servlets/ProjectDocumentDelete">Delete Document</A>]
			</BLOCKQUOTE>
		</TD>
	</TR>
a108 1
</P>
d131 1
a131 1
</HTML>@


1.1.1.1
log
@Merging newhelm tree into helm, as per IZ issue #557.  Previous major version of helm is tagged TIGRIS_NOV_11_2000.
@
text
@@


1.1.1.2
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@d1 2
a2 15
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="85%">
  <TR>
    <TD class="Header" nowrap>Project Documents: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
	#if ($acl.hasPermission("Project Document - Approve", $currentProject))
	{
    <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectDocumentAdd")">Add New Document</a> | <A HREF="$currentProject.getProjectPageURL("ProjectSectionAdd")">Add New Section</a></TD>
    } #else {
        #if ($acl.hasPermission("Project Document - Suggest", $currentProject))
        {
    <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectDocumentAdd")">Suggest New Document</a> | <A HREF="$currentProject.getProjectPageURL("ProjectSectionAdd")">Suggest New Section</a></TD>
        }
    }
       
  </TR>
</TABLE>
d4 7
a10 10
#set $topDocuments = $currentProject.getTopLevelDocuments()
#set $topSections = $currentProject.getSections()
#if (!$topSections.isEmpty())
{
    #set $thereAreSections = true
}
#if (!$topDocuments.isEmpty())
{
    #set $thereAreDocuments = true
}
d12 1
a12 2
#if ($thereAreDocuments || $thereAreSections)
{
a13 8
#if ($acl.hasPermission("Project Document - Edit", $currentProject))
{
  #set $canEdit = true
}
#if ($acl.hasPermission("Project Document - Approve", $currentProject))
{
  #set $canApprove = true
}
d15 36
a50 5
<TABLE WDITH="100%" CELLSPACING="0" CELLPADDING="2" BORDER="0">

  <TR>
    <TD CLASS="InputHeader" VALIGN="top">Table of Contents:</TD>
  </TR>
d52 1
a52 2
<P>
<TABLE CELLSPACING="0" CELLPADDING="2" BORDER="0" width="85%">
d54 2
a55 55
         #if (!$topDocuments.isEmpty())
         {
            #foreach $document in $topDocuments
            {
              #set $suggestedByUser = false
              #if ($document.getProposedByUser().getID().equals($acl.getUserID())) 
              {
                 #set $suggestedByUser = true
              }
               <TR>
                 #if ($document.isApproved())
                 {
		         <TD class="PlainText"><IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
                 } #else {
                   #if ($canApprove)
                   {
                    <TD class="PlainText"><IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")"><font color="red">Pending Approval</a>:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
                   } #else {
                     #if ($suggestedByUser)
                     {
                    <TD class="PlainText"><IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
                     }
                   }
                 }
                 #if ($canEdit || $suggestedByUser)
                 {
                    #set $editURL = $currentProject.getProjectPageURL("ProjectDocumentEdit", "documentID=$document.getID()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getID()")
                    <TD class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                 }
               </TR>
                <TR>
                 <TD COLSPAN="3">
                  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
                   <TR>
                    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
                   </TR>
                  </TABLE>
                 </TD>
                </TR>
d57 14
a70 2
            }
         }
a71 245
         #if (!$topSections.isEmpty())
         {
            #foreach $section in $topSections
            {
              #set $suggestedByUser = false
              #if ($section.getProposedByUser().getID().equals($acl.getUserID())) 
              {
                 #set $suggestedByUser = true
              }
               <TR>
                 #if ($section.isApproved())
                 {
		         <TD class="PlainText"><IMG SRC="$schemeAndDomain;/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<B>$section.getName()</B>
#if ($section.getDescription() && !$section.getDescription().equals(""))
{
 : $section.getDescription()
}
</B></TD>
                 } #else {
                   #if ($canApprove)
                   {
                     <TD class="PlainText"><font color="red"><IMG SRC="$schemeAndDomain;/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font><B>$section.getName()</B>
#if ($section.getDescription() && !$section.getDescription().equals(""))
{
 : $section.getDescription()
}
</B></TD>
                  } #else {
                     #if ($suggestedByUser)
                     {
                     <TD class="PlainText"><font color="red"><IMG SRC="$schemeAndDomain;/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B> $section.getName()</B>
#if ($section.getDescription() && !$section.getDescription().equals(""))
{
 : $section.getDescription()
}
</B></TD>
                     }
                  }
          
                 }
                 #if ($canEdit || $suggestedByUser)
                 {
                    #set $editURL = $currentProject.getProjectPageURL("ProjectSectionEdit", "sectionID=$section.getID()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectSectionDelete", "sectionID=$section.getID()")
                    <TD  class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                 }
               </TR>
                <TR>
                 <TD COLSPAN="3">
                  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
                   <TR>
                    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
                   </TR>
                  </TABLE>
                 </TD>
                </TR>
                #set $documents = $section.getDocuments()
                #if (!$documents.isEmpty())
                {
                  #foreach $document in $documents
                  {
                     #set $suggestedByUser = false
                     #if ($document.getProposedByUser().getID().equals($acl.getUserID())) 
                     {
                        #set $suggestedByUser = true
                     }
                  <TR>
                 #if ($document.isApproved())
                 {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
                 } #else {
                   #if ($canApprove)
                   {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16"><font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font><A HREF="$document.getLink($currentProject)">$document.getName()</A> 
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
: $document.getDescription()
}
</TD>
                   } #else {
                     #if ($suggestedByUser)
                     {
                    <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<font color="red">Pending Approval:</font> <A HREF="$document.getLink($currentProject)"> $document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
                     }
                   }
                  }
                  #if ($canEdit || $suggestedByUser)
                  {
                    #set $editURL = $currentProject.getProjectPageURL("ProjectDocumentEdit", "documentID=$document.getID()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getID()")
                    <TD  class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                 }
                  </TR>
                <TR>
                 <TD COLSPAN="3">
                  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
                   <TR>
                    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
                   </TR>
                  </TABLE>
                 </TD>
                </TR>
                  }
                }
                #set $subsections = $section.getSubsections()
                #if (!$subsections.isEmpty())
                {
                  #foreach $subsection in $subsections
                  {
                     #set $suggestedByUser = false
                     #if ($subsection.getProposedByUser().getID().equals($acl.getUserID())) 
                     {
                        #set $suggestedByUser = true
                     }
                  <TR>
                 #if ($subsection.isApproved())
                 {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="$schemeAndDomain;/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<B>$subsection.getName()</B>
#if ($subsection.getDescription() && !$subsection.getDescription().equals(""))
{
: $subsection.getDescription()
}
</B></TD>
                 } #else {
                   #if ($canApprove)
                   {
		           <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="$schemeAndDomain;/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectSectionApproval")">Pending Approval</a>:</font> <B>$subsection.getName()</B>
#if ($subsection.getDescription() && !$subsection.getDescription().equals(""))
{
: $subsection.getDescription()
}
</B></TD>
                   } #else {
                     #if ($suggestedByUser)
                     {
                     <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="$schemeAndDomain;/project/look/shared/image/folder.gif" border="0" width="24" height="14">&nbsp;Pending Approval</a>:</font><B> $subsection.getName()</B>
#if ($subsection.getDescription() && !$subsection.getDescription().equals(""))
{
 : $subsection.getDescription()
}
</B></TD>
                     }
                   }
                 }
                   #if ($canEdit || $suggestedByUser)
                   {
                    #set $editURL = $currentProject.getProjectPageURL("ProjectSectionEdit", "sectionID=$subsection.getID()")
                    #set $deleteURL = $currentProject.getProjectPageURL("ProjectSectionDelete", "sectionID=$subsection.getID()")
                    <TD  class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                   }
                  </TR>
                <TR>
                 <TD COLSPAN="3">
                  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
                   <TR>
                    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
                   </TR>
                  </TABLE>
                 </TD>
                </TR>
                  #set $documents = $subsection.getDocuments()
                  #if (!$documents.isEmpty())
                  { 
                    #foreach $document in $documents
                    {
                     #set $suggestedByUser = false
                     #if ($document.getProposedByUser().getID().equals($acl.getUserID())) 
                     {
                        #set $suggestedByUser = true
                     }
                      <TR>
                         #if ($document.isApproved())
                         {
		               <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
                         } #else {
                           #if ($canApprove)
                           {
		                      <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><a href="$currentProject.getProjectPageURL("ProjectDocumentApproval")">Pending Approval</a>:</font><IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;<A HREF="$document.getLink($currentProject)">$document.getName()</A>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</TD>
                           } #else {
                             #if ($suggestedByUser)
                             {
                             <TD class="PlainText">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="red"><IMG SRC="$schemeAndDomain;/project/look/shared/image/page.gif" border="0" width="16" height="16">&nbsp;Pending Approval</a>:</font><B> $document.getName()</B>
#if ($document.getDescription() && !$document.getDescription().equals(""))
{
 : $document.getDescription()
}
</B></TD>
                             }
                           }
                         } 
                         #if ($canEdit || $suggestedByUser)
                         {
                           #set $editURL = $currentProject.getProjectPageURL("ProjectDocumentEdit", "documentID=$document.getID()")
                           #set $deleteURL = $currentProject.getProjectPageURL("ProjectDocumentDelete", "documentID=$document.getID()")
                           <TD  class="PlainText"><A HREF = "$editURL">Edit</A> | <A HREF = "$deleteURL">Delete</A></TD>
                         }
                      </TR>
                <TR>
                 <TD COLSPAN="3">
                  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
                   <TR>
                    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
                   </TR>
                  </TABLE>
                 </TD>
                </TR>
                    }
                   }
                 }
               }
           }            
        }
</TABLE>
} #else {
<P>
<TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="2" BORDER="0">
<TR>
 <TD>
  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
   <TR>
    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
   </TR>
  </TABLE>
 </TD>
</TR>
d73 1
a73 4
<TR>
 <TD class="PlainText" >
 <i>There are no documents for this project.</i>
</TR>
d75 1
a75 11
<TR>
 <TD>
  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
   <TR>
    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
   </TR>
  </TABLE>
 </TD>
</TR>
</TABLE>
}
@

