<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="<?php echo base_url();?>resources/css/style_db_config.css">
<link href="<?php echo base_url();?>resources/fonts/pacifico/stylesheet.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo base_url();?>resources/js/jquery-1.7.1.min.js"></script>
<script src="<?php echo base_url();?>resources/js/jquery-sipp.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	$(".password").focus(function() {
		$(".pass-icon").css("left","-48px");
	});
	$(".password").blur(function() {
		$(".pass-icon").css("left","0px");
	});
});
</script>
</head>
<body>
    <div class="heading">
        Setup Database koneksi SIPP
    </div>
    <div id="wrapper">
        <div class="user-icon"></div>
        <div class="pass-icon"></div>
        <form id="login-form" name="login-form" class="login-form" method="post">
            <div class="header">
                <h1>Login</h1>
                <span>SILAHKAN RUBAH PASSWORD LAMA ANDA.</span>
                <br>
                <span>Jika anda mempunyai masalah atau pertanyaan silahkan hubungi IT Admin PT anda.</span>
            </div>
            <div class="content">
                <input name="old_password" type="password" class="input password" placeholder="Password Lama" />
                <input name="new_password" type="password" class="input password" placeholder="Password Baru " />
                <input name="retype_password" type="password" class="input password" placeholder="Password Ulangi" />
            </div>
            <div class="footer" style="padding:10px 53px 7px 10px;">
                <input type="button" id="simpan" name="submit" value="Simpan" class="button" style="width:100px;">
                <input type="button" value="Keluar" class="button" id="close_form" style="width:100px;"/></td>
            </div>
        </form>
    </div>
</body>
<script type="text/javascript">
var showmsg = '<?php echo $showmsg;?>';
if(showmsg==1){
    message_error_show_parent("Webservr tidak diIzinkan melakukan update file. Silahkan Berkonsultasi dengan IT PT anda atau SIPP Team.")
}
$('#simpan').ButtonClickHandling({
    refresh:'1',
    setRefresh:1,
    divRef:'#footer',
    clicked:1,
    btnClicked:'#close_form',
    whenStatus:1,
    actions:'<?php echo base_url("dbconfig/updatePass")?>',
    formName:'#login-form',
    actionName:'Update Password'
});
$('.footer').on('click', '#close_form', function(event) {
    window.open('<?php echo base_url("dbconfig");?>','_self');  
})
function closeLoading(){
    $("body").css({ overflow: 'inherit' })
    $('#loading').fadeOut();
}

function openLoadingDialog(){
    $("body").css({overflow: 'hidden'});
    $('#loading').fadeIn();
}
</script>
</html>