tripsdoc

login_form.php

Dec 12th, 2016
595
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.77 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5.         <title>Login</title>
  6.         <link rel="stylesheet" href="<?= base_url('assets/bootstrap-3.3.5/css/bootstrap.min.css') ?>">
  7.         <link rel="stylesheet" type="text/css" href="<?= base_url('assets/css/login.css');?>"/>
  8.         <link rel="stylesheet" type="text/css" href="<?= base_url('assets/css/reset.css');?>"/>
  9.         <script src="<?= base_url('assets/bootstrap-3.3.5/js/jquery-2.1.4.min.js') ?>"></script>
  10.         <script src="<?= base_url('assets/bootstrap-3.3.5/js/bootstrap.min.js') ?>"></script>
  11.         <style type="text/css">
  12.         .kotak{
  13.             margin-top: 150px;
  14.         }
  15.  
  16.         .kotak .input-group{
  17.             margin-bottom: 20px;
  18.         }
  19.         </style>
  20.     </head>
  21.  
  22. <body>
  23. <div id="login_box">
  24.     <div class="panel-body">
  25.             <h1>Login</h1>
  26.            
  27.             <?= form_open('login', ['name' => 'login_form', 'id' => 'login_form']); ?>
  28.            
  29.             <?php if(!empty($this->session->flashdata('error'))) : ?>
  30.             <div class="alert alert-danger alert-dismissable fade in">
  31.                 <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
  32.                 <strong>Perhatian!</strong> <?= $this->session->flashdata('error') ?>
  33.             </div>
  34.             <?php endif ?>
  35.             <p>
  36.                 <?= form_label('Username', 'username') ?>
  37.                 <?= form_input('username', $input->username, ['class' => 'form_field']) ?>
  38.             </p>
  39.             <?= form_error('username', '<p class="field_error">' , '</p>');?>
  40.            
  41.             <p>
  42.                 <?= form_label('Password', 'password') ?>
  43.                 <?= form_password('password', $input->password, ['class' => 'form_field']) ?>
  44.             </p>
  45.             <?= form_error('password', '<p class="field_error">' , '</p>');?>  
  46.             <div class="center">
  47.                 <input type="submit" name="submit" id="submit" value="Login" />
  48.             </div>
  49.             <?= form_close() ?>
  50.     </div>
  51. </div>
  52. </body>
  53. </html>
Advertisement
Add Comment
Please, Sign In to add comment