<?php include 'header.php'; ?>

<?php include 'sidebar.php'; ?>

<div id="page-wrapper">

    <div class="container-fluid">

		<br/>

         <div class="row">

             <div class="col-lg-12">
				<div class="panel panel-default dash">
					<div class="panel panel-primary">
						<div class="panel-heading">
							<h2 class="sub-header">
						 	<i class="fa fa-thumbs-up" aria-hidden="true"></i> Accommodation - image size 570 X 365 
							</h2>
						</div>
						<!-- /.panel-heading -->
						<div class="panel-body">
							<div class="table-responsive">
							
								<div class="col-md-12">

									 <form id="editAbout" method="post" enctype="multipart/form-data" class="form-horizontal" name="editAbout">
										
										<?php $csrf->echoInputField(); ?>
										
										<fieldset>
											
										<?php echo editAbout($_GET['id']); ?>

										<!-- Button -->
										<div class="form-group">
											<label class="col-md-9 control-label" for="singlebutton"></label>
											<div class="col-md-3">
												<input type="submit" name="editAbout" class="btn btn-primary" value="<?php echo lang('UPDATE_INFO');?>" />
											</div>
										</div>

										</fieldset>
									</form>
									<?php
	
								  if(isset($_POST['editAbout']))
								  {
						 	updateAbout($_GET['id'],mysqli_real_escape_string($conection, $_POST['name']),$_FILES['image1'],$_FILES['image2'],$_FILES['image3'],$_FILES['image4'],$_POST['descript'],$_POST['descript1'],$_POST['descript2']);
								
								 } 
									?>

								</div>    
							</div>
						</div>
					</div>
				</div>
			</div>
        </div>
        <!-- /.row -->

        <div class="copyright">
	        <p>© Copyright 2020  &nbsp;&nbsp;|&nbsp;&nbsp; All Rights Reserved </p>
	    </div>

    </div>
    <!-- /.container-fluid -->

</div>
<!-- /#page-wrapper -->

</div>
<!-- /#wrapper -->

<?php include 'footer.php'; ?>