<?php $this->load->view('common_front/header');?>

    <style>
        .login_box{
            padding: 25px;
            box-shadow: 0px 0px 10px #ddd;
        }
    </style>

	<!-- Banners -->
    <div class="iner-banner">



<div class="container">



<div class="row">



<div class="col-md-12">



<span><a href="<?= base_url()?>">Home</a> <i class="fa fa-long-arrow-right"></i> Login</span>



</div>



</div>





</div>



</div>





<!-- section 1 -->

    <div class="section" >

    <div class="container">

            <div class="row">

                <div class="col-sm-6 col-sm-offset-3">

                    <div class="login_box">

                        <?php 

                    if($this->session->flashdata('msg')!=''){

                        echo '<div class="alert alert-success alert-dismissible">

                              <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>

                              <strong>'.$this->session->flashdata('msg').'</strong> 

                            </div>';

                    }

                    if($this->session->flashdata('err')!=''){

                        echo '<div class="alert alert-danger alert-dismissible">

                              <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>

                              <strong>'.$this->session->flashdata('err').'</strong> 

                            </div>';

                    }

                ?>

                       
                        
<!-- <div id="status"></div> -->



<!-- Facebook login or logout button -->



<!-- Display user profile data -->

<!-- <div id="userData"></div> -->

<!-- Show the user profile details -->

<!-- <div class="userContent" style="display: none;"></div> -->

                            <!-- <p class="text-center"><a href="javascript:void(0);" onclick="fbLogin()" id="fbLink" class="facebok-link"><i class="fa fa-facebook-f"></i> &nbsp; FACEBOOK</a> </p> -->

                            <!-- <P class="or-line"><span>OR</span></P> -->


                        <form action="<?= base_url('signin')?>" method="post">

                            <div class="form-group">

                                <label for="">Email</label>

                                <input type="text" placeholder="Email Id" name="email" class="form-control">

                            </div>

                            <div class="form-group">

                                    <label for="">Password</label>

                                    <input type="password" placeholder="Password" name="password" class="form-control">

                            </div>

                            <div class="form-group">

                                    <p class="para">Forget password ? <a href="<?= base_url('forget_password')?>" class="text-danger"><small>Reset Password</small></a></p>

                            </div>

                           <div class="row">

                                <div class="col-sm-12 text-center"> 

                                    <button type="submit" class="btn btn-success">Login</button> <br>

                                 <a href="<?= base_url('signup')?>" style="color: #777;">Don't have account?</a>

                            </div>

                        </div>

                            

                        </form>

                    </div>

                </div>

            </div>

    </div>

    </div>





<?php $this->load->view('common_front/footer');?>

<script src="https://apis.google.com/js/client:platform.js?onload=renderButton" async defer></script>

<script>

// Render Google Sign-in button

function renderButton() {

    gapi.signin2.render('gSignIn', {

        'scope': 'profile email',

        'width': 240,

        'height': 50,

        'longtitle': true,

        'theme': 'dark',

        'onsuccess': onSuccess,

        'onfailure': onFailure

    });

}



// Sign-in success callback





// Sign out the user

/*function signOut() {

    var auth2 = gapi.auth2.getAuthInstance();

    auth2.signOut().then(function () {

        document.getElementsByClassName("userContent")[0].innerHTML = '';

        document.getElementsByClassName("userContent")[0].style.display = "none";

        document.getElementById("gSignIn").style.display = "block";

    });

    

    auth2.disconnect();

}*/

</script>

