<?php defined('BASEPATH')or exit('No Direct Access is Allowed');?>
<style>
.mar_teacher{
      margin-top: 15px
}
</style>
 <div class="services-login1">
<div class="container student-logins">


<?php if($error=$this->session->flashdata('login_failed')): ?>
<div class="row">
  <div class="col-lg-12">
        <div class="alert alert-dismissible alert-danger">
          <?php echo $error;?>  <!-- <div class="status alert alert-success"></div> -->
        </div>
    </div>
</div>
<?php endif;?>

<?php if ($this->session->flashdata('success') == TRUE): ?>
  <div class="alert alert-success"><?php echo $this->session->flashdata('success'); ?></div>
<?php endif; ?>
<?php if ($this->session->flashdata('danger') == TRUE): ?>
  <div class="alert alert-danger alert-dismissible"><?php echo $this->session->flashdata('danger'); ?></div>
<?php endif; ?>
	  <div class="reg1">
          <h3 class="reg1x">Teacher Login</h3>
      </div>
		<div class="loginx agileits">
			<!-- <form action="#" method="post"> -->
			<?=form_open('teacher/signin')?>
				<label class="email-box">Email</label>
				<!-- <input type="text" class="user" placeholder="Email" required=""> -->
				<?php echo form_error('email','<p class="text-danger">','</p>'); ?>
				<?=form_input('email',set_value('email'),array('class'=>'form-control user','placeholder'=>'Email Address'));?>

				<!-- <input type="password" class="pass" placeholder="Password" required=""> -->
				<?php echo form_error('password','<p class="text-danger">','</p>'); ?>
				<?php //form_password('password','',array('class'=>'form-control pass','id'=>'show_hide_password','placeholder'=>'Password','maxlength'=>'15'));?>

        	<label class="email-box" >Password</label>
          	<?php echo form_error('password','<p class="text-danger">','</p>'); ?>
        <div class="input-group" id="show_hide_password">
          <?php  echo form_password('password','',array('class'=>'form-control pass','id'=>'','placeholder'=>'Password','maxlength'=>'15'));?>

       <div class="input-group-addon">
         <a href=""><i class="fa fa-eye-slash" aria-hidden="true"></i></a>
       </div>
     </div>

     <div class="mar_teacher">
			<ul>
				<li>
					<input type="checkbox" id="brand1" value="">
					<label for="brand1"><span></span>Remember me</label>
				</li>
			</ul>

			<a href="<?php echo site_url('teacher/password/forget');?>" style="float:right;">Forgot password?</a>
    </div>
			<div class="row">
				  <div class="text-center Login-ins">
					<!-- <button type="button" id="submit" name="submit" class="btn btn-primary btn btn-default  send-btns logins-btn btn-block login-f">Sign In</button> -->
				  	<!-- <button type="button" id="submit" name="submit" class="btn btn-primary btn btn-default  send-btns logins-btn">Sign In</button> -->
        			<?=form_submit('Login','Login','class="btn btn-primary btn btn-default  send-btns logins-btn btn-block login-f "')?>
        			<?php echo form_close();?>
				  </div>
				</div>
			<!--
			<div class="clear"></div>
			<div class="login-facebook">
			<div class="reg-or agileits w3layouts">

			<h3>Or Login with</h3>
			</div>
			<div class="reg agileits w3layouts">
			<ul class="social-icons">
		 				<li class="login-top"><a class="fa" href="#"> </a></li>
		 				<li class="login-top"><a class="tw" href="#"> </a></li>
		 				<li class="login-top"><a class="g" href="#"> </a></li>
		 			</ul>

			</div>
			</div> -->

			<div class="clear"></div>
      <div>
			<div class="reg agileits w3layouts">

			<h3 style="margin-top:11px;">Not a member?</h3>
			</div>
			<div class="reg agileits w3layouts">
			<a class="popup-with-zoom-anim hvr-underline-from-left reg_heres" href="<?php echo site_url('teacher/signup');?>">Register Here</a>
			</div>
			<div class="clear"></div>
			</div>

			</div>
		</div>



	</div>
