Rev 936 | Rev 1243 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 936 | Rev 962 | ||
---|---|---|---|
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="dir"> |
9 | <title>Index</title> |
9 | <title>Index</title> |
10 | </logic:empty> |
10 | </logic:empty> |
11 | <logic:notEmpty name="dir"> |
11 | <logic:notEmpty name="dir"> |
12 | <title>Index of <bean:write name="dir" /></title> |
12 | <title>Index of <bean:write name="dir" /></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="dir"> |
19 | <h1>Index</h1> |
19 | <h1>Index</h1> |
20 | </logic:empty> |
20 | </logic:empty> |
21 | <logic:notEmpty name="dir"> |
21 | <logic:notEmpty name="dir"> |
22 | <h1>Index of <bean:write name="dir" /></h1> |
22 | <h1>Index of <bean:write name="dir" /></h1> |
23 | </logic:notEmpty> |
23 | </logic:notEmpty> |
24 | 24 | ||
25 | <p> |
25 | <p> |
26 | <logic:empty name="prevEntry" property="path"> |
26 | <logic:empty name="prevEntry" property="path"> |
27 | << |
27 | << |
28 | </logic:empty> |
28 | </logic:empty> |
29 | <logic:notEmpty name="prevEntry" property="path"> |
29 | <logic:notEmpty name="prevEntry" property="path"> |
30 | <logic:equal name="prevEntry" property="isDir" value="true"> |
30 | <logic:equal name="prevEntry" property="isDir" value="true"> |
31 | <a href="index.do?path=<bean:write name="prevEntry" property="path" />"><<</a> |
31 | <a href="index.do?path=<bean:write name="prevEntry" property="path" />"><<</a> |
32 | </logic:equal> |
32 | </logic:equal> |
33 | <logic:equal name="prevEntry" property="isDir" value="false"> |
33 | <logic:equal name="prevEntry" property="isDir" value="false"> |
34 | <a href="page.do?path=<bean:write name="prevEntry" property="path" />"><<</a> |
34 | <a href="page.do?path=<bean:write name="prevEntry" property="path" />"><<</a> |
35 | </logic:equal> |
35 | </logic:equal> |
36 | </logic:notEmpty> |
36 | </logic:notEmpty> |
37 | 37 | ||
38 | <logic:notPresent name="top" property="path"> |
38 | <logic:notPresent name="top" property="path"> |
39 | |
39 | |
40 | </logic:notPresent> |
40 | </logic:notPresent> |
41 | <logic:present name="top" property="path"> |
41 | <logic:present name="top" property="path"> |
42 | <a href="index.do?path=<bean:write name="top" property="path" />">Index</a> |
42 | <a href="index.do?path=<bean:write name="top" property="path" />">Index</a> |
43 | </logic:present> |
43 | </logic:present> |
44 | 44 | ||
45 | <logic:empty name="nextEntry" property="path"> |
45 | <logic:empty name="nextEntry" property="path"> |
46 | >> |
46 | >> |
47 | </logic:empty> |
47 | </logic:empty> |
48 | <logic:notEmpty name="nextEntry" property="path"> |
48 | <logic:notEmpty name="nextEntry" property="path"> |
49 | <logic:equal name="nextEntry" property="isDir" value="true"> |
49 | <logic:equal name="nextEntry" property="isDir" value="true"> |
50 | <a href="index.do?path=<bean:write name="nextEntry" property="path" />">>></a> |
50 | <a href="index.do?path=<bean:write name="nextEntry" property="path" />">>></a> |
51 | </logic:equal> |
51 | </logic:equal> |
52 | <logic:equal name="nextEntry" property="isDir" value="false"> |
52 | <logic:equal name="nextEntry" property="isDir" value="false"> |
53 | <a href="page.do?path=<bean:write name="nextEntry" property="path" />">>></a> |
53 | <a href="page.do?path=<bean:write name="nextEntry" property="path" />">>></a> |
54 | </logic:equal> |
54 | </logic:equal> |
55 | </logic:notEmpty> |
55 | </logic:notEmpty> |
56 | </p> |
56 | </p> |
57 | 57 | ||
58 | <table border=1 width=100%> |
58 | <table border=1 width=100%> |
59 | <logic:iterate name="index" id="row"> |
59 | <logic:iterate name="index" id="row"> |
60 | <tr> |
60 | <tr> |
61 | <logic:iterate name="row" id="entry"> |
61 | <logic:iterate name="row" id="entry"> |
62 | <logic:present name="entry"> |
62 | <logic:present name="entry"> |
63 | <logic:equal name="entry" property="isDir" value="true"> |
63 | <logic:equal name="entry" property="isDir" value="true"> |
64 | <td width=20%> |
64 | <td width=20%> |
65 | <a href="index.do?path=<bean:write name="entry" property="path" />"> |
65 | <a href="index.do?path=<bean:write name="entry" property="path" />"> |
66 | <img src="dir.do?path=<bean:write name="entry" property="path" />" |
66 | <img src="dir.do?path=<bean:write name="entry" property="path" />" |
67 | alt="<bean:write name="entry" property="title" />" |
67 | alt="<bean:write name="entry" property="title" />" |
68 | width="<bean:write name="entry" property="width" />" |
68 | width="<bean:write name="entry" property="width" />" |
69 | height="<bean:write name="entry" property="height" />" |
69 | height="<bean:write name="entry" property="height" />" |
70 | border=0><br> |
70 | border=0><br> |
71 | <bean:write name="entry" property="title" /> |
71 | <bean:write name="entry" property="title" /> |
72 | </a> |
72 | </a> |
73 | </td> |
73 | </td> |
74 | </logic:equal> |
74 | </logic:equal> |
75 | <logic:equal name="entry" property="isDir" value="false"> |
75 | <logic:equal name="entry" property="isDir" value="false"> |
76 | <td width=20%> |
76 | <td width=20%> |
77 | <a href="page.do?path=<bean:write name="entry" property="path" />"> |
77 | <a href="page.do?path=<bean:write name="entry" property="path" />"> |
78 | <img src="small.do?path=<bean:write name="entry" property="path" />" |
78 | <img src="small.do?path=<bean:write name="entry" property="path" />" |
79 | alt="<bean:write name="entry" property="title" />" |
79 | alt="<bean:write name="entry" property="title" />" |
80 | width="<bean:write name="entry" property="width" />" |
80 | width="<bean:write name="entry" property="width" />" |
81 | height="<bean:write name="entry" property="height" />" |
81 | height="<bean:write name="entry" property="height" />" |
82 | border=0><br> |
82 | border=0><br> |
83 | <bean:write name="entry" property="title" /> |
83 | <bean:write name="entry" property="title" /> |
84 | </a> |
84 | </a> |
85 | </td> |
85 | </td> |
86 | </logic:equal> |
86 | </logic:equal> |
87 | </logic:present> |
87 | </logic:present> |
88 | <logic:notPresent name="entry"> |
88 | <logic:notPresent name="entry"> |
89 | <td width=20%> </td> |
89 | <td width=20%> </td> |
90 | </logic:notPresent> |
90 | </logic:notPresent> |
91 | </logic:iterate> |
91 | </logic:iterate> |
92 | </tr> |
92 | </tr> |
93 | </logic:iterate> |
93 | </logic:iterate> |
94 | </table> |
94 | </table> |
95 | 95 | ||
96 | </body> |
96 | </body> |
97 | 97 | ||
98 | </html> |
98 | </html> |