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

		<p><?php __('ws_yachts_owner_desc')?></p>
	</div><!-- /.container -->
</div><!-- /.jumbotron -->

<div class="section">
	<div class="container">
		<h2><?php __('ws_owner_account')?></h2>

		<div class="row">
			<div class="col-sm-6">
				<div class="form form-access">
					<form action="<?php echo PJ_INSTALL_URL;?>index.php?controller=pjAdmin&amp;action=pjActionLogin" method="post" target="_blank" id="frmYLLogin" name="frmYLLogin">
						<input type="hidden" name="login_user" value="1" />
						<h3><?php __('ws_login_your_account')?></h3>

						<p><?php __('ws_login_your_account_desc')?></p>
						
						<div class="row">
							<div class="col-md-12">
								<input type="email" name="login_email" class="form-control required email" placeholder="<?php __('front_email');?>" data-err="<?php __('front_email_required');?>" data-email="<?php __('front_email_invalid');?>">
								<div class="help-block with-errors"><ul class="list-unstyled"></ul></div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-12">
								<input type="password" name="login_password" class="form-control required" placeholder="<?php __('front_password');?>" data-err="<?php __('front_password_required');?>">
								<div class="help-block with-errors"><ul class="list-unstyled"></ul></div>
							</div>
						</div>
						<div class="row">
							<div class="col-md-6">
								<button class="btn btn-primary btn-block" type="submit"><?php __('front_login');?></button>		
							</div><!-- /.col-md-6 -->
						</div><!-- /.row -->
						<?php
						if($tpl['option_arr']['o_website_seo'] == 'Yes')
						{ 
							?>
							<p><a href="forgot-password.html"><?php __('front_forgot_password');?></a></p>
							<?php
						}else{
							?>
							<p><a href="<?php echo PJ_INSTALL_URL;?>index.php?controller=pjWebsite&amp;action=pjActionForgot"><?php __('front_forgot_password');?></a></p>
							<?php
						} 
						?>
					</form>
				</div><!-- /.form -->
			</div><!-- /.col-md-3 -->

			<div class="col-sm-6">
				<div class="form form-access">
					<form action="<?php 
					if ($tpl['option_arr']['o_website_seo'] == 'Yes')
					{
						echo $_SERVER['REDIRECT_URL'];
					} else {
						echo PJ_INSTALL_URL . 'index.php?controller=pjWebsite&amp;action=pjActionAccount';
					}
					?>" method="post" id="frmYLRegister" name="frmYLRegister">
						<input type="hidden" name="register" value="1" />
						<h3><?php __('ws_create_an_account');?></h3>

						<p><?php __('ws_manage_your_listing');?></p>

						<?php
						if(isset($tpl['err']))
						{ 
							$register_err = __('register_err', true);
							?>
							<p class="text-danger"><?php echo $register_err[$tpl['err']];?></p>
							<?php
						} 
						?>
						<?php
						if(isset($_GET['status']))
						{ 
							$register_statuses = __('register_statuses', true);
							?>
							<p class="text-success"><?php echo $register_statuses[$_GET['status']];?></p>
							<?php
						} 
						?>
						
						<div class="row">
							<div class="col-md-12">
								<input type="text" name="name" class="form-control required" placeholder="<?php __('front_name');?>"  data-err="<?php __('front_name_required');?>" value="<?php echo isset($_POST['name']) ? htmlspecialchars(stripslashes($_POST['name'])) : null;?>">
								<div class="help-block with-errors"><ul class="list-unstyled"></ul></div>
							</div>
						</div>

						<div class="row">
							<div class="col-md-12">
								<input type="email" name="email" class="form-control required email" placeholder="<?php __('front_email');?>"  data-err="<?php __('front_email_required');?>" data-email="<?php __('front_email_invalid');?>" value="<?php echo isset($_POST['email']) ? htmlspecialchars(stripslashes($_POST['email'])) : null;?>">
								<div class="help-block with-errors"><ul class="list-unstyled"></ul></div>
							</div>
						</div>

						<div class="row">
							<div class="col-md-12">
								<input type="password" name="password" class="form-control required" placeholder="<?php __('front_password');?>" >
								<div class="help-block with-errors"><ul class="list-unstyled"></ul></div>
							</div>
						</div>

						<div class="row">
							<div class="col-md-12">
								<input type="password" name="reenter_password" class="form-control required" placeholder="<?php __('front_reenter_password');?>" data-err="<?php __('front_reenter_password_required');?>" data-match="<?php __('front_password_match');?>">
								<div class="help-block with-errors"><ul class="list-unstyled"></ul></div>
							</div>
						</div>

						<div class="row">
							<div class="col-md-12">
								<input type="text" name="phone" class="form-control" placeholder="<?php __('front_phone');?>"  value="<?php echo isset($_POST['phone']) ? htmlspecialchars(stripslashes($_POST['phone'])) : null;?>">
							</div>
						</div>
						
						<div class="row">
							<div class="col-md-12">
								<input type="text" name="fax" class="form-control" placeholder="<?php __('front_fax');?>"  value="<?php echo isset($_POST['fax']) ? htmlspecialchars(stripslashes($_POST['fax'])) : null;?>">
							</div>
						</div>
						 
						<div class="row">
							<div class="col-sm-4">
								<input type="text" name="captcha" placeholder="<?php __('front_captcha');?>" class="form-control required" maxlength="6" autocomplete="off" data-folder="<?php echo PJ_INSTALL_FOLDER;?>" data-err="<?php __('front_captcha_required');?>" data-captcha="<?php __('front_captcha_incorrect');?>"/>
							</div><!-- /.col-sm-6 -->

							<div class="col-sm-4">
								<img src="<?php echo PJ_INSTALL_FOLDER; ?>index.php?controller=pjFront&amp;action=pjActionCaptcha&amp;rand=<?php echo rand(1, 999999); ?>" alt="Captcha" style="vertical-align:top;"/>
							</div><!-- /.col-sm-6 -->
						</div><!-- /.row -->	
						
						<div class="row">
							<div class="col-md-6">
								<button class="btn btn-primary btn-block" type="submit"><?php __('front_button_create');?></button>		
							</div><!-- /.col-md-6 -->
						</div><!-- /.row -->
					</form>
				</div><!-- /.form -->
			</div><!-- /.col-md-9 -->
		</div><!-- /.row -->
	</div><!-- /.container -->
</div><!-- /.main -->