Mercurial > hg > digilib-old
annotate client/digitallibrary/oldskin/dcMain.jsp @ 636:7049579a0097 jquery
last and next page works now
implemented redisplay function (only tested with fullscreen)
parameters that are changed need to be in data.queryParams to get in the url on redisplay
author | robcast |
---|---|
date | Tue, 18 Jan 2011 21:30:03 +0100 |
parents | 2e09486e33c4 |
children |
rev | line source |
---|---|
311 | 1 <%@ page language="java" %><%! |
2 // authentication stuff - robert | |
3 // ----------------------------- | |
4 // create DocumentBean instance for all JSP requests | |
5 digilib.servlet.DocumentBean docBean = new digilib.servlet.DocumentBean(); | |
6 | |
7 // initialize DocumentBean instance in JSP init | |
8 public void jspInit() { | |
9 try { | |
10 // set servlet init-parameter | |
11 docBean.setConfig(getServletConfig()); | |
12 } catch (javax.servlet.ServletException e) { | |
13 System.out.println(e); | |
14 } | |
15 } | |
16 %><% | |
17 | |
18 // parsing the query | |
19 // ----------------- | |
20 | |
21 digilib.servlet.DigilibRequest dcRequest = new digilib.servlet.DigilibRequest(request); | |
22 // check if authentication is needed and redirect if necessary | |
23 docBean.doAuthentication(dcRequest, response); | |
24 // set number of pages | |
25 dcRequest.setValue("pt", docBean.getNumPages(dcRequest)); | |
26 // chop off /oldskin -- ugly ;-( | |
27 String baseUrl = dcRequest.getAsString("base.url"); | |
28 int p = baseUrl.lastIndexOf("/oldskin"); | |
29 if (p > 0) { | |
30 baseUrl = baseUrl.substring(0, p); | |
31 } | |
32 %> | |
33 <html> | |
34 <head> | |
35 <script type="text/javascript" src="../baselib.js"></script> | |
36 <script type="text/javascript" src="dclib.js"></script> | |
37 <script type="text/javascript"> | |
333
2e09486e33c4
fixed problems with Netscape4 (silly error by me partly :-)
robcast
parents:
311
diff
changeset
|
38 base_init(); |
311 | 39 var baseUrl = "<%= baseUrl %>"; |
40 newParameter('fn', '', 1); | |
41 newParameter('pn', 1, 1); | |
42 newParameter('pt', 9, 9); | |
43 newParameter('mx', '6x4', 1); | |
44 newParameter('mo', '', 1); | |
45 newParameter('dw', 0, 1); | |
46 newParameter('dh', 0, 1); | |
47 dc_init(); | |
48 </script> | |
49 | |
50 <style type="text/css"> | |
51 td { | |
52 font-family: Helvetica, Arial, sans-serif; | |
53 font-size: 11px; | |
54 color: #FFFFFF; | |
55 text-align: center; | |
56 vertical-align: middle; | |
57 } | |
58 .number { | |
59 font-family: Helvetica, Arial, sans-serif; | |
60 font-size: 11px; | |
61 color: #FFFFFF; | |
62 padding-top: 2px; | |
63 } | |
64 .nonumber { | |
65 font-family: Helvetica, Arial, sans-serif; | |
66 font-size: 11px; | |
67 color: #000000; | |
68 padding-top: 2px; | |
69 } | |
70 </style> | |
71 </head> | |
72 | |
73 <body bgcolor="#666666"> | |
74 | |
75 <div align="center"> | |
76 <script type="text/javascript"> | |
77 dc_render(document); | |
78 </script> | |
79 </div> | |
80 | |
81 </body> | |
82 | |
83 </html> |