<!-- Modal content-->
<div class="modal-content modal-dialoglogin1 login_form">
    <div class="modal-header no-border" style="border-bottom: none; padding-bottom: 0;">
        <button type="button" class="close" data-dismiss="modal">&times;</button>

        <ul class="nav nav-tabs nav-tabs-login">
            <li class="active"><a data-toggle="tab" href="#home">Login</a></li>
            <!--<li><a data-toggle="tab" href="#menu1">Sign Up</a></li>-->

        </ul>

    </div>
    <div class="modal-body">
        <div class="row" style="padding:0 15px;">

            <div class="col-sm-12 price-one no-padding">

                    <div class="tab-content" style="background: none !important; padding-top: 0;">
                        <div id="home" class="tab-pane fade in active">
                            <?php
                                $form = $this->form;
                                $form->prepare();
                                $form->setAttribute('method', 'post');
                                $form->setAttribute('id', 'login-form');
                                echo $this->form()->openTag($form);
                                ?>
                            <div class="col-lg-12 error_msg_class" style="background: #c52d2f none repeat scroll 0 0; color: #fff; padding:5px; display: none;"></div>
                               <div class="col-sm-9 no-padding">

                                <div class="col-lg-12 no-padding"> <?php echo $this->translate('Email/Mobile'); ?>  </div>

                                <?php echo $this->formElement($form->get('username')); ?>
                                <span class="showerror">
                                    <?php echo $this->formElementErrors($form->get('username'), ['class' => 'error']); ?>
                                </span>
                                <?php echo $this->formElement($form->get('registration_type')); ?>


                                <div class="col-lg-12 no-padding"><?php echo $this->translate('Password'); ?></div>

                                <?php echo $this->formElement($form->get('password')); ?>
                                <span class="showerror">
                                    <?php echo $this->formElementErrors($form->get('password'), ['class' => 'error']); ?>
                                </span>


                               <div class="col-lg-6 pull-right no-padding" style="color:#000; text-align:right; margin-top:5px;">
                                    <?php echo $this->FormElement($form->get('login_search_form')); ?>

                               </div>

                                <div class="col-lg-6 no-padding">
                                    <a href="#" id="forgot_form" class="loginhome"> Forgot password?</a><br/>
                                    <a href="<?php echo $this->url('user', ['controller' => 'index', 'action' => 'index']); ?>" class="loginhome">New User? Create Account </a>
                                </div>

                            </div>
                            <?php echo $this->form()->closeTag(); ?>
                        </div>


                        <!--<div id="menu1" class="tab-pane fade">
                           <?php  $signupform = $this->personalform ;
                                $signupform->prepare();
                                $signupform->setAttribute('action', $this->url('normal-user', ['action' => 'popup-signup']));
                                $signupform->setAttribute('method', 'post');
                                echo $this->form()->openTag($signupform);?>
                            <div class="col-sm-12 no-padding">

                                <div class="row">
                                    <div class="col-lg-3">
                                        <?php echo $this->translate($signupform->get('first_name')->getLabel()); ?>
                                    </div>
                                     <div class="col-lg-9 form-group">
                                      <?php echo $this->formElement($signupform->get('first_name')); ?>
                                     </div>
                                </div>

                                <div class="row">

                                    <?php echo $this->formElement($form->get('registration_type')); ?>

                                    <div class="col-lg-3"><?php echo $this->translate($signupform->get('last_name')->getLabel()); ?></div>
                                   <div class="col-lg-9 form-group">
                                        <?php echo $this->formElement($signupform->get('last_name')); ?>
                                   </div>
                                </div>

                                <div class="row">
                                    <div class="col-lg-3"><?php echo $this->translate($signupform->get('email')->getLabel()); ?></div>
                                      <div class="col-lg-9 form-group">
                                    <?php echo $this->formElement($signupform->get('email')); ?>
                                      </div>
                                </div>

                                 <div class="row ">
                                  <div class="col-lg-12 no-padding">
                                      <div class="col-sm-3"><?php echo $this->translate($signupform->get('contact_no')->getLabel()); ?></div>
                                      <div class="col-sm-9 form-group"> <?php echo $this->formElement($signupform->get('contact_no')); ?>
                                      </div>
                                 </div>
                                 </div>

                                  <div class="row">
                                  <div class="col-lg-3"><?php echo $this->translate($signupform->get('password')->getLabel()); ?></div>
                                   <div class="col-lg-9 form-group"><?php echo $this->formElement($signupform->get('password')); ?></div>
                                 </div>

                                <div class="row">
                                  <div class="col-lg-3"><?php echo $this->translate('Confirm Password'); ?></div>
                                      <div class="col-lg-9 form-group">
                                          <?php echo $this->formElement($signupform->get('confirm_password')); ?>
                                      </div>
                                      </div>

                                <div class="row">
                                    <div class="col-lg-3"><?php echo $this->translate($signupform->get('nationality')->getLabel()); ?></div>
                                     <div class="col-lg-9 form-group">
                                        <?php echo $this->formElement($signupform->get('nationality')); ?>
                                     </div>
                                </div>

                                <div class="row">
                                    <div class="col-lg-3"><?php echo $this->translate($signupform->get('popupcaptcha')->getLabel()); ?></div>
                                     <div class="col-lg-9 form-group">
                                  <?php echo $this->formElement($signupform->get('popupcaptcha')); ?>
                                <p class="refresh_captcha widthpercent10 pull-right">
                                    <input type="button" id="popuprefreshcaptcha" value="refresh">
                                </p>
                                  <?php echo $this->formElementErrors($signupform->get('popupcaptcha')); ?>
                                     </div>
                                </div>
                                <div class="row">

                                <div class="col-lg-3 pull-right" style="color:#000; text-align:right; margin-top:5px;">
                                    <?php echo $this->FormElement($signupform->get('signup')); ?>

                                </div>

                                    <div class="col-lg-1 pull-right" style="color:#000; text-align:right; margin-top:5px;">

                                    <?php echo $this->formReset($signupform->get('reset')); ?>
                                </div>
                                        </div>
                            </div>
                            <?php echo $this->form()->closeTag(); ?>
                        </div>-->




                    </div>








            </div>

        </div>

        <div></div>

    </div>


    <div class="modal-footer" style=" padding-top:2px !important;">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
    </div>
