<?php
$page_title = "Agent Management";
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">
					<div class="btns">
						<input type="button" id="btnSearchAll" value="All" class="btn bg-default px50 hi22">&nbsp;
						<input type="button" id="btnSearchToday" value="Today" class="btn bg-default px50 hi22">&nbsp;
						<input type="button" id="btnSearch" value="Search" class="btn bg-default px50 hi22">
					</div>
				</div>
				<form id="searchForm" action="" method="post">
					<table class="conditions fontS w100p">
						<colgroup>
							<col class="w50p">
							<col class="w50p">
						</colgroup>
						<tr>
							<th>Email Address</th>
							<td><input type="text" id="s_email" name="s_email" value="<?php $this -> echoSEmail(); ?>" class="w100p"></td>
						</tr>
						<tr>
							<th>Name</th>
							<td><input type="text" id="s_name"  name="s_name" value="<?php $this -> echoSName(); ?>" class="w100p"></td>
						</tr>
						<tr>
							<th>Code</th>
							<td><input type="text" id="s_agent_code" name="s_agent_code" value="<?php $this -> echoSAgentCode(); ?>" class="w100p"></td>
						</tr>
						<tr>
							<td colspan="2">
								<span class="th">Registered Date</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>
				</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>
								<?php $this -> dispPager(); ?>
							</div>
						<?php $this -> echoMessage(); ?>
						<p class="w80p m_auto mb10"><input type="button" id="btnAdd" value="Add New" class="btn bg-grad hi30 px150"></p>
						<form id="acForm" action="" method="post">
							<table class="table col bdr default odd calign w80p fontXS m_auto">
								<tr>
									<th class="w10p">Affiliated WL</th>
									<th class="w10p">Name</th>
									<th class="w10p">Site Name</th>
									<th class="w15p">Email Address</th>
									<th class="w10p">Agent Code</th>
									<th class="w10p">Parent Agent Code</th>
									<th class="w20p">Registered URL</th>
									<th class="w5p">Number of Under-Agent</th>
									<th class="w5p">Number of Account Acquired</th>
									<th class="w5p">Details</th>
								</tr>
								<?php $this -> echoList(); ?>
							</table>

							<input type="hidden" value="action" id="action" name="action" />
							<input type="hidden" value="action" id="type" name="type" />
							<input type="hidden" value="" id="d_id" name="d_id" />
							<input type="hidden" id="detail_account" name="detail_account" />
							<input type="hidden" id="agent_code" name="agent_code" />
						</form>
						<div class="article-bottom">
							<?php $this -> dispPager(); ?>
						</div>
					</article>
				</div>
			</div>
			<!-- /メインカラム -->
		</div>
<?php include_once('template/base_foot.php'); ?>
	</div>

	<script src="../js/agent.js"></script>
</body>
</html>
