Rev 962 | Rev 1244 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
936 | dev | 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> |
2 | <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> |
||
3 | <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> |
||
4 | |||
5 | <html> |
||
6 | |||
7 | <head> |
||
1243 | dev | 8 | <logic:empty name="current" property="title"> |
936 | dev | 9 | <title>Index</title> |
10 | </logic:empty> |
||
1243 | dev | 11 | <logic:notEmpty name="current" property="title"> |
12 | <title>Index of <bean:write name="current" property="title" /></title> |
||
936 | dev | 13 | </logic:notEmpty> |
14 | </head> |
||
15 | |||
16 | <body bgcolor="white"> |
||
17 | |||
1243 | dev | 18 | <logic:empty name="current" property="title"> |
936 | dev | 19 | <h1>Index</h1> |
20 | </logic:empty> |
||
1243 | dev | 21 | <logic:notEmpty name="current" property="title"> |
22 | <h1>Index of <bean:write name="current" property="title" /></h1> |
||
936 | dev | 23 | </logic:notEmpty> |
24 | |||
1243 | dev | 25 | <logic:notEmpty name="current" property="subtitle"> |
26 | <p><bean:write name="current" property="subtitle" filter="false" /></p> |
||
27 | </logic:notEmpty> |
||
28 | |||
29 | <logic:notEmpty name="current" property="comment"> |
||
30 | <p><bean:write name="current" property="comment" filter="false" /></p> |
||
31 | </logic:notEmpty> |
||
32 | |||
936 | dev | 33 | <p> |
1243 | dev | 34 | Directory: |
936 | dev | 35 | <logic:empty name="prevEntry" property="path"> |
36 | << |
||
37 | </logic:empty> |
||
38 | <logic:notEmpty name="prevEntry" property="path"> |
||
39 | <logic:equal name="prevEntry" property="isDir" value="true"> |
||
40 | <a href="index.do?path=<bean:write name="prevEntry" property="path" />"><<</a> |
||
41 | </logic:equal> |
||
42 | <logic:equal name="prevEntry" property="isDir" value="false"> |
||
43 | <a href="page.do?path=<bean:write name="prevEntry" property="path" />"><<</a> |
||
44 | </logic:equal> |
||
45 | </logic:notEmpty> |
||
46 | |||
47 | <logic:notPresent name="top" property="path"> |
||
48 | |
||
49 | </logic:notPresent> |
||
50 | <logic:present name="top" property="path"> |
||
51 | <a href="index.do?path=<bean:write name="top" property="path" />">Index</a> |
||
52 | </logic:present> |
||
53 | |||
54 | <logic:empty name="nextEntry" property="path"> |
||
55 | >> |
||
56 | </logic:empty> |
||
57 | <logic:notEmpty name="nextEntry" property="path"> |
||
58 | <logic:equal name="nextEntry" property="isDir" value="true"> |
||
59 | <a href="index.do?path=<bean:write name="nextEntry" property="path" />">>></a> |
||
60 | </logic:equal> |
||
61 | <logic:equal name="nextEntry" property="isDir" value="false"> |
||
62 | <a href="page.do?path=<bean:write name="nextEntry" property="path" />">>></a> |
||
63 | </logic:equal> |
||
64 | </logic:notEmpty> |
||
65 | </p> |
||
66 | |||
1243 | dev | 67 | <p> |
68 | Pages: |
||
69 | <logic:equal name="firstPage" property="isCurrent" value="true"> |
||
70 | << |
||
71 | </logic:equal> |
||
72 | <logic:equal name="firstPage" property="isCurrent" value="false"> |
||
73 | <a href="index.do?path=<bean:write name="indexForm" property="path" />"><<</a> |
||
74 | </logic:equal> |
||
75 | |||
76 | <logic:notPresent name="prevPage"> |
||
77 | < |
||
78 | </logic:notPresent> |
||
79 | <logic:present name="prevPage"> |
||
80 | <a href="index.do?path=<bean:write name="indexForm" property="path" />&page=<bean:write name="prevPage" property="number" />"><</a> |
||
81 | </logic:present> |
||
82 | |||
83 | <logic:iterate name="pages" id="p"> |
||
84 | <logic:equal name="p" property="isCurrent" value="true"> |
||
85 | <bean:write name="p" property="displayNumber" /> |
||
86 | </logic:equal> |
||
87 | <logic:equal name="p" property="isCurrent" value="false"> |
||
88 | <a href="index.do?path=<bean:write name="indexForm" property="path" />&page=<bean:write name="p" property="number" />"><bean:write name="p" property="displayNumber" /></a> |
||
89 | </logic:equal> |
||
90 | </logic:iterate> |
||
91 | |||
92 | <logic:notPresent name="nextPage"> |
||
93 | > |
||
94 | </logic:notPresent> |
||
95 | <logic:present name="nextPage"> |
||
96 | <a href="index.do?path=<bean:write name="indexForm" property="path" />&page=<bean:write name="nextPage" property="number" />">></a> |
||
97 | </logic:present> |
||
98 | |||
99 | <logic:equal name="lastPage" property="isCurrent" value="true"> |
||
100 | >> |
||
101 | </logic:equal> |
||
102 | <logic:equal name="lastPage" property="isCurrent" value="false"> |
||
103 | <a href="index.do?path=<bean:write name="indexForm" property="path" />&page=<bean:write name="lastPage" property="number" />">>></a> |
||
104 | </logic:equal> |
||
105 | </p> |
||
106 | |||
936 | dev | 107 | <table border=1 width=100%> |
108 | <logic:iterate name="index" id="row"> |
||
109 | <tr> |
||
110 | <logic:iterate name="row" id="entry"> |
||
111 | <logic:present name="entry"> |
||
112 | <logic:equal name="entry" property="isDir" value="true"> |
||
113 | <td width=20%> |
||
114 | <a href="index.do?path=<bean:write name="entry" property="path" />"> |
||
115 | <img src="dir.do?path=<bean:write name="entry" property="path" />" |
||
116 | alt="<bean:write name="entry" property="title" />" |
||
117 | width="<bean:write name="entry" property="width" />" |
||
118 | height="<bean:write name="entry" property="height" />" |
||
119 | border=0><br> |
||
120 | <bean:write name="entry" property="title" /> |
||
1243 | dev | 121 | <logic:notEmpty name="entry" property="subtitle"> |
122 | <br><bean:write name="entry" property="subtitle" filter="false" /> |
||
123 | </logic:notEmpty> |
||
936 | dev | 124 | </a> |
125 | </td> |
||
126 | </logic:equal> |
||
127 | <logic:equal name="entry" property="isDir" value="false"> |
||
128 | <td width=20%> |
||
129 | <a href="page.do?path=<bean:write name="entry" property="path" />"> |
||
130 | <img src="small.do?path=<bean:write name="entry" property="path" />" |
||
131 | alt="<bean:write name="entry" property="title" />" |
||
132 | width="<bean:write name="entry" property="width" />" |
||
133 | height="<bean:write name="entry" property="height" />" |
||
134 | border=0><br> |
||
135 | <bean:write name="entry" property="title" /> |
||
1243 | dev | 136 | <logic:notEmpty name="entry" property="subtitle"> |
137 | <br><bean:write name="entry" property="subtitle" filter="false" /> |
||
138 | </logic:notEmpty> |
||
936 | dev | 139 | </a> |
140 | </td> |
||
141 | </logic:equal> |
||
142 | </logic:present> |
||
143 | <logic:notPresent name="entry"> |
||
144 | <td width=20%> </td> |
||
145 | </logic:notPresent> |
||
146 | </logic:iterate> |
||
147 | </tr> |
||
148 | </logic:iterate> |
||
149 | </table> |
||
150 | |||
151 | </body> |
||
152 | |||
153 | </html> |