{* ================================================================================ *}
{* ==================== Форма поиска по рубрике каталога ========================== *}
{* ================================================================================ *}

<h1 class="con_heading">{$LANG.SEARCH_IN_CAT}</h1>
<div class="uc_search_in_cat">
	<a href="/catalog/{$cat.id}">{$cat.title}</a>
</div>

<p><strong>{$LANG.FILL_FIELDS}:</strong></p>

<form action="/catalog/{$id}/search.html" name="searchform" method="post" >
    <div class="uc_cat_search">
        <table width="100%" border="0" cellspacing="5">
            <tr>
                <td width="160" valign="top">{$LANG.TITLE}: </td>
                <td valign="top"><input name="title" type="text" id="title" size="35" value="" /></td>
            </tr>
        </table>
        {foreach key=tid item=value from=$fstruct}
            <table width="100%" border="0" cellspacing="5">
                <tr>
                    <td width="160" valign="top">{$value}: </td>
                    <td valign="top"><input name="fdata[{$tid}]" type="text" id="fdata[]" size="35" value="" /> </td>
                </tr>
            </table>
        {/foreach}
        <table width="100%" border="0" cellspacing="5">
            <tr>
                <td width="160" valign="top">Тэги, через пробел: </td>
                <td valign="top"><input name="tags" type="text" id="tags" size="35" value="" /><br/><?php echo tagsList($id);?></td>
            </tr>
        </table>
    </div>
	<p>
		<input type="submit" name="gosearch" value="{$LANG.SEARCH_IN_CAT}" />
		<input type="button" onclick="window.history.go(-1);" name="cancel" value="{$LANG.CANCEL}" />
	</p>
</form>