
<?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="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>

			</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>
						<?php // $this -> echoMessage(); ?>
						<form id="acForm" action="" method="post" >
							<div class="container-fluid">
								<div class="row">
								<div class="col-sm-12 col-md-12 col-lg-6" >
									<img src="https://test.iwl.world/documents/ads/<?php $this -> echoFileName(); ?>" style="margin-left: auto;margin-right: auto; display: block;" alt="Cinque Terre" width="800" class="img-fluid">
								<label for="img1">Change Image:</label>
								<input type="file" accept="image/jpeg,image/png,image/jpg,image/gif,application/pdf" id="img1" name="img1" value="" class="w100p">
								</div>
								<div class="col-sm-12 col-md-12 col-lg-6">
									  <div class="form-group">
									    <label for="email">File Name:</label>
									    <input type="text" class="form-control" value="<?php $this -> echoFileName(); ?>"  readonly="">
									  </div>
									  <!-- <div class="form-group">
									    <label for="alt">Alternative Info:</label>
									    <input type="text" class="form-control" id="alt">
									  </div> -->
									  <div class="form-group">
									    <label for="adName">ID:</label>
									    <input type="text" class="form-control" id="adName" name="adName" value="<?php $this -> echoAdName(); ?>">
									  </div>
									  <div class="form-group">
									    <label for="link">Link:</label>
									    <input type="text" class="form-control" id="link" name="link" value="<?php $this -> echoLink(); ?>">
									  </div>
									  <div class="form-group">
									  <label >Location:</label><br>
									  <select class="form-control form-control-sm" id="location" name="location">
									        <!-- <option value="login">Login</option>
									        <option value="menu">Menu</option> -->
									         <?php $this -> echoLocation(); ?>
									   </select>
									 </div>
									  <div class="form-group">
									    <label for="language">Language:</label>
									    <select class="form-control form-control-sm" id="language" name="language">
									        <?php $this -> echoLanguage(); ?>
									    </select>
									  </div>
									  <input type="submit"  name="" id="btnUpdate" value="Save" class="w100p btn-primary">
								</div>
								
								</div>
									
							</div>
							<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="<?php $this -> echoID() ?>" />
							<input type="hidden" id="fileName" name="fileName" value="<?php $this -> echoFileName(); ?>" />
						</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>
	   <script>
		  $( function() {
		    $("#save").click({
		    	<?php echo "alert('mikko');"; ?>
		    });
		    
		  });
	  </script>
</body>
</html>
