version 1.3, 2010/05/25 14:36:24
|
version 1.3.2.3, 2011/08/24 08:58:20
|
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_text']); 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 $tocsize"/> |
<!-- 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="start pageinfo/start; tocsize docinfo/tocSize_text; grpsize pageinfo/tocPageSize; |
</span> |
batch python:here.getBatch(start=start,size=grpsize,end=tocsize);"> |
|
<ul class="switcher"> |
|
<li><a |
|
tal:attributes="href python:here.getLink('tocMode','thumbs')">Thumbnails</a> |
|
</li> |
|
<li class="sel" |
|
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('start', None)" |
|
tal:repeat="param params" |
|
tal:attributes="name param; value python:params[param]" /> |
|
<a tal:condition="batch/prevStart" |
|
tal:attributes="href python:here.getLink('start',batch['prevStart'])"><</a> |
|
<span tal:condition="not:batch/prevStart"><</span> |
|
<select class="autosubmit" name="start"> |
|
<option tal:repeat="grp batch/batches" |
|
tal:attributes="selected python:(start==grp['start']); value grp/start" |
|
tal:content="string:${grp/start} - ${grp/end}" /> |
|
</select> |
|
<input type="submit" value="Go" /> |
|
<a tal:condition="batch/nextStart" |
|
tal:attributes="href python:here.getLink('start',batch['nextStart'])">></a> |
|
<span tal:condition="not:batch/nextStart">></span> |
|
</form> |
</div> |
</div> |
<div tal:content="structure python:here.getTocPage(mode='text',pageinfo=pageinfo,docinfo=docinfo)"/> |
<div class="content" |
</tal:block> |
tal:content="structure python:here.getTocPage(mode='text',start=start,pageinfo=pageinfo,docinfo=docinfo)" /> |
|
</div> |
|
<!-- toc --> |
|
</body> |
|
</html> |