minor css changes

This commit is contained in:
jouls 2024-03-07 15:12:17 +08:00
parent c15cfc8b76
commit 643175ded1
2 changed files with 42 additions and 30 deletions

View File

@ -100,6 +100,7 @@
<div class="section form-container">
<h2>Confirm KYC Details</h2>
<div class="form-container">
<div class="checkboxFormContainer">
<form id="checkboxForm">
<div class="checkbox-container">
@ -128,15 +129,27 @@
</div>
<div class="form-container">
<h3>Change the status?</h3>
<button type="button" class="btn btn-danger" id="rejectButton" onclick="window.location.href='update-kyc.php?kycID=<?php echo $IDkyc; ?>&userID=<?php echo $array['userRef']['_id']; ?>&isAccepted=false';">Reject</button>
<button type="button" class="btn btn-success" id="acceptButton" onclick="handleKycAction('<?php echo $IDkyc; ?>', '<?php echo $array['userRef']['_id']; ?>', true);" disabled>Accept</button>
<button type="button" class="btn btn-danger" id="rejectButton" onclick="window.location.href='update-kyc.php?kycID=<?php echo $IDkyc; ?>&userID=<?php echo $array['userRef']['_id']; ?>&isAccepted=false';">Reject</button>
</div>
</div>
</form>
</div>
</div>
<script>
var imageContainer = document.getElementById('zoomContainer');
var originalTransform = window.getComputedStyle(imageContainer).getPropertyValue('transform');
imageContainer.addEventListener('mouseenter', function() {
imageContainer.style.transform = 'scale(1.5)';
});
imageContainer.addEventListener('mouseleave', function() {
imageContainer.style.transform = originalTransform;
});
function handleCheckboxChange() {
// Check the status of checkboxes and enable/disable the "Accept" button
var areAllChecked = document.querySelectorAll('#checkboxForm input[type="checkbox"]:checked').length === 4;

View File

@ -10,7 +10,6 @@ if (isset($_GET['kycID'], $_GET['userID'], $_GET['isAccepted'])) {
$userID = $_GET['userID'];
$isAccepted = ($_GET['isAccepted'] === 'true');
echo "KYC ID: $kycID, User ID: $userID, Is Accepted: $isAccepted";
//Call the appropriate function based on isAccepted value
if ($isAccepted) {
// If isAccepted is true, call accept_kyc function