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