head	1.9;
access;
symbols;
locks; strict;
comment	@# @;


1.9
date	2001.08.20.22.29.24;	author tfahrner;	state Exp;
branches;
next	1.8;

1.8
date	2001.08.09.22.07.28;	author ms;	state Exp;
branches;
next	1.7;

1.7
date	2001.07.31.00.01.57;	author tfahrner;	state Exp;
branches;
next	1.6;

1.6
date	2001.07.30.21.59.25;	author tfahrner;	state Exp;
branches;
next	1.5;

1.5
date	2001.07.30.21.24.30;	author tfahrner;	state Exp;
branches;
next	1.4;

1.4
date	2001.07.06.00.18.31;	author ms;	state Exp;
branches;
next	1.3;

1.3
date	2001.06.20.20.49.06;	author neil;	state Exp;
branches;
next	1.2;

1.2
date	2001.05.24.18.48.47;	author dlr;	state Exp;
branches;
next	1.1;

1.1
date	2001.05.23.02.03.16;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.9
log
@first wave of ui revisions. expect minor breakage. working on it.
@
text
@<div id="ebbrowselist" class="app">

#set( $browseTerms = "listName=$listName&amp;by=$by&amp;from=$from&amp;to=$to&amp;count=$numTotal" )

<h3>Browse List: $listInfo.listName</h3>

#parse( "org/tigris/helm/tool/mail/InclSummarizeBy.vm" )

## UI recoder Neil asks:
## this page needs functionality
## if there are no messages, do not display the table at all,
## but instead a message
## #if ($messages.isEmpty())
## <p><strong class="alert">
##  There are no messages in this mailing list.
## </strong></p>
## #else
## all the rest of this page's code
## with an #end added to end of page
## what I tried here didn't work

<p>
 <strong>Messages $firstShown through $lastShown of $numTotal shown</strong> | <a href="$res.encodeUrl("BrowseList?listName=$listName&amp;paged=false")">Show All</a>
</p>

<input type="hidden" name="listName" value="$listName" />
<table border="1" cellspacing="2" cellpadding="3" width="100%">
 <tr>
  <th>Number</th>
  <th>Author</th>
  <th>Subject</th>
  <th>Date</th>
 </tr>

#set ($rowClass="a") 
 
#foreach( $msg in $messages )

 <tr class="$rowClass">
  <td>$msg.msgNo</td>
  <td>$msg.senderName</td>
  <td><a href="$res.encodeUrl("ReadMsg?msgNo=$msg.msgNo&amp;listName=$listName")">$msg.subject</a></td>
  <td>$msg.date</td>
#if( $admin )
  <td>
   <a href="$res.encodeUrl("DelMsg?msgNo=$msg.msgNo&amp;listName=$listName")">delete</a>
  </td>
#end
 </tr>

  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end

#end
</table>

#foreach ($window in $windows)
    <a href="$res.encodeUrl("BrowseList?$browseTerms&amp;first=$window&amp;windowSize=$windowSize")">
    $velocityCount 
    </a> | 
#end

<form method="GET">
Window Size 
<input type="textfield" size="4" name="windowSize" />
<input type="hidden" name="by" value="$by" />
<input type="hidden" name="from" value="$from" />
<input type="hidden" name="to" value="$to" />
<input type="hidden" name="count" value="$count" />
<input type="hidden" name="first" value="$first" />
<input type="hidden" name="listName" value="$listName" />

<input type="submit"/>
</form>
    
## #end

</div>
@


1.8
log
@adding new better paging system for list browsing
@
text
@a1 3
<h2>
 #parse( "Nomen.vm" )
</h2>
@


1.7
log
@pulled admin options, added headlines
@
text
@d6 1
a6 1
#set( $browseTerms = "listName=$listName&amp;by=$browseBy&amp;from=$browseFrom&amp;to=$browseTo&amp;count=$numTotal" )
a29 1

d63 4
a66 7
#if( $prevPageStart )
    <p><a href="$res.encodeUrl("BrowseList?$browseTerms&amp;first=$prevPageStart")">Previous results</a>
    ($prevPageStart through $prevPageEnd)</p>
