<section class="sectionMakeOffer">
	<div class="sectionInner">
		<header class="sectionHead">
			<div class="sectionActions">
				<a href="#" class="btn btnFull btnMakeOffer btnSectionTrigger">
					<?php __('front_make_an_offer');?>
					<i class="ico icoPhoneRounded"></i>
				</a>
			</div><!-- /.sectionActions -->
		</header><!-- /.sectionHead -->
		<?php
		$product = $_SESSION[$controller->defaultProduct]; 
		$validate = str_replace(array('"', "'"), array('\"', "\'"), __('front_validation', true, true));
		
		?>
		<div class="sectionBody clearfix">
			<div class="formMakeOffer">
				<?php
				if($tpl['status'] == 'OK')
				{ 
					?>
					<form id="frmRequestMakeOffer_<?php echo $_GET['index']; ?>" action="#" method="post">
						<div class="formBody">
							<div class="formControls">
								<?php
								if($product['suggest_type'] == 'suggest')
								{ 
									?>
									<div class="formRow formRowCenter">
										<label for="" class="formLabel formLabelCenter"><?php echo $product['ask_price'];?></label>
			
										<div class="formControls">
											<div class="input-group">
												<div class="input-group-addon"><?php echo pjUtil::getCurrencySign($tpl['option_arr']['o_currency']);?></div>
												<input type="text" name="price" class="field field-group text-center required positiveNumber" data-msg-required="<?php __('front_enter_price');?>" data-msg-positiveNumber="<?php __('front_enter_valid_price');?>"/>
											</div>
										</div><!-- /.formControls -->
									</div><!-- /.formRow -->
									<?php
								}else{
									?>
									<div class="formRow">
										<label for="" class="formLabel"><?php echo $product['ask_price'];?></label>
										<br/>
										<div class="formControls">
											<div class="radio">
											    <label class="radioLabel">
											      	<input type="radio" name="price" value="<?php echo $product['price_suggest_1'];?>" class="required" data-msg-required="<?php __('front_select_price');?>"> <?php echo pjUtil::formatCurrencySign($product['price_suggest_1'], $tpl['option_arr']['o_currency'])?>
											    </label>
											 </div><br/>
											 <div class="radio">
											    <label class="radioLabel">
											      	<input type="radio" name="price" value="<?php echo $product['price_suggest_2'];?>"> <?php echo pjUtil::formatCurrencySign($product['price_suggest_2'], $tpl['option_arr']['o_currency'])?>
											    </label>
											 </div><br/>
											 <div class="radio">
											    <label class="radioLabel">
											      	<input type="radio" name="price" value="<?php echo $product['price_suggest_3'];?>"> <?php echo pjUtil::formatCurrencySign($product['price_suggest_3'], $tpl['option_arr']['o_currency'])?>
											    </label>
											 </div>
										</div><!-- /.formControls -->
									</div><!-- /.formRow -->
									<?php
								} 
								?>
							</div><!-- /.formControls -->
						</div><!-- /.formBody -->
						
						<footer class="formFoot">
							<div class="formActions">
								<button type="submit" class="btn btnFull btnForm btnFormSubmit"><?php __('front_btn_submit_your_offer');?></button>
	
								<a href="#" class="btn btnLink btnFormRemove"><?php __('front_cancel');?></a>
							</div><!-- /.formActions -->
						</footer><!-- /.formFoot -->
					</form>
					
					<form id="frmSubmitEmail_<?php echo $_GET['index']; ?>" action="#" method="post" style="display:none;">
						<div class="formBody">
							<div class="formControls">
								<div class="formRow">
									<label id="pjSpMessage_<?php echo $_GET['index'];?>" for="" class="formLabel"></label>
		
									<div class="formControls">
										<input type="text" name="email" class="field required email" placeholder="<?php __('front_email_hint');?>" data-msg-required="<?php echo $validate['required'];?>" data-msg-email="<?php echo $validate['email'];?>"/>
									</div><!-- /.formControls -->
								</div><!-- /.formRow -->
							</div><!-- /.formControls -->
						</div><!-- /.formBody -->
						
						<footer class="formFoot">
							<div class="formActions">
								<button type="submit" class="btn btnFull btnForm btnFormSubmit"><?php __('front_btn_submit');?></button>
								<a href="#" class="btn btnLink btnFormBack"><?php __('front_cancel');?></a>
							</div><!-- /.formActions -->
						</footer><!-- /.formFoot -->
					</form>
					<?php
				}else{
					?>
					<div class="formBody">
						<div class="formControls">
							<div class="formRow formRowCenter">
								<label class="formLabel"><?php __('front_offer_not_available');?></label>
							</div><!-- /.formRow -->
						</div>
					</div>
					<?php
				} 
				?>
			</div><!-- /.formMakeOffer -->
		</div><!-- /.sectionBody clearfix -->
		
		<footer class="sectionFoot">
			<div class="sectionMessage">
				<div class="sectionMessageImage">
					<i class="ico icoPhoneRoundedGreen"></i>
				</div><!-- /.sectionMessageImage -->

				<p id="pjSpFootMessage_<?php echo $_GET['index'];?>" class="sectionMessageTitle" data-thank="<?php __('front_thank_you');?>"></p><!-- /.sectionMessageTitle -->

				<div class="sectionMessageActions">
					<a href="#" class="btn btnClose btnSectionRemove"></a>
				</div><!-- /.sectionMessageActions -->
			</div><!-- /.sectionMessage -->
		</footer><!-- /.sectionFoot -->
	</div><!-- /.sectionInner -->
</section><!-- /.sectionMakeOffer -->