annotate client/digitallibrary/digimage_tbl_inc.jsp @ 603:3292343f64d6 stream

very small fix
author robcast
date Tue, 11 Jan 2011 21:08:12 +0100
parents 07aac99066bf
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
603
3292343f64d6 very small fix
robcast
parents: 331
diff changeset
3 digilib.servlet.DocumentBean docBean = (digilib.servlet.DocumentBean) pageContext.getAttribute("docBean", PageContext.REQUEST_SCOPE);
243
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
610c7ee770cb big autumn cleaning :-)
robcast
parents: 243
diff changeset
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>