source: documentViewer/zpt/toc_thumbs.zpt @ 422:aca50da17290

Last change on this file since 422:aca50da17290 was 122:027134cca83e, checked in by casties, 14 years ago

reverting back to non-metal version for now

File size: 1.4 KB
Line 
1<div tal:define="docinfo options/docinfo; pageinfo options/pageinfo; 
2  start pageinfo/start; end pageinfo/end; rows pageinfo/rows; cols pageinfo/cols;
3  current pageinfo/current; grpsize pageinfo/groupsize">
4
5<div class="thumbruler">
6  <span tal:condition="python:(start>1)">
7    <a tal:attributes="href python:here.getLink(param='start',val=max(start-grpsize,1))">&lt;</a>
8  </span>
9  <select tal:attributes="onChange python:'location.href=\''+here.getLink(param='start',val=None)+'&start=\'+this.options[this.selectedIndex].value'">
10    <option tal:repeat="grp python:range(pageinfo['numgroups'])"
11      tal:attributes="selected python:(start==grp*grpsize+1); value python:(grp*grpsize+1)"
12      tal:content="python:(grp*grpsize+1)"/>
13  </select>
14  <span tal:condition="python:(start+grpsize<int(docinfo['numPages']))">
15    <a tal:attributes="href python:here.getLink(param='start',val=start+grpsize)">&gt;</a>
16  </span>
17</div>
18<table>
19  <tr tal:repeat="row python:range(rows)">
20    <tal:block tal:repeat="idx python:range(start+row*cols,start+(row+1)*cols)">
21      <td align="center" tal:condition="python:(idx<=end)"
22                        tal:attributes="class python:here.getStyle(idx,current,'thumb')">
23                <a tal:attributes="href python:here.getLink(param='pn',val=idx)">
24                  <img class="thumbimg" border="0" tal:attributes="src string:${docinfo/imageURL}&pn=$idx&dw=100&dh=100"/>
25                  <div class="thumbcap" tal:content="idx"/>
26                </a>
27          </td>
28    </tal:block>
29  </tr>
30</table>
31</div>
Note: See TracBrowser for help on using the repository browser.