/
home
/
u361092003
/
domains
/
realestaterealtors.in
/
public_html
/
admin
/
Upload FileeE
HOME
<?php session_start(); require("config.php"); ////code if(!isset($_SESSION['auser'])) { header("location:index.php"); } //// code insert //// add code $error=""; $msg=""; if(isset($_POST['add'])) { $title=$_POST['title']; $content=$_POST['content']; $ptype=$_POST['ptype']; $bhk=$_POST['bhk']; $bed=$_POST['bed']; $balc=$_POST['balc']; $hall=$_POST['hall']; $stype=$_POST['stype']; $bath=$_POST['bath']; $kitc=$_POST['kitc']; $floor=$_POST['floor']; $price=$_POST['price']; $city=$_POST['city']; $asize=$_POST['asize']; $loc=$_POST['loc']; $state=$_POST['state']; $status=$_POST['status']; $uid=$_POST['uid']; $feature=$_POST['feature']; $totalfloor=$_POST['totalfl']; $aimage=$_FILES['aimage']['name']; $aimage1=$_FILES['aimage1']['name']; $aimage2=$_FILES['aimage2']['name']; $aimage3=$_FILES['aimage3']['name']; $aimage4=$_FILES['aimage4']['name']; $fimage=$_FILES['fimage']['name']; $fimage1=$_FILES['fimage1']['name']; $fimage2=$_FILES['fimage2']['name']; $temp_name =$_FILES['aimage']['tmp_name']; $temp_name1 =$_FILES['aimage1']['tmp_name']; $temp_name2 =$_FILES['aimage2']['tmp_name']; $temp_name3 =$_FILES['aimage3']['tmp_name']; $temp_name4 =$_FILES['aimage4']['tmp_name']; $temp_name5 =$_FILES['fimage']['tmp_name']; $temp_name6 =$_FILES['fimage1']['tmp_name']; $temp_name7 =$_FILES['fimage2']['tmp_name']; move_uploaded_file($temp_name,"property/$aimage"); move_uploaded_file($temp_name1,"property/$aimage1"); move_uploaded_file($temp_name2,"property/$aimage2"); move_uploaded_file($temp_name3,"property/$aimage3"); move_uploaded_file($temp_name4,"property/$aimage4"); move_uploaded_file($temp_name5,"property/$fimage"); move_uploaded_file($temp_name6,"property/$fimage1"); move_uploaded_file($temp_name7,"property/$fimage2"); $sql="insert into property (title,pcontent,type,bhk,stype,bedroom,bathroom,balcony,kitchen,hall,floor,size,price,location,city,state,feature,pimage,pimage1,pimage2,pimage3,pimage4,uid,status,mapimage,topmapimage,groundmapimage,totalfloor) values('$title','$content','$ptype','$bhk','$stype','$bed','$bath','$balc','$kitc','$hall','$floor','$asize','$price', '$loc','$city','$state','$feature','$aimage','$aimage1','$aimage2','$aimage3','$aimage4','$uid','$status','$fimage','$fimage1','$fimage2','$totalfloor')"; $result=mysqli_query($con,$sql); if($result) { $msg="<p class='alert alert-success'>Property Inserted Successfully</p>"; } else { $error="<p class='alert alert-warning'>Property Not Inserted Some Error</p>"; } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0"> <title>Real Estate Realtors</title> <!-- Favicon --> <link rel="shortcut icon" type="image/x-icon" href="../assets/img/favicon.png"> <!-- Bootstrap CSS --> <link rel="stylesheet" href="assets/css/bootstrap.min.css"> <!-- Fontawesome CSS --> <link rel="stylesheet" href="assets/css/font-awesome.min.css"> <!-- Feathericon CSS --> <link rel="stylesheet" href="assets/css/feathericon.min.css"> <!-- Main CSS --> <link rel="stylesheet" href="assets/css/style.css"> <!--[if lt IE 9]> <script src="assets/js/html5shiv.min.js"></script> <script src="assets/js/respond.min.js"></script> <![endif]--> </head> <body> <!-- Header --> <?php include("header.php"); ?> <!-- /Sidebar --> <!-- Page Wrapper --> <div class="page-wrapper"> <div class="content container-fluid"> <!-- Page Header --> <div class="page-header"> <div class="row"> <div class="col"> <h3 class="page-title">Property</h3> <ul class="breadcrumb"> <li class="breadcrumb-item"><a href="dashboard.php">Dashboard</a></li> <li class="breadcrumb-item active">Property</li> </ul> </div> </div> </div> <!-- /Page Header --> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h4 class="card-title">Add Property Details</h4> </div> <form method="post" enctype="multipart/form-data"> <div class="card-body"> <h5 class="card-title">Property Detail</h5> <?php echo $error; ?> <?php echo $msg; ?> <div class="row"> <div class="col-xl-12"> <div class="form-group row"> <label class="col-lg-2 col-form-label">Title</label> <div class="col-lg-9"> <input type="text" class="form-control" name="title" required placeholder="Enter Title"> </div> </div> <div class="form-group row"> <label class="col-lg-2 col-form-label">Content</label> <div class="col-lg-9"> <textarea class="tinymce form-control" name="content" rows="10" cols="30"></textarea> </div> </div> </div> <div class="col-xl-6"> <div class="form-group row"> <label class="col-lg-3 col-form-label">Selling Type</label> <div class="col-lg-9"> <!-- <select class="form-control" required name="stype"> <option value="">Select Status</option> <option value="rent">Rent</option> <option value="sale">Sale</option> </select> --> <select class="form-control" name="stype" required> <option value="">Select Status</option> <option value="rent">Rent/Lease</option> <option value="buy">Buy</option> </select> </div> </div> <div class="form-group row"> <label class="col-lg-3 col-form-label">Property Type</label> <div class="col-lg-9"> <select class="form-control" required name="ptype"> <option value="">Select Type</option> <!-- <option value="appartment">Appartment</option> <option value="flat">Flat</option> <option value="bunglow">Bunglow</option> <option value="house">House</option> <option value="villa">Villa</option> <option value="office">Office</option> --> <option value="Warehouse">Warehouse</option> <option value="Factory">Factory</option> <option value="Land">Land</option> <option value="Cold Warhouse">Cold Warehouse</option> <option value="Chemical Warehouse">Chemical Warehouse</option> <option value="Bonded Warehouse">Bonded Warehouse</option> <option value="Agro Warehouse">Agro Warehouse</option> <option value="Shop/Showroom">Shop/Showroom</option> <option value="office">Office Space</option> <option value="DataCenter">Data Center</option> </select> </div> </div> <div class="form-group row d-none"> <label class="col-lg-3 col-form-label">Bathroom</label> <div class="col-lg-9"> <input type="text" class="form-control" name="bath" required placeholder="Enter Bathroom (only no 1 to 10)" value="0" readonly> </div> </div> <div class="form-group row d-none"> <label class="col-lg-3 col-form-label">Kitchen</label> <div class="col-lg-9"> <input type="text" class="form-control" name="kitc" required placeholder="Enter Kitchen (only no 1 to 10)" value="0" readonly> </div> </div> </div> <div class="col-xl-6"> <div class="form-group row mb-3 d-none"> <label class="col-lg-3 col-form-label">BHK</label> <div class="col-lg-9"> <select class="form-control" required name="bhk"> <option value="0">Select BHK</option> <option value="1 BHK">1 BHK</option> <option value="2 BHK">2 BHK</option> <option value="3 BHK">3 BHK</option> <option value="4 BHK">4 BHK</option> <option value="5 BHK">5 BHK</option> <option value="1,2 BHK">1,2 BHK</option> <option value="2,3 BHK">2,3 BHK</option> <option value="2,3,4 BHK">2,3,4 BHK</option> </select> </div> </div> <div class="form-group row d-none"> <label class="col-lg-3 col-form-label">Bedroom</label> <div class="col-lg-9"> <input type="text" class="form-control" name="bed" required placeholder="Enter Bedroom (only no 1 to 10)" value="0"> </div> </div> <div class="form-group row d-none"> <label class="col-lg-3 col-form-label">Balcony</label> <div class="col-lg-9"> <input type="text" class="form-control" name="balc" required placeholder="Enter Balcony (only no 1 to 10)" value="0"> </div> </div> <div class="form-group row d-none"> <label class="col-lg-3 col-form-label">Hall</label> <div class="col-lg-9"> <input type="text" class="form-control" name="hall" required placeholder="Enter Hall (only no 1 to 10)" value="0"> </div> </div> </div> </div> <h4 class="card-title">Price & Location</h4> <div class="row"> <div class="col-xl-6"> <div class="form-group row d-none"> <label class="col-lg-3 col-form-label">Floor</label> <div class="col-lg-9"> <select class="form-control" required name="floor"> <option value="0">Select Floor</option> <option value="1st Floor">1st Floor</option> <option value="2nd Floor">2nd Floor</option> <option value="3rd Floor">3rd Floor</option> <option value="4th Floor">4th Floor</option> <option value="5th Floor">5th Floor</option> </select> </div> </div> <div class="form-group row"> <label class="col-lg-3 col-form-label">Price</label> <div class="col-lg-9"> <input type="text" class="form-control" name="price" required placeholder="Enter Price"> </div> </div> <div class="form-group row"> <label class="col-lg-3 col-form-label">City</label> <div class="col-lg-9"> <input type="text" class="form-control" name="city" required placeholder="Enter City"> </div> </div> <div class="form-group row"> <label class="col-lg-3 col-form-label">State</label> <div class="col-lg-9"> <input type="text" class="form-control" name="state" required placeholder="Enter State"> </div> </div> </div> <div class="col-xl-6"> <div class="form-group row d-none"> <label class="col-lg-3 col-form-label">Total Floor</label> <div class="col-lg-9"> <select class="form-control" required name="totalfl"> <option value="0">Select Floor</option> <option value="1 Floor">1 Floor</option> <option value="2 Floor">2 Floor</option> <option value="3 Floor">3 Floor</option> <option value="4 Floor">4 Floor</option> <option value="5 Floor">5 Floor</option> <option value="6 Floor">6 Floor</option> <option value="7 Floor">7 Floor</option> <option value="8 Floor">8 Floor</option> <option value="9 Floor">9 Floor</option> <option value="10 Floor">10 Floor</option> <option value="11 Floor">11 Floor</option> <option value="12 Floor">12 Floor</option> <option value="13 Floor">13 Floor</option> <option value="14 Floor">14 Floor</option> <option value="15 Floor">15 Floor</option> </select> </div> </div> <div class="form-group row"> <label class="col-lg-3 col-form-label">Area Size</label> <div class="col-lg-9"> <input type="text" class="form-control" name="asize" required placeholder="Enter Area Size (in sqrt)"> </div> </div> <div class="form-group row"> <label class="col-lg-3 col-form-label">Address</label> <div class="col-lg-9"> <input type="text" class="form-control" name="loc" required placeholder="Enter Address"> </div> </div> </div> </div> <div class="form-group row"> <label class="col-lg-2 col-form-label">Feature</label> <div class="col-lg-9"> <p class="alert alert-danger">* Important Please Do Not Remove Below Content Only Change <b>Yes</b> Or <b>No</b> or Details and Do Not Add More Details</p> <textarea class="tinymce form-control" name="feature" rows="10" cols="30"> <!---feature area start---> <div class="container"> <div class="row"> <div class="col-md-6"> <table class="table table-bordered"> <thead> <tr class="bg-primary text-center"> <th scope="col" colspan="2" class="text-white bg-primary">Basic Details</th> </tr> </thead> <tbody> <tr> <th scope="row">Type of warehouse </th> <td>A Grade PEB structure </td> </tr> <tr> <th scope="row">Status of warehouse</th> <td> <ul class="dbloex"> <li class="mr-3 desc_li">RTM - Yes</li> <li class="mr-3 desc_li">UC - No</li> <li class="mr-3 desc_li">BTS - Yes </li> </ul> </td> </tr> <tr class="bg-primary text-center"> <th scope="col" colspan="2" class="text-white bg-primary">Technical attributes</th> </tr> <tr> <th scope="row" rowspan="2" class="align-middle">Height details</th> <td>Clear height : </td> </tr> <tr> <td>Center height : </td> </tr> <tr> <th scope="row" rowspan="3" class="align-middle">Floors details</th> <td>Internal: <ul class="dbloex"> <li class="mr-3 desc_li">Trimix - Yes</li> <li class="mr-3 desc_li">VDF - No</li> <li class="mr-3 desc_li">FM-II - Yes </li> <li class="mr-3 desc_li">RCC - Yes </li> </ul> </td> </tr> <tr> <td>Strength : 123 tonne per sq mtr</td> </tr> <tr> <td>External: <ul class="dbloex"> <li class="mr-3 desc_li">RMC - Yes</li> <li class="mr-3 desc_li">Paver blocks - No</li> </ul> </td> </tr> <tr> <th scope="row" rowspan="6" class="align-middle">Dock details</th> <td> 03 (nos), 123 ft x 123 ft (size) </td> </tr> <tr> <td>Dock ht : …. Ft, Ramp - Yes</td> </tr> <tr> <td>Dock leveler : </td> </tr> <tr> <td>Shutter: <ul class="dbloex"> <li class="mr-3 desc_li">Manual - Yes</li> <li class="mr-3 desc_li">Automatic shutter - No</li> </ul> </td> </tr> <tr> <td>Platform - Yes</td> </tr> <tr> <td>Canopy: <ul class="dbloex"> <li class="mr-3 desc_li">Running - Yes</li> <li class="mr-3 desc_li"> Individual canopy - No</li> </ul> </td> </tr> <tr> <th scope="row" rowspan="4" class="align-middle">Open Area</th> <td>Apron area :</td> </tr> <tr> <td>Side set backs :</td> </tr> <tr> <td>Rear set back : : </td> </tr> <tr> <td>Parking space: </td> </tr> <tr> <th scope="row" rowspan="3" class="align-middle">Office space</th> <td> <ul class="dbloex"> <li class="mr-3 desc_li">Inside - Yes</li> <li class="mr-3 desc_li">Outside - No</li> </ul> </td> </tr> <tr> <td> <ul class="dbloex"> <li class="mr-3 desc_li">Mezzanine - Yes</li> <li class="mr-3 desc_li">Fabricated - No</li> <li class="mr-3 desc_li">RCC - No</li> </ul> </td> </tr> <tr> <td>Size: </td> </tr> <tr> <th scope="row" rowspan="3" class="align-middle">Fire safety</th> <td> <ul class="dbloex"> <li class="mr-3 desc_li">Hydrants - Yes</li> <li class="mr-3 desc_li">Sprinklers - No</li> </ul> </td> </tr> <tr> <td>Water tank : 123434 ltrs</td> </tr> <tr> <td> <ul class="dbloex"> <li class="mr-3 desc_li">D G set - Yes</li> <li class="mr-3 desc_li">Jockey Pump - No</li> </ul> </td> </tr> <tr> <th scope="row" class="align-middle">Insulation </th> <td> <ul class="dbloex"> <li class="mr-3 desc_li">8 mm bubble - Yes</li> <li class="mr-3 desc_li">Rock wool - No</li> </ul> </td> </tr> <tr> <th scope="row" class="align-middle">Skylights </th> <td> <ul class="dbloex"> <li class="mr-3 desc_li">At roof - Yes</li> <li class="mr-3 desc_li">At side walls - No</li> </ul> </td> </tr> <tr> <th scope="row" rowspan="3" class="align-middle">Ventillation</th> <td>2% - 3% of area - Yes </td> </tr> <tr> <td> <ul class="dbloex"> <li class="mr-3 desc_li">Turbo vents - Yes</li> <li class="mr-3 desc_li">Ridge Vent - No</li> </ul> </td> </tr> <tr> <td>Louvers : Yes</td> </tr> </tbody> </table> </div> <div class="col-md-6"> <table class="table table-bordered"> <thead> <tr class="bg-primary text-center"> <th scope="col" colspan="2" class="text-white bg-primary">Technical attributes</th> </tr> </thead> <tbody> <tr> <th scope="row" rowspan="3" class="align-middle">Electricity</th> <td>Internal lights: <ul class="dbloex"> <li class="mr-3 desc_li">LED - Yes</li> <li class="mr-3 desc_li">Normal - No</li> </ul> </td> </tr> <tr> <td>External lights: <ul class="dbloex"> <li class="mr-3 desc_li">LED - Yes</li> <li class="mr-3 desc_li">Normal - No</li> </ul> </td> </tr> <tr> <td>Meter load : …..KVA</td> </tr> <tr> <th scope="row" rowspan="7" class="align-middle">Facilities area</th> <td> <ul class="dbloex"> <li class="mr-3 desc_li">Staff Toilet - Yes</li> <li class="mr-3 desc_li">Nos - 03</li> </ul> </td> </tr> <tr> <td> <ul class="dbloex"> <li class="mr-3 desc_li">Labour toilets - Yes</li> <li class="mr-3 desc_li">Nos - 03</li> </ul> </td> </tr> <tr> <td>Cafeteria/Pantry : Yes</td> </tr> <tr> <td> <ul class="dbloex"> <li class="mr-3 desc_li">Guard Room - Yes</li> <li class="mr-3 desc_li">Driver Room - Yes</li> </ul> </td> </tr> <tr> <td>Electrical panel room : Yes</td> </tr> <tr> <td>Pump room : Yes</td> </tr> <tr> <td>RCC bed (D G set & R F ) : Yes</td> </tr> <tr> <th scope="row" rowspan="4" class="align-middle">Other warehouse details</th> <td>Barbed fencing at wall : Yes</td> </tr> <tr> <td>Rain harvesting : NO</td> </tr> <tr> <td>Ladder cage : Yes</td> </tr> <tr> <td> <ul class="dbloex"> <li class="mr-3 desc_li">STP - Yes</li> <li class="mr-3 desc_li">ETP - Yes</li> </ul> </td> </tr> <tr> <th scope="row">Local union issues</th> <td> <ul class="dbloex"> <li class="mr-3 desc_li">Labour - Yes</li> <li class="mr-3 desc_li">Transport - Yes </li> </ul> </td> </tr> <tr class="bg-primary text-center"> <th scope="col" colspan="2" class="text-white bg-primary">Legal compliances</th> </tr> <tr> <th scope="row">Change of land use</th> <td> <ul class="dbloex"> <li class="mr-3 desc_li">Agro - Yes</li> <li class="mr-3 desc_li">Non Agro - No</li> <li class="mr-3 desc_li">Industrial - Yes </li> </ul> </td> </tr> <tr> <th>Sanction plan</th> <td>No</td> </tr> <tr> <th>Sanction Letter</th> <td>No</td> </tr> <tr> <th>Completion certificate</th> <td>Yes</td> </tr> <tr> <th>Fire NOC certificate</th> <td> <ul class="dbloex"> <li class="mr-3 desc_li">Provisional - Yes</li> <li class="mr-3 desc_li">Final - Yes </li> </ul> </td> </tr> <tr> <th>Structural stability certificate</th> <td>Yes</td> </tr> <tr> <th>Floor load certificate</th> <td>Yes</td> </tr> <tr> <th>Consent to establish (CTE) </th> <td>Yes</td> </tr> <tr> <th>Consent to operate (CTO)</th> <td>Yes</td> </tr> <tr> <th>Pollution Certificate</th> <td>Yes</td> </tr> <tr> <th>Highway NOC</th> <td>Yes</td> </tr> <tr> <th>Forest NOC</th> <td>Yes</td> </tr> <tr> <th>Environmental Clearance (EC)</th> <td>Yes</td> </tr> <tr> <th>Non-encumbrance certificate</th> <td>Yes</td> </tr> </tbody> </table> </div> </div> </div> <!---feature area end----> </textarea> </div> </div> <h4 class="card-title">Image & Status</h4> <div class="row"> <div class="col-xl-6"> <div class="form-group row"> <label class="col-lg-3 col-form-label">Image</label> <div class="col-lg-9"> <input class="form-control" name="aimage" type="file" required=""> </div> </div> <div class="form-group row"> <label class="col-lg-3 col-form-label">Image 2</label> <div class="col-lg-9"> <input class="form-control" name="aimage2" type="file" required=""> </div> </div> <div class="form-group row"> <label class="col-lg-3 col-form-label">Image 4</label> <div class="col-lg-9"> <input class="form-control" name="aimage4" type="file" required=""> </div> </div> <div class="form-group row"> <label class="col-lg-3 col-form-label">Status</label> <div class="col-lg-9"> <select class="form-control" required name="status"> <option value="">Select Status</option> <option value="available">Available</option> <option value="sold out">Sold Out</option> </select> </div> </div> <div class="form-group row d-none"> <label class="col-lg-3 col-form-label">Basement Floor Plan Image</label> <div class="col-lg-9"> <input class="form-control" name="fimage1" type="file"> </div> </div> </div> <div class="col-xl-6"> <div class="form-group row"> <label class="col-lg-3 col-form-label">Image 1</label> <div class="col-lg-9"> <input class="form-control" name="aimage1" type="file" required=""> </div> </div> <div class="form-group row"> <label class="col-lg-3 col-form-label">image 3</label> <div class="col-lg-9"> <input class="form-control" name="aimage3" type="file" required=""> </div> </div> <div class="form-group row"> <label class="col-lg-3 col-form-label">Uid</label> <div class="col-lg-9"> <input type="text" value="16" readonly class="form-control" name="uid" required placeholder="Enter User Id (only number)" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');"> </div> </div> <div class="form-group row d-none"> <label class="col-lg-3 col-form-label">Floor Plan Image</label> <div class="col-lg-9"> <input class="form-control" name="fimage" type="file"> </div> </div> <div class="form-group row d-none"> <label class="col-lg-3 col-form-label">Ground Floor Plan Image</label> <div class="col-lg-9"> <input class="form-control" name="fimage2" type="file"> </div> </div> </div> </div> <input type="submit" value="Submit" class="btn btn-primary"name="add" style="margin-left:200px;"> </div> </form> </div> </div> </div> </div> </div> <!-- /Main Wrapper --> <!-- jQuery --> <script src="assets/js/jquery-3.2.1.min.js"></script> <script src="assets/plugins/tinymce/tinymce.min.js"></script> <script src="assets/plugins/tinymce/init-tinymce.min.js"></script> <!-- Bootstrap Core JS --> <script src="assets/js/popper.min.js"></script> <script src="assets/js/bootstrap.min.js"></script> <!-- Slimscroll JS --> <script src="assets/plugins/slimscroll/jquery.slimscroll.min.js"></script> <!-- Custom JS --> <script src="assets/js/script.js"></script> <script> document.addEventListener('DOMContentLoaded', function () { var stypeSelect = document.querySelector('[name="stype"]'); var typeSelect = document.querySelector('[name="ptype"]'); // Disable the typeSelect initially typeSelect.disabled = true; stypeSelect.addEventListener('change', function () { var selectedValue = stypeSelect.value; if (selectedValue === 'rent') { showOptions(['', 'Warehouse', 'Factory', 'Land']); } else if (selectedValue === 'buy') { hideOptions(['Land']); } // Enable or disable the typeSelect based on the selectedValue typeSelect.disabled = selectedValue === ''; }); function showOptions(optionsToShow) { for (var i = 0; i < typeSelect.options.length; i++) { var option = typeSelect.options[i]; if (optionsToShow.indexOf(option.value) !== -1) { option.style.display = ''; } else { option.style.display = 'none'; } } } function hideOptions(optionsToHide) { for (var i = 0; i < typeSelect.options.length; i++) { var option = typeSelect.options[i]; if (optionsToHide.indexOf(option.value) !== -1) { option.style.display = 'none'; } else { option.style.display = ''; } } } }); </script> </body> </html>