<?php
mt_srand();
$index = mt_rand(1, 9999);
?>
<div id="pjWrapper" style="display:none;">
	<div class="container-fluid pjVpContainer">
		<?php 
		include_once ROOT_PATH . PJ_TEMPLATE_PATH . 'default/elements/header.php';
		
		$forgot_url = pjUtil::buildFrontUrl($_SERVER['PHP_SELF']. '?controller=pjListings&amp;action=pjActionForgotPassword', $_GET);
		?>
		<div class="pjVpBody">
			<div class="panel panel-default pjVpPanelAccess">
				<div class="panel-heading">
					<p class="panel-title"><?php __('front_menu_login');?></p><!-- /.panel-title -->
				</div><!-- /.panel-heading -->
							
				<div class="panel-body">
					<div class="row pjVpForm pjVpFormAccess">
						<div class="col-md-7 col-sm-7 col-xs-12 pjVpFormContent">
							<form id="frmVpLoginForm_<?php echo $index;?>" name="frmVpLoginForm" action="<?php echo PJ_INSTALL_URL;?>index.php?controller=pjAdmin&amp;action=pjActionLogin" target="_blank" method="post"  class="form-horizontal" data-toggle="validator" role="form">
								<input type="hidden" name="login_user" value="1" />
								<div class="form-group">
									<label for="" class="col-lg-3 col-md-3 col-sm-3 col-xs-12 control-label"><?php __('front_label_email'); ?></label>
								
									<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
										<input type="email" name="login_email" class="form-control required pjVpEmail" data-msg-required="<?php __('front_field_required');?>" data-msg-pjVpEmail="<?php __('front_email_invalid');?>"/>
										
										<div class="help-block with-errors"><ul class="list-unstyled"></ul></div>
									</div><!-- /.col-lg-9 col-md-9 col-sm-9 col-xs-12 -->
								</div><!-- /.form-group -->
							
								<div class="form-group">
									<label for="" class="col-lg-3 col-md-3 col-sm-3 col-xs-12 control-label"><?php __('front_label_password'); ?></label>
								
									<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
										<input type="password" name="login_password" class="form-control required" />
										<div class="help-block with-errors"><ul class="list-unstyled"></ul></div>
									</div><!-- /.col-lg-9 col-md-9 col-sm-9 col-xs-12 -->
								</div><!-- /.form-group -->
							
								<div class="form-group">
									<label for="" class="col-lg-3 col-md-3 col-sm-3 col-xs-12 control-label">&nbsp;</label>
									<div class="col-lg-9 col-md-9 col-sm-9 col-xs-12">
										<button type="submit" class="btn btn-default pjVpBtn pjVpBtnPrimary"><?php echo mb_strtolower(__('front_button_login', true), 'UTF-8'); ?></button>
	
										<a href="<?php echo $forgot_url;?>" class="btn btn-link pjVpBtn pjVpBtnLink"><?php __('front_label_forgot_password', false); ?></a>
									</div><!-- /.col-sm-9 col-sm-offset-3 -->
								</div><!-- /.form-group -->
							</form><!-- /.form-horizontal -->
						</div><!-- /.col-md-7 col-sm-7 col-xs-12 pjVpFormContent -->
							
						<div class="col-md-5 col-sm-5 col-xs-12 pjVpFormAside">
							<p><?php __('front_login_info');?></p>
						</div><!-- /.col-md-5 col-sm-5 col-xs-12 pjVpFormAside -->
					</div><!-- /.row pjVpForm pjVpFormAccess -->
				</div><!-- /.panel-body -->
			</div><!-- /.panel panel-default pjVpPanelAccess -->
		</div>
	</div>
</div>
<?php include_once ROOT_PATH . PJ_TEMPLATE_PATH . 'default/elements/loadjs.php';?>