<div class="container-fluid">

    <div class="row">
        <div class="col-md-8 col-md-offset-2">
            <div class="panel panel-default">
                <div class="panel-heading">Login</div>
                <div class="panel-body">
                    
					
					
				
					
	
				<?PHP

				echo $this->session->flashdata('msg'); 
		
                 echo form_open('administrator/login' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
					
					

  
  
  
  
    <div class="form-group">
    <label for="inputusername" class="col-sm-2 control-label">	Username</label>
    <div class="col-sm-6">
		
		
		<input type="text" name="username" required  value="<?php echo set_value('username'); ?>" id="email" class="form-control"   placeholder="Enter username">
		  

						<span class="text-danger">Enter Username.<?php echo form_error('username'); ?>

	</div>
  </div>
  
  
    <div class="form-group">
    <label for="inputpassword" class="col-sm-2 control-label">	Password</label>
    <div class="col-sm-6">
		<input type="password" name="password" required value="<?php echo set_value('password'); ?>"placeholder="Enter Your password"  class="form-control"  >

						<span class="text-danger">Password<?php echo form_error('password'); ?>

	</div>
  </div>
	
	<div class="form-group">

    <div class="col-sm-offset-2 col-sm-6">
     
	         <button type="submit" name="btn_login" class="btn btn-primary" value="login">CLICK HERET TO LOGIN  </button>
				<span ><a href="<?php echo base_url();?>registerform">Forgot password ?  </a>	</span>
		
		<span ><a href="<?php echo base_url();?>"><span class="glyphicon glyphicon-user">Home </a></span> 

    </div>
  </div>
  
  
  
  
 
  
									   
									<?php echo form_close();?>
								
							
					
					
					
					
					
					
					
					
                </div>
            </div>
        </div>
    </div>
</div>