{if $module_recent_js != false}
<form id="search_recent" method="post" action="" enctype="multipart/form-data">
<table width="100%" border="0" cellspacing="0" cellpadding="1" class="table_background">
<tr>
<td class="table_heading">{t}Your Recent Searches{/t}</td>
</tr>
<td>
<table width="100%" border="0" cellspacing="3" cellpadding="1" class="row1">
<tr class="row1" valign="top">
<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>
<td><input type="submit" name="Submit" value="{t}View{/t}" class="form_button"/></td>
</table>
{$module_recent_js}
<div>
<input type="hidden" name="_page" value="module:search_show"/>
</div>
</form>
{/if}