<?php session_start(); error_reporting(E_ERROR | E_PARSE);
include("connection.php");  $id=$_REQUEST["id"];
date_default_timezone_set("Asia/Calcutta");

?>
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0" name="viewport">

  <title>Ghatal Municipality</title>
  <meta content="" name="description">
  <meta content="" name="keywords">

  <!-- Favicons -->
  <link href="assets/img/favicon.png" rel="icon">
  <link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon">

  <!-- Google Fonts -->
  <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Raleway:300,300i,400,400i,500,500i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">

  <!-- Vendor CSS Files -->
  <link href="assets/vendor/aos/aos.css" rel="stylesheet">
  <link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  <link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
  <link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
  <link href="assets/vendor/glightbox/css/glightbox.min.css" rel="stylesheet">
  <link href="assets/vendor/swiper/swiper-bundle.min.css" rel="stylesheet">

  <!-- Template Main CSS File -->
  <link href="assets/css/style.css" rel="stylesheet">

  <!-- =======================================================
  * Template Name: Appland - v4.2.0
  * Template URL: https://bootstrapmade.com/free-bootstrap-app-landing-page-template/
  * Author: BootstrapMade.com
  * License: https://bootstrapmade.com/license/
  ======================================================== -->
</head>

<body onload="startTime()">

  <!-- ======= Header ======= -->
  <header id="header" class="fixed-top " style="background-color:#660000">
    <div class="container d-flex align-items-center justify-content-between" >

      <div class="logo" >
         <h1><a href="trade_1.php"><b> <font color="white">Ghatal Municipality</font></b></a></h1>
        <!-- Uncomment below if you prefer to use an image logo -->
        <!-- <a href="index.html"><img src="assets/img/logo.png" alt="" class="img-fluid"></a>-->
      </div>

      <nav id="navbar" class="navbar">
        <ul>
          <li><a class="nav-link scrollto" href="trade_1.php"><font color="white"><b>Home</b></font></a></li>
          <li><a class="nav-link scrollto" href="renew_complete.php"><font color="white"><b>Home</b></font></a></a></li>
          <li><a class="nav-link scrollto" href="renew_due.php"><font color="white"><b>Home</b></font></a></a></li>
         
        </ul>
        <i class="bi bi-list mobile-nav-toggle"></i>
      </nav><!-- .navbar -->

    </div>
  </header><!-- End Header -->

  <main id="main">

    <!-- ======= Breadcrumbs Section ======= -->
   
  <br>  

    <section id="contact" class="contact" style="background-color:#CCFFFF">
      <div class="container" data-aos="fade-up">
<b>ADD NEW BUILDING PLAN DATA</b><hr>
        <form method="POST" name="form1" autocomplete="no-fill" >
            
        <input type="text" name="bpn" placeholder="Building Plan No" width="90%" style="width: 90%"  ><br><br>
         <input type="text" name="name" placeholder="Name" style="width: 90%" >      <br><br>
          <input type="text" name="address" placeholder="address" style="width: 90%" >      <br><br>
           <input type="text" name="holding" placeholder="Holding No" style="width: 90%" >      <br><br>
            <input type="text" name="ward" placeholder="ward"  style="width: 90%">      <br><br>
         <input type="text" name="plan_no" placeholder="Plan No" style="width: 90%" >      <br><br>
          <input type="text" name="lbs" placeholder="LBS Name" style="width: 90%" >      <br><br>
           <input type="text" name="sd" placeholder="Submit date" style="width: 90%" >      <br><br>
            <input type="text" name="ad" placeholder="Approved Date" style="width: 90%" >      <br><br>
            <input type="submit" name="ok" value="Submit" style="width: 90%" >     
         </form><center>
<hr>
<a href="inn.php"><img src="https://cdn-icons-png.flaticon.com/512/6831/6831963.png" width="50"></a> 
<hr>
</center>
        <div class="row">

          <div class="col-lg-12">
	
          </div>
		 
        </div>
          </div>

        </div>
		 

      </div>
    </section><!-- End Contact Section -->
 <?php   
