<?php
$page_title = "Advertisements";
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" name="btnSearchAll" value="All" class="btn bg-default px50 hi22">&nbsp;
						<input type="button" id="btnSearch" value="Search" class="btn bg-default px50 hi22">
						<input type="button" id="btnManager" value="Image Manager" class="btn bg-default px100 hi22">
					</div>
				</div>
				<form id="searchForm" action="" method="post">
					<table class="conditions fontS w100p">
						<colgroup>
							<col class="w40p">
							<col class="w60p">
						</colgroup>
						<tr>
							<th>Mail</th>
							<td><input type="text" id="mail" name="mail" value="<?php $this -> echoMail(); ?>" class="w100p"></td>
						</tr>
						<tr>
							<th>IP Address</th>
							<td><input type="text" id="ip" name="ip" value="<?php $this -> echoIP(); ?>" class="w100p"></td>
						</tr>
						<tr>
							<th>Ads ID</th>
							<td><input type="text" id="adsId" name="adsId" value="<?php $this -> echoAdsId(); ?>" class="w100p"></td>
						</tr>
						<tr>
							<th>Language</th>
							<td>
								<select id="language" name="language" class="w100p">
									<option value="">--- All ---</option>
									<?php $this -> echoLanguageList(); ?>
								</select>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								<span class="th">Date</span>
								<?php //$this -> dispOpenFlg(); ?>
								<input type="text" id="from" name="from" value="<?php $this -> echoFrom(); ?>" class="px110"> - <input type="text" id="to" name="to" value="<?php $this -> echoTo(); ?>" class="px110">
							</td>
						</tr>
					</table>
					<input type="hidden" value="search" id="type_search" name="type_search" />
				</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="acForm" action="" method="post">
							<table class="table col bdr default odd w100p fontXS calign">
								<tr>
									<th class="w7p">Mail</th>
									<th class="w7p">IP Addres</th>
									<th class="w7p">Device</th>
									<th class="w7p">Ads ID</th>
									<th class="w7p">Ads Location</th>
									<th class="w7p">Redirect Link</th>
									<th class="w7p">Language</th>
									<th class="w7p">Details</th>
									<th class="w7p">Date</th>
								</tr>
								<?php $this -> echoList(); ?>
							</table>
							<input type="hidden" value="account_edit" id="action" name="action" />
							<input type="hidden" value="" id="type" name="type" />
							<input type="hidden" id="detail_account" name="detail_account" />
						</form>
						<div class="article-bottom">
							<?php  $this -> dispPager(); ?>
						</div>
					</article>
				</div>
			</div>
			<!-- /メインカラム -->
		</div>
<?php include_once('template/base_foot.php'); ?>
	</div>
	<script src="../js/advertisements.js"></script>
</body>
</html>
