Mini Shell
<?php
require("Ayarlar/Baglantim.php");
require("Ayarlar/Kilit.php");?>
<!doctype html>
<html lang="tr">
<head>
<?php require("Tablolar/Tasarim.php"); ?>
<title><?= $ayar["siteadi"] ?> - <?= $ayar["siteslogan"] ?></title>
</head>
<body class="bg-theme <?= $kbilgi['temam']?>">
<!-- wrapper -->
<div class="wrapper">
<div class="authentication-lock-screen d-flex align-items-center justify-content-center animated <?= $kbilgi['animasyon']?>">
<div class="card shadow-none bg-transparent">
<form id="KilitAc" action="javascript:void(0);">
<div class="card-body p-md-5 text-center">
<h1 class="text-white"><?php echo date('H:i'); ?></h1>
<h1 class="text-white"><?php echo date('d.m.Y'); ?></h1>
<div class="">
<img src="<?= $kbilgi['resim']?>" class="mt-5" width="120" alt="" />
</div>
<p class="mt-2 text-white"><?= $kbilgi['ad']?> <?= $kbilgi['soyad']?></p>
<div class="mb-3 mt-3">
<input type="password" class="form-control" placeholder="Şifre" name="sifre">
</div>
<div class="d-grid">
<input type="hidden" class="form-control" name="kilitac" value="<?= $kbilgi['id']?>">
<button type="submit" class="btn btn-success"><i class="bx bxs-lock-open"></i>Kilit Aç</button>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- end wrapper -->
<div hidden="hidden" id="sonuc"></div>
<!-- Bootstrap JS -->
<script src="Tasarim/js/bootstrap.bundle.min.js"></script>
<!--plugins-->
<script src="Tasarim/js/jquery.min.js"></script>
<script src="Tasarim/js/sweetalert.min.js"></script>
<script>
$(document).ready(function () {
$("#show_hide_password a").on('click', function (event) {
event.preventDefault();
if ($('#show_hide_password input').attr("type") == "text") {
$('#show_hide_password input').attr('type', 'password');
$('#show_hide_password i').addClass("bx-hide");
$('#show_hide_password i').removeClass("bx-show");
} else if ($('#show_hide_password input').attr("type") == "password") {
$('#show_hide_password input').attr('type', 'text');
$('#show_hide_password i').removeClass("bx-hide");
$('#show_hide_password i').addClass("bx-show");
}
});
});
</script>
<script>
$(document).ready(function(){
$('#KilitAc').submit(function(e) {
$.ajax({ // Ajax metodu
type: "POST", // Gönderim Methodu POST (GET'de seçilebilir)
url: "Islem/Profil.php", // POST işleminin olacağı sayfa
data: $("#KilitAc").serialize(), // Formdaki tüm verileri al
success: function(oldu){ // Eğer işlem başarılı olursa sonuç
$('#sonuc').html(oldu); // Id'si result olan divde sonucu yaz
}
});
})
});
</script>
</body>
</html>