if(isset($_POST["ok"]))
        {
      	$bpn=$_POST["bpn"];  
      		$name=$_POST["name"];  
      			$address=$_POST["address"];  
      				$holding=$_POST["holding"];
      					$ward=$_POST["ward"];  
      						$plan=$_POST["plan_no"];  
      							$lbs=$_POST["lbs"]; 
      								$sd=$_POST["sd"];
      									$ad=$_POST["ad"];  
      		mysqli_query($con,"insert into building (`building_plan_no`,`name`,`address`,`holding_no`,`ward`,`plan_no`,`submit_date`,`approved_date`,`lbs`) 
      		values('".$bpn."','".$name."','".$address."','".$holding."','".$ward."','".$plan."','".$sd."','".$ad."','".$lbs."')"); ?>
      		<script>alert("DATA ADDED SUCCESSFULLY");
      		window.location.href="add.php";
      		</script><?php
            
        }?>

  </main><!-- End #main -->

  <!-- ======= Footer ======= -->
<!--  <footer id="footer">

    <div class="footer-newsletter">
      <div class="container">
        <div class="row justify-content-center">
          <div class="col-lg-6">
            <h4>Join Our Network</h4>
            <p>Join with our network and receive updates</p>
            <form action="subscribe.php" method="post">
              <input type="email" name="email"><input type="submit" value="Subscribe">
            </form>
          </div>
        </div>
      </div>
    </div>

    <div class="footer-top">
      <div class="container">
        <div class="row">

          <div class="col-lg-3 col-md-6 footer-contact">
            <h3>Contact</h3>
            <p>
              Srirampurt <br>
              Panskura<br>
              West bengal <br><br>
              <strong>Phone:</strong> +91 8961963301<br>
              <strong>Email:</strong> saikat3322@gmail.com<br>
            </p>
          </div>

          <div class="col-lg-3 col-md-6 footer-links">
            <h4>Useful Links</h4>
            <ul>
			<li><a class="bx bx-chevron-right" href="#hero">Home</a></li>
          <li><a class="bx bx-chevron-right" href="#features">About Me</a></li>
          <li><a class="bx bx-chevron-right" href="#gallery">Project</a></li>
		     <li><a class="bx bx-chevron-right" href="#contact">Contact</a></li>
          
             
            </ul>
          </div>

          <div class="col-lg-3 col-md-6 footer-links">
            <h4>Our Services</h4>
            <ul>
              <li><i class="bx bx-chevron-right"></i> <a href="#">School/College Projects</a></li>
              <li><i class="bx bx-chevron-right"></i> <a href="#">Various Courses</a></li>
              <li><i class="bx bx-chevron-right"></i> <a href="#">Web Development</a></li>
              
            </ul>
          </div>

          <div class="col-lg-3 col-md-6 footer-links">
            <h4>Our Social Networks</h4>
            <p>Find our Social Network</p>
            <div class="social-links mt-3">
              <a href="#" class="twitter"><i class="bx bxl-twitter"></i></a>
              <a href="#" class="facebook"><i class="bx bxl-facebook"></i></a>
              <a href="#" class="instagram"><i class="bx bxl-instagram"></i></a>
              <a href="#" class="google-plus"><i class="bx bxl-skype"></i></a>
              <a href="#" class="linkedin"><i class="bx bxl-linkedin"></i></a>
            </div>
          </div>
Terms and Conditions | Privacy Policy | Refunds/Cancellations
        </div>
      </div>
    </div>

    <div class="container py-4">
      <div class="copyright">
        &copy; Copyright <strong><span>< CWS /></span></strong>. All Rights Reserved
      </div>
      <div class="credits">
        <!-- All the links in the footer should remain intact. -->
        <!-- You can delete the links only if you purchased the pro version. -->
        <!-- Licensing information: https://bootstrapmade.com/license/ -->
        <!-- Purchase the pro version with working PHP/AJAX contact form: https://bootstrapmade.com/free-bootstrap-app-landing-page-template/ 
        Designed by <a href="#">Coding With Saikat</a>
      </div>
    </div>
	
  </footer>--><!-- End Footer -->

  <a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a>

  <!-- Vendor JS Files -->
  <script src="assets/vendor/aos/aos.js"></script>
  <script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
  <script src="assets/vendor/glightbox/js/glightbox.min.js"></script>
  <script src="assets/vendor/php-email-form/validate.js"></script>
  <script src="assets/vendor/swiper/swiper-bundle.min.js"></script>

  <!-- Template Main JS File -->
  <script src="assets/js/main.js"></script>

</body>

</html>