</div>


<div class="modal-content modal-dialoglogin2 modal-dialoglogin1 forgot_form" style="display:none;">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h2 class="modal-title">Forgot Password</h2>
    </div>


    <div class="modal-body">
        <div class="row" style="padding:0 15px;">

            <div class="col-sm-12 plan price-one ">

                <form id="login_form4" novalidate>
                    <div class="col-sm-12">

                        <p class='invalid' style='display:none;color:red'>Invalid Username or Password</p>
                        <div class="col-lg-12" style="text-align:left;"> Enter your email to Reset Password  </div>

                        <input  type="text" id="email" name="login_email" placeholder="Type your email here" class="form-control input-border">


                        <div class="col-lg-12" style="color:#000; text-align:center; margin-top:5px;">

                            <a href="#" class="btn btn-primary back_btn"><i class="fa fa-angle-double-left"></i> Back</a>

                            <input type="button" id="forget" value="Submit" class="btn btn-primary">



                        </div>

                    </div>
                </form>

                <div id="myModal" class="modal fade">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                                <h4 class="modal-title">Confirmation</h4>
                            </div>
                            <div class="modal-body">
                                <p>An Confirmation Email has been sent on your account</p>
                                <p class="text-warning"><small></small></p>
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default closeButton" data-dismiss="modal">Close</button>

                            </div>
                        </div>
                    </div>

                </div>


            </div>

        </div>

        <div></div>

    </div>
    <div class="modal-footer" style=" padding-top:2px !important;">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
    </div>
</div>

<!--OTP POPUP WINDOW-->

<div class="modal-content modal-dialoglogin2 modal-dialoglogin1 otp_form" style="display:none;">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h2 class="modal-title">Enter OTP</h2>
    </div>


    <div class="modal-body">
        <div class="row" style="padding:0 15px;">

            <div class="col-sm-12 plan price-one ">
                 <?php  $otpform = $this->otpform ;
                                $otpform->prepare();
                                $otpform->setAttribute('action', $this->url('normal-user', ['action' => 'confirmotp']));
                                $otpform->setAttribute('id', 'confirm-form');
                                $otpform->setAttribute('method', 'post');
                                echo $this->form()->openTag($otpform);?>

                    <div class="col-sm-12">
                        <div class="row form-group">
                            <div class="col-lg-12" style="text-align:left;">Enter OTP</div>

                            <?php echo $this->formElement($otpform->get('confirm_otp')); ?>
                        </div>

                        <div class="col-lg-12" style="color:#000; text-align:center; margin-top:5px;">

                        <input type="Submit" id="confirm-form-btn" value="Submit" class="btn btn-primary" onclick="submitForm('#confirm-form', event);">

                        </div>

                    </div>
                     <?php echo $this->form()->closeTag(); ?>
            </div>

        </div>

        <div></div>

    </div>
    <div class="modal-footer" style=" padding-top:2px !important;">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
    </div>
</div>
<!-- END -->
<script>
    $(function () {
        // Calling Login Form
        $("#login_form").click(function () {
            $(".login_form").show();
            $(".forgot_form").hide();
            //$(".forgot_login").hide();
            return false;
        });


// Calling forgot Form
        $("#forgot_form").click(function () {
            $(".forgot_form").show();
            //$(".social_login").hide();
            $(".login_form").hide();
            //$(".user_register").hide();
            //$(".header_title").text('Forgot Password');
            return false;
        });

        // Calling Register Form
        //$("#register_form").click(function(){
        //$(".social_login").hide();
        //$(".user_register").show();
        //$(".header_title").text('Register');
        //	$(".forgot_login").hide();
        //return false;
        //});

        // Going back to Social Forms
        $(".back_btn").click(function () {
            $(".forgot_form").hide();
            //$(".user_register").hide();
            $(".login_form").show();
            //$(".forgot_login").hide();
            //$(".header_title").text('Login');
            return false;
        });

    });
</script>
