<?php include('connectdb.php');?>
<footer class="footer style7" style="background-image:url('img/footer.jpg');background-size: cover;">
        <div class="container-wapper">
            <div class="row" style="margin:0px !important">

             <div class="common">
                <div class="box-footer col-xs-12 col-sm-3 col-md-3 col-lg-3">
                    <div class="ysera-custommenu default">
                        <div class="img">
                       <img src="img/logo3.png" alt="img" >
                        </div>
                        <p style="color:#fff"> Shop online whenever you want to - yes, that 24x7 experience is so convenient now, isn't it?! Get genuine products from all the Top Brands delivered to your doorstep, with free shipping.</p>
                    </div>
                </div>

                <div class="box-footer col-xs-12 col-sm-3 col-md-3 col-lg-3">
                    <div class="ysera-custommenu default">
                        <h2 class="widgettitle">My Account</h2>
                        <ul class="menu">
                            <li class="menu-item">
                                <a data-toggle="modal" data-target="#basicModal" style="cursor: pointer;">Feedback</a>
                            </li>
                            <li class="menu-item">
                                <a href="register.php">Login & Resigter</a>
                            </li>
                            <li class="menu-item">
                                <a href="cart.php">Shoping Cart</a>
                            </li>
                             <li class="menu-item">
                                <a href="viewmyorder.php">My Order</a>
                            </li>
                            
                        </ul>
                    </div>
                </div>

                 <div class="box-footer col-xs-12 col-sm-3 col-md-3 col-lg-3">
                    <div class="ysera-custommenu default">
                        <h2 class="widgettitle">Quick Link</h2>
                        <ul class="menu">
                            <li class="menu-item">
                                <a href="index.php">Home</a>
                            </li>
                            <li class="menu-item">
                                <a href="about.php">About</a>
                            </li>
                            <li class="menu-item">
                                <a href="shop.php">Shop</a>
                            </li>
                             <li class="menu-item">
                                <a href="contact.php">Contact</a>
                            </li>
                            
                        </ul>
                    </div>
                </div>

                 <div class="box-footer col-xs-12 col-sm-3 col-md-3 col-lg-3">
                    <div class="ysera-custommenu default mobile">
                        <h2 class="widgettitle">Address</h2>
                            <?php
                            $sql1 = "SELECT  * FROM editcontact";
                           $querys=mysqli_query($conn,$sql1);
                            if(mysqli_num_rows($querys))
                            { 
                            while($row = mysqli_fetch_array($querys))
                              {
                              echo'
                             <ul class="menu">
                              <li class="menu-item">
                                <a href="#">'.$row['address'].'</a>
                             </li>
                             <li class="menu-item">
                                <a href="#">'.$row['email'].'</a>
                             </li>
                             <li class="menu-item">
                                <a href="#">'.$row['contactnumber'].'</a>
                             </li>
                             <li class="menu-item">
                                <a href="#">Mon - Sat</a>
                            </li>
                            </ul>';
                        }
                      }
                      else
                      {
                        echo '<ul class="menu">
                            <li class="menu-item">
                                <a href="#">6/74,Morambukadu,Sivadhapuram Salem-636307</a>
                            </li>
                            <li class="menu-item">
                                <a href="#">kvrjewellery@gmail.com</a>
                            </li>
                            <li class="menu-item">
                                <a href="#">+91 9566855556</a>
                            </li>
                             <li class="menu-item">
                                <a href="#">Mon - Sat</a>
                            </li>
                        </ul>';  
                       }
                      ?>
                     </div>
                </div>
            </div>

            </div>
            <div class="footer-end">
                <div class="row" style="margin:0px !important">
                    <div class="col-sm-12 col-xs-12">
                        <div class="ysera-socials">
                            <ul class="socials">
                                <li>
                                    <a href="#" class="social-item" target="_blank">
                                        <i class="icon fa fa-facebook"></i>
                                    </a>
                                </li>
                                <li>
                                    <a href="#" class="social-item" target="_blank">
                                        <i class="icon fa fa-twitter"></i>
                                    </a>
                                </li>
                                <li>
                                    <a href="#" class="social-item" target="_blank">
                                        <i class="icon fa fa-instagram"></i>
                                    </a>
                                </li>
                            </ul>
                        </div>
                        <div class="coppyright">
                            Copyright © 2023<a href="#">Neelan Oxysoft</a>. All rights reserved
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</footer>


