<?php
$page_title = "ユーザー詳細";
include_once('template/base_head.php');
?>
			<!-- サイドバー -->
			<aside id="colLeft">
				<h1><a href="/account_list"><img src="img/logo.png" alt="iWallet"></a></h1>
				<form id="searchForm" action="" method="post">
					<input type="hidden" id="detail_account" name="detail_account" value="<?php $this -> echoAccountNumber(); ?>">
					<div class="aside-heading">
						<div class="btns">
							<input type="button" id="btnSearchAll" value="すべて" class="btn bg-default px50 hi22">&nbsp;
							<input type="button" id="btnSearchToday" value="本日" class="btn bg-default px50 hi22">&nbsp;
							<input type="button" id="btnSearch" value="検索" class="btn bg-default px50 hi22">
						</div>
					</div>
					<table class="conditions fontS w100p">
						<colgroup>
							<col class="w50p">
							<col class="w50p">
						</colgroup>
						<tr>
							<th>取引番号</th>
							<td><input type="text" id="transaction_number" name="transaction_number" value="<?php $this -> echoSTransactionNumber(); ?>" class="w100p"></td>
						</tr>
						<tr>
							<th>メールアドレス</th>
							<td><input type="text" id="s_email" name="s_email" value="<?php $this -> echoSEmail(); ?>" class="w100p"></td>
						</tr>
						<tr>
							<th>口座番号</th>
							<td><input type="text" id="s_account" name="s_account" value="<?php $this -> echoSUserAccount(); ?>" class="w100p"></td>
						</tr>
						<tr>
							<th>通貨種別</th>
							<td>
								<select id="s_currency" name="s_currency" class="w100p">
									<option value="">--- すべて ---</option>
									<?php $this -> echoCurrencyList(); ?>
								</select>
							</td>
						</tr>
						<tr>
							<th>取引科目</th>
							<td>
								<select name="transaction_type" id="transaction_type" class="w100p">
									<option value="">--- すべて ---</option>
									<?php $this -> dispTransactionTypeList(); ?>
								</select>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<span class="th">処理日時指定</span>
								<p>
									<input type="text" id="s_from" name="s_from" value="<?php $this -> echoSFrom(); ?>" class="px110" placeholder="日付">  -  <input type="text" id="s_to" name="s_to" value="<?php $this -> echoSTo(); ?>" class="px110" placeholder="日付">
								</p>
							</td>
						</tr>
					</table>
					<p class="calign"><input type="button" id="btnExport" value="エクスポート" class="btn bg-grad hi25 px100"></p>
					<input type="hidden" value="" id="s_type" name="type" />
				</form>
			</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(); ?>
						<form id="acForm" action="" method="post">
							<table class="table col bdr default odd w60p fontXS m_auto mb20">
								<colgroup>
									<col class="w40p">
									<col class="w60p">
								</colgroup>
								<tr>
									<th>所属WL</th>
									<td><?php $this -> echoWLName(); ?></td>
								</tr>
								<tr>
									<th>ユーザー名</th>
									<td><?php $this -> echoUserName(); ?></td>
								</tr>
								<tr>
									<th>口座番号</th>
									<td><?php $this -> echoAccountNumber(); ?></td>
								</tr>
								<tr>
									<th>通貨</th>
									<td>
										<ul class="disc">
											<?php $this -> dispBalances(); ?>
										</ul>
									</td>
								</tr>
								<tr>
									<th>氏名</th>
									<td><?php $this -> echoLastName(); ?>&nbsp;<?php $this -> echoFirstName(); ?></td>
								</tr>
								<tr>
									<th>生年月日</th>
									<td><?php $this -> echoBirth(); ?></td>
								</tr>
								<tr>
									<th>登録日時</th>
									<td><?php $this -> echoCreateTime(); ?></td>
								</tr>
								<tr>
									<th>口座種別</th>
									<td><?php $this -> echoAccountType(); ?></td>
								</tr>
								<tr>
									<th>口座カテゴリー</th>
									<td><?php $this -> echoTestAccountFlg(); ?></td>
								</tr>
								<tr>
									<th>CRM ID</th>
									<td><?php $this -> echoCrmId(); ?></td>
								</tr>
								<tr>
									<th>KYC認証</th>
									<td><?php $this -> dispKYCFlg(); ?></td>
								</tr>
								<tr>
									<th>ステータス</th>
									<td><?php $this -> dispStatus(); ?></td>
								</tr>
								<tr>
									<th>国名</th>
									<td><?php $this -> echoCountry(); ?></td>
								</tr>
								<tr>
									<th>都道府県</th>
									<td><?php $this -> echoState(); ?></td>
								</tr>
								<tr>
									<th>市町村</th>
									<td><?php $this -> echoCity(); ?></td>
								</tr>
								<tr>
									<th>住所</th>
									<td><?php $this -> echoAddress() . '&nbsp;' . $this -> echoAddress2(); ?></td>
								</tr>
								<tr>
									<th>郵便番号</th>
									<td><?php $this -> echoZipCode(); ?></td>
								</tr>
								<tr>
									<th>電話番号</th>
									<td><?php $this -> echoTel(); ?></td>
								</tr>
								<tr>
									<th>メールアドレス</th>
									<td><?php $this -> echoMail(); ?></td>
								</tr>
								<tr>
									<th>エージェント</th>
									<td><?php $this -> echoAgentCode(); ?></td>
								</tr>								
								<?php $this -> echo2facontrol(); ?>
								<tr>
									<th>ログインロック</th>
									<td><?php $this -> dispLoginLock(); ?></td>
								</tr>
								<tr>
									<th>KYC確認書類</th>
									<td><a href="#" id="btnRollBack">KYC確認の差戻し</a>　　　　<input id="kycUpload" value="ファイルアップロード" class="btn bg-grad hi25" style="width:150px;"type="button"></td>
								</tr>
								<?php $this -> reSendLink(); ?>
								<tr>
									<th>一括バッチ送金</th>
									<td><?php $this -> echoTransferBatchFlg(); ?></td>
								</tr>
								<tr>
									<th>登録カード</th>
									<td>
										<ul class="disc">
											<?php $this -> dispCards(); ?>
											<?php $this -> dispMsg(); ?>
										</ul>
										<br/>
										カードホルダーID：<input type="text" value="<?php $this -> echoCardHolderId(); ?>" id="card_holder_id" name="card_holder_id" class="w20p" /><br/>
										カード番号：<input type="text" value="<?php $this -> echoDigit(); ?>" id="card_number" name="card_number" class="w20p" /><br/>
										プロキシ：<input type="text" value="<?php $this -> echoDigit(); ?>" id="proxy" name="proxy" class="w20p" /><br/>
										有効期限：<input type="text" value="<?php $this -> echoDigit(); ?>" id="expire_date" name="expire_date" class="w20p" /><br/>
										<input type="button" id="btnRegistCard" value="登録" class="btn bg-grad px80 hi25">
									</td>
								</tr>
								<!-- Mikko 2019 -->
								<tr>
									<th>Riskレベル</th>
									<td>
										<?php $this -> echoRiskLevel(); ?> 
									</td>
								</tr>
								<tr>
									<th>ティアレベル</th>
									<td>
										<?php $this -> echoTierLevel(); ?>
									</td>
								</tr>
								<tr>
									<th>関連口座</th>
									<td>
										<ul class="disc">
											<?php $this -> dispUserLink(); ?>
											<?php $this -> dispMsg2(); ?>
										</ul>
										<br/>
										<fieldset id="fields">
											<div class="fieldwrapper" id="field0">
												口座番号：<input type="text" value="<?php //$this -> echoUserLink(); ?>" id="link_user" name="link_user[]" class="w20p" />
												<input type ="button" value="+" id="addField" name="addField" class="btn bg-grad px40 addField" /><br/>
												
											</div>
										</fieldset>
										<input type="button" id="btnLinkUser" value="登録" class="btn bg-grad px80 hi25">
									</td>
								</tr>
								<!-- Mikko 2019 -->
								<tr>
									<th>潜在的な重複</th>
									<td><a href="account_duplicate_com?user_account=<?php $this -> echoAccountNumber(); ?>"><?php $this -> echoMail(); ?></a> </td>
								</tr>
								<tr>
									<th>Receive User-Initiated Internal Transfer</th>
									<td><?php $this -> echoTransferFlg(); ?></td>
								</tr>
							</table>

							<table class="table col bdr default odd w60p fontXS m_auto mb20">
								<colgroup>
									<col class="w40p">
									<col class="w60p">
								</colgroup>
								<tr>
									<th>GPaySafe利用決済種別</th>
									<td><?php $this -> echoGpsKindOfPayments(); ?></td>
								</tr>
								<tr>
									<th>GPaySafe口座</th>
									<td><?php $this -> echoGPSAccountFlg(); ?></td>
								</tr>
							</table>

							<?php $this -> dispCorporation(); ?>
							<p class="calign mb20">
								<input type="button" id="btnInput" value="編集する" class="btn bg-grad px80 hi25">
							</p>
							<table class="table col bdr default odd w60p fontXS m_auto mb20">
								<colgroup>
									<col class="w40p">
									<col class="w60p">
								</colgroup>
								<tr>
									<th>支払ソリューションのカスタムアクセス</th>
									<td>
										<div><label class="method_name"><b>入金手段</b></label></div><div><?php $this -> echoUserCustomAccess(PARAM_DEPOSIT); ?></div>

										<div><label class="method_name"><b>出金手段</b></label></div><div><?php $this -> echoUserCustomAccess(PARAM_WITHDRAW); ?></div>
									</td>
								</tr>
							</table>
							<p class="calign mb20">
								<input type="button" id="btnInputPaymentAccess" value="編集する" class="btn bg-grad px80 hi25">
							</p>
							<table class="table col bdr default odd w60p fontXS m_auto mb20">
								<tr>
									<th>
										備考欄&emsp;
										<input type="button" id="btnSave" value="保存" class="btn bg-default font12 hi22 px80">
									</th>
								</tr>
								<tr>
									<td>
										<textarea rows="10" id="note" name="note" class="w100p"><?php $this -> echoNote(); ?></textarea>
									</td>
								</tr>
							</table>
							<table class="table col bdr default odd w60p fontXS m_auto mb20">
								<tr>
									<th>
										Risk備考欄&emsp;
										<input type="button" id="btnSaveRisk" value="保存" class="btn bg-default font12 hi22 px80">
									</th>
								</tr>
								<tr>
									<td>
										<textarea rows="10" id="risk" name="risk" class="w100p"><?php $this -> echoRisk(); ?></textarea>
									</td>
								</tr>
							</table>
							<input type="hidden" value="" id="type" name="type" />
							<input type="hidden" value="<?php $this -> echoReferer(); ?>" id="action" name="action" />
							<input type="hidden" value="<?php echo $this -> getDetailAccount(); ?>" name="detail_account" />
							<input type="hidden" value="" id="c_id" name="c_id" />
							<input type="hidden" value="" id="l_id" name="l_id" />
							<input type="hidden" value="" id="d_id" name="d_id" />
							
							<!-- Language Transition Data (Anton) 04/22/2016 -->
							<input class="lang-trans-data" type="hidden" id="lang_data_action" value="/en/account_edit?detail_account=<?php $this -> echoAccountNumber(); ?>"/>
							<input class="lang-trans-data" type="hidden" id="lang_data_type" value="action"/>
							<input class="lang-trans-data" type="hidden" id="lang_data_form" value="#acForm"/>
							<!-- /Language Transition Data -->
						</form>
						<p class="calign mb20">
							<a href="javascript:actionBack();" class="btn bg-default">&laquo; 戻る</a>
						</p>

						<?php $this -> dispHistoryList(); ?>
						<div class="article-bottom">
						</div>
					</article>
				</div>
			</div>
			<!-- /メインカラム -->
		</div>
<?php include_once('template/base_foot.php'); ?>
	</div>
	<script src="js/account_edit.js"></script>
    <script src="js/bootstrap.min.js"></script>
</body>
</html>
