PHP Classes

File: application/views/login.php

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   CodeIgniter ion Auth Login   application/views/login.php   Download  
File: application/views/login.php
Role: Example script
Content type: text/plain
Description: Example script
Class: CodeIgniter ion Auth Login
Manage user records in a database with CodeIgniter
Author: By
Last change: New Feature

Add New Feature
Date: 6 years ago
Size: 1,344 bytes
 

Contents

Class file image Download
<div class="col-lg-4 col-lg-offset-4">
    <h2>Welcome Back!</h2>
    <h5>Please Login.</h5>
    <?php $fattr = array('class' => 'form-signin');
         echo
form_open(site_url().'main/login/', $fattr); ?>
<div class="form-group">
      <?php echo form_input(array(
         
'name'=>'email',
         
'id'=> 'email',
         
'placeholder'=>'Email',
         
'class'=>'form-control',
         
'value'=> set_value('email'))); ?>
<?php echo form_error('email') ?>
</div>
    <div class="form-group">
      <?php echo form_password(array(
         
'name'=>'password',
         
'id'=> 'password',
         
'placeholder'=>'Password',
         
'class'=>'form-control',
         
'value'=> set_value('password'))); ?>
<?php echo form_error('password') ?>
</div>
    <?php if($recaptcha == 'yes'){ ?>
<div style="text-align:center;" class="form-group">
        <div style="display: inline-block;"><?php echo $this->recaptcha->render(); ?></div>
    </div>
    <?php
   
}
    echo
form_submit(array('value'=>'Let me in!', 'class'=>'btn btn-lg btn-primary btn-block')); ?>
<?php echo form_close(); ?>
<br>
    <p>Not registered? <a href="<?php echo site_url();?>main/register">Register</a></p>
    <p>Forgot your password? <a href="<?php echo site_url();?>main/forgot">Forgot Password</a></p>
</div>