<?php
$page_title = "エージェント詳細編集";
include_once('template/base_head.php');
?>
			<!-- サイドバー -->
			<aside id="colLeft">
				<h1><a href=""><img src="img/logo.png" alt="iWallet"></a></h1>
				<div class="aside-heading">
					&nbsp;
				</div>
				&nbsp;
			</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><input type="text" id="corporation_name" name="corporation_name" value="<?php $this -> echoCorporationName(); ?>" class="w80p"></td>
								</tr>
								<tr>
									<th>名前</th>
									<td>
										<?php $this -> echoLastName(); ?>&nbsp;<?php $this -> echoFirstName(); ?>
									</td>
								</tr>
								<tr>
									<th>コード</th>
									<td><?php $this -> echoAgentCode(); ?></td>
								</tr>
								<tr>
									<th>国名</th>
									<td><?php $this -> echoCountryName(); ?></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 -> echoAddress1(); ?></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 -> echoEmail(); ?></td>
								</tr>
								<tr>
									<th>通常手数料</th>
									<td>
										<select name="commision_id">
											<?php $this -> dispFeeList(); ?>
										</select>
									</td>
								</tr>
								<tr>
									<th>為替手数料</th>
									<td>
										<select id="exchange_fee_id" name="exchange_fee_id">
											<?php $this -> dispExchangeFeeList(); ?>
										</select>
									</td>
								</tr>
								<tr>
									<th>子エージェント追加</th>
									<td>
										<?php $this -> echoAddAgent(); ?>
										<?php $this -> echoChildrenList(); ?>
									</td>
								</tr>
							</table>
							<table class="table col bdr default odd calign w60p fontXS m_auto mb20">
								<caption>手数料設定</caption>
								<tr>
									<th colspan="7">親エージェント：<?php $this -> echoParentName(); ?></th>
								</tr>
								<tr>
									<th class="w40p">種類</th>
									<th class="w20p" colspan="2">卸値</th>
									<th class="w20p" colspan="2">取得値</th>
									<th class="w20p" colspan="2">下への卸値</th>
								</tr>
								<?php $this -> echoCommisionList(); ?>
							</table>
							<table class="table col bdr default odd calign w60p fontXS m_auto mb20">
								<caption>為替料設定</caption>
								<tr>
									<th class="w20p">From通貨</th>
									<th class="w20p">To通貨</th>
									<th class="w20p">卸値</th>
									<th class="w20p">取得値</th>
									<th class="w20p">下への卸値</th>
								</tr>
								<?php $this -> echoExchangeFeeList(); ?>
							</table>
							<input type="hidden" value="action" id="type" name="type" />
							<input type="hidden" value="<?php echo $this -> getDId(); ?>" id="d_id" name="d_id" />
							<input type="hidden" value="<?php echo $this -> echoAgentCode(); ?>" id="agent_code" name="agent_code" />
							<input type="hidden" value="<?php echo $this -> echoParent(); ?>" id="parent" name="parent" />
							<input type="hidden" value="<?php echo $this -> echoParentName(); ?>" id="parent_corporation_name" name="parent_corporation_name" />
							
							<!-- Language Transition Data (Anton) 04/22/2016 -->
							<input class="lang-trans-data" type="hidden" id="lang_data_action" value="/en/agent"/>
							<input class="lang-trans-data" type="hidden" id="lang_data_type" value="detail"/>
							<input class="lang-trans-data" type="hidden" id="lang_data_form" value="#acForm"/>
							<!-- /Language Transition Data -->
						</form>
						<p class="calign">
							<a href="" class="btn bg-default">&laquo; 戻る</a>&emsp;
							<input type="button" id="btnSave" value="保存する" class="btn bg-grad px80 hi25">
						</p>
						<div class="article-bottom">
						</div>
					</article>
				</div>
			</div>
			<!-- /メインカラム -->
		</div>
<?php include_once('template/base_foot.php'); ?>
	</div>
	<script src="js/agent.js"></script>
</body>
</html>
