File "footer-20260113172303.php"
Full Path: /home/ovanhxso/public_html/panel/admin/include/footer-20260113172303.php
File size: 8.91 KB
MIME-type: text/x-php
Charset: utf-8
<?php
include '../assets/constant/config.php';
try {
$conn = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password);
$conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
echo "Connection failed: " . $e->getMessage();
}
$y = date('Y');
?>
<?php if (!empty($_SESSION['success'])) {
?>
<div class="popup popup--icon -success js_success-popup popup--visible">
<div class="popup__background"></div>
<div class="popup__content">
<h3 class="popup__content__title">
Success
</h1>
<p> <?php echo $_SESSION['success']; ?> </p>
<p>
<?php //echo "<script>setTimeout(\"location.href = '#';\",1500);</script>";
?>
</p>
</div>
</div>
<?php $_SESSION['success'] = '';
echo '<script>
setTimeout(function() {
location.reload();
}, 2000);
</script>';
} ?>
<?php if (!empty($_SESSION['error'])) {
?>
<div class="popup popup--icon -error js_error-popup popup--visible">
<div class="popup__background"></div>
<div class="popup__content">
<h3 class="popup__content__title">
Error
</h1>
<p> <?php echo $_SESSION['error']; ?> </p>
<p>
<p>
<!-- <a href="../index.php"><button class="button button--error" data-for="js_error-popup">Close</button></a> -->
<?php //echo "<script>setTimeout(\"location.href = '#';\",1500);</script>";
?>
</p>
</div>
</div>
<?php $_SESSION['error'] = '';
echo '<script>
setTimeout(function() {
location.reload();
}, 2000);
</script>';
} ?>
<script>
function editForm(event, id, file) {
event.preventDefault(); // Prevent the default link behavior
// Create a form dynamically
var form = document.createElement('form');
form.action = file;
form.method = 'post';
// Create a hidden input field for the ID
var input = document.createElement('input');
input.type = 'hidden';
input.name = 'id';
input.value = id;
// Append the input field to the form
form.appendChild(input);
// Append the form to the body and submit it
document.body.appendChild(form);
form.submit();
}
</script>
<script>
function delForm(event, id, file) {
event.preventDefault(); // Prevent the default link behavior
// Create a form dynamically
var form = document.createElement('form');
form.action = file;
form.method = 'post';
// Create a hidden input field for the ID
var input = document.createElement('input');
input.type = 'hidden';
input.name = 'del_id';
input.value = id;
// Append the input field to the form
form.appendChild(input);
// Append the form to the body and submit it
document.body.appendChild(form);
form.submit();
}
</script>
<footer class="footer">
Copyright <?php echo $y; ?>. All Rights Reserved.
</footer>
</div>
<!-- End Right content here -->
</div>
<!-- END wrapper -->
<!-- jQuery -->
<script src="../assets/js/jquery.min.js"></script>
<!-- validation script -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.3/jquery.validate.min.js"></script>
<!-- <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> -->
<!--<script src="https://cdn.jsdelivr.net/npm/jquery-validation@1.19.5/dist/jquery.validate.min.js"></script>-->
<script src="../assets/js/popper.min.js"></script>
<script src="../assets/js/bootstrap.min.js"></script>
<script src="../assets/js/modernizr.min.js"></script>
<script src="../assets/js/detect.js"></script>
<script src="../assets/js/fastclick.js"></script>
<script src="../assets/js/jquery.blockUI.js"></script>
<script src="../assets/js/waves.js"></script>
<script src="../assets/js/jquery.nicescroll.js"></script>
<script src="../assets/js/space.js"></script>
<script src="../assets/plugins/skycons/skycons.min.js"></script>
<script src="../assets/plugins/fullcalendar/vanillaCalendar.js"></script>
<script src="../assets/plugins/raphael/raphael-min.js"></script>
<script src="../assets/plugins/morris/morris.min.js"></script>
<!-- <script src="../assets/pages/dashborad.js"></script> -->
<!-- Required datatable js -->
<script src="../assets/plugins/datatables/jquery.dataTables.min.js"></script>
<script src="../assets/plugins/datatables/dataTables.bootstrap4.min.js"></script>
<!-- Buttons examples -->
<script src="../assets/plugins/datatables/dataTables.buttons.min.js"></script>
<script src="../assets/plugins/datatables/buttons.bootstrap4.min.js"></script>
<script src="../assets/plugins/datatables/jszip.min.js"></script>
<script src="../assets/plugins/datatables/pdfmake.min.js"></script>
<script src="../assets/plugins/datatables/vfs_fonts.js"></script>
<script src="../assets/plugins/datatables/buttons.html5.min.js"></script>
<script src="../assets/plugins/datatables/buttons.print.min.js"></script>
<script src="../assets/plugins/datatables/buttons.colVis.min.js"></script>
<!-- Responsive examples -->
<script src="../assets/plugins/datatables/dataTables.responsive.min.js"></script>
<script src="../assets/plugins/datatables/responsive.bootstrap4.min.js"></script>
<!-- Datatable init js -->
<script src="../assets/pages/datatables.init.js"></script>
<!-- App js -->
<script src="../assets/js/app.js"></script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<!--fether ocons js-->
<script src="https://unpkg.com/feather-icons@4.29.1/dist/feather.min.js"></script>
<script>
feather.replace();
</script>
<!--<script src="../assets/pages/form-advanced.js"></script>-->
<!--------Ck Editot ------>
<script src="https://cdn.ckeditor.com/ckeditor5/38.1.1/classic/ckeditor.js"></script>
<script>
ClassicEditor
.create(document.querySelector('#ckeditor'))
.catch(error => {
console.error(error);
});
</script>
<script>
ClassicEditor
.create(document.querySelector('#ckeditor1'))
.catch(error => {
console.error(error);
});
</script>
<script>
ClassicEditor
.create(document.querySelector('#ckeditor2'))
.catch(error => {
console.error(error);
});
</script>
<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
<script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script>
<script>
// In your Javascript (external .js resource or <script> tag)
$(document).ready(function() {
$('.select2').select2();
});
</script>
<!----------sweetalert---------------------->
<script language="javascript">
var today = new Date();
document.getElementById('time').innerHTML = today;
$(document).ready(function() {
setTimeout(function() {
$("#myAlert").alert('close');
}, 5000); // 1 second
});
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/sweetalert/1.1.3/sweetalert-dev.js"></script>
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en'
}, 'google_translate_element');
var $googleDiv = $("#google_translate_element .skiptranslate");
var $googleDivChild = $("#google_translate_element .skiptranslate div");
$googleDivChild.next().remove();
$googleDiv.contents().filter(function() {
return this.nodeType === 3 && $.trim(this.nodeValue) !== '';
}).remove();
}
</script>
<style>
.goog-te-gadget .goog-te-combo {
margin: 0px 0;
padding: 8px;
color: #000;
background: #eeee;
}
</style>
<script>
document.getElementById("newpassword").addEventListener("input", checkPasswordStrength);
function checkPasswordStrength() {
var password = document.getElementById("newpassword").value;
var strengthText = document.getElementById("password-strength");
var passwordLength = password.length;
var strengthLabel = "";
if (passwordLength >= 8 && passwordLength <= 10) {
strengthLabel = "Medium";
strengthText.style.color = "orange";
} else if (passwordLength > 10) {
strengthLabel = "Strong";
strengthText.style.color = "green";
} else {
strengthLabel = "Weak";
strengthText.style.color = "red";
}
strengthText.innerHTML = strengthLabel;
}
</script>
</body>
</html>