
<?php
$page_title = "Image Manager";
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="btnSearchAds" value="Search" class="btn bg-default px50 hi22">
						<input type="button" id="btnRecords" value="Records" class="btn bg-default px50 hi22">
						<input type="button" id="btnUpload" value="Upload" class="btn bg-default px50 hi22">
					</div>
				</div>
				<form id="searchForm" action="" method="post">
					<table class="conditions fontS w100p">
						<colgroup>
							<col class="w40p">
							<col class="w60p">
						</colgroup>
						<tr>
						    <td>
						        <br>
						        <label>Location:</label>
						        	<select id="slocation" name="slocation" class="w100p">
						        		<?php $this -> echoLocation();?>
						        	</select>
						        <br>
						        <label>Languge:</label>
						        	<select id="slanguage" name="slanguage" class="w100p">
						        		<?php $this -> echoLanguage(); ?>
						        	</select>
						    </td>
						</tr>
					</table>
					<input type="hidden" value="search" id="type_search" name="type" />
				</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>
							<input type="button" id="btnSequence" value="Save Sequence" style="margin-right: -90px; " class="btn bg-default px100 hi25">
						</div>
						<?php $this -> echoMessage(); ?>
						<form id="acForm" action="" method="post">
							 <table  class="table col bdr default odd w100p fontXS calign">
    							 <tr>
    							 	<th>Thumbnail</th>
            						<th>Ad ID</th>
            						<th>File Name</th>
            						<th>Created By</th>
            						<th>Created Date</th>
            						<th>Info</th>
            						<th>Delete</th>
    							 </tr>
								<tbody id="sortable" class="">
    							    <?php
    							    	$this -> echoImageList();
    							    ?>
							    </tbody>
							 </table>
							<input type="hidden" value="account_edit" id="action" name="action" />
							<input type="hidden" value="" id="type" name="type" />
							<input type="hidden" id="adID" name="adID" value="" />
							<input type="hidden" id="language" name="language" value="" />
							<input type="hidden" id="location" name="location" value="" />
						</form>
					</article>
				</div>
			</div>
			<!-- /メインカラム -->
		</div>
<?php include_once('template/base_foot.php'); ?>
	</div>
	 <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
    
	<script src="../js/advertisements.js"></script>
	<script src="https://code.jquery.com/jquery-1.12.4.js"></script>
  	<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
  	  <script>
		  $( function() {
		    $("#sortable").sortable();
		    $("#sortable").disableSelection();
		  } );
	  </script>
</body>
</html>
