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

46 lines
1.3 KiB
Smarty
Raw Normal View History

2005-02-03 17:55:35 +01:00
{*Smarty template*}
2005-02-08 16:10:09 +01:00
{include file="script/search.js.tpl"}
2005-02-03 17:55:35 +01:00
{if $showSearchForm}
{literal}
<style type="text/css">
.dynformelement {
2005-02-08 12:22:08 +01:00
width : 800px;
2005-02-03 17:55:35 +01:00
}
</style>
{/literal}
<div id="searchform">
2005-02-21 15:42:15 +01:00
{include file="sub/x.tpl"}
2005-02-03 17:55:35 +01:00
<center>
{foreach from=$searchform item=dynform}
2005-02-21 15:42:15 +01:00
{include file="sub/dynForm_plain.tpl"}
2005-02-03 17:55:35 +01:00
{/foreach}
</center>
</div>
{/if}
{if $showSearchRes}
<div id="searchres">
2005-02-11 20:25:29 +01:00
<center>
2005-02-17 20:23:48 +01:00
{if is_array($searchres)}
2005-02-11 20:25:29 +01:00
<table>
<tr><th>{tra 0=Title}</th><th>{tra 0=Duration}</th><th></th></tr>
2005-02-17 20:23:48 +01:00
{foreach from=$searchres item=s}
2005-02-11 20:25:29 +01:00
<tr style="background-color: {cycle values='#eeeeee, #dadada'}">
<td>{$s.title}</td>
<td>{$s.duration}</td>
2005-02-21 15:42:15 +01:00
<td>
<a href="#" onClick="hpopup('{$UI_HANDLER}?act=PL.addItem&id={$s.id}', '2PL')">[PL]</a>
2005-02-17 20:23:48 +01:00
<a href="#" onClick="hpopup('{$UI_HANDLER}?act=SP.addItem&id={$s.id}', '2SP')">[SP]</a>
2005-02-11 20:25:29 +01:00
</td>
</tr>
</div>
{/foreach}
</table>
2005-02-03 17:55:35 +01:00
{else}
No match found.
{/if}
2005-02-11 20:25:29 +01:00
</center>
2005-02-03 17:55:35 +01:00
</div>
{/if}