<?php
include './db.php';
include './function.php';
include './admin/Class/Upload.php';
$imgName = NULL;
$success = NULL;
$error = NULL;
$no1 = no1();
$no2 = no2();
if (isset($_POST['save-data'])) {
$count = $_POST['no1'] + $_POST['no2'];
if($count == $_POST['security']){
$gestcomment = addNewGuestComment($_POST, $_FILES);
if ($gestcomment) {
$success = 'Successfully added Your Comment';
} else {
$error = 'Something went wrong, please try again ';
}
} else {
$security = 'incorrect security code';
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Comments | Madol Duwa Boat Ride</title>
<meta name="description" content="Welcome to Gin River Safari , If you stay at the Galle, Hikkaduwa, Unawatuna area you should go with a boat at the Gin Ganga. Usually we start the safari in gintota bridge. Also, we do not use motor boat and the boat is ridden by two people and your tour make it so nature friendly. So you will able to hear many bird sounds and water flow sounds of the river. We run the business as our family and we will make you happy for your value." />
<meta name="keywords" content=" River Safari, River Safari Sri Lanka, comments" />
<link rel="icon" type="image/png" sizes="32x32" href="images/about/icon.png">
<!-- Bootstrap -->
<link href="css/bootstrap.css" rel="stylesheet">
<!-- font-awesome -->
<link href="css/font-awesome.css" rel="stylesheet">
<!-- chosen.min -->
<link href="css/chosen.min.css" rel="stylesheet">
<!-- slick-slider -->
<link href="css/slick-slider.css" rel="stylesheet">
<!-- jquery.bxslider -->
<link href="css/jquery.bxslider.css" rel="stylesheet">
<!-- prettyPhoto -->
<link href="css/prettyPhoto.css" rel="stylesheet">
<!-- responsive menu component -->
<link href="js/responsive-menu/component.css" rel="stylesheet">
<!-- svg-icons -->
<link href="css/svg-icons.css" rel="stylesheet">
<!-- Typography -->
<link href="css/typography.css" rel="stylesheet">
<!-- jquery.auto-complete -->
<link href="css/jquery.auto-complete.css" rel="stylesheet">
<!-- shortcodes -->
<link href="css/shortcodes.css" rel="stylesheet">
<!-- Colors -->
<link href="css/colors.css" rel="stylesheet">
<!-- Style Sheet -->
<link href="style.css" rel="stylesheet">
<!-- Responsive theme-->
<link href="css/responsive.css" rel="stylesheet">
<link href="css/mystyle.css" rel="stylesheet">
<link href="comments/style.css" rel="stylesheet" type="text/css" />
<script src="js/jquery.js"></script>
</head>
<body>
<div class="eco_wrapper">
<?php
include './header.php';
?>
<div class="eco_banner eco_inner_page_banner">
<!--Eco Template Banner img-->
<div class="eco_headings">
<h3>Comment</h3>
</div>
<ul class="eco_page_link">
<li><a href="./">Home</a></li>
<li class="active"><a href="contact-us.php">Comment</a></li>
</ul>
</div>
<div class="content">
<section>
<div class="container">
<div class="eco_contact_form">
<div class="row">
<div class="col-md-12 no-padding col-sm-12 responsive-991-width">
<div class="your-submit-message">
<h5 class="eco_sm_titles">Send Us Comment <i class="fa fa-comment" aria-hidden="true"></i></h5>
<div class="writeing-felid">
<div class="form-group">
<?php if (isset($success)) { ?>
<div class="alert alert-success" style="margin-top: 15px ">
<a href="" class="close" data-dismiss="alert" aria-label="close">×</a>
<strong>Success! </strong> <?php echo $success; ?>
</div>
<?php } ?>
<?php if (isset($error)) { ?>
<div class="alert alert-danger" style="margin-top: 15px ">
<a href="" class="close" data-dismiss="alert" aria-label="close">×</a>
<strong>Try again! </strong> <?php echo $error; ?>
</div>
<?php } ?>
<?php if (isset($security)) { ?>
<div class="alert alert-danger" style="margin-top: 15px ">
<a href="" class="close" data-dismiss="alert" aria-label="close">×</a>
<strong>Try again! </strong> <?php echo $security; ?>
</div>
<?php } ?>
</div>
<div class="row">
<form method="post" autocomplete="off" action="" enctype="multipart/form-data">
<div class="form-group col-lg-12">
<label for="image">Select Image</label>
<span id="star">*</span>
<input name="image" type="file" id="image" required="" class="form-control"/>
</div>
<div class="form-group col-lg-12">
<label for="name">Name</label>
<span id="star">*</span>
<input type="text" required="" name="name" id="name" class="form-control input-validater">
<span id="spanName" ></span>
</div>
<div class="form-group col-lg-12">
<label for="comment">Your Comment</label>
<span id="star">*</span>
<textarea class="form-control" required="" name="comment" rows="3"></textarea>
<span id="spanComment" ></span>
</div>
<div class="form-group col-lg-12">
<label for="comment">Security Code</label>
<div class="form-control">
<label><?php echo $no1; ?></label> + <label><?php echo $no2; ?></label>
<input type="hidden" name="no1" value="<?php echo $no1; ?>" required="" />
<input type="hidden" name="no2" value="<?php echo $no2; ?>" required="" />
<label><input type="text" name="security" required="" /></label>
</div>
</div>
<div class="row form-group col-lg-12">
<div class="col-lg-1 col-xs-3 ">
<button type="submit" id="btnSubmit" name="save-data" class="btn btn-success">Upload</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<?php
include './footer.php';
?>
</div>
<div id="preloader">
<div id="status"></div>
</div>
<!-- jQuery (JavaScript plugins) -->
<!-- Bootstrap js -->
<script src="js/bootstrap-lab.js"></script>
<script src="js/bootstrap.js"></script>
<!--responsive-menu -->
<script src="js/responsive-menu/modernizr.custom.js"></script>
<script src="js/responsive-menu/jquery.dlmenu.js"></script>
<!-- masonry & filterable -->
<script src="js/jquery-filterable.js"></script>
<script src="js/masonry-gallery.js"></script>
<!-- chosen.jquery js -->
<script src="js/chosen.jquery.min.js"></script>
<script src="js/jquery.auto-complete.js"></script>
<!-- jquery.prettyPhoto js -->
<script src="js/jquery.prettyPhoto.js"></script>
<!-- countup and countdown js -->
<script src="js/countup.js"></script>
<script src="js/jquery.countdown.js"></script>
<!-- slider -->
<script src="js/slick-slider.js"></script>
<script src="js/jquery.bxslider.js"></script>
<script src="js/owl.carousel.js"></script>
<!-- custom js -->
<script src="js/custom.js"></script>
<script type="text/javascript">
$('.map-container')
.click(function () {
$(this).find('iframe').addClass('clicked')
})
.mouseleave(function () {
$(this).find('iframe').removeClass('clicked')
});
</script>
</body>
</html>
|