added comments, minor changes on forms

This commit is contained in:
jouls 2024-03-08 11:09:13 +08:00
parent c9f8f1f0aa
commit 6c9f7f07e2
1 changed files with 26 additions and 22 deletions

View File

@ -21,8 +21,10 @@
<div class="mainContainer">
<div class="section form-container">
<?php
//gets the pass parameter kycID and assigned to local variable $IDkyc
$IDkyc = isset($_GET['kycID']) ? $_GET['kycID'] : '';
include '../functions-test.php';
//calls the get_kyc_info function insdie the functions-test.php that retrieves all the kyc data
$response = get_kyc_info($IDkyc);
$array = json_decode($response, true);
@ -45,12 +47,13 @@
<img class="modal-content" id="img01" style="max-width: 100%; max-height: 80vh; width: auto; height: auto; margin: auto; display: block;">
</div>
<!-- Displays all the information retrieved by get_kyc_info() related to userInfo -->
<h3>User Information</h3>
<div class="form-container">
<fieldset disabled>
<form>
<label for="IdUser">USER ID:</label>
<input class="form-control" type="text" id="IdUser" name="kycID" value="<?php echo $array['userRef']['_id']; ?>" readonly>
<input class="form-control" type="text" id="IdUser" name="UserID" value="<?php echo $array['userRef']['_id']; ?>" readonly>
<label for="fullName">Full Name:</label>
<input class="form-control" type="text" id="fullName" name="fullName" value="<?php echo $array['userRef']['fName'] . ' ' . $array['userRef']['lName']; ?>" readonly>
@ -69,7 +72,7 @@
}
?>
</div>
<!-- Displays all the information related to kycInfo -->
<div class="section form-container">
<h2>Images</h2>
<div class="image-container">
@ -110,7 +113,7 @@
</form>
</div>
</div>
<!-- Display section for confirmation or validation of information via checkbox -->
<div class="section form-container">
<h2>Confirm KYC Details</h2>
<div class="checkboxFormContainer">
@ -148,7 +151,7 @@
</form>
</div>
</div>
<!-- Scripts for modal boxes and image hovering -->
<script type="text/javascript">
function handleCheckboxChange() {
// Check the status of checkboxes and enable/disable the "Accept" button
@ -190,7 +193,7 @@
// User entered an empty reason
alert("Please provide a valid reason for rejection.");
}
}
};
var modal = document.getElementById("myModal");
@ -210,6 +213,7 @@
}
}
</script>
<!-- Creating a modal dialog box using Bootstrap framework in HTML. -->
<div class="modal fade" id="rejectModal" tabindex="-1" role="dialog" aria-labelledby="rejectModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">