Mercurial > hg > digilib-old
annotate client/digitallibrary/digimage_tbl_inc.jsp @ 456:2a9d37492997
fixed bug in dirInfo-xml.jsp
added size tag to dir info
author | robcast |
---|---|
date | Wed, 01 Feb 2006 18:16:21 +0100 |
parents | 07aac99066bf |
children | 3292343f64d6 |
rev | line source |
---|---|
243
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
1 <%@ page language="java" %><% |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
2 // retrieve objects from context |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
3 digilib.servlet.DocumentBean docBean = (digilib.servlet.DocumentBean) pageContext.getAttribute("docBean", pageContext.REQUEST_SCOPE); |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
4 digilib.servlet.DigilibRequest dlRequest = docBean.getRequest(); |
331
07aac99066bf
fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents:
317
diff
changeset
|
5 String ua = request.getHeader("User-Agent"); |
07aac99066bf
fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents:
317
diff
changeset
|
6 boolean isN4 = ((ua.indexOf("Mozilla/4.") > -1)&&(ua.indexOf("MSIE") == -1)); |
243
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
7 %> |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
8 <table border="0" cellpadding="0" cellspacing="0"> |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
9 <tr> |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
10 <td></td> |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
11 <td align="center"><% |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
12 if (docBean.canMoveUp()) { |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
13 %><a href="javascript:moveBy(0, -0.5)"><img src="img/up.gif" border="0" /></a><% |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
14 } |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
15 %></td> |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
16 <td></td> |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
17 </tr> |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
18 <tr> |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
19 <td valign="center"><% |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
20 if (docBean.canMoveLeft()) { |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
21 %><a href="javascript:moveBy(-0.5, 0)"><img src="img/left.gif" border="0" /></a><% |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
22 } |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
23 %></td> |
331
07aac99066bf
fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents:
317
diff
changeset
|
24 <td> |
07aac99066bf
fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents:
317
diff
changeset
|
25 <% |
07aac99066bf
fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents:
317
diff
changeset
|
26 if(isN4) { |
07aac99066bf
fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents:
317
diff
changeset
|
27 %><ilayer name="scaler"><% |
07aac99066bf
fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents:
317
diff
changeset
|
28 } else { |
07aac99066bf
fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents:
317
diff
changeset
|
29 %><div id="scaler" style="visibility:visible"><% |
07aac99066bf
fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents:
317
diff
changeset
|
30 } |
07aac99066bf
fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents:
317
diff
changeset
|
31 %> |
243
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
32 <script type="text/javascript"> |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
33 var ps = bestPicSize(getElement('scaler'), 10); |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
34 document.write('<img id="pic" src="<%= |
317 | 35 dlRequest.getAsString("base.url") + "/servlet/Scaler?" + dlRequest.getAsString('s') |
243
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
36 %>&dw='+ps.width+'&dh='+ps.height+'" />'); |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
37 </script> |
331
07aac99066bf
fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents:
317
diff
changeset
|
38 <% |
07aac99066bf
fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents:
317
diff
changeset
|
39 if(isN4) { |
07aac99066bf
fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents:
317
diff
changeset
|
40 %></ilayer><% |
07aac99066bf
fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents:
317
diff
changeset
|
41 } else { |
07aac99066bf
fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents:
317
diff
changeset
|
42 %></div><% |
07aac99066bf
fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents:
317
diff
changeset
|
43 } |
07aac99066bf
fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents:
317
diff
changeset
|
44 %> |
243
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
45 </td> |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
46 <td valign="center"><% |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
47 if (docBean.canMoveRight()) { |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
48 %><a href="javascript:moveBy(0.5, 0)"><img src="img/right.gif" border="0" /></a><% |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
49 } |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
50 %></td> |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
51 </tr> |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
52 <tr> |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
53 <td></td> |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
54 <td align="center"><% |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
55 if (docBean.canMoveDown()) { |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
56 %><a href="javascript:moveBy(0, 0.5)"><img src="img/down.gif" border="0" /></a><% |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
57 } |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
58 %></td> |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
59 <td></td> |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
60 </tr> |
4dbff786ff50
new digimage with red triangles for moving the zoomed area
robcast
parents:
diff
changeset
|
61 </table> |