<?php
    $ci = &get_instance();
    $APP_NAME       = $ci->lang->line('APP_NAME');
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <title><?php echo $LOGIN_TITLE." - ".$APP_NAME;?></title>
    <!-- Bootstrap Core CSS -->
    <link href="<?php echo base_url();?>css/bootstrap.min.css" rel="stylesheet">
    <!-- Custom CSS -->
    <link href="<?php echo base_url();?>css/sb-admin.css" rel="stylesheet">
    <!-- Custom Fonts -->
    <link href="<?php echo base_url();?>font-awesome-4.1.0/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <!-- jQuery Version 1.11.0 -->
    <script src="<?php echo base_url();?>js/jquery-1.11.0.js"></script>
    <!-- Bootstrap Core JavaScript -->
    <script src="<?php echo base_url();?>js/bootstrap.min.js"></script>
    <style>
        .mrgtop{
            margin-top: 0px;
            margin-bottom: 0px;
        }
        
    </style>
    
</head>

<body>

    <div class="container">
        <?php
        if(isset($error))
            echo <<< TXT
                <div class="row">
                    <div class="col-md-4 col-md-offset-4 mrgtop">
                          <div class="alert alert-danger" role="alert">$error</div>
                    </div>
                </div>
TXT;
        ?>
        <div id="background"></div>
        <div class="row">
            <div class="col-md-4 col-md-offset-4">
                <div class="login-panel panel panel-default mrgtop">
                    <div class="panel-heading">
                        <h3 class="panel-title"><?php echo $LOGIN_LOG_IN;?></h3>
                    </div>
                    <div class="panel-body">
                        <form role="form" action="<?php echo base_url();?>oneLogin/login_user" method="post"  autocomplete="off" >
                            <fieldset>
<!--                                <input id="username" type="text" style="display:none;" />
                                <input id="password" type="password" style="display:none;" />-->
                                <div class="form-group">
                                    <input class="form-control" autocomplete="off" placeholder="<?php echo $LOGIN_USERNAME;?>" id="username" name="username" type="text" >
                                </div>
                                <div class="form-group">
                                    <input class="form-control" autocomplete="off" placeholder="<?php echo $LOGIN_PASSWORD;?>" id="password" name="password" type="password" >
                                </div>
                                <div class="checkbox">
                                    <label>
                                        <input name="remember" type="checkbox" value="Tine minte"><?php echo $LOGIN_REMEMBER;?>
                                    </label>
                                </div>
                                                          
                                <input type="submit" class="btn btn-lg btn-primary btn-block" value="<?php echo $LOGIN_LOG_IN;?>" />
                            </fieldset>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>

</body>
</html>