<?php
$page_title = "KYB Upload";
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(); ?>
						
					<?php 
					if($this -> canUpload()){
					?>	
						<form id="acForm" action="" method="post" enctype="multipart/form-data">
							<p class="ma90sp mb30">Please upload your KYB documents.<br>
							<span class="red">※※The maximum file size is 5MB in the format of JPG, JPEG, PDF, PNG or GIF.</span><br>
							<span class="red">※Please upload your files separately, not embedded in the manuscript file. </span></p>
							
							<table class="table col bdr default odd kycT fontM mb30 ma90sp">
								<tr>
									<th>Certificate of Incorporation</th>
									<td><input type="file" accept="image/jpeg,image/png,image/jpg,image/gif,application/pdf" id="img7" name="img7" value="" class="w100p"></td>
								</tr>
								<tr>
									<th>Memorandum and Articles of Association </th>
									<td><input type="file" accept="image/jpeg,image/png,image/jpg,image/gif,application/pdf" id="img8" name="img8" value="" class="w100p"></td>
								</tr>
								<tr>
									<th>※Certificate of Incumbency of Directors (for companies over 1 year)</th>
									<td><input type="file" accept="image/jpeg,image/png,image/jpg,image/gif,application/pdf" id="img9" name="img9" value="" class="w100p"></td>
								</tr>
								<tr>
									<th>Shareholders Registration Document</th>
									<td><input type="file" accept="image/jpeg,image/png,image/jpg,image/gif,application/pdf" id="img10" name="img10" value="" class="w100p"></td>
								</tr>
								<tr>
									<th>Others</th>
									<td><input type="file" accept="image/jpeg,image/png,image/jpg,image/gif,application/pdf" id="img11" name="img11" value="" class="w100p"></td>
								</tr>
							</table>
							<p class="kycT ma90sp mb10"><strong>【Personal identification of directors】</strong><br>
							<span class="fontS">Please upload directors' 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">
								<tr>
									<th>Proof of identity 1</th>
									<td><input type="file" accept="image/jpeg,image/png,image/jpg,image/gif,application/pdf" id="img1" name="img1" value="" class="w100p"></td>
								</tr>
								<tr>
									<th>Proof of identity 2</th>
									<td><input type="file" accept="image/jpeg,image/png,image/jpg,image/gif,application/pdf" id="img2" name="img2" value="" class="w100p"></td>
								</tr>
								<tr>
									<th>Proof of identity 3</th>
									<td><input type="file" accept="image/jpeg,image/png,image/jpg,image/gif,application/pdf" id="img3" name="img3" value="" class="w100p"></td>
								</tr>
							</table>
							<p class="kycT ma90sp mb10"><strong>【Residence certificate of directors】</strong><br>
							<span class="fontS">Please upload directors' 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">
								<tr>
									<th>Proof of Address 1</th>
									<td><input type="file" accept="image/jpeg,image/png,image/jpg,image/gif,application/pdf" id="img4" name="img4" value="" class="w100p"></td>
								</tr>
								<tr>
									<th>Proof of Address 2</th>
									<td><input type="file" accept="image/jpeg,image/png,image/jpg,image/gif,application/pdf" id="img5" name="img5" value="" class="w100p"></td>
								</tr>
								<tr>
									<th>Proof of Address 3</th>
									<td><input type="file" accept="image/jpeg,image/png,image/jpg,image/gif,application/pdf" id="img6" name="img6" value="" class="w100p"></td>
								</tr>
							</table>
							<p class="kycT ma90sp mb10 red">※A resubmission may be asked if the uploaded file fails to pass the internal check.<br>
							※※If necessary, you will be requested to provide additional information and documents.</p>
							<p class="kycT ma90sp mb20"><input type="button" id="btnComplete" value="Upload" class="btn bg-grad px120"></p>
							<input type="hidden" value="" 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="2" id="img_7_flg" name="img_7_flg" />
							<input type="hidden" value="3" id="img_8_flg" name="img_8_flg" />
							<input type="hidden" value="4" id="img_9_flg" name="img_9_flg" />
							<input type="hidden" value="5" id="img_10_flg" name="img_10_flg" />
							<input type="hidden" value="6" id="img_11_flg" name="img_11_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>
