<?php
$page_title = "Transaction Logs";
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="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>
							<td colspan="2">
								<span class="th">Solutions</span>
								<?php $this -> dispSolutions(); ?>
							</td>
						</tr>
						<?php if($this -> getMethod() == 'From_DB'){ ?>
						<tr>
							<th>IP Address</th>
							<td><input type="text" id="ip_address" name="ip_address" value="<?php $this -> echoIP(); ?>" class="w100p"></td>
						</tr>
						<tr>
							<th>Program Code</th>
							<td><input type="text" id="p_num" name="p_num" value="<?php $this -> echoProgramCode(); ?>" class="w100p"></td>
						</tr>
						<tr>
							<th>URL</th>
							<td><input type="text" id="url" name="url" value="<?php $this -> echoURL(); ?>" class="w100p"></td>
						</tr>
						<tr>
							<th>POST</th>
							<td><input type="text" id="post" name="post" value="<?php $this -> echoPost(); ?>" class="w100p"></td>
						</tr>
						<tr>
							<td colspan="2">
								<span class="th">Specify Date</span>
									<input type="text" id="s_from" name="s_from" value="<?php $this -> echoTagFrom(); ?>" class="px110" placeholder=""> - <input type="text" id="s_to" name="s_to" value="<?php $this -> echoTagTo(); ?>" class="px110" placeholder="">
							</td>
						</tr>
						<?php } ?>
					</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(); ?>
						<form id="searchForm" action="" method="post">
							<table class="table col bdr default odd w100p fontXS calign m_auto">
								<?php if($this -> getMethod() != 'From_DB'){ ?>
								<tr>
									<th class="w45p">Solutions</th>
									<th class="w35p">Requests</th>
									<th class="w35p">Response</th>
								</tr>
								<?php $this -> echoList(); ?>
								<?php }else{ ?>
									<tr>
										<th class="w10p">IP Address</th>
										<th class="w10p">Program Code</th>
										<th class="w20p">URL</th>
										<th class="w50p">Post</th>
										<th class="w10p">Date</th>
									</tr>
									<?php $this -> echoListDB(); ?>
								<?php  } ?>
							</table>
							<input type="hidden" value="action" id="type" name="type" />
						</form>
						<div class="article-bottom">
							<?php $this -> dispPager(); ?>
						</div>
					</article>
				</div>
			</div>
			<!-- /メインカラム -->
		</div>
<?php include_once('template/base_foot.php'); ?>
	</div>
	<script src="../js/transaction_logs.js"></script>
</body>
</html>
