This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/themes/default/blocks/core/recent_searches.tpl

35 lines
1.2 KiB
Smarty
Raw Normal View History

2009-08-03 04:10:16 +00:00
{if $module_recent_js != false}
<form id="search_recent" method="post" action="" enctype="multipart/form-data">
2009-08-03 04:10:16 +00:00
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="table_background">
<tr>
<td class="table_heading">{t}Your Recent Searches{/t}</td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="top">
<td>
<select name="search_id" onchange="fill_search_recent(mod,fields,field_count,limit,order,s,c);">
<option value="">...</option>
{foreach from=$module_recent_menu item=record}
<option value="{$record.id}">{$record.date_orig|date_format:'%B %d'} > {$record.sql|replace:'WHERE ':''|replace:'AND':'|'|replace:'%':''|replace:"'":''|truncate:70:'...'}</option>
{/foreach}
</select>
</td>
</tr>
<tr class="row1" valign="top">
<td><input type="submit" name="Submit" value="{t}View{/t}" class="form_button"/></td>
</tr>
</table>
{$module_recent_js}
</td>
</tr>
</table>
<div>
<input type="hidden" name="_page" value="module:search_show"/>
</div>
</form>
{/if}