@model Rusdam.Models.SearchObjectModel
@{
ViewBag.Title = Resources.Resource.Adverts;
}
<!-- Форма поиска по объявлениям -->
@using (Html.BeginForm())
{
<div class="table_two">
<h2>Поиск объявлений</h2>
<fieldset class="centreDiv">
<table class="table_two_div">
@if (Request.Url.AbsoluteUri.Contains("Advert/All"))
{
<tr>
<td>@Html.LabelFor(model => model.IsConfirmedStr)</td>
<td>@Html.DropDownListFor(model => model.IsConfirmedStr, Html.IsConfirmedForSearch())</td>
</tr>
}
<tr>
<td>@Html.LabelFor(model => model.CountryID)</td>
<td>@Html.DropDownListFor(model => model.CountryID, ViewBag.Countries as SelectList)</td>
</tr>
<tr>
<td>@Html.LabelFor(model => model.CityID)</td>
<td>@Html.DropDownListFor(model => model.CityID, ViewBag.Cities as SelectList)</td>
</tr>
<tr>
<td>@Html.LabelFor(model => model.AreaID)</td>
<td>@Html.DropDownListFor(model => model.AreaID, ViewBag.Areas as SelectList)</td>
</tr>
<tr>
<td>@Html.LabelFor(model => model.AdvertTypeID)</td>
<td>@Html.DropDownListFor(model => model.AdvertTypeID, ViewBag.AdvertTypes as SelectList)</td>
</tr>
<tr>
<td>@Html.LabelFor(model => model.ApartmentTypeID)</td>
<td>@Html.DropDownListFor(model => model.ApartmentTypeID, ViewBag.ApartmentTypes as SelectList)</td>
</tr>
<tr>
<td>@Html.LabelFor(model => model.AmountRoomFrom)</td>
<td>@Html.EditorFor(model => model.AmountRoomFrom)</td>
</tr>
<tr>
<td>@Html.LabelFor(model => model.AmountRoomTo)</td>
<td>@Html.EditorFor(model => model.AmountRoomTo)</td>
</tr>
<tr>
<td>@Html.LabelFor(model => model.Name)</td>
<td>@Html.EditorFor(model => model.Name)</td>
</tr>
<tr>
<td>@Html.LabelFor(model => model.Description)</td>
<td>@Html.EditorFor(model => model.Description)</td>
</tr>
<tr>
<td>@Html.LabelFor(model => model.SquareFrom)</td>
<td>@Html.EditorFor(model => model.SquareFrom)</td>
</tr>
<tr>
<td>@Html.LabelFor(model => model.SquareTo)</td>
<td>@Html.EditorFor(model => model.SquareTo)</td>
</tr>
<tr>
<td>@Html.LabelFor(model => model.Address)</td>
<td>@Html.EditorFor(model => model.Address)</td>
</tr>
<tr>
<td>@Html.LabelFor(model => model.PriceFrom)</td>
<td>@Html.EditorFor(model => model.PriceFrom)</td>
</tr>
<tr>
<td>@Html.LabelFor(model => model.PriceTo)</td>
<td>@Html.EditorFor(model => model.PriceTo)</td>
</tr>
<tr>
<td>@Html.LabelFor(model => model.FloorFrom)</td>
<td>@Html.EditorFor(model => model.FloorFrom)</td>
</tr>
<tr>
<td>@Html.LabelFor(model => model.FloorTo)</td>
<td>@Html.EditorFor(model => model.FloorTo)</td>
</tr>
<tr>
<td>@Html.LabelFor(model => model.FloorTotalFrom)</td>
<td>@Html.EditorFor(model => model.FloorTotalFrom)</td>
</tr>
<tr>
<td>@Html.LabelFor(model => model.FloorTotalTo)</td>
<td>@Html.EditorFor(model => model.FloorTotalTo)</td>
</tr>
<tr>
<td>@Html.LabelFor(model => model.WindowTo)</td>
<td>@Html.DropDownListFor(model => model.WindowTo, Html.WindowToSearchDDSL())</td>
</tr>
<tr>
<td>@Html.LabelFor(model => model.WindowSide)</td>
<td>@Html.DropDownListFor(model => model.WindowSide, Html.WindowSideSearchDDSL())</td>
</tr>
</table>
</fieldset>
<div class="centreDiv">
<a href="javascript:SubmitFormValidation()">
<input type="submit" value="@Resources.Resource.Search" />
</a>
</div>
</div>
}