blob: 3eaabbe6a2249802b97c973213994ff24d4c9a9a [file] [log] [blame]
<%--
/**
* List of articles that match query.
*
* @version $Rev$ $Date$
*/
--%>
<%@ page language="java" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<html:html>
<head>
<html:base/>
<link rel="stylesheet" type="text/css" href="../../styles/global.css" />
<title>Articles - Article List</title>
</head>
<body>
<table class="parent">
<tr>
<td align="center">
<table class="child">
<tr>
<td align="center" colspan="3">
<bean:write name="RESULT" property="size"/>
matches for
<bean:write name="RESULT" property="description"/>
</td>
</tr>
<logic:notEqual name="RESULT" property="size" value="0">
<tr bgcolor="FFFFEE">
<th>
<span style="text-transform: uppercase">id</span>
</th>
<th>
<span style="text-transform: uppercase">article</span>
</th>
<th>
<span style="text-transform: uppercase">contributed</span>
</th>
</tr>
<tr>
<% int i = 0; %>
<logic:iterate name="RESULT" property="iterator" id="row">
<% i++;
if ( i % 2 == 0) { %>
<tr bgcolor="#EEEEEE">
<% } else { %>
<tr bgcolor="#FFFFFF">
<% } %>
<td align="left">
<bean:write name="row" property="article"/>
</td>
<td align="left" width="100%">
<html:link forward="article" paramName="row"
paramProperty="key" paramId="key">
<bean:write name="row" property="title"/>
</html:link>
</td>
<td align="left" nowrap>
<bean:write name="row" property="contributed"/>
</td>
</tr>
</logic:iterate>
</tr>
</logic:notEqual>
</table>
</td>
</tr>
<tr>
<td class="options">
<html:link forward="done">DONE</html:link>
</td>
</tr>
</table>
</body>
</html:html>