<?php
$page_title = "Edit Agent Details";
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>Affiliated WL</th>
									<td><?php $this -> echoWLName(); ?></td>
								</tr>
								<tr>
									<th>Alias</th>
									<td><input type="text" id="corporation_name" name="corporation_name" value="<?php $this -> echoCorporationName(); ?>" class="w80p"></td>
								</tr>
								<tr>
									<th>Name</th>
									<td>
										<?php $this -> echoLastName(); ?>&nbsp;<?php $this -> echoFirstName(); ?>
									</td>
								</tr>
								<tr>
									<th>Code</th>
									<td><?php $this -> echoAgentCode(); ?></td>
								</tr>
								<tr>
									<th>Country</th>
									<td><?php $this -> echoCountryName(); ?></td>
								</tr>
								<tr>
									<th>State</th>
									<td><?php $this -> echoState(); ?></td>
								</tr>
								<tr>
									<th>City</th>
									<td><?php $this -> echoCity(); ?></td>
								</tr>
								<tr>
									<th>Address</th>
									<td><?php $this -> echoAddress1(); ?></td>
								</tr>
								<tr>
									<th>Post Code</th>
									<td><?php $this -> echoZipCode(); ?></td>
								</tr>
								<tr>
									<th>Phone Number</th>
									<td><?php $this -> echoTel(); ?></td>
								</tr>
								<tr>
									<th>Email Address</th>
									<td><?php $this -> echoEmail(); ?></td>
								</tr>
								<tr>
									<th>General Fee Setting</th>
									<td>
										<select name="commision_id">
											<?php $this -> dispFeeList(); ?>
										</select>
									</td>
								</tr>
								<tr>
									<th>Exchange Fee Setting</th>
									<td>
										<select id="exchange_fee_id" name="exchange_fee_id">
											<?php $this -> dispExchangeFeeList(); ?>
										</select>
									</td>
								</tr>
								<tr>
									<th>Add on Child Agent</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>Fee Setting</caption>
								<tr>
									<th colspan="7">Parent Agent:<?php $this -> echoParentName(); ?></th>
								</tr>
								<tr>
									<th class="w40p">Type</th>
									<th class="w20p" colspan="2">Wholesale Price</th>
									<th class="w20p" colspan="2">Acquisition Value</th>
									<th class="w20p" colspan="2">Downward Wholesale Price</th>
								</tr>
								<?php $this -> echoCommisionList(); ?>
							</table>
							<table class="table col bdr default odd calign w60p fontXS m_auto mb20">
								<caption>Exchange Fee Setting</caption>
								<tr>
									<th class="w20p">From Currency</th>
									<th class="w20p">To Currency</th>
									<th class="w20p">Wholesale Price</th>
									<th class="w20p">Acquisition Value</th>
									<th class="w20p">Downward Wholesale Price</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="/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; Back</a>&emsp;
							<input type="button" id="btnSave" value="Save" 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>
