head	1.3;
access;
symbols
	TIGRIS_0_9_0:1.1.0.2;
locks; strict;
comment	@# @;


1.3
date	2001.01.17.00.00.37;	author elicia;	state dead;
branches;
next	1.2;

1.2
date	2000.12.29.17.11.55;	author leonardr;	state Exp;
branches;
next	1.1;

1.1
date	2000.12.19.20.42.57;	author elicia;	state Exp;
branches;
next	;


desc
@@


1.3
log
@renamed to ProjectNewsApproval
@
text
@<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" BORDER="0" WIDTH="100%">
  <TR>
    <TD class="Header" nowrap>Project Approval: <SPAN CLASS="ProjectNameHeader">$currentProject.getName()</SPAN></TD>  
  </TR>
</TABLE>

<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="2" BORDER="0" WIDTH="100%">
  <TR>
    <TD CLASS="Welcome">News items pending approval within project $currentProject.getName():</TD>
   </TR>
</TABLE>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3" BORDER="0" width="100%">
<FORM ACTION="NewsItemApprove" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">

  <TR>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Item</TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Date</TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Proposed By</TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Action</TD>
  </TR>


#set $paginatableList = $currentProject.getUnapprovedNews($itemsPerPage, $criterion, $acl);
#set $newsPage = $paginatableList.getPage($paginated_page);
#if (!$newsPage.isEmpty())
{
 #foreach $item in $newsPage
 {
  <TR> 
   <TD class="TableData" VALIGN="top"><A HREF="$currentProject.getProjectPageURL("NewsItemView")" class="TableData">$item.getHeadline()</A></TD> 
   <TD class="PlainText" VALIGN="top">$item.getEventDate()</TD> 
   <TD class="TableData" VALIGN="top"><A HREF="/servlets/UserEdit?userID=$item.getProposedBy()" class="TableData">$item.getProposedByName()</A></TD> 
   <TD class="PlainText"> 
    <INPUT TYPE="radio" NAME="action_$item.getID()" VALUE="Approve">Approve
    <INPUT TYPE="radio" NAME="action_$item.getID()" VALUE="Defer" CHECKED>Defer
    <INPUT TYPE="radio" NAME="action_$item.getID()" VALUE="Disapprove">Disapprove 
   </TD> 
  </TR> 
 }
 <TR>
  <TD></TD>
  <TD></TD>
  <TD></TD>
  <TD class="PlainText"><INPUT TYPE="submit" NAME="Button" VALUE="Perform Actions"></TD>
 </TR>
 <TR><TD COLSPAN="4" ALIGN="center" CLASS="PlainText">
  $paginatableList.navigationBar("NewsItemApprove", $paginated_page);
 </TD></TR>
} #else {
 <TR>
  <TD class="PlainText" COLSPAN="4">No news items pending approval.</TD>
 </TR>
}
</FORM>
</TABLE>
@


1.2
log
@Many, many pagination changes.
@
text
@@


1.1
log
@initial revision
@
text
@d23 4
a26 2
#set $newsItems = $currentProject.getUnapprovedNews()
#if(!$newsItems.isEmpty())
d28 2
a29 2
  #foreach $item in $newsItems
  {
d31 8
a38 8
    <TD class="TableData" VALIGN="top"><A HREF="$currentProject.getProjectPageURL("NewsItemView")" class="TableData">$item.getHeadline()</A></TD> 
    <TD class="PlainText" VALIGN="top">$item.getEventDate()</TD> 
    <TD class="TableData" VALIGN="top"><A HREF="/servlets/UserEdit?userID=$item.getProposedBy()" class="TableData">$item.getProposedByName()</A></TD> 
    <TD class="PlainText"> 
      <INPUT TYPE="radio" NAME="action_$item.getID()" VALUE="Approve">Approve  
      <INPUT TYPE="radio" NAME="action_$item.getID()" VALUE="Defer" CHECKED>Defer 
      <INPUT TYPE="radio" NAME="action_$item.getID()" VALUE="Disapprove">Disapprove 
    </TD> 
d40 10
a49 8
  }

  <TR>
    <TD></TD>
    <TD></TD>
    <TD></TD>
    <TD class="PlainText"><INPUT TYPE="submit" NAME="Button" VALUE="Perform Actions"></TD>
  </TR>
d51 2
a52 3

  <TR>
    <TD class="PlainText" COLSPAN="4">No news items pending approval.</TD>
a53 1

@

