artefactchooser.tpl 1.19 KB
Newer Older
1
{if $searchable}<ul class="artefactchooser-tabs">
2
3
    <li{if !$smarty.request.s} class="current"{/if}><a href="{$browseurl}">{str tag=Browse section=view}</a></li>
    <li{if $smarty.request.s} class="current"{/if}><a href="{$searchurl}">{str tag=Search section=view}</a></li>
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</ul>{/if}
<div id="artefactchooser-body">
    <div class="cb artefactchooser-splitter">
        <div id="artefactchooser-searchform"{if !$smarty.request.s} class="hidden"{/if}> {* Use a smarty var, not smarty.request *}
            <label><input type="text" class="text" id="artefactchooser-searchfield" name="search" value="{$smarty.request.search|escape}" tabindex="42">
            <input type="hidden" name="s" value="1">
            <input type="submit" class="submit" id="artefactchooser-searchsubmit" name="action_acsearch_id_{$blockinstance|escape}" value="&raquo;" tabindex="42"></label>
        </div>
        {if $artefacts}
        <table id="{$datatable}" class="artefactchooser-data">
            <tbody>
                {$artefacts}
            </tbody>
        </table>
        {$pagination}
        {else}
20
        <p class="noartefacts">{str tag=noartefactstochoosefrom section=view}</p>
21
22
23
        {/if}
    </div>
</div>