| Server IP : 127.0.0.1 / Your IP : 192.168.99.1 Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9 System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64 User : Administrator ( 0) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : D:/wamp/www/SIPBOS_2020/application/modules/auth/views/ |
Upload File : |
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title><?php if(isset($title)) { echo $title; }?></title>
<link href="<?php echo base_url()?>assets/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="<?php echo base_url()?>assets/css/login-box.css" rel="stylesheet" media="screen">
<script type="text/javascript" src="<?php echo base_url()?>/assets/js/validate/jquery.js"></script>
<script type="text/javascript" src="<?php echo base_url()?>/assets/js/validate/jquery.validate.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".username").focus(function() {
$(".user-icon").css("right","-45px");
});
$(".username").blur(function() {
$(".user-icon").css("right","0px");
});
$(".password").focus(function() {
$(".pass-icon").css("right","-45px");
});
$(".password").blur(function() {
$(".pass-icon").css("right","0px");
});
$('#login-form').validate({
messages: {
username: {
required: 'Username harus diisi'
},
password: {
required: 'Password harus diisi'
},
tahun: {
required: 'Tahun harus dipilih'
},
status: {
required: 'Status Anggaran harus dipilih'
}
},
errorPlacement: function(error, element) {
error.appendTo(element.parent('span'));
}
});
});
</script>
<style type="text/css">
* { font: 11px/20px Verdana, sans-serif; }
h4 { font-size: 11px; }
input { padding: 3px; border: 1px solid #999; }
input.error, select.error { border: 1px solid red; }
label.error { color:red; margin-left: 10px; }
td { padding: 5px; }
</style>
</head>
<body>
<div class="container">
<br>
<h3 class="bold" align="center" style="margin-top:10px;">
Sistem Informasi Pengelolaan Bantuan Operasional Sekolah<br>
Kabupaten Lumajang
</h3>
<div id="wrapper">
<img src="<?php echo base_url()?>assets/img/students.png" style="float:right;margin-top:100px;margin-right:125px">
<div class="wrap-login" style="float:none;margin-left:130px">
<form id="login-form" name="login-form" class="login-form" action="auth/process_login" method="post">
<div class="header-login">
<h4 class="blue">Login Form</h4>
<p>Silahkan lengkapi form dibawah ini untuk mengakses e-Finance</p>
</div>
<div class="content-login">
<span>
<input type="text" name="username" class="username required" placeholder="Username" title="Username tidak boleh kosong" autofocus="">
</span>
<span>
<input type="password" name="password" class="username required" placeholder="Password" title="Password tidak boleh kosong">
</span>
<span>
<select class="form-control custom required" name="tahun" id="tahun" title="Tahun harus dipilih">
<option value="">Pilih Tahun Anggaran...</option>
</select>
</span>
<span>
<select class="form-control custom required" name="status" id="status" title="Status Anggaran harus dipilih">
<option value="">Pilih Status Anggaran...</option>
</select>
</span>
</div>
<div class="footer-login">
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
</div>
</form>
</div>
<div class="clear"></div>
</div>
<div class="gradient"></div>
</div>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
<?php
$error = $this->session->flashdata('message');
if(isset($error) && $error != '')
{
echo '<div class="alert alert-error" align="center"><strong>'.$error.'</strong></div>';
}
?>
</body>
</html>
<script type="text/javascript">
$(document).ready(function () {
var dari_tahun = '<?php echo $this->tahun; ?>';
var dari_status = '<?php echo $this->status; ?>';
$.getJSON('<?php echo base_url();?>auth/get_tahun_anggaran/', function(json) {
$.each(json.rows, function(id,val){
$('<option value="' + val.id+ '" class="options">' + val.id+'</option>').appendTo('#tahun');
});
});
$('#tahun').change(function(){
var ke_tahun = $('#tahun').val();
$("select#status option").remove();
$.getJSON('<?php echo base_url();?>auth/get_status_anggaran/'+ke_tahun, function(json) {
$.each(json.rows, function(id,val){
$('<option value="' + val.id+ '" class="options">' + val.id+'</option>').appendTo('#status');
});
});
});
});
</script>