#end
#if( $nextPageStart )
    <p><a href="$res.encodeUrl("BrowseList?$browseTerms&amp;first=$nextPageStart")">Next results</a>
    ($nextPageStart through $nextPageEnd)</p>
d69 13
@


1.6
log
@html usage revision to synch with scarab
@
text
@d2 3
@


1.5
log
@removed dependency on CSS for differentiation of alerts
@
text
@d1 1
a1 1
<div id="ebbrowselist">
d28 1
a28 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
@


1.4
log
@changed to msgNo for message lookups, and fixed form in search list
@
text
@d14 1
a14 1
## <p class="alert">
d16 1
a16 1
## </p>
@


1.3
log
@ui recoded: needs something added for when no msgs table won't show
@
text
@d43 1
a43 1
  <td><a href="$res.encodeUrl("ReadMsg?msgId=$msg.msgId&amp;listName=$listName")">$msg.subject</a></td>
d47 1
a47 1
   <a href="$res.encodeUrl("DelMsg?msgId=$msg.msgId&amp;listName=$listName")">delete</a>
d72 1
a72 1
</div>@


1.2
log
@Removed BRAND_TEMPLATE_ROOT, SERVLET_TEMPLATE_ROOT, and SANDBOX from use in #include and #parse directives (deprecated by multiple template paths).
@
text
@d1 1
a1 1
#set( $browseTerms = "listName=$listName&by=$browseBy&from=$browseFrom&to=$browseTo&count=$numTotal" )
d3 1
a3 5
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="2" WIDTH="100%">
<TR>
    <TD class="Header" nowrap>Browse List: <SPAN CLASS="ProjectNameHeader">$listInfo.listName</SPAN></TD>  
</TR>
</TABLE>
d5 1
a5 1
<HR SIZE="1" NOSHADE>
d9 26
a34 1
<HR SIZE="1" NOSHADE>
d36 3
a38 16
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
<TR>
<TD CLASS="PlainText" BGCOLOR="#dddddd">
<b>Messages $firstShown through $lastShown of $numTotal shown</b> | <A href="$res.encodeUrl("BrowseList?listName=$listName&paged=false")">Show All</A></TD>
</TR>

<TR>
<TD><input type="hidden" name="listName" value="$listName"/>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
<TR>
<TD CLASS="DevHeader">Number</TD>
<TD CLASS="DevHeader">Author</TD>
<TD CLASS="DevHeader">Subject</TD>
<TD CLASS="DevHeader">Date</TD>
</TR>
d40 5
a44 6
#foreach( $msg in $messages )
<TR>
<TD CLASS="PlainText">$msg.msgNo</TD>
<TD CLASS="PlainText">$msg.senderName</TD>
<TD CLASS="PlainText"><A href="$res.encodeUrl("ReadMsg?msgId=$msg.msgId&listName=$listName")">$msg.subject</A></TD>
<TD CLASS="PlainText">$msg.date</TD>
d46 3
a48 5
    <td class="PlainText" align="center">
        <a href="$res.encodeUrl("DelMsg?msgId=$msg.msgId&listName=$listName")">
           delete
         </a>
    </td>
d50 8
a57 1
</TR>
d59 1
a59 3
</TABLE>
</TD>
</TR>
a60 2
<TR>
<TD CLASS="PlainText">
d62 2
a63 2
    <P><A href="$res.encodeUrl("BrowseList?$browseTerms&first=$prevPageStart")">Previous results</A>
    ($prevPageStart through $prevPageEnd)</P>
d66 2
a67 2
    <P><A href="$res.encodeUrl("BrowseList?$browseTerms&first=$nextPageStart")">Next results</A>
    ($nextPageStart through $nextPageEnd)</P>
d69 4
a72 3
</TD>
</TR>
</TABLE>
@


1.1
log
@Adding Velocity templates.
@
text
@d11 1
a11 1
#parse( "${SERVLET_TEMPLATE_ROOT}/org/tigris/helm/tool/mail/InclSummarizeBy.vm" )
@

