~ubuntu-branches/ubuntu/trusty/libstruts1.2-java/trusty-proposed

« back to all changes in this revision

Viewing changes to contrib/artimus/pages/article/Result.jsp

  • Committer: Bazaar Package Importer
  • Author(s): Arnaud Vandyck
  • Date: 2004-11-19 15:35:25 UTC
  • Revision ID: james.westby@ubuntu.com-20041119153525-mdu08a76z4zo67xt
Tags: upstream-1.2.4
ImportĀ upstreamĀ versionĀ 1.2.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<%--
 
2
/**
 
3
* List of articles that match query.
 
4
*
 
5
* @version $Revision: 1.2 $ $Date: 2004/01/18 13:43:08 $
 
6
*/
 
7
--%>
 
8
 
 
9
<%@ page language="java" %>
 
10
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
 
11
<%@ taglib uri="/tags/struts-html" prefix="html" %>
 
12
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
 
13
 
 
14
<html:html>
 
15
<head>
 
16
<html:base/>
 
17
<link rel="stylesheet" type="text/css" href="../../styles/global.css" />
 
18
<title>Articles - Article List</title>
 
19
</head>
 
20
<body>
 
21
<table class="parent">
 
22
<tr>
 
23
<td align="center">
 
24
 <table class="child">
 
25
   <tr> 
 
26
     <td align="center" colspan="3"> 
 
27
       <bean:write name="RESULT" property="size"/> 
 
28
       matches for 
 
29
       <bean:write name="RESULT" property="description"/>
 
30
     </td>
 
31
   </tr>
 
32
   <logic:notEqual name="RESULT" property="size" value="0"> 
 
33
     <tr bgcolor="FFFFEE">
 
34
       <th>
 
35
         <span style="text-transform: uppercase">id</span>
 
36
       </th>
 
37
       <th>
 
38
         <span style="text-transform: uppercase">article</span>
 
39
       </th>
 
40
       <th>
 
41
         <span style="text-transform: uppercase">contributed</span>
 
42
       </th>
 
43
     </tr>
 
44
     <tr>
 
45
       <% int i = 0; %>
 
46
       <logic:iterate name="RESULT" property="iterator" id="row">
 
47
         <% i++; 
 
48
            if ( i % 2 == 0) { %>
 
49
         <tr bgcolor="#EEEEEE">
 
50
         <% } else { %>
 
51
         <tr bgcolor="#FFFFFF">
 
52
         <% } %>
 
53
           <td align="left">
 
54
             <bean:write name="row" property="article"/>
 
55
           </td>
 
56
           <td align="left" width="100%">
 
57
             <html:link forward="article" paramName="row" 
 
58
                        paramProperty="key" paramId="key">
 
59
               <bean:write name="row" property="title"/>
 
60
             </html:link> 
 
61
           </td>
 
62
           <td align="left" nowrap>
 
63
             <bean:write name="row" property="contributed"/>
 
64
           </td>
 
65
         </tr>
 
66
       </logic:iterate>
 
67
     </tr>
 
68
   </logic:notEqual>
 
69
 </table>
 
70
</td>
 
71
</tr>
 
72
<tr>
 
73
 <td class="options">
 
74
    <html:link forward="done">DONE</html:link>
 
75
 </td>
 
76
</tr>
 
77
</table>
 
78
</body>
 
79
</html:html>