<form id="filter-form" action="$Link" method="get" enctype="application/x-www-form-urlencoded">
<ul class="search_box">
    <li>
        <label for="label">$Filter.search<% _t('LangEditor.JOB_FILTER_SEARCH', 'Paieška:') %></label> 
        <div id="search-input-block">
            <input type="text" name="search" id="search" value="$Filter.Search" placeholder="<% _t('LangEditor.JOB_FILTER_SEARCH_PLACEHOLDER', 'ieškoti') %>" class="input text nolabel" /> 
            <input type="submit" id="filter-action" name="action_results" value="" class="submit action" />
        </div>
        <a href="#" id="filter-expand" class="url <% if AdvancedFilter %>close<% else %>open<% end_if %>"><% _t('LangEditor.JOB_FILTER_TEXT', 'Darbo skelbimų filtras') %></a></li>
    <li class="filter-additional <% if AdvancedFilter %><% else %>hide<% end_if %>">
        <label for="label"><% _t('LangEditor.JOB_FILTER_CITY', 'Miestas:') %></label> 
        <select name="city" id="city" class="el_130">
            <option value=""><% _t('LangEditor.JOB_FILTER_CITY_DEFAULT', 'Visi miestai') %></option>
            <% if ActiveParam(City) %>
            <% control ActiveParam(City) %>
            <option value="$Title" <% if Active %>selected<% end_if %>>$Title</option>
            <% end_control %>
            <% end_if %>
            
        </select> 
        <label for="label"><% _t('LangEditor.JOB_FILTER_PERIOD', 'Laikotarpis:') %></label> 
        <select name="period" id="period" class="el_130">
            <option value=""><% _t('LangEditor.JOB_FILTER_PERIOD_DEFAULT', 'Per visą laikotarpį') %></option>
            <option value="1" <% if FilterCheckedPeriod(1) %>selected<% end_if %>><% _t('LangEditor.JOB_FILTER_PERIOD_1', 'Šiandienos') %></option>
            <option value="7" <% if FilterCheckedPeriod(7) %>selected<% end_if %>><% _t('LangEditor.JOB_FILTER_PERIOD_7', 'Savaitės') %></option>
            <option value="30"<% if FilterCheckedPeriod(30) %>selected<% end_if %>><% _t('LangEditor.JOB_FILTER_PERIOD_30', 'Mėnesio') %></option>
        </select> 
    </li>
    <li class="filter-additional <% if AdvancedFilter %><% else %>hide<% end_if %>">
        <label for="label"><% _t('LangEditor.JOB_FILTER_SECTOR', 'Darbo sritis:') %></label> 
        <select name="sector" id="sector" class="el_130">
            <option value=""><% _t('LangEditor.JOB_FILTER_SECTOR_DEFAULT', 'Visos sritys') %></option>
            <% if ActiveParam(Sector) %>
            <% control ActiveParam(Sector) %>
            <option value="$Title" <% if Active %>selected<% end_if %>>$CurrentCity $Title</option>
            <% end_control %>
            <% end_if %>
        </select> 
        <label for="label"><% _t('LangEditor.JOB_FILTER_TYPE', 'Darbo rūšis:') %></label> 
        <select name="type" id="type" class="el_130">
            <option value=""><% _t('LangEditor.JOB_FILTER_TYPE_DEFAULT', 'Visos rūšys') %></option>
            <option value="1" <% if FilterCheckedType(1) %>selected<% end_if %>><% _t('LangEditor.JOB_FILTER_TYPE_0', 'Laikinas darbas') %></option>
            <option value="2" <% if FilterCheckedType(2) %>selected<% end_if %>><% _t('LangEditor.JOB_FILTER_TYPE_1', 'Nuolatinis darbas') %></option>
        </select>
        <input type="button" value="<% _t('LangEditor.JOB_FILTER_BUTTON', 'Ieškoti') %>" name="find" id="find" class="filter-button" />
        <input type="button" value="<% _t('LangEditor.JOB_FILTER_RESET', 'Išvalyti') %>" name="find" data-href="$AbsoluteLink" id="reset-filter" class="filter-button" />
    </li>
</ul>
</form> 

<% if JobOffers %>
<table cellspacing="0" cellpadding="0" class="advert_table">
    <tr>
        <th><% _t('LangEditor.JOB_TABLE_POSITION', 'Pozicija') %> </th>
        <th><% _t('LangEditor.JOB_TABLE_CITY', 'Vietovė') %></th>
        <th><% _t('LangEditor.JOB_TABLE_DATE', 'Data') %></th>
        <th><% _t('LangEditor.JOB_TABLE_TYPE', 'Rūšis') %></th>
    </tr>
    <% control JobOffers %>
    <tr <% if Odd %>class="bg"<% end_if %> >
        <td>
            <a href="{$Top.Link}view/{$URLSegment}" target="_blank" title="$Title.ATT">
                <strong>$Title</strong>
            </a>
        </td>
        <td>$City</td>
        <td>
            <% _t('LangEditor.JOB_TABLE_DATE_FROM', 'Data:') %> $PublishDate.Format(Y m d) <br /> 
            <% _t('LangEditor.JOB_TABLE_DATE_TO', 'Galioja iki:') %> $ValidToDate.Format(Y m d)</td>
        <td>
            <% if Type=1 %>
            <% _t('LangEditor.JOB_FILTER_TYPE_1', 'Nuolatinis darbas') %>
            <% else %>
            <% _t('LangEditor.JOB_FILTER_TYPE_0', 'Laikinas darbas') %>
            <% end_if %>
        </td>
    </tr>
    <% end_control %>
</table>


<% if JobOffers.MoreThanOnePage %>
<div class="pages">
    <% if JobOffers.NotFirstPage %><a href="$JobOffers.PrevLink" class="prev" title="<% _t('LangEditor.PREV_PAGE', 'Previous') %>">&laquo; <% _t('LangEditor.PREV_PAGE', 'Previous') %> </a><% end_if %>
    <% if JobOffers.PaginationSummary %>
    <% control JobOffers.PaginationSummary %>
    <a href="$Link" <% if CurrentBool %>class="act"<% end_if %> title="$PageNum">$PageNum</a> 
    <% end_control %>
    <% end_if %>
    <% if JobOffers.NotLastPage %><a href="$JobOffers.NextLink" class="next" title="<% _t('LangEditor.NEXT_PAGE', 'Next') %>"><% _t('LangEditor.NEXT_PAGE', 'Next') %> &raquo;</a><% end_if %>
</div>
<% end_if %>
<% else %>
<div id="filter-empty-results"><p><% _t('LangEditor.JOB_FILTER_EMPTY', 'Pagal Jūsų paiešką rezultatų neradome.') %></p></div>
<% end_if %>