changes on edit kyc info fields and kyc table

This commit is contained in:
jouls 2024-03-08 17:56:01 +08:00
parent a6f7b8cec0
commit 63bad662f3
1 changed files with 9 additions and 8 deletions

View File

@ -37,6 +37,8 @@ $BearerToken = $_SESSION['token'];
$response = get_kyc_info($IDkyc, $BearerToken); $response = get_kyc_info($IDkyc, $BearerToken);
$array = json_decode($response, true); $array = json_decode($response, true);
$CurrentUserAddress = '' . $array['userRef']['address1'] . ', ' . $array['userRef']['city'] . ', ' . $array['userRef']['province'] . ', ' . $array['userRef']['country'] . ' ' . $array['userRef']['zip'];
// Check if the decoding was successful // Check if the decoding was successful
if ($array !== null) { if ($array !== null) {
?> ?>
@ -61,16 +63,17 @@ $BearerToken = $_SESSION['token'];
<div class="form-container"> <div class="form-container">
<fieldset disabled> <fieldset disabled>
<form> <form>
<label for="IdUser">USER ID:</label>
<input class="form-control" type="text" id="IdUser" name="UserID" value="<?php echo $array['userRef']['_id']; ?>" readonly>
<label for="fullName">Full Name:</label> <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> <input class="form-control" type="text" id="fullName" name="fullName" value="<?php echo $array['userRef']['fName'] . ' ' . $array['userRef']['lName']; ?>" readonly>
<label for="email">Email:</label> <label for="email">Email:</label>
<input class="form-control" type="text" id="email" name="email" value="<?php echo $array['userRef']['email']; ?>" readonly> <input class="form-control" type="text" id="email" name="email" value="<?php echo $array['userRef']['email']; ?>" readonly>
<label for="additionalStatus">Status:</label> <label for="address">Address:</label>
<input class="form-control" type="text" id="address" name="address" value="<?php echo $CurrentUserAddress; ?>" readonly>
<label for="additionalStatus">KYC Status:</label>
<input class="form-control" type="text" id="additionalStatus" name="additionalStatus" value="<?php echo $array['status']; ?>" readonly> <input class="form-control" type="text" id="additionalStatus" name="additionalStatus" value="<?php echo $array['status']; ?>" readonly>
</fieldset> </fieldset>
</form> </form>
@ -105,8 +108,6 @@ $BearerToken = $_SESSION['token'];
<div class="form-container"> <div class="form-container">
<form> <form>
<fieldset disabled> <fieldset disabled>
<label for="KycIdUser">KYC ID</label>
<input class="form-control" type="text" id="KycIdUser" name="kycID" value="<?php echo $array['_id']; ?>" readonly>
<label for="additionalFullName">Full Name:</label> <label for="additionalFullName">Full Name:</label>
<input class="form-control" type="text" id="additionalFullName" name="additionalFullName" value="<?php echo $array['full_name']; ?>" readonly> <input class="form-control" type="text" id="additionalFullName" name="additionalFullName" value="<?php echo $array['full_name']; ?>" readonly>
@ -116,8 +117,8 @@ $BearerToken = $_SESSION['token'];
<label for="dob">Date of Birth:</label> <label for="dob">Date of Birth:</label>
<input class="form-control" type="text" id="dob" name="dob" value="<?php echo $array['date_of_birth']; ?>" readonly> <input class="form-control" type="text" id="dob" name="dob" value="<?php echo $array['date_of_birth']; ?>" readonly>
<label for="address">Address:</label> <label for="address">ID Address:</label>
<input class="form-control" type="text" id="address" name="address" value="<?php echo $array['address']; ?>" readonly> <input class="form-control" type="text" id="kyc_address" name="KycAddress" value="<?php echo $array['address']; ?>" readonly>
</fieldset> </fieldset>
</form> </form>
</div> </div>