1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
---|
2 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
---|
3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
---|
4 | <head> |
---|
5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
---|
6 | </head> |
---|
7 | <body> |
---|
8 | <!-- block used for main content area --> |
---|
9 | <metal:block metal:define-macro="main"> |
---|
10 | <div tal:define="start pageinfo/start; end pageinfo/end; rows pageinfo/rows; cols pageinfo/cols; |
---|
11 | current pageinfo/current; grpsize pageinfo/groupsize"> |
---|
12 | |
---|
13 | <div class="thumbruler"> |
---|
14 | <span tal:condition="python:(start>1)"> |
---|
15 | <a tal:attributes="href python:here.getLink(param='start',val=max(start-grpsize,1))"><</a> |
---|
16 | </span> |
---|
17 | <select tal:attributes="onChange python:'location.href=\''+here.getLink(param='start',val=None)+'&start=\'+this.options[this.selectedIndex].value'"> |
---|
18 | <option tal:repeat="grp python:range(pageinfo['numgroups'])" |
---|
19 | tal:attributes="selected python:(start==grp*grpsize+1); value python:(grp*grpsize+1)" |
---|
20 | tal:content="python:(grp*grpsize+1)"/> |
---|
21 | </select> |
---|
22 | <span tal:condition="python:(start+grpsize<int(docinfo['numPages']))"> |
---|
23 | <a tal:attributes="href python:here.getLink(param='start',val=start+grpsize)">></a> |
---|
24 | </span> |
---|
25 | </div> |
---|
26 | <table> |
---|
27 | <tr tal:repeat="row python:range(rows)"> |
---|
28 | <tal:block tal:repeat="idx python:range(start+row*cols,start+(row+1)*cols)"> |
---|
29 | <td align="center" tal:condition="python:(idx<=end)" |
---|
30 | tal:attributes="class python:here.getStyle(idx,current,'thumb')"> |
---|
31 | <a tal:attributes="href python:here.getLink(param='pn',val=idx)"> |
---|
32 | <img class="thumbimg" border="0" tal:attributes="src string:${docinfo/imageURL}&pn=$idx&dw=100&dh=100"/> |
---|
33 | <div class="thumbcap" tal:content="idx"/> |
---|
34 | </a> |
---|
35 | </td> |
---|
36 | </tal:block> |
---|
37 | </tr> |
---|
38 | </table> |
---|
39 | </div> |
---|
40 | </metal:block> |
---|
41 | </body> |
---|
42 | </html> |
---|