version 1.3, 2010/05/25 14:36:24
|
version 1.3.2.1, 2011/08/16 10:01:59
|
Line 1
|
Line 1
|
<tal:block tal:define="docinfo options/docinfo; pageinfo options/pageinfo; |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" |
pn python:int(pageinfo['tocPN']); tocsize python:int(docinfo['tocSize_figures']); grpsize python:int(pageinfo['tocPageSize']); |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
maxpn python:int(tocsize/grpsize);"> |
<html xmlns="http://www.w3.org/1999/xhtml"> |
<div class="thumbruler"> |
<head> |
<span tal:condition="python:(pn>1)"> |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
<a tal:attributes="href python:here.getLink(param='tocPN',val=pn-1)"><</a> |
</head> |
</span> |
<body> |
<span tal:content="string:$pn of $maxpn"/> |
<!-- block used for main content area --> |
<span> |
<div class="col_left" metal:define-macro="main" |
<a tal:attributes="href python:here.getLink(param='tocPN',val=pn+1)">></a> |
tal:define="pn pageinfo/tocPN; tocsize docinfo/tocSize_figures; grpsize pageinfo/tocPageSize; |
</span> |
maxpn python:int(math.ceil(tocsize/float(grpsize)));"> |
|
<ul class="switcher"> |
|
<li><a |
|
tal:attributes="href python:here.getLink('tocMode','thumbs')">Thumbnails</a> |
|
</li> |
|
<li |
|
tal:condition="python:docpath and docinfo.get('numTocEntries', None)"> |
|
<a tal:attributes="href python:here.getLink('tocMode','text')">Content</a> |
|
</li> |
|
<li |
|
tal:condition="python:docpath and 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="ruler"> |
|
<form class="autosubmit" tal:attributes="action viewerUrl"> |
|
<input type="hidden" |
|
tal:define="params python:here.getParams('tocPN', None)" |
|
tal:repeat="param params" |
|
tal:attributes="name param; value python:params[param]" /> |
|
<a tal:condition="python:(pn>1)" |
|
tal:attributes="href python:here.getLink('tocPN',pn-1)"><</a> |
|
<span tal:condition="python:(pn<=1)"><</span> |
|
<select class="autosubmit" name="tocPN"> |
|
<option tal:repeat="idx python:range(maxpn)" |
|
tal:attributes="selected python:(pn==idx*grpsize+1); value python:(idx*grpsize+1)" |
|
tal:content="python:str(idx*grpsize+1)" /> |
|
</select> |
|
<input type="submit" value="Go" /> |
|
<a tal:condition="python:(pn<maxpn)" |
|
tal:attributes="href python:here.getLink('tocPN',pn+1)">></a> |
|
<span tal:condition="python:(pn>=maxpn)">></span> |
|
</form> |
</div> |
</div> |
<div tal:content="structure python:here.getTocPage(mode='figures',pageinfo=pageinfo,docinfo=docinfo)"/> |
<div class="content" |
</tal:block> |
tal:content="structure python:here.getTocPage(mode='figures',pageinfo=pageinfo,docinfo=docinfo)" /> |
|
</div> |
|
<!-- toc --> |
|
</body> |
|
</html> |