File: /home/cafsindia/crm_cafsindia_com/application/views/login.php
<?php
$base_url = "https://".$_SERVER['SERVER_NAME'].dirname($_SERVER["REQUEST_URI"].'?').'/';
$url = str_replace("index.php/","","$base_url");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Login CAFS | CRM © CAFS Infotech <?php echo date("Y");?></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="robots" content="index,follow"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<link rel="shortcut icon" type="image/x-icon" href="<?php echo $url;?>images/favicon.png">
<link rel="stylesheet" type="text/css" href="<?php echo $url;?>dist/bootstrap.min.css?rel=50ab19585f"/>
<link rel="stylesheet" type="text/css" href="<?php echo $url;?>dist/font-awesome.min.css"/>
<script type="text/javascript" src="<?php echo $url;?>dist/opensourcepos.min.js?rel=5f6d1e048b"></script>
<link rel="stylesheet" type="text/css" href="<?php echo $url;?>dist/login/vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo $url;?>dist/login/fonts/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo $url;?>dist/login/fonts/Linearicons-Free-v1.0.0/icon-font.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo $url;?>dist/login/vendor/animate/animate.css">
<link rel="stylesheet" type="text/css" href="<?php echo $url;?>dist/login/vendor/css-hamburgers/hamburgers.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo $url;?>dist/login/vendor/animsition/css/animsition.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo $url;?>dist/login/vendor/select2/select2.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo $url;?>dist/login/vendor/daterangepicker/daterangepicker.css">
<link rel="stylesheet" type="text/css" href="<?php echo $url;?>dist/login/css/util.css">
<link rel="stylesheet" type="text/css" href="<?php echo $url;?>dist/login/css/main.css">
<!--===============================================================================================-->
</head>
<body>
<div class="limiter">
<div class="container-login100">
<div class="wrap-login100 p-b-160 p-t-50">
<?php echo form_open('login', array('id'=>'demo','class' => 'login100-form validate-form','autocomplete'=>'off')) ?>
<!--<form class="login100-form validate-form"> -->
<span class="login100-form-title p-b-43">
<img src="<?php echo base_url(); ?>/images/logo.png" alt='cafs logo' style='width:120px;'>
</span>
<div class="wrap-input100 rs1 validate-input" data-validate = "Username is required">
<?php echo form_input(array('name'=>'username','id'=>'username', 'class'=>'form-control input100','autofill'=>'off','placeholder'=> "")); ?>
<span class="label-input100">Username</span>
</div>
<div class="wrap-input100 rs2 validate-input" data-validate="Password is required">
<?php echo form_password(array('name'=>'password', 'id' => 'password', 'class'=>'input100','autofill'=>'off','placeholder'=> "")); ?>
<span class="label-input100">Password</span>
</div>
<div class="container-login100-form-btn">
<button type="submit" class="login100-form-btn btn btn-primary btn-block">Submit</button>
</div>
<!--</form>-->
<div style="color: #FFFFFF;;"><?php echo "© CAFS Infotech 2018"; ?></div>
<?php echo form_close(); ?>
</div>
</div>
</div>
<!--===============================================================================================-->
<script src="<?php echo $url;?>dist/login/vendor/jquery/jquery-3.2.1.min.js"></script>
<script src="<?php echo $url;?>dist/login/vendor/animsition/js/animsition.min.js"></script>
<script src="<?php echo $url;?>dist/login/vendor/bootstrap/js/popper.js"></script>
<script src="<?php echo $url;?>dist/login/vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="<?php echo $url;?>dist/login/vendor/select2/select2.min.js"></script>
<script src="<?php echo $url;?>dist/login/vendor/daterangepicker/moment.min.js"></script>
<script src="<?php echo $url;?>dist/login/vendor/daterangepicker/daterangepicker.js"></script>
<script src="<?php echo $url;?>dist/login/vendor/countdowntime/countdowntime.js"></script>
<script src="<?php echo $url;?>dist/login/js/main.js"></script>
<script src="<?php echo $url;?>dist/login/jquery.disable-autofill.js"></script>
<!--===============================================================================================-->
</body>
</html>
<script>
$('input[autofill="off"]').disableAutofill();
$( document ).ready(function() {
if ("geolocation" in navigator) {
// check if geolocation is supported/enabled on current browser
navigator.geolocation.getCurrentPosition(
function success(position) {
// for when getting location is a success
console.log('latitude', position.coords.latitude,
'longitude', position.coords.longitude);
})
}
});
function showPosition(position) {
alert(position.coords.latitude);
}
</script>