<div class="modal fade" id="basicModal" tabindex="-1" role="dialog" aria-labelledby="basicModal" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <form method="post">
        <div class="row">
                <h3 STYLE="text-align: center; margin-bottom: 15px;text-shadow: 2px 2px #00000030;">FEEDBACK</h3>
            <div class="col-sm-6">
                <p>
                    <span class="form-label">Your Name *</span>
                    <span class="form-control-wrap your-name">
                       <input title="your-name" type="text" name="customername" size="40"
                        class="form-control form-control-name">
                      </span>
                </p>
            </div>

              <div class="col-sm-6">
                <p>
                    <span class="form-label">Mobile No</span>
                    <span class="form-control-wrap your-phone">
                        <input title="your-phone" type="text" name="mobileno"
                            class="form-control form-control-phone">
                    </span>
                </p>
            </div>
        </div>


        <div class="row">
            <div class="col-sm-6">
                <p>
                 <span class="form-label"> Your Email *</span>
                    <span class="form-control-wrap your-email">
                      <input title="your-email" type="email" name="email" size="40"
                        class="form-control form-control-email">
                    </span>
                </p>
            </div>
            <div class="col-sm-6">
                <p>
                        <span class="form-label">
                           Subject
                        </span>
                       <span class="form-control-wrap your-company">
                       <input title="your-company" type="text" name="subject" class="form-control your-company">
                      </span>
                </p>
            </div>
        </div>
        <p>
           <span class="form-label">Your Message </span>
            <span class="wpcf7-form-control-wrap your-message">
             <textarea title="your-message" name="message" cols="40" rows="9"
              class="form-control your-textarea" style="border: 1px solid #9f3a3d;"></textarea>
           </span>
        </p>
        <p style="text-align: center;margin-bottom: 8px;">
         <input type="submit" name="submit" value="SEND MESSAGE" class="form-control-submit button-submit"
            style="border-radius: 5px;color:#fff">
        </p>
    </form>
    </div>
  </div>
</div>


<div class="footer-device-mobile">
    <div class="wapper">
        <div class="footer-device-mobile-item device-home">
            <a href="index.php">
					<span class="icon">
						<i class="fa fa-home" aria-hidden="true"></i>
					</span>
                Home
            </a>
        </div>
        <div class="footer-device-mobile-item device-home device-wishlist">
            <a href="shop.php">
					<span class="icon">
						<i class="fa fa-ship" aria-hidden="true"></i>
					</span>
                Shop
            </a>
        </div>
        <div class="footer-device-mobile-item device-home device-cart">
            <a href="shop.php">
					<span class="icon">
						<i class="fa fa-shopping-basket" aria-hidden="true"></i>
						<span class="count-icon">
							0
						</span>
					</span>
                <span class="text">Cart</span>
            </a>
        </div>
        <div class="footer-device-mobile-item device-home device-user">
            <a href="viewmyorder.php" class="menu-toggle">
					<span class="icon">
						<i class="fa fa-user" aria-hidden="true"></i>
					</span>
                Account
            </a>
        </div>
    </div>
    <a href="#" class="backtotop">
        <i class="fa fa-angle-double-up"></i>
    </a>
    </div>


    <?php
    if(isset($_POST['submit']))
    {
    $customername=$_POST['customername'];
    $mobileno=$_POST['mobileno'];
    $email=$_POST['email'];
    $subject=$_POST['subject'];
    $message=$_POST['message'];

    $sql = "insert into feedback_table(customername,mobileno,email,subject,message)
     values('$customername','$mobileno','$email','$subject','$message')";
     $query=mysqli_query($conn,$sql);
  }
  ?>