{script} {literal} $(function(){ $("form[name='MainSearchForm'] [name='match_sex']").change( function(){ OW.trigger("usearch.lookin_for_changed", $(this).val()); } ); }); {/literal} {/script} {if isset($menu)}{$menu}{/if} {if isset($authMessage)}
{$authMessage}
{else}
{form name=MainSearchForm} {if $displayAccountType==true} {if !empty($displayGender)}
{label name='sex'}
{input name='sex'}
{error name='sex'}
{/if}
{label name='match_sex'}
{input name='match_sex'}
{error name='match_sex'}
{label name='online'}
{input name='online'}
{error name='online'}
{label name='with_photo'}
{input name='with_photo'}
{error name='with_photo'}
{/if}
{foreach from=$questionList key='section' item='questions'} {if !empty($section) }
{/if} {foreach from=$questions item='question' name='question'} {if in_array( $question.presentation, array('text') ) }
{input name=$question.name}
{error name=$question.name}
{else}
{label name=$question.name}
{input name=$question.name}
{error name=$question.name}
{/if} {/foreach} {/foreach}
{submit name='SearchFormSubmit'}
{/form}
{/if}