annotate zpt/toc_thumbs.zpt @ 94:9d08a21fdd83

more changed templates, now with metal:use-macro zogilib mostly working
author casties
date Fri, 09 Apr 2010 20:33:53 +0200
parents b8c491e52ebc
children 027134cca83e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
94
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml">
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
4 <head>
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
6 </head>
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
7 <body>
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
8 <!-- block used for main content area -->
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
9 <metal:block metal:define-macro="main">
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
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))">&lt;</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)">&gt;</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
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
40 </metal:block>
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
41 </body>
9d08a21fdd83 more changed templates, now with metal:use-macro
casties
parents: 91
diff changeset
42 </html>