version 1.3, 2010/05/25 14:36:24
|
version 1.3.2.5, 2011/08/25 15:05:22
|
Line 1
|
Line 1
|
<div tal:define="docinfo options/docinfo; pageinfo options/pageinfo; |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
start pageinfo/start; end pageinfo/end; rows pageinfo/rows; cols pageinfo/cols; |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
current pageinfo/current; grpsize pageinfo/groupsize"> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
|
<head> |
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|
</head> |
|
<body> |
|
<!-- block used for main content area --> |
|
<div class="toc-thumbs" metal:define-macro="main" |
|
tal:define="start pageinfo/start; |
|
grpsize pageinfo/groupsize; |
|
numgroups pageinfo/numgroups; |
|
pageBatch pageinfo/pageBatch; pageZero pageinfo/pageZero; |
|
left python:test(flowLtr,pageBatch['prevStart'],pageBatch['nextStart']); |
|
right python:test(flowLtr,pageBatch['nextStart'],pageBatch['prevStart']);"> |
|
<ul class="toctype"> |
|
<li class="sel"> |
|
<a tal:attributes="href python:here.getLink('tocMode','thumbs')">Thumbnails</a> |
|
</li> |
|
<li tal:condition="python:docinfo.get('numTocEntries', None)"> |
|
<a tal:attributes="href python:here.getLink('tocMode','text')">Content</a> |
|
</li> |
|
<li tal:condition="python:docinfo.get('numFigureEntries', None)"> |
|
<a tal:attributes="href python:here.getLink('tocMode','figures')">Figures</a> |
|
</li> |
|
<li> |
|
<a tal:attributes="href python:here.getLink('tocMode','none')">None</a> |
|
</li> |
|
</ul> |
|
|
<div class="thumbruler"> |
<div class="content"> |
<span tal:condition="python:(start>1)"> |
<div class="ruler"> |
<a tal:attributes="href python:here.getLink(param='start',val=max(start-grpsize,1))"><</a> |
<form class="autosubmit" tal:attributes="action viewerUrl"> |
</span> |
<input type="hidden" tal:define="params python:here.getParams('start',None)" |
<select tal:attributes="onChange python:'location.href=\''+here.getLink(param='start',val=None)+'&start=\'+this.options[this.selectedIndex].value'"> |
tal:repeat="param params" |
<option tal:repeat="grp python:range(pageinfo['numgroups'])" |
tal:attributes="name param; value python:params[param]" /> |
tal:attributes="selected python:(start==grp*grpsize+1); value python:(grp*grpsize+1)" |
<a tal:condition="left" tal:attributes="href python:here.getLink('start',left)"><</a> |
tal:content="python:(grp*grpsize+1)"/> |
<span tal:condition="not:left"><</span> |
|
<select class="autosubmit" name="start" |
|
tal:define="ofs python:test(pageinfo['pageZero'],0,1)"> |
|
<tal:block > |
|
<option tal:repeat="grp pageBatch/batches" |
|
tal:attributes="selected python:start==grp['start']; value grp/start;" |
|
tal:content="string:${grp/start} - ${grp/end}" /> |
|
</tal:block> |
</select> |
</select> |
<span tal:condition="python:(start+grpsize<int(docinfo['numPages']))"> |
<input type="submit" value="Go" /> |
<a tal:attributes="href python:here.getLink(param='start',val=start+grpsize)">></a> |
<a tal:condition="right" tal:attributes="href python:here.getLink('start',right)">></a> |
</span> |
<span tal:condition="not:right">></span> |
|
</form> |
</div> |
</div> |
<table> |
|
<tr tal:repeat="row python:range(rows)"> |
<table class="thumbs"> |
<tal:block tal:repeat="idx python:range(start+row*cols,start+(row+1)*cols)"> |
<tr tal:repeat="row pageBatch/pages"> |
<td align="center" tal:condition="python:(idx<=end)" |
<td tal:repeat="thumb row" |
tal:attributes="class python:here.getStyle(idx,current,'thumb')"> |
tal:attributes="class python:here.getStyle(thumb['idx'],pn,'thumb')"> |
<a tal:attributes="href python:here.getLink(param='pn',val=idx)"> |
<a tal:define="idx thumb/idx" tal:condition="idx" |
<img class="thumbimg" border="0" tal:attributes="src string:${docinfo/imageURL}&pn=$idx&dw=100&dh=100"/> |
tal:attributes="href python:here.getLink('pn',idx)"> |
<div class="thumbcap" tal:content="idx"/> |
<img |
|
tal:attributes="src python:test(docinfo['imageURL'],here.getScalerUrl(pn=idx,dw=100,dh=100,docinfo=docinfo),'images/pic'); |
|
alt idx" /><br/> |
|
<span tal:content="idx" /> |
</a> |
</a> |
</td> |
</td> |
</tal:block> |
|
</tr> |
</tr> |
</table> |
</table> |
</div> |
</div> <!-- content --> |
|
</div> <!-- toc --> |
|
</body> |
|
</html> |
|
|