sintonia/livesupport/modules/htmlUI/var/html/templates/search.tpl

38 lines
1.0 KiB
Smarty

{*Smarty template*}
{include file="script/search.js.tpl"}
{if $showSearchForm}
{literal}
<style type="text/css">
.dynformelement {
width : 800px;
}
</style>
{/literal}
<div id="searchform">
<center>
{foreach from=$searchform item=dynform}
{include file="form_parts/dynForm_plain.tpl"}
{/foreach}
</center>
</div>
{/if}
{if $showSearchRes}
<div id="searchres">
{if (count($searchres.search))}
{foreach from=$searchres.search item=s}
<div style="background-color: {cycle values='#eeeeee, #dadada'}">{$s.gunid}
<a href="{$UI_BROWSER}?act=getMdata&id={$s.par_id}">[XML]</a>
<a href="{$UI_BROWSER}?act=editMetaDataValues&id={$s.par_id}">[Form]</a>
<a href="#" onClick="popup('{$UI_HANDLER}?act=add2SP&id={$s.par_id}', '2SP', 1, 1)">[SP]</a>
</div>
{/foreach}
{else}
No match found.
{/if}
</div>
{/if}