korsygfhrfggfhfgfffgffg6655665dtggggggzangaiide
Elehhjhjjkjkfpf6df56fd65ffff
/
home2
/
apcagkk2
/
mosampati.com
/
Upload FileeE
HOME
<?php include 'includes/config.php'; ob_start(); session_start(); if(!isset($_SESSION['prop_user'])) { header ("Location: login.php"); } if(!isset($_GET['property_id'])) { header ("Location: ./"); exit(); } $property_id = $_GET['property_id']; $check_query = "SELECT * FROM property_list WHERE property_id='$property_id' AND is_completed='1' "; $result4 = mysqli_query($conn, $check_query); if (mysqli_num_rows($result4) !== 1) { header ("Location: ./"); exit(); } $user_email = $_SESSION['prop_user']; $check_query = "SELECT * FROM user_dtls WHERE user_email='$user_email' AND status='A' "; $result4 = mysqli_query($conn, $check_query); if (mysqli_num_rows($result4) !== 1) { header ("Location: login.php"); exit(); } $selectquery="SELECT * FROM `user_dtls` WHERE user_email='$user_email' AND status='A' ORDER BY id DESC"; $query = mysqli_query($conn,$selectquery); $nums = mysqli_num_rows($query); $i=1; while($res = mysqli_fetch_array($query)) { $id = $res['id']; $user_id = $res['user_id']; $profile_pic = $res['profile_pic']; $user_nm = $res['user_nm']; $user_phone = $res['user_phone']; $user_email = $res['user_email']; $user_psw = $res['user_psw']; $otp_dtls = $res['otp_dtls']; $op_status = $res['op_status']; $verified_on = $res['verified_on']; $status = $res['status']; $created_on = $res['created_on']; $modified_on = $res['modified_on']; $back_photo = $res['back_photo']; $st_addres = $res['st_addres']; $address2 = $res['address2']; $country_nm = $res['country_nm']; $state_nm = $res['state_nm']; $city_nm = $res['city_nm']; $zip_code = $res['zip_code']; $gst_no = $res['gst_no']; if(empty($modified_on)) { $added_on = $created_on; } else { $added_on = $modified_on; } } $seledctquery="SELECT * FROM `property_list` WHERE property_id='$property_id' AND is_completed='1' ORDER BY id DESC"; $qsuery = mysqli_query($conn,$seledctquery); $i=1; while($rs4es = mysqli_fetch_array($qsuery)) { $usesr_id = $rs4es['user_id']; $id = $rs4es['id']; $prty_title = $rs4es['prty_title']; $prty_sts = $rs4es['prty_sts']; $prty_type = $rs4es['prty_type']; $prty_price1 = $rs4es['prty_price']; $prty_area = $rs4es['prty_area']; $area_unit = $rs4es['area_unit']; $per_area1 = $rs4es['per_area']; $room_no = $rs4es['room_no']; $prty_adrs = $rs4es['prty_adrs']; $prty_city = $rs4es['prty_city']; $prty_state = $rs4es['prty_state']; $prty_zip = $rs4es['prty_zip']; $prty_desc = $rs4es['prty_desc']; $land_type = $rs4es['land_type']; $bldng_age = $rs4es['bldng_age']; $bed_rooms = $rs4es['bed_rooms']; $bath_rooms = $rs4es['bath_rooms']; $cont_name = $rs4es['cont_name']; $cont_email = $rs4es['cont_email']; $cont_phone = $rs4es['cont_phone']; $property_id = $rs4es['property_id']; $pfile_id= $rs4es['pfile_id']; $status = $rs4es['status']; $posted_on = $rs4es['posted_on']; $prty_price = number_format($prty_price1,2); $prty_video = $rs4es['prty_video']; $sql4d5 ="SELECT * from `user_dtls` WHERE user_id='$usesr_id' ORDER BY id DESC "; $quer56y = mysqli_query($conn,$sql4d5); while($sres5654 = mysqli_fetch_array($quer56y)) { $row_id1 = $sres5654['id']; $user_nm = $sres5654['user_nm']; $user_phone = $sres5654['user_phone']; $user_emails = $sres5654['user_email']; $profile_pice = $sres5654['profile_pic']; $st_addres = $sres5654['st_addres']; $address2 = $sres5654['address2']; $country_nm = $sres5654['country_nm']; $state_nm = $sres5654['state_nm']; $city_nm = $sres5654['city_nm']; $zip_code = $sres5654['zip_code']; } // $timeago = get_timeago(strtotime($posted_ovn)); $timeago = date("jS M, Y", strtotime($posted_ovn)); } if(isset($_POST['add_submit'])) { $prty_title = $_POST['prty_title']; $prty_sts = $_POST['prty_sts']; $prty_type = $_POST['prty_type']; $prty_price = $_POST['prty_price']; $prty_area = $_POST['prty_area']; $area_unit = $_POST['area_unit']; $per_area = $_POST['per_area']; $room_no = $_POST['room_no']; $prty_adrs = $_POST['prty_adrs']; $prty_city = $_POST['prty_city']; $prty_state = $_POST['prty_state']; $prty_zip = $_POST['prty_zip']; $prty_desc = $_POST['prty_desc']; $land_type = $_POST['land_type']; $bldng_age = $_POST['bldng_age']; $bed_rooms = $_POST['bed_rooms']; $bath_rooms = $_POST['bath_rooms']; $cont_name = $_POST['cont_name']; $cont_email = $_POST['cont_email']; $cont_phone = $_POST['cont_phone']; date_default_timezone_set('Asia/Kolkata'); $date_time = date('d-m-Y h:i:s A', time()); $sd4ql = "UPDATE `property_list` SET prty_title = '$prty_title', prty_sts = '$prty_sts', prty_type = '$prty_type', prty_price = '$prty_price', prty_area = '$prty_area', area_unit = '$area_unit', per_area = '$per_area', room_no = '$room_no', prty_adrs = '$prty_adrs', prty_city = '$prty_city', prty_state = '$prty_state', prty_zip = '$prty_zip', prty_desc = '$prty_desc', land_type = '$land_type', bldng_age = '$bldng_age', bed_rooms = '$bed_rooms', bath_rooms = '$bath_rooms', cont_name = '$cont_name', cont_email = '$cont_email', cont_phone = '$cont_phone', is_completed = '1', status = 'P', updated_on = '$date_time' WHERE property_id='$property_id' "; $result2 = mysqli_query($conn, $sd4ql); if($result2 == 1) { header ("Location: edit-property-page-2.php?property_id=$property_id"); } else { $eror_msg = "<i class=\"fa fa-exclamation-triangle\" style=\"color: white;\"></i> Please try after sometime !!"; header( "refresh: 5;" ); } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="author" content=""> <meta name="theme-color" content="#e33324"> <meta name="description" content="Property Service , Banking Solution & Service - Mosampati"> <meta name="keywords" content="Apartment, Estate Agency, Housing, Real Estate, Real Estate Broker, Real Estate Property, Single Property"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title><?php echo $prty_title; ?> Edit Property - Property Service , Banking Solution & Service - Mosampati</title> <meta name="description" content="<?php echo $prty_title; ?> Property - Mosampati"> <meta name="keywords" content="<?php echo $prty_title; ?> Property - Mosampati"> <meta name="twitter:card" content="<?php echo $prty_title; ?> Property - Mosampati"> <meta name="twitter:site" content="@Mosampati"> <meta name="twitter:title" content="<?php echo $prty_title; ?> Property - Mosampati"> <meta name="twitter:description" content="<?php echo $prty_title; ?> Property - Mosampati"> <meta property="og:title" content="<?php echo $prty_title; ?> Property - Mosampati"> <meta property="og:description" content="<?php echo $prty_title; ?> Property - Mosampati"> <meta property="og:site_name" content="Mosampati"> <!-- Favicon --> <link rel="shortcut icon" href="images/logo/mslogo.png"> <!-- CSS --> <link rel="stylesheet" href="css/stylesheet.css"> <!-- Google Fonts --> <link href="https://fonts.googleapis.com/css?family=Nunito:300,400,600,700,800&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800&display=swap" rel="stylesheet"> <meta content="width=device-width, initial-scale=1.0" name="viewport"> <meta name="viewport" maximum-scale=1.0 user-scalable=no /> <meta name = "viewport" content = "width=device-width, minimum-scale=1.0, maximum-scale = 1.0, user-scalable = no"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <link href="https://cdn.lineicons.com/3.0/lineicons.css" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/line-awesome/1.3.0/line-awesome/css/line-awesome.min.css" integrity="sha512-vebUliqxrVkBy3gucMhClmyQP9On/HAWQdKDXRaAlb/FKuTbxkjPKUyqVOxAcGwFDka79eTF+YXwfke1h3/wfg==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/line-awesome/1.3.0/font-awesome-line-awesome/css/all.min.css" integrity="sha512-dC0G5HMA6hLr/E1TM623RN6qK+sL8sz5vB+Uc68J7cBon68bMfKcvbkg6OqlfGHo1nMmcCxO5AinnRTDhWbWsA==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <style> input, select, textarea { border: 1px solid #242c54 !important; } input:focus, select:focus, textarea:focus { border: 1px solid #ff623f !important; } .chosen-container-single .chosen-default { border: 1px solid #242c54 !important; } .dropzone { border: 1px dashed #242c54 !important; } .checkboxes label:before { border: 1px solid red !important; } .my-account { background: #fff; box-shadow: 3px 4px 4px 6px rgb(0 0 0 / 20%); border-radius: 5px; } .chosen-container-single .chosen-single { color: #000; border: 1px solid #000; } #titlebar { margin-bottom: 20px; } .chosen-container .chosen-drop { border-left: 1px solid #485867; border-right: 1px solid #485867; border-bottom: 1px solid #485867; } /* Chrome, Safari, Edge, Opera */ input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; } /* Firefox */ input[type=number] { -moz-appearance: textfield; } </style> </head> <body> <!-- Preloader Start --> <div class="preloader"> <div class="utf-preloader"> <span></span> <span></span> <span></span> </div> </div> <!-- Preloader End --> <!-- Wrapper --> <div id="wrapper"> <!-- Header Container --> <?php include 'includes/header.php'; ?> <!-- Header Container / End --> <!-- Titlebar --> <?php if(strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'mobile') || strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'android')) { ?> <div class="utf-user-profile-item"> <div class="utf-submit-page-inner-box"> <h3> <a href="my-profile.php" style="color: white;"><i class="fa fa-arrow-left" style="color: white;padding-right: 10%;"></i> </a>Add New Property</h3> </div> </div> <?php } else { ?> <div class="parallax titlebar" data-background="images/listings-parallax.jpg" data-color="rgba(48, 48, 48, 1)" data-color-opacity="0.8" data-img-width="800" data-img-height="505"> <div id="titlebar"> <div class="container"> <div class="row"> <div class="col-md-12"> <h2>Edit Property</h2> <!-- Breadcrumbs --> <nav id="breadcrumbs"> <ul> <li><a href="./">Home</a></li> <li>Edit Property</li> </ul> </nav> </div> </div> </div> </div> </div> <?php } ?> <!-- Content --> <div class="container"> <div class="row"> <div class="col-md-3"> <?php if(strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'mobile') || strstr(strtolower($_SERVER['HTTP_USER_AGENT']), 'android')) { } else { ?> <?php include 'includes/profile_sidebar.php'; ?> <?php } ?> </div> <!-- Submit Page --> <div class="col-md-9"> <?php if( isset($eror_msg) && $eror_msg != '' ) { ?> <div class="alert alert-danger alert-dismissible" id="form_alert" style="background-color: #ff623f;border: 1px solid #ff623f;color: white;font-size: 14px;margin-bottom: 10px;padding: 10px;"> <?php echo $eror_msg; ?>. </div> <br> <?php } ?> <form id="add_visitor_form" name="myForm" onsubmit="return validateForm()" class="ui form add-user" method="post" accept-charset="utf-8" enctype="multipart/form-data"> <div class="alert alert-danger alert-dismissible" id="form_alert" style="display:none;background-color: #ff623f;border: 1px solid #ff623f;color: white;font-size: 14px;margin-bottom: 10px;padding: 10px;"> </div> <div class="submit-page"> <!-- Section --> <div class="utf-submit-page-inner-box"> <h3>Property Basic Information</h3> <div class="content with-padding"> <div class="col-md-12"> <h5>Property Title <span style="color:red;">*</span></h5> <input class="search-field" placeholder="Property Title" type="text" name="prty_title" value="<?php echo $prty_title; ?>"/> </div> <div class="col-md-6"> <h5>Property Status <span style="color:red;">*</span></h5> <select class="utf-chosen-select-single-item" name="prty_sts"> <option value="none">----- Select an Option -----</option> <option value="For Buy" <?php if($prty_sts=="For Buy") echo 'selected="selected"';?> >For Buy</option> <option value="For Sell" <?php if($prty_sts=="For Sell") echo 'selected="selected"';?> >For Sale</option> <option value="For Rent" <?php if($prty_sts=="For Rent") echo 'selected="selected"';?> >For Rent</option> </select> </div> <div class="col-md-6"> <h5>Property Type <span style="color:red;">*</span></h5> <select class="utf-chosen-select-single-item" name="prty_type" onchange="Checkinsurance(this);"> <option value="none">----- Select an Option -----</option> <?php $selectquery="SELECT * FROM `category_dtls` WHERE status='A' ORDER BY id asc"; $query = mysqli_query($conn,$selectquery); $nums = mysqli_num_rows($query); $i=1; while($res = mysqli_fetch_array($query)) { $row_id = $res['id']; $category_id = $res['category_id']; $category_nm = $res['category_nm']; $status = $res['status']; ?> <option value="<?php echo $category_nm; ?>" <?php if($category_nm == $prty_type) echo 'selected="selected"';?>> <?php echo $category_nm; ?> </option> <?php } ?> </select> </div> <div class="col-md-6"> <h5>Price (in INR)<span style="color:red;">*</span></h5> <div class="seleect-input disabled-first-option"> <input type="number" name="prty_price" placeholder="00000" id="textbox_id" oninput="handleValueChange()" value="<?php echo $prty_price1; ?>" > </div> </div> <div class="col-md-6"> <h5>Total Area <span style="color:red;">*</span></h5> <div class="seleect-input disabled-first-option"> <input type="number" name="prty_area" placeholder="00000" id="textbox_id2" oninput="handleValueChange()" value="<?php echo $prty_area; ?>" > </div> </div> <div class="col-md-6"> <h5>Area Unit <span style="color:red;">*</span></h5> <select class="utf-chosen-select-single-item" style="border: 1px solid #242c54 !important;" id="textbox_id3" onchange="handleValueChange()" name="area_unit" > <option value="none">----- Select an Option -----</option> <option value="sq.ft" <?php if($area_unit == "sq.ft") echo 'selected="selected"';?>>Square Feet</option> <option value="Acre" <?php if($area_unit == "Acre") echo 'selected="selected"';?>>Acre</option> <option value="Hectare" <?php if($area_unit == "Hectare") echo 'selected="selected"';?>>Hectare</option> <option value="Guntha" <?php if($area_unit == "Guntha") echo 'selected="selected"';?>>Guntha</option> <option value="Gaj" <?php if($area_unit == "Gaj") echo 'selected="selected"';?>>Gaj</option> <option value="Biswa" <?php if($area_unit == "Biswa") echo 'selected="selected"';?>>Biswa</option> <option value="Killa" <?php if($area_unit == "Killa") echo 'selected="selected"';?>>Killa</option> <option value="Square Yard" <?php if($area_unit == "Square Yard") echo 'selected="selected"';?>>Square Yard</option> <option value="Katha" <?php if($area_unit == "Katha") echo 'selected="selected"';?>>Katha</option> <option value="Cent" <?php if($area_unit == "Cent") echo 'selected="selected"';?>>Cent</option> <option value="Murabba" <?php if($area_unit == "Murabba") echo 'selected="selected"';?>>Murabba</option> <option value="Karam" <?php if($area_unit == "Karam") echo 'selected="selected"';?>>Karam</option> </select> </div> <div class="col-md-6"> <h5>Area Per Price <span style="color:red;">*</span></h5> <div class="seleect-input disabled-first-option"> <input type="text" placeholder="00000" id="result" name="per_area" value="<?php echo $per_area1; ?>" > </div> </div> <script> function handleValueChange() { var price1 = document.getElementById('textbox_id').value; var tarea1 = document.getElementById('textbox_id2').value; var aunit1 = document.getElementById('textbox_id3').value; var x = document.getElementById('result'); var output1 = price1 / tarea1; let output = Math.trunc( output1 ); x.value = output + ' / ' + aunit1; } </script> <?php if($prty_type == "Land") { ?> <div class="col-md-6" id="room_div" style="display: none;"> <h5>Rooms <span>(optional)</span></h5> <select class="utf-chosen-select-single-item" name="room_no" > <option value="none" >----- Select an Option -----</option> <option value="1" <?php if($room_no == "1") echo 'selected="selected"';?>>1</option> <option value="2" <?php if($room_no == "2") echo 'selected="selected"';?>>2</option> <option value="3" <?php if($room_no == "3") echo 'selected="selected"';?>>3</option> <option value="4" <?php if($room_no == "4") echo 'selected="selected"';?>>4</option> <option value="5" <?php if($room_no == "5") echo 'selected="selected"';?>>5</option> <option value="More than 5" <?php if($room_no == "More than 5") echo 'selected="selected"';?>>More than 5</option> </select> </div> <?php } else { ?> <div class="col-md-6" id="room_div"> <h5>Rooms <span>(optional)</span></h5> <select class="utf-chosen-select-single-item" name="room_no" > <option value="none" >----- Select an Option -----</option> <option value="1" <?php if($room_no == "1") echo 'selected="selected"';?>>1</option> <option value="2" <?php if($room_no == "2") echo 'selected="selected"';?>>2</option> <option value="3" <?php if($room_no == "3") echo 'selected="selected"';?>>3</option> <option value="4" <?php if($room_no == "4") echo 'selected="selected"';?>>4</option> <option value="5" <?php if($room_no == "5") echo 'selected="selected"';?>>5</option> <option value="More than 5" <?php if($room_no == "More than 5") echo 'selected="selected"';?>>More than 5</option> </select> </div> <?php } ?> </div> </div> <!-- Section / End --> <!-- Section --> <div class="utf-submit-page-inner-box"> <h3>Property Location</h3> <div class="content with-padding"> <div class="col-md-6"> <h5>Address <span style="color:red;">*</span></h5> <input type="text" placeholder="Address" name="prty_adrs" value="<?php echo $prty_adrs; ?>" > </div> <div class="col-md-6"> <h5>City Name <span style="color:red;">*</span></h5> <input type="text" placeholder="City Name" name="prty_city" value="<?php echo $prty_city; ?>" > </div> <div class="col-md-6"> <h5>State <span style="color:red;">*</span></h5> <input type="text" placeholder="State" name="prty_state" value="<?php echo $prty_state; ?>" > </div> <div class="col-md-6"> <h5>Zip-Code <span style="color:red;">*</span></h5> <input type="text" placeholder="000000" name="prty_zip" value="<?php echo $prty_zip; ?>" > </div> </div> </div> <!-- Section / End --> <!-- Section --> <div class="utf-submit-page-inner-box"> <h3>Property Information</h3> <div class="content with-padding"> <div class="col-md-12"> <h5>Property Description</h5> <textarea name="prty_desc" cols="20" rows="2" id="summary"><?php echo $prty_desc; ?></textarea> </div> <?php if($prty_type == "Land") { ?> <div class="col-md-12" id="type_prop"> <h5>Type of property <span style="color:red;">*</span></h5> <select class="utf-chosen-select-single-item" name="land_type"> <option value="none">----- Select an Option -----</option> <option value="Agricultural" <?php if($land_type == "Agricultural") echo 'selected="selected"';?>>Agricultural Land</option> <option value="Commercial" <?php if($land_type == "Commercial") echo 'selected="selected"';?>>Commercial Land</option> <option value="Residential" <?php if($land_type == "Residential") echo 'selected="selected"';?>>Residential Land</option> </select> </div> <?php } else { ?> <div class="col-md-12" id="type_prop" style="display: none;"> <h5>Type of property <span style="color:red;">*</span></h5> <select class="utf-chosen-select-single-item" name="land_type"> <option value="none">----- Select an Option -----</option> <option value="Agricultural" <?php if($land_type == "Agricultural") echo 'selected="selected"';?>>Agricultural Land</option> <option value="Commercial" <?php if($land_type == "Commercial") echo 'selected="selected"';?>>Commercial Land</option> <option value="Residential" <?php if($land_type == "Residential") echo 'selected="selected"';?>>Residential Land</option> </select> </div> <div class="col-md-4" id="type_prop1" style="display: none;"> <h5>Building Age</h5> <select class="utf-chosen-select-single-item" name="bldng_age" > <option value="none">----- Select an Option -----</option> <option value="0 - 1 Years" <?php if($bldng_age == "0 - 1 Years") echo 'selected="selected"';?>>0 - 1 Years</option> <option value="0 - 5 Years" <?php if($bldng_age == "0 - 5 Years") echo 'selected="selected"';?>>0 - 5 Years</option> <option value="0 - 10 Years" <?php if($bldng_age == "0 - 10 Years") echo 'selected="selected"';?>>0 - 10 Years</option> <option value="0 - 20 Years" <?php if($bldng_age == "0 - 20 Years") echo 'selected="selected"';?>>0 - 20 Years</option> <option value="0 - 50 Years" <?php if($bldng_age == "0 - 50 Years") echo 'selected="selected"';?>>0 - 50 Years</option> <option value="50 + Years" <?php if($bldng_age == "50 + Years") echo 'selected="selected"';?>>50 + Years</option> </select> </div> <div class="col-md-4" id="type_prop2" style="display: none;"> <h5>Bed Rooms</h5> <select class="utf-chosen-select-single-item" name="bed_rooms" > <option value="none">----- Select an Option -----</option> <option value="1" <?php if($bed_rooms == "1") echo 'selected="selected"';?>>1</option> <option value="2" <?php if($bed_rooms == "2") echo 'selected="selected"';?>>2</option> <option value="3" <?php if($bed_rooms == "3") echo 'selected="selected"';?>>3</option> <option value="4" <?php if($bed_rooms == "4") echo 'selected="selected"';?>>4</option> <option value="5" <?php if($bed_rooms == "5") echo 'selected="selected"';?>>5</option> <option value="More than 5" <?php if($bed_rooms == "More than 5") echo 'selected="selected"';?>>More than 5</option> </select> </div> <div class="col-md-4" id="type_prop3" style="display: none;"> <h5>Bath Rooms</h5> <select class="utf-chosen-select-single-item" name="bath_rooms"> <option value="none">----- Select an Option -----</option> <option value="1" <?php if($bath_rooms == "1") echo 'selected="selected"';?>>1</option> <option value="2" <?php if($bath_rooms == "2") echo 'selected="selected"';?>>2</option> <option value="3" <?php if($bath_rooms == "3") echo 'selected="selected"';?>>3</option> <option value="4" <?php if($bath_rooms == "4") echo 'selected="selected"';?>>4</option> <option value="5" <?php if($bath_rooms == "5") echo 'selected="selected"';?>>5</option> <option value="More than 5" <?php if($bath_rooms == "More than 5") echo 'selected="selected"';?>>More than 5</option> </select> </div> <?php } ?> </div> </div> <!-- Section / End --> <!-- Section --> <div class="utf-submit-page-inner-box"> <h3>Property Contact Details</h3> <div class="content with-padding"> <div class="col-md-4"> <h5>Full Name <span style="color:red;">*</span></h5> <input type="text" placeholder="Name" value="<?php echo $cont_name; ?>" name="cont_name"> </div> <div class="col-md-4"> <h5>Email Address <span style="color:red;">*</span></h5> <input type="text" placeholder="Email Address" value="<?php echo $cont_email; ?>" name="cont_email"> </div> <div class="col-md-4"> <h5>Phone Number <span style="color:red;">*</span></h5> <input type="text" placeholder="Phone Number" value="<?php echo $cont_phone; ?>" name="cont_phone"> </div> </div> </div> <div class="row"> <div class="col-md-12"> <button class="utf-centered-button button margin-top-0 margin-bottom-20" type="submit" name="add_submit" > NEXT <i class="fa fa-long-arrow-right"></i></button> </div> </div> </div> </form> <script type="text/javascript"> function Checkinsurance(select){ if(select.value=='Land') { document.getElementById('room_div').style.display = "none"; document.getElementById('type_prop').style.display = "block"; document.getElementById('type_prop1').style.display = "none"; document.getElementById('type_prop2').style.display = "none"; document.getElementById('type_prop3').style.display = "none"; document.getElementById('type_prop4').style.display = "none"; } else{ document.getElementById('room_div').style.display = "block"; document.getElementById('type_prop').style.display = "none"; document.getElementById('type_prop1').style.display = "block"; document.getElementById('type_prop2').style.display = "block"; document.getElementById('type_prop3').style.display = "block"; document.getElementById('type_prop4').style.display = "block"; } } </script> <script> function validateForm() { var x = document.forms["myForm"]["prty_title"].value; if (x == "" || x == null) { document.getElementById('form_alert').innerHTML = "* Please Enter Property Title !"; document.myForm.prty_title.focus(); document.getElementById('form_alert').style.display = "block"; return false; } var x = document.forms["myForm"]["prty_sts"].value; if (x == "none") { document.getElementById('form_alert').innerHTML = "* Please Select Property Status !"; document.myForm.prty_sts.focus(); document.getElementById('form_alert').style.display = "block"; return false; } var x = document.forms["myForm"]["prty_type"].value; if (x == "none") { document.getElementById('form_alert').innerHTML = "* Please Select Property Type !"; document.myForm.prty_type.focus(); document.getElementById('form_alert').style.display = "block"; return false; } var x = document.forms["myForm"]["prty_price"].value; if (x == "" || x == null) { document.getElementById('form_alert').innerHTML = "* Please Enter Property Price !"; document.myForm.prty_price.focus(); document.getElementById('form_alert').style.display = "block"; return false; } var x = document.forms["myForm"]["prty_area"].value; if (x == "" || x == null) { document.getElementById('form_alert').innerHTML = "* Please Enter Total Area !"; document.myForm.prty_area.focus(); document.getElementById('form_alert').style.display = "block"; return false; } var x = document.forms["myForm"]["area_unit"].value; if (x == "none") { document.getElementById('form_alert').innerHTML = "* Please Select Area Unit !"; document.myForm.area_unit.focus(); document.getElementById('form_alert').style.display = "block"; return false; } var x = document.forms["myForm"]["per_area"].value; if (x == "" || x == null) { document.getElementById('form_alert').innerHTML = "* Please Enter Area Per Price !"; document.myForm.per_area.focus(); document.getElementById('form_alert').style.display = "block"; return false; } var x = document.forms["myForm"]["prty_adrs"].value; if (x == "" || x == null) { document.getElementById('form_alert').innerHTML = "* Please Enter Property Address !"; document.myForm.prty_adrs.focus(); document.getElementById('form_alert').style.display = "block"; return false; } var x = document.forms["myForm"]["prty_city"].value; if (x == "" || x == null) { document.getElementById('form_alert').innerHTML = "* Please Enter City Name !"; document.myForm.prty_city.focus(); document.getElementById('form_alert').style.display = "block"; return false; } var x = document.forms["myForm"]["prty_state"].value; if (x == "" || x == null) { document.getElementById('form_alert').innerHTML = "* Please Enter State Name !"; document.myForm.prty_state.focus(); document.getElementById('form_alert').style.display = "block"; return false; } var x = document.forms["myForm"]["prty_zip"].value; if (x == "" || x == null) { document.getElementById('form_alert').innerHTML = "* Please Enter Zip-Code !"; document.myForm.prty_zip.focus(); document.getElementById('form_alert').style.display = "block"; return false; } var x = document.forms["myForm"]["cont_name"].value; if (x == "" || x == null) { document.getElementById('form_alert').innerHTML = "* Please Enter Full Name !"; document.myForm.cont_name.focus(); document.getElementById('form_alert').style.display = "block"; return false; } var x = document.forms["myForm"]["cont_email"].value; if (x == "" || x == null) { document.getElementById('form_alert').innerHTML = "* Please Enter Email Address !"; document.myForm.cont_email.focus(); document.getElementById('form_alert').style.display = "block"; return false; } var x = document.forms["myForm"]["cont_phone"].value; if (x == "" || x == null) { document.getElementById('form_alert').innerHTML = "* Please Enter Phone Number !"; document.myForm.cont_phone.focus(); document.getElementById('form_alert').style.display = "block"; return false; } } </script> </div> </div> </div> <!-- Footer --> <?php include 'includes/footer.php'; ?> <!-- Footer / End --> <!-- Back To Top Button --> <div id="backtotop"><a href="#"></a></div> </div> <!-- Wrapper / End --> <!-- Scripts --> <script src="scripts/jquery-3.3.1.min.js"></script> <script src="scripts/bootstrap.min.js"></script> <script src="scripts/chosen.min.js"></script> <script src="scripts/magnific-popup.min.js"></script> <script src="scripts/owl.carousel.min.js"></script> <script src="scripts/rangeSlider.js"></script> <script src="scripts/sticky-kit.min.js"></script> <script src="scripts/slick.min.js"></script> <script src="scripts/masonry.min.js"></script> <script src="scripts/mmenu.min.js"></script> <script src="scripts/tooltips.min.js"></script> <script src="scripts/custom_jquery.js"></script> <script src="scripts/dropzone.js"></script> <script> $(".dropzone").dropzone({ dictDefaultMessage: "<i class='sl sl-icon-cloud-upload'></i> Drag & Drop Files Here", }); </script> </body> </html>