Annotation of documentViewer/zpt/thumbs_main.zpt, revision 1.4
1.2 casties 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: <div class="thumbruler">
5: <span tal:condition="python:(start>1)">
6: <a tal:attributes="href python:here.getLink(param='start',val=max(start-grpsize,1))"><</a>
7: </span>
1.4 ! casties 8: <select tal:attributes="onChange python:'location.href=\''+here.getLink(param='start',val=None)+'&start=\'+this.options[this.selectedIndex].value'">
1.2 casties 9: <option tal:repeat="grp python:range(pageinfo['numgroups'])"
10: tal:attributes="selected python:(start==grp*grpsize+1); value python:(grp*grpsize+1)"
11: tal:content="python:(grp*grpsize+1)"/>
12: </select>
1.3 casties 13: <span tal:condition="python:(start+grpsize<int(docinfo['numPages']))">
1.2 casties 14: <a tal:attributes="href python:here.getLink(param='start',val=start+grpsize)">></a>
15: </span>
16: </div>
1.1 casties 17: <table>
1.2 casties 18: <tr tal:repeat="row python:range(rows)">
19: <tal:block tal:repeat="idx python:range(start+row*cols,start+(row+1)*cols)">
1.4 ! casties 20: <td align="center" tal:condition="python:(idx<=end)"
1.2 casties 21: tal:attributes="class python:here.getStyle(idx,current,'thumb')">
22: <a tal:attributes="href python:here.getLink(param='pn',val=idx)">
1.4 ! casties 23: <img class="thumbimg" border="0" tal:attributes="src string:${docinfo/imageURL}&pn=$idx&dw=100&dh=100"/>
1.2 casties 24: <div class="thumbcap" tal:content="idx"/>
1.1 casties 25: </a>
1.2 casties 26: </td>
27: </tal:block>
28: </tr>
1.1 casties 29: </table>
30: </div>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>