Mercurial > hg > documentViewer
annotate zpt/toc_thumbs.zpt @ 111:3345a4545d74
*** empty log message ***
author | abukhman |
---|---|
date | Fri, 21 May 2010 16:20:21 +0200 |
parents | 9d08a21fdd83 |
children | 027134cca83e |
rev | line source |
---|---|
94 | 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; | |
91
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
11 current pageinfo/current; grpsize pageinfo/groupsize"> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
12 |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
13 <div class="thumbruler"> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
14 <span tal:condition="python:(start>1)"> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
15 <a tal:attributes="href python:here.getLink(param='start',val=max(start-grpsize,1))"><</a> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
16 </span> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
17 <select tal:attributes="onChange python:'location.href=\''+here.getLink(param='start',val=None)+'&start=\'+this.options[this.selectedIndex].value'"> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
18 <option tal:repeat="grp python:range(pageinfo['numgroups'])" |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
19 tal:attributes="selected python:(start==grp*grpsize+1); value python:(grp*grpsize+1)" |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
20 tal:content="python:(grp*grpsize+1)"/> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
21 </select> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
22 <span tal:condition="python:(start+grpsize<int(docinfo['numPages']))"> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
23 <a tal:attributes="href python:here.getLink(param='start',val=start+grpsize)">></a> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
24 </span> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
25 </div> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
26 <table> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
27 <tr tal:repeat="row python:range(rows)"> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
28 <tal:block tal:repeat="idx python:range(start+row*cols,start+(row+1)*cols)"> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
29 <td align="center" tal:condition="python:(idx<=end)" |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
30 tal:attributes="class python:here.getStyle(idx,current,'thumb')"> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
31 <a tal:attributes="href python:here.getLink(param='pn',val=idx)"> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
32 <img class="thumbimg" border="0" tal:attributes="src string:${docinfo/imageURL}&pn=$idx&dw=100&dh=100"/> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
33 <div class="thumbcap" tal:content="idx"/> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
34 </a> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
35 </td> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
36 </tal:block> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
37 </tr> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
38 </table> |
b8c491e52ebc
new version with new full-text infrastructure and some more changed templates
casties
parents:
diff
changeset
|
39 </div> |
94 | 40 </metal:block> |
41 </body> | |
42 </html> |