PHP Classes

File: source/application/views/main.php

Recommend this page to a friend!
  Classes of ask sa sa   Rimau waf   source/application/views/main.php   Download  
File: source/application/views/main.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Rimau waf
Application to configure Web server module options
Author: By
Last change:
Date: 1 year ago
Size: 1,647 bytes
 

Contents

Class file image Download
<div class="col-sm-12" >

            <div class="row">
                <div class="col-xs-12 col-sm-4">
                </div>
                                        <div class="col-xs-12 col-sm-4">
                                            <div class="widget-box">
                                                <div class="widget-header">
                                                    <h4 class="widget-title">ADMINISTRATOR</h4>

                                                    <img src="/asset/image/rimauwaf.jpg" width="400" />
                                                </div>

                                                <div class="widget-body">
                                                    <div class="widget-main">
                                                        <div>
                                                            <label for="form-field-8">User ID</label>
                                                            <input class="form-control input-mask-date" type="text" id="username" name="username" />
                                                        </div>


                                                        <div>
                                                            <label for="form-field-9">Password</label>
                                                            <input class="form-control input-mask-date" type="password" id="password" name="password" />

                                                        </div>
                                                        <div align="right" >
                                                            <br />
                                                            <button id="makelogin" >LOGIN</button>
                                                        </div>

                                                        <hr />

                                                    </div>
                                                </div>
                                            </div>
                                        </div><!-- /.span -->

        </div>
                   
       
</div>
<script src="/asset/assets/js/jquery.2.1.1.min.js"></script>
<script>
    $('#makelogin').click(function(){
       
        //alert('test');
       
        $.post('/index.php/welcome/checklogin',{user:$('#username').val(),pass:$('#password').val(),'<?php echo $this->security->get_csrf_token_name(); ?>':'<?php echo $this->security->get_csrf_hash(); ?>'},function(data){
           
            if (data == 'ok'){
           
            url = "/panel";
              $( location ).attr("href", url);
           
            }
            else {
                alert("The Username Or Password is Wrong !!!");
            }
        })
    })
</script>