HOME


Mini Shell 1.0
DIR: /home/islapiiu/sites/royalescapestours/guest-comments-form/
Upload File :
Current File : /home/islapiiu/sites/royalescapestours/guest-comments-form/guest-comment.php
<?php
include_once(dirname(__FILE__) . '/class/include.php');

if (!isset($_SESSION)) {
    session_start();
}
?>
<!DOCTYPE HTML>
<html lang="zxx">


    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Sri Lanka Royal Escapes Tours |Guest Comments</title>
        <link rel="shortcut icon" type="image/x-icon" href="assets/img/favicon.png" />
        <!-- Icofont CSS -->
        <link rel="stylesheet" type="text/css" href="assets/css/icofont.css" media="all" />
        <!-- Bootstrap CSS -->
        <link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css" media="all" />
        <!-- jquery ui CSS -->
        <link rel="stylesheet" type="text/css" href="assets/css/jquery-ui.min.css" media="all" />
        <!-- Slicknav CSS -->
        <link rel="stylesheet" type="text/css" href="assets/css/slicknav.min.css">
        <!-- Owl carousel CSS -->
        <link rel="stylesheet" type="text/css" href="assets/css/owl.carousel.css">
        <!-- Popup CSS -->
        <link rel="stylesheet" type="text/css" href="assets/css/magnific-popup.css">
        <!-- Main style CSS -->
        <link rel="stylesheet" type="text/css" href="assets/css/style.css" media="all" />
        <!-- Responsive CSS -->
        <link rel="stylesheet" type="text/css" href="assets/css/responsive.css" media="all" />
        <!--[if lt IE 9]>
          <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
          <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
        <![endif]-->
        <link href="assets/css/custom.css" rel="stylesheet" type="text/css"/>
        <link href="guest-comments-form/guest-comment/style.css" rel="stylesheet" type="text/css"/>
    </head>
    <body>
        <!-- Page loader -->
        <div id="preloader"></div>
        <!-- header section start -->
        <?php include './header.php'; ?>
        <!-- about section start -->

        <!-- breadcrumb area start -->
        <section class="breadcrumb-area" id="home">
            <div class="container">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="breadcrumb-area-content">
                            <h2>Guest Comments</h2>
                            <ul>
                                <li><a href="index.php">Home</a></li>
                                <li class="active"><a href="guest-comment.php">Guest Comments</a></li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </section><!-- breadcrumb area end -->

        <section class="pt-70 pb-70 content-0">
            <div class="container ">
                <div class="row">
                    <div class="col-md-10 col-md-offset-1 col-sm-12 col-xs-12">

                        <div class="section-title-3i section1">
                            <h2>Add Your Comment</h2>
                        </div>

                        <div class="panel panel-white2 post panel-shadow contact-form-area form-area form-0">
                            <div class="contact-form">
                                <div id="contact">  
                                    <div id="message"></div>
                                    <form class="form" method="post" name="guestcomment"  id="guestcomment">
                                        <div class="form-group">
                                            <input type="text" placeholder="FullName" class="form-control input-validatar" name="txtFullName" id="txtFullName">
                                            <span id="spanFullName"></span>
                                        </div>
                                        <div class="form-group">
                                            <input type="text" placeholder="Country " class="form-control input-validatar" name="txtCountry" id="txtCountry">
                                            <span id="spanCountry"></span>
                                        </div>

                                        <span class="md-form">
                                            <div class="file-field">
                                                <div class="btn  btn-sm float-left commentprofile profileUpload profileUpload1">
                                                    <input type="file" placeholder="Profile Image " class="input-validatar input-validatar1" name="txtprofileimg" id="txtprofileimg">
                                                </div>
                                            </div>
                                        </span>
                                        <div class="form-group">
                                            <textarea name="txtMessage" rows="6" class="form-control input-validatar" placeholder="Comment" id="txtMessage"></textarea>
                                            <span id="spanComments"></span>
                                        </div>

                                        <div class="form-group">
                                            <span class="securitybox">
                                                <input type="text" placeholder="Security Code" class="form-control input-validatar" name="captchacode" id="captchacode">
                                                <span id="capspan"></span>
                                            </span>
                                            <span class="buttoncomment"><?php include("guest-comments-form/guest-comment/captchacode-widget.php"); ?></span>
                                            <span class=""><img id="checking" src="guest-comments-form/guest-comment/img/checking.gif" alt=""/></span>
                                        </div>

                                        <div class="">
                                            <span class="securitybox1">
                                                <input type ="hidden" name="btn-comment" id="btn-comment">
                                                <button type="submit" id="btnSubmit" class="theme-btn theme-btn2 cmn-button con-button">Send Your Comment</button>
                                            </span>
                                        </div>

                                        <div id="dismessage" align="center" class="msg-success"></div>

                                    </form>
                                </div>
                            </div>
                        </div>

                        <div class="col-lg-8">
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <section class="teacher-grid-section teacher-grid-style-three section-padding section-bg">
            <div class="container">
                <div class="course-grid-wrapper">
                    <div class="row mt-mb-15 teacher-grid-block">
                        <div class="col-md-12">
                            <?php
                            foreach (Comments::all() as $gustCommentSec) {
                                ?>
                                <div class="teacher-single d-flex">
                                    <div class="teacher-thumb guest-img">
                                        <img src="upload/comments/<?php echo $gustCommentSec['image_name']; ?>" alt="teacher-image">
                                    </div>
                                    <div class="teacher-content">
                                        <h4 class="teacher-name"><?php echo $gustCommentSec['name']; ?></h4>
                                        <span class="teacher-designation"><?php echo $gustCommentSec['title']; ?></span>
                                        <p><?php echo $gustCommentSec['comment']; ?></p>

                                    </div>
                                </div>
                                <?php
                            }
                            ?>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- footer section start -->
        <?php include './footer.php'; ?>
        <!-- footer section end -->
        <a href="#" class="scrollToTop">
            <i class="icofont icofont-arrow-up"></i>
        </a>
        <!-- jquery main JS -->
        <script src="assets/js/jquery.min.js"></script>
        <!-- Bootstrap JS -->
        <script src="assets/js/bootstrap.min.js"></script>
        <!-- jquery ui JS -->
        <script src="assets/js/jquery-ui.min.js"></script>
        <!-- Slicknav JS -->
        <script src="assets/js/jquery.slicknav.min.js"></script>
        <!-- owl carousel JS -->
        <script src="assets/js/owl.carousel.min.js"></script>
        <!-- Popup JS -->
        <script src="assets/js/jquery.magnific-popup.min.js"></script>
        <!-- Counterup JS -->
        <script src="assets/js/jquery.counterup.min.js"></script>
        <!-- Counterup waypoints JS -->
        <script src="assets/js/waypoints.min.js"></script>
        <!-- Isotope JS -->
        <script src="assets/js/isotope.pkgd.min.js"></script>
        <!-- YTPlayer JS -->
        <script src="assets/js/jquery.mb.YTPlayer.min.js"></script>
        <!-- jQuery Easing JS -->
        <script src="assets/js/jquery.easing.1.3.js"></script>
        <!-- main JS -->
        <script src="assets/js/main.js"></script>
        <script src="guest-comments-form/guest-comment/scripts.js" type="text/javascript"></script>
    </body>


</html>