Thursday 08 July 2004 5:31:40 am
<form action={concat("/",$node.url_alias)|ezurl} method="post">
<select name="age" id="age">
<option value="">-- select --</option>
<option value="18">18 - 21</option>
<option value="22">22 - 26</option>
<option value="27">27 - 30</option>
</select>
<select name="sex" id="sex">
<option value="">-- select --</option>
<option value="male">male</option>
<option value="female">female</option>
</select>
<select name="language" id="language">
<option value="">-- select --</option>
<option value="Beginner">Beginner</option>
<option value="Intermediate">Intermediate</option>
<option value="Upper - Intermediate">Upper - Intermediate</option>
<option value="Advanced">Advanced</option>
</select>
<input class="searchbutton" name="SearchButton" type="submit" value="Search" />
</form>
I ve got class (id 16) with attributes age( id 191) sex(id 192) language(id 193). How to write search operator who will filtered data with this attributes? Table is like this
<table width="60%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>Age</td>
<td>Sex</td>
<td>Langiage</a></td>
</tr>
<tr>
<td>{attribute_view_gui attribute=$:item.object.data_map.age}</td>
<td>{attribute_view_gui attribute=$:item.object.data_map.sex}</td>
<td>{attribute_view_gui attribute=$:item.object.data_map.language}</td>
</tr> </table> This is my example
{let search=fetch( content , search ,
hash( text, ezhttp('sex', 'post'), class_id, 16, class_attribute_id, 191) ) )}
{section loop=$search['SearchResult']}
{$:item.name}
{/section}
{/let}
It`s works fine but only for sex. I don`t know how to add age and language to this search syntax? How to fetch personw with sex=male age between 18 and 21 and language=intermediate?
|