<?php
mt_srand();
$index = mt_rand(1, 9999);
$listing_for = __('listing_for', true);
$range = array(5, 10, 15, 20, 25, 50, 100);
$feature_types = __('feature_types', true);
?>
<div id="ylContainer_<?php echo $index;?>" class="ylContainer">
	<?php include_once ROOT_PATH . PJ_TEMPLATE_PATH . $tpl['option_arr']['o_layout']. '/elements/header.php';?>
	<div class="ylMain">
		<div class="ylDetails">
			<div class="ylDetailsHead">
				<h1><?php __('front_search_for_yachts');?></h1>
			</div><!-- /.ylDetailsHead -->
		</div><!-- ylDetails -->
		<div class="ylDetailsInfo ylDetailsInfoSecondary">
			
			<div class="ylForm ylFormSearch">
				<form id="frmSearch_<?php echo $index; ?>" name="frmSearch" method="get">
					<input type="hidden" value="pjListings" name="controller">
					<input type="hidden" value="pjActionYachts" name="action">
					<input type="hidden" value="1" name="listing_search">
					<div class="ylFormRow">
						<div class="ylFormColInner">
							<div class="ylRadioContainer">
								<input type="radio" id="radio3" name="for" class="ylRadio" value="rent">
								<label for="radio3"><?php echo $listing_for['rent']?></label>
							</div>
							<div class="ylRadioContainer">
								<input type="radio" id="radio4" name="for" class="ylRadio" value="sale">
								<label for="radio4"><?php echo $listing_for['sale']?></label>
							</div>
						</div><!-- /.ylFormColInner -->
					</div><!-- /.ylFormRow -->
					<div class="ylFormCol">
						<div class="ylFormRow">
							<label><?php __('front_manufacturer');?>:</label>
							<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><!-- /.ylFormRow -->
						<div class="ylFormRow">
							<label><?php __('front_year');?>:</label>
							<div class="ylYearSlider"></div>
							<input type="hidden" value="" name="min_year">
							<input type="hidden" value="" name="max_year">
						</div><!-- /.ylFormRow -->
						<div class="ylFormRow">
							<label class="title"><?php echo $feature_types['fuel']; ?></label>
							<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>
						<div class="ylFormRow">
							<label class="title"><?php echo $feature_types['yacht']; ?></label>
							<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>
					</div>
					<div class="ylFormCol">
						
						<div class="ylFormRow">	
							<label><?php __('front_model');?>:</label>

							<input class="ylField" name="listing_model" type="text">
						</div><!-- /.ylFormRow -->
						
						<div class="ylFormRow">
							<label><?php __('front_horsepower');?>:</label>
							<div class="ylSlider ylPowerSlider"></div>
							<input type="hidden" value="" name="min_horse_power">
							<input type="hidden" value="" name="max_horse_power">
						</div><!-- /.ylFormRow -->
						<div class="ylFormRow">
							<label class="title"><?php echo $feature_types['engine']; ?></label>
							<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>
						<div class="ylFormRow">
							<label><?php __('front_loa');?>:</label>
							<div class="ylSlider ylLOASlider"></div>
							<input type="hidden" value="" name="min_loa">
							<input type="hidden" value="" name="max_loa">
						</div><!-- /.ylFormRow -->
					</div><!-- /.ylFormCol -->
					<div class="ylFormCol">
						<div class="ylFormRow">	
							<label><?php __('front_reference_id');?>:</label>

							<input class="ylField" name="listing_refid" type="text">
						</div><!-- /.ylFormRow -->
						<div class="ylFormRow">
							<label><?php __('front_length');?>:</label>

							<div class="ylSlider ylLengthSlider"></div>
							<input type="hidden" value="" name="min_length">
							<input type="hidden" value="" name="max_length">
						</div><!-- /.ylFormRow -->
						<div class="ylFormRow">
							<label class="title"><?php echo $feature_types['hull']; ?></label>
							<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>
						<div class="ylFormRow">
							<label><?php __('front_beam');?>:</label>
							<div class="ylSlider ylBeamSlider"></div>
							<input type="hidden" value="" name="min_beam">
							<input type="hidden" value="" name="max_beam">
						</div><!-- /.ylFormRow -->
						
					</div><!-- /.ylFormCol -->
					<div class="clearfix"></div><!-- /.clearfix -->
					<div class="ylFormControls">
						<input type="submit" class="ylBtn ylBtnSubmit" value="<?php __('front_search_yatchs');?>">
					</div><!-- /.ylFormControls -->
				</form>
			</div><!-- ylForm ylFormSearch -->
		</div><!-- ylDetailsInfo -->
	</div><!-- /.ylMain -->
</div>
<?php include_once ROOT_PATH . PJ_TEMPLATE_PATH . $tpl['option_arr']['o_layout']. '/elements/loadjs.php';?>