<?php
$page_title = "KYC Verification";
include_once('template/base_head.php');
?>
			<!-- サイドバー -->
			<aside id="colLeft">
				<h1><a href="/en/menu"><img src="../img/logo.png" alt="iWallet"></a></h1>
<?php include_once('template/base_sidebar_setting.php'); ?>
			</aside>
			<!-- /サイドバー -->
			<!-- メインカラム -->
			<div id="colMain">
				<div class="mainIn">
<?php include_once('template/base_nav.php'); ?>
					<article>
						<div class="article-heading">
							<h2><?php echo $page_title; ?></h2>
						</div>
						<?php $this -> echoMessage(); ?>
						<p class="pb30 settingT respM">Please upload your KYC  documents (Proof of identity and proof of address). <br>
						<span class="red">※The maximum file size allowed is 5MB in the format of JPG, JPEG, PDF, PNG or GIF.</span><br>
						<span class="red">※You can upload a maximum of 10 KYC files ([5] Proof of Identification, [5] Proof of Address) at a time.</span><br>
						<span class="red">※ Please make sure that the address listed on your KYC (proof of address) is the same address registered on your iWallet profile. This includes house/building number and building name.</span><br>
						<span class="red">※ To prevent delays with verification and future transactions, please make sure that the name on your iWallet account is exactly how it's written on your documents (KYCs). You may be asked to provide additional documents for reference purposes only.</span>
						</p>
					<?php
					if($this -> canUpload()){
					?>
						<form id="acForm" action="" method="post" enctype="multipart/form-data">
						<?php if($this -> canUploadPI(0)){ ?>
						<p class="pb10 respM"><strong>【Proof of Identity 】</strong><br>
						<span class="fontS">Please upload your passport, driver license and etc. For more information, please refer to our KYC standard.</span></p>
							<table class="table col bdr default odd kycT fontM mb30 ma90sp">
								<?php $this -> dispInputs(0); ?>
							</table>
							<?php } ?>
							<?php if($this -> canUploadPI(1)){ ?>
							<p class="kycT respM pb10"><strong>【Proof of Address】</strong><br>
							<span class="fontS">Please upload  your utility bills, bank statements and etc.  For more information, please refer to our KYC standard.</span></p>
							<table class="table col bdr default odd kycT fontM mb30 ma90sp">
								<?php $this -> dispInputs(1); ?>
							</table>
							<?php } ?>
							<p class="kycT respM pb10 red">※A resubmission may be asked if the uploaded documents fail to pass the internal check.</p>
							<p class="kycT mb20"><input type="button" id="btnKyc" value="Upload" class="btn bg-grad px120 calign"></p>


							<input type="hidden" value="save" id="type" name="type" />
							<input type="hidden" value="settting_kyc" id="action" name="action" />
							<input type="hidden" value="0" id="img_1_flg" name="img_1_flg" />
							<input type="hidden" value="0" id="img_2_flg" name="img_2_flg" />
							<input type="hidden" value="0" id="img_3_flg" name="img_3_flg" />
							<input type="hidden" value="1" id="img_4_flg" name="img_4_flg" />
							<input type="hidden" value="1" id="img_5_flg" name="img_5_flg" />
							<input type="hidden" value="1" id="img_6_flg" name="img_6_flg" />
							<input type="hidden" value="" id="k_id" name="k_id" />
						</form>
						<hr class="mb20">
						<h3>Upload KYC</h3>
                     	<table class="table col bdr default odd fontXS calign" style="margin-top: 10px;">
                        <colgroup>
							<col width="50%">
						</colgroup>
                        <tr>
                        	<th>KYC Verification Status</th>
                            <td><?php echo $this -> getStatus(); ?></td>
                        </tr>
                        </table>
                        <?php
							$validateStatus = $this -> getValidateStatus();
							if($validateStatus == '8' || $validateStatus == '18'){
						?>
							<p class="red" style="margin-top: 10px;">※KYC Verification Status.If the KYC documents are not qualified, you will be sent an email to your registered email address, stating the reason/s for disqualification. If you do not receive the email, please contact us via [Customer Support].</p>
						<?php
							}
						?>
                        <br>
                        <h3>Uploaded Files Checking Status</h3>
                        <table class="table col bdr default odd fontXS calign" style="margin-top: 5px;">
                        	<tr>
                            	<th class="w25p">Date of Upload</th>
								<th class="w20p">File Type</th>
								<th class="w20p">File Name</th>
                            </tr>
                            <?php $this -> dispKYCList(); ?>
                        </table>
					<?php
						}else{
					?>
						<hr class="mb20">
						<h3>Upload KYC</h3>
                        <p style="margin-top: 10px;" class="red">Your KYC documents are either being reviewed, or have already been verified. Other documents cannot be uploaded at this time.</p>
                     	<table class="table col bdr default odd fontXS calign" style="margin-top: 10px;">
                        <colgroup>
							<col width="50%">
						</colgroup>
                        <tr>
                        	<th>KYC Verification Status</th>
                            <td><?php echo $this -> getStatus(); ?></td>
                        </tr>
                        </table>
                        <p class="red" style="margin-top: 10px;">※KYC Verification Status.If the KYC documents are not qualified, you will be sent an email to your registered email address, stating the reason/s for disqualification. If you do not receive the email, please contact us via [Customer Support].</p>
                        <br>
                        <h3>Uploaded Files Checking Status</h3>
                        <table class="table col bdr default odd fontXS calign" style="margin-top: 5px;">
                        	<tr>
                            	<th class="w25p">Date of Upload</th>
								<th class="w20p">File Type</th>
								<th class="w20p">File Name</th>
                            </tr>
                            <?php $this -> dispKYCList(); ?>
                        </table>

					<?php
						}
					?>

					</article>
				</div>
			</div>
			<!-- /メインカラム -->
		</div>
<?php include_once('template/base_foot.php'); ?>
	</div>
	<script src="../js/setting.js"></script>
</body>
</html>
