<?php
$page_title = "法人资料（KYB）上传";
include_once('template/base_head.php');
?>
			<!-- サイドバー -->
			<aside id="colLeft">
				<h1><a href="/sc/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="ma90sp mb30">请上传您的KYB材料。<br>
						<span class="red">※支持格式为大小5MB以内的JPG、JPEG、 PDF、PNG或GIF文件。</span><br>
						<span class="red">※请逐个上传文件，不要合并或者打包。</span></p>
					<?php 
					if($this -> canUpload()){
					?>
						<form id="acForm" action="" method="post" enctype="multipart/form-data">
							<table class="table col bdr default odd kycT fontM mb30 ma90sp">
								<tr>
									<th>公司注册证</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>公司组织章程 </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>※董事在职证明书（成立一年以上的公司）</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>股东名册</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>其他</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>【董事/股东个人身份证明】</strong><br>
							<span class="fontS">请在此上传董事个人的护照或驾照等证明。更多详细信息，请参照“KYC基准”。</span></p>
							<table class="table col bdr default odd kycT fontM mb30 ma90sp">
								<tr>
									<th>身份证明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>身份证明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>身份证明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>【董事/股东个人住址证明】</strong><br>
							<span class="fontS">请在此上传董事个人的公共事业费用账单等材料。更多详细信息，请参照“KYC基准”。</span></p>
							<table class="table col bdr default odd kycT fontM mb30 ma90sp">
								<tr>
									<th>住址证明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>住址证明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>住址证明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">※如果您提交的材料没有通过，可能会要求您重新提交。<br>
							※如需要，可能会要求您提供其他文件或者材料。</p>
							<p class="kycT ma90sp mb20"><input type="button" id="btnComplete" value="上传" 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>
						<h3>KYC文件上传</h3>
                     	<table class="table col bdr default odd fontXS calign" style="margin-top: 10px;">
                        <colgroup>
							<col width="50%">
						</colgroup>
                        <tr>
                        	<th>文件审核状况</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文件不合格的情况下，我们会将不合格的详细原因发送至您的注册邮箱，如果您未收到邮件，请与【客户支持】联系。</p>
						<?php
							}
						?>
                        <br>
                        <h3>已上传文件审核状况</h3>
                        <table class="table col bdr default odd fontXS calign" style="margin-top: 5px;">
                        	<tr>
                            	<th class="w25p">上传日期</th>
								<th class="w20p">文件类型</th>
								<th class="w20p">文件名</th>       
                            </tr>
                            <?php $this -> dispKYCList(); ?>
                        </table>
					<?php
						}else{
					?>
						<hr class="mb20">
						<h3>KYC文件上传</h3>
                        <p style="margin-top: 10px;" class="red">您的KYC文件正在审核中或文件已审核完了，目前无法再次上传。</p>
                     	<table class="table col bdr default odd fontXS calign" style="margin-top: 10px;">
                        <colgroup>
							<col width="50%">
						</colgroup>
                        <tr>
                        	<th>文件审核状况</th>
                            <td><?php echo $this -> getStatus(); ?></td>   
                        </tr>
                        </table>
                        <p class="red" style="margin-top: 10px;">※文件审核状况　当KYC文件不合格的情况下，我们会将不合格的详细原因发送至您的注册邮箱，如果您未收到邮件，请与【客户支持】联系。</p>
                        <br>
                        <h3>已上传文件审核状况</h3>
                        <table class="table col bdr default odd fontXS calign" style="margin-top: 5px;">
                        	<tr>
                            	<th class="w25p">上传日期</th>
								<th class="w20p">文件类型</th>
								<th class="w20p">文件名</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>
