baseline
[omp.pkp.sfu.ca.git] / lib / pkp / templates / help / toc.tpl
blobb24d83ceb0d4fdcb005d48330344283a706d73eb
1 {**
2  * toc.tpl
3  *
4  * Copyright (c) 2000-2009 John Willinsky
5  * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
6  *
7  * Help table of contents.
8  *
9  *}
10 <div style="padding-top: 0.5em;">
11         <form action="{url op="search"}" method="post" style="display: inline">
12         <input type="text" name="keyword" size="16" maxlength="60" value="{$helpSearchKeyword|escape}" class="textField" />&nbsp;<input type="submit" value="{translate key="common.search"}" class="button" />
13         </form>
14 </div>
16 {if !empty($helpSearchResult) && !empty($helpSearchKeyword)}
17 <br />
19 <div><a href="{url op="search" anchor="result`$helpSearchResult`"|escape keyword=$helpSearchKeyword|escape}">{translate key="help.searchReturnResults"}</a></div>
20 {/if}
22 <br />
24 <div><a href="{url op="toc"}">{translate key="help.toc"}</a></div>
26 <br />
28 {if $toc->getParentTopicId() && $toc->getParentTopicId() != $topic->getId()}
29 <div id="helpContents">
30 {translate key="help.contents"}&nbsp;<a href="{url op="view" path=$toc->getParentTopicId()|explode:"/"}">{translate key="help.upALevel"}</a>
31 </div>
32 <br />
33 {/if}
35 <div id="helpToc" class="block">
36         <span class="blockTitle">{$toc->getTitle()}</span>
37         <ul>
38                 {foreach from=$toc->getTopics() item=currTopic}
39                         {if $currTopic->getId() == $topic->getId()}
40                         <li><a href="{url op="view" path=$currTopic->getId()|explode:"/"}" class="current">{$currTopic->getTitle()}</a>
41                         {if $subToc}
42                         <ul>
43                         {foreach from=$subToc->getTopics() item=currSubTopic}
44                                 <li><a href="{url op="view" path=$currSubTopic->getId()|explode:"/"}">{$currSubTopic->getTitle()}</a></li>
45                         {/foreach}
46                         </ul>
47                         {/if}
48                         </li>
49                         {else}
50                         <li><a href="{url op="view" path=$currTopic->getId()|explode:"/"}">{$currTopic->getTitle()}</a></li>
51                         {/if}
52                 {/foreach}
53         </ul>
54 </div>