<?php
$page_title = "法人檔案資料(KYB)上傳";
include_once('template/base_head.php');
?>
			<!-- サイドバー -->
			<aside id="colLeft">
				<h1><a href="/tc/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">※文件格式JPG, JPEG, PDF, PNG 或 GIF，大小5MB以内。</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>
