<?php
$page_title = "iWallet卡-申請";
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.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>

						<p class="mb20 pleft40">卡申請-目前狀態</p>
						<?php $this -> echoMessage(); ?>
						<form id="acForm" action="" method="post" class="pleft40 pb40">

							<table class="mb20 table col bdr default odd calign w99p fontXS" id="table-breakpoint">
								<tr>
									<th class="w30p">卡 1</th>
									<td class="w70p l"><?php $this -> dispCardProgress(NO_COUNT); ?></td>
								</tr>
								<tr>
									<th class="w30p">卡 2</th>
									<td class="w70p l"><?php $this -> dispCardProgress(VAL_INT_1); ?></td>
								</tr>
							</table>

							<p class="mb20">
								<?php $this -> dispCardLimitRecharge(); ?>使用上限為<?php $this -> dispCardLimit(); ?>的卡也開放申請中。<br/>
								<?php $this -> dispCardLimitWord(); ?><br/><br/>

								同一用戶可同時持有兩張無限制卡。<br/>
								請通過iWallet發送給您的“請款”請求來支付您的卡費（含運費）。<br/>
								<br/><br/>

								請依次填寫下方内容。<br/>
							</p>
							<table class="table col bdr default odd calign w99p fontXS mb20" id="table-breakpoint">
								<tr>
									<th class="w30p">請選擇申請數量和郵寄地址。</th>
									<td class="w70p l"><select id="index" name="index"><?php $this -> echoList(); ?></select></td>
								</tr>
								<tr>
									<th class="w30p">郵寄地址</th>
									<td class="w70p l"><?php $this -> dispHTMLSipFlg(); ?><br/>如果您已收到卡片，請勾選“註冊地址”選項。</td>
								</tr>

								<tr>
									<th class="w30p">國家</th>
									<td id="td0Country" class="w70p l"><?php $this -> echoUserCountry(); ?></td>
									<td id="td1Country" style="display:none;" class="w70p l">
										<select id="country" name="country">
											<?php $this -> dispHTMLCountry(); ?>
										</select>
									</td>
								</tr>
								<tr>
									<th class="w30p">省</th>
									<td id="td0State" class="w70p l"><?php $this -> echoState(); ?></td>
									<td id="td1State" style="display:none;" class="w70p l"><input type="text" id="state" name="state" value="<?php $this -> echoState(VAL_INT_1); ?>" /></td>
								</tr>
								<tr>
									<th class="w30p">縣/市</th>
									<td id="td0State" class="w70p l"><?php $this -> echoCity(); ?></td>
									<td id="td1State" style="display:none;" class="w70p l"><input type="text" id="city" name="city" value="<?php $this -> echoCity(VAL_INT_1); ?>" /></td>
								</tr>
								<tr>
									<th class="w30p">地址</th>
									<td id="td0Address" class="w70p l"><?php $this -> echoAddress(); ?></td>
									<td id="td1Address" style="display:none;" class="w70p l"><input type="text" id="address" name="address" value="<?php $this -> echoAddress(VAL_INT_1); ?>" /></td>
								</tr>
								<tr>
									<th class="w30p">郵遞區號</th>
									<td id="td0ZipCode" class="w70p l"><?php $this -> echoZipCode(); ?></td>
									<td id="td1ZipCode" style="display:none;" class="w70p l"><input type="text" id="zip_code" name="zip_code" value="<?php $this -> echoZipCode(VAL_INT_1); ?>" /></td>
								</tr>
								<tr>
									<th class="w30p">聯絡電話</th>
									<td id="td0Tel" class="w70p l"><?php $this -> echoTel(); ?></td>
									<td id="td1Tel" style="display:none;" class="w70p l"><input type="text" id="tel" name="tel" value="<?php $this -> echoTel(VAL_INT_1); ?>" /></td>
								</tr>
							</table>
							<p class="calign">
								<input type="button" id="btnConfirm" value="下一步" class="btn bg-grad px150">
							</p>
							<?php //$this -> echoList(); ?>

							<input type="hidden" id="type" name="type" value="" />
							<input type="hidden" value="list" name="action" />
							<input type="hidden" value="" id="r_id" name="r_id" />
						</form>


					</article>
				</div>
			</div>
			<!-- /メインカラム -->
		</div>
<?php include_once('template/base_foot.php'); ?>
	</div>
	<script src="../js/card_apply.js"></script>
</body>
</html>
