<div class="jumbotron">
	<div class="container">
		<h1><?php __('ws_search');?></h1>

		<p><?php __('ws_search_desc');?></p>
	</div><!-- /.container -->
</div><!-- /.jumbotron -->
<?php
$listing_for = __('listing_for', true);
$range = array(5, 10, 15, 20, 25, 50, 100);
$feature_types = __('feature_types', true); 
?>
<div class="section">
	<div class="container">
		<div class="form form-search">
			<form<?php echo $tpl['option_arr']['o_website_seo'] == 'Yes' ? ' action="'.PJ_INSTALL_URL.'index.php"' : NULL;?> id="pjYlQuickSearch" name="pjYlQuickSearch" method="get">
				<input type="hidden" value="pjWebsite" name="controller">
				<input type="hidden" value="pjActionYachts" name="action">
				<input type="hidden" value="1" name="listing_search">
				<input type="hidden" name="for" value="rent" />
				
				<div class="btn-group" role="group" aria-label="...">
					<button type="button" class="btn btn-default pjYlSearchType" data-type="sale"><?php __('ws_menu_for_sale');?></button>
					<button type="button" class="btn btn-default pjYlSearchType active" data-type="rent"><?php __('ws_menu_for_rent');?></button>
				</div>

				<div class="row">
					<div class="col-md-3 col-sm-4">
						<label class="control-label"><?php __('front_manufacturer');?>:</label>
						
						<div class="form-control-select">
							<select name="manufacturer_id">
								<option value="">-- <?php __('front_all');?> --</option>
								<?php
								foreach($tpl['manufacturer_arr'] as $v)
								{
									?><option value="<?php echo $v['id']?>"><?php echo $v['name']?></option><?php
								} 
								?>
							</select>
						</div><!-- /.form-control-select -->
					</div><!-- /.col-md-3 col-sm-4 -->

					<div class="col-md-3 col-sm-4">
						<label class="control-label"><?php __('front_model');?>:</label>
						
						<input type="text" name="listing_model" class="form-control">
					</div><!-- /.col-md-3 col-sm-4 -->

					<div class="col-md-3 col-sm-4">
						<label class="control-label"><?php __('front_reference_id');?>:</label>
						
						<input type="text" name="listing_refid" class="form-control">
					</div><!-- /.col-md-3 col-sm-4 -->

					<div class="col-md-3 col-sm-4">
						<label class="control-label"><?php __('front_year');?>:</label>
						
						<div class="range clearfix">
							
							<div class="ylYearSlider"></div>
							<input type="hidden" value="" name="min_year">
							<input type="hidden" value="" name="max_year">
							
						</div><!-- /.range -->
					</div><!-- /.col-md-3 col-sm-4 -->

					<div class="col-md-3 col-sm-4">
						<label class="control-label"><?php __('front_horsepower');?>:</label>
						
						<div class="range clearfix">
							<div class="ylSlider ylPowerSlider"></div>
							<input type="hidden" value="" name="min_horse_power">
							<input type="hidden" value="" name="max_horse_power">
						</div><!-- /.range -->
					</div><!-- /.col-md-3 col-sm-4 -->

					<div class="col-md-3 col-sm-4">
						<label class="control-label"><?php __('front_length');?>:</label>
						
						<div class="range clearfix">
							<div class="ylSlider ylLengthSlider"></div>
							<input type="hidden" value="" name="min_length">
							<input type="hidden" value="" name="max_length">
						</div><!-- /.range -->
					</div><!-- /.col-md-3 col-sm-4 -->
					
					<div class="col-md-3 col-sm-4">
						<label class="control-label"><?php echo $feature_types['fuel']; ?>:</label>
						
						<div class="form-control-select">
							<select name="feature_fuel_id">
								<option value="">-- <?php echo __('front_all'); ?> --</option>
								<?php
								foreach ($tpl['feature_arr']['fuel'] as $v)
								{
									?><option value="<?php echo $v['id']; ?>"><?php echo stripslashes($v['name']); ?></option><?php
								}
								?>
							</select>
						</div><!-- /.form-control-select -->
						
					</div><!-- /.col-md-3 col-sm-4 -->

					<div class="col-md-3 col-sm-4">
						<label class="control-label"><?php echo $feature_types['engine']; ?>:</label>
						
						<div class="form-control-select">
							<select name="feature_engine_id">
								<option value="">-- <?php echo __('front_all'); ?> --</option>
								<?php
								foreach ($tpl['feature_arr']['engine'] as $v)
								{
									?><option value="<?php echo $v['id']; ?>"><?php echo stripslashes($v['name']); ?></option><?php
								}
								?>
							</select>
						</div><!-- /.form-control-select -->
						
					</div><!-- /.col-md-3 col-sm-4 -->

					<div class="col-md-3 col-sm-4">
						<label class="control-label"><?php echo $feature_types['hull']; ?>:</label>
						
						<div class="form-control-select">
							<select name="feature_hull_id">
								<option value="">-- <?php echo __('front_all'); ?> --</option>
								<?php
								foreach ($tpl['feature_arr']['hull'] as $v)
								{
									?><option value="<?php echo $v['id']; ?>"><?php echo stripslashes($v['name']); ?></option><?php
								}
								?>
							</select>
						</div><!-- /.form-control-select -->
						
					</div><!-- /.col-md-3 col-sm-4 -->

					<div class="col-md-3 col-sm-4">
						<label class="control-label"><?php echo $feature_types['yacht']; ?>:</label>
						
						<div class="form-control-select">
							<select name="feature_yacht_id">
								<option value="">-- <?php echo __('front_all'); ?> --</option>
								<?php
								foreach ($tpl['feature_arr']['yacht'] as $v)
								{
									?><option value="<?php echo $v['id']; ?>"><?php echo stripslashes($v['name']); ?></option><?php
								}
								?>
							</select>
						</div><!-- /.form-control-select -->
						
					</div><!-- /.col-md-3 col-sm-4 -->

					<div class="col-md-3 col-sm-4">
						<label class="control-label"><?php __('front_loa');?>:</label>
						
						<div class="range clearfix">
							<div class="ylSlider ylLOASlider"></div>
							<input type="hidden" value="" name="min_loa">
							<input type="hidden" value="" name="max_loa">
						</div><!-- /.range -->
					</div><!-- /.col-md-3 col-sm-4 -->

					<div class="col-md-3 col-sm-4">
						<label class="control-label"><?php __('front_beam');?>:</label>
						
						<div class="range clearfix">
							<div class="ylSlider ylBeamSlider"></div>
							<input type="hidden" value="" name="min_beam">
							<input type="hidden" value="" name="max_beam">
						</div><!-- /.range -->
					</div><!-- /.col-md-3 col-sm-4 -->
				</div><!-- /.row -->	
				
				<div class="row">
					<div class="col-md-3 col-sm-4">
						<button class="btn btn-primary btn-block" type="submit"><?php __('front_search_yatchs');?></button>		
					</div><!-- /.col-md-3 col-sm-4 -->
				</div><!-- /.row -->
			</form>
		</div><!-- /.form -->
	</div><!-- /.container -->
</div><!-- /.main -->