Server IP : 103.53.40.154 / Your IP : 3.17.154.144 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home2/ppcad7no/uttamnagarproperties.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include("uttam-header.php");?> <?php if(empty($_SESSION['RID'])){ header("lacation:index.php"); exit; } $proprtyID = base64_decode($_REQUEST['propertyID']); $proprtyPARAM = base64_decode($_REQUEST['param']); /******* SUBMIT PROPERTY START ********/ if(isset($_POST['Post_Your_Property'])){ @extract($_POST); $fetr = $_POST['features']; $posted_properties_features_list = implode(",",$fetr); $property_url=ami_crete_url($posted_properties_title); $urlDupli = db_scalar("select count(*) from tbl_posted_properties where 1 and posted_properties_url='$property_url'"); if($urlDupli > 0){ $property_url = $property_url.$_SESSION['RID']; }else{ $property_url = $property_url; } $proTYPE = $_POST['type']; if( strpos($proTYPE, '~') !== false ){ $propertYPE = explode('~',$proTYPE); $posted_properties_type_parent = $propertYPE[0]; $posted_properties_type_child = $propertYPE[1]; }else{ $posted_properties_type_parent = $proTYPE; $posted_properties_type_child = ""; } $proLOC = $_POST['city']; if( strpos($proLOC, '~') !== false ){ $propertYLOC = explode('~',$proLOC); $posted_properties_loc_parent = $propertYLOC[0]; $posted_properties_loc_child = $propertYLOC[1]; }else{ $posted_properties_loc_parent = $proLOC; $posted_properties_loc_child = ""; } $sql = "insert into tbl_posted_properties set posted_properties_user_id='".$_SESSION['RID']."', posted_properties_project='$posted_properties_project', posted_properties_title='$posted_properties_title', posted_properties_address='$posted_properties_address', posted_properties_description='$posted_properties_description', posted_properties_type_parent='$posted_properties_type_parent', posted_properties_type_child='$posted_properties_type_child', posted_properties_loc_parent='$posted_properties_loc_parent', posted_properties_loc_child='$posted_properties_loc_child', posted_properties_rent_sale='$posted_properties_rent_sale', posted_properties_bedrooms='$posted_properties_bedrooms', posted_properties_bathrooms='$posted_properties_bathrooms', posted_properties_garage='$posted_properties_garage', posted_properties_price='$posted_properties_price', posted_properties_price_postfix='$posted_properties_price_postfix', posted_properties_area='$posted_properties_area', posted_properties_area_postfix='$posted_properties_area_postfix', posted_properties_property_id='$posted_properties_property_id', posted_properties_video_url='$posted_properties_video_url', posted_properties_display_info='$agent_display_option', posted_properties_url='$property_url', posted_properties_furnishing='$posted_properties_furnishing', posted_properties_landmark='$posted_properties_landmark', posted_properties_facing='$posted_properties_facing', posted_properties_overlooking='$posted_properties_overlooking', posted_properties_flooring='$posted_properties_flooring', posted_properties_unit_avail='$posted_properties_unit_avail', posted_properties_water_avail='$posted_properties_water_avail', posted_properties_electric_avail='$posted_properties_electric_avail', posted_properties_features_list='$posted_properties_features_list', posted_properties_add_date=now(), posted_properties_status='Pending'"; db_query($sql); $insert_id=mysqli_insert_id(); function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) - $i; $ext = substr($str,$i+1,$l); return $ext; } for ($i = 0; $i < count($_FILES['file']['name']); $i++) { $image =$_FILES["file"]["name"][$i]; $uploadedfile = $_FILES['file']['tmp_name'][$i]; if ($image){ //**** Change Duplicate Image name Start Here****// $ext = substr($image, strrpos($image, ".")); $imageDupli = db_scalar("select count(*) from tbl_properties_image where 1 and properties_image_name='$image'"); if($imageDupli > 0){ $image = basename($image, $ext); $image = basename($image, $ext) . rand(1,1000) . $ext; }else{ $image = $image; } //**** Change Duplicate Image name End Here****// $filename = stripslashes($_FILES['file']['name'][$i]); $extension = getExtension($filename); $extension = strtolower($extension); $size=filesize($_FILES['file']['tmp_name'][$i]); if($extension=="jpg" || $extension=="jpeg" ){ $uploadedfile = $_FILES['file']['tmp_name'][$i]; $src = imagecreatefromjpeg($uploadedfile); } else if($extension=="png") { $uploadedfile = $_FILES['file']['tmp_name'][$i]; $src = imagecreatefrompng($uploadedfile); } else { $src = imagecreatefromgif($uploadedfile); } list($width,$height)=getimagesize($uploadedfile); $newwidth11=850; $newheight11=570; $tmp11=imagecreatetruecolor($newwidth11,$newheight11); imagecopyresampled($tmp11,$src,0,0,0,0,$newwidth11,$newheight11,$width,$height); $filename11 = "property_image/". $image; imagejpeg($tmp11,$filename11,100); imagedestroy($src); imagedestroy($tmp11); $imgsql = "insert into tbl_properties_image set properties_image_property_id='$insert_id', properties_image_status='Active', properties_image_name='$image', properties_image_add_date=now()"; db_query($imgsql); } } //*************** INSERT NEW CATEGORY END ************************// ?> <script type="text/javascript"> $(document).ready(function(e) { $("#AddSucc").show("slow"); }); </script> <? } /******* SUBMIT PROPERTY END ********/ /******* DELETE PROPERTY IMAGE START ********/ $delImageID = $_REQUEST['delID']; if(!empty($delImageID)){ $imageToDel=db_scalar("select properties_image_name from tbl_properties_image where 1 and properties_image_id='$delImageID'"); @unlink('property_image/'.$imageToDel); $sqldel="delete from tbl_properties_image where 1 and properties_image_id='$delImageID'"; db_query($sqldel); header("Location: ".$_SERVER['HTTP_REFERER']); exit; } /******* DELETE PROPERTY IMAGE END ********/ /******* UPDATE PROPERTY START ********/ if(isset($_POST['Update_Your_Property'])){ @extract($_POST); $fetr = $_POST['features']; $posted_properties_features_list = implode(",",$fetr); $property_url=ami_crete_url($posted_properties_title); $urlDupli = db_scalar("select count(*) from tbl_posted_properties where 1 and posted_properties_url='$property_url' and posted_properties_id!='$proprtyID'"); if($urlDupli > 0){ $property_url = $property_url.$_SESSION['RID']; }else{ $property_url = $property_url; } $proTYPE = $_POST['type']; if( strpos($proTYPE, '~') !== false ){ $propertYPE = explode('~',$proTYPE); $posted_properties_type_parent = $propertYPE[0]; $posted_properties_type_child = $propertYPE[1]; }else{ $posted_properties_type_parent = $proTYPE; $posted_properties_type_child = ""; } $proLOC = $_POST['city']; if( strpos($proLOC, '~') !== false ){ $propertYLOC = explode('~',$proLOC); $posted_properties_loc_parent = $propertYLOC[0]; $posted_properties_loc_child = $propertYLOC[1]; }else{ $posted_properties_loc_parent = $proLOC; $posted_properties_loc_child = ""; } $sql = "update tbl_posted_properties set posted_properties_project='$posted_properties_project', posted_properties_title='$posted_properties_title', posted_properties_address='$posted_properties_address', posted_properties_description='$posted_properties_description', posted_properties_type_parent='$posted_properties_type_parent', posted_properties_type_child='$posted_properties_type_child', posted_properties_loc_parent='$posted_properties_loc_parent', posted_properties_loc_child='$posted_properties_loc_child', posted_properties_rent_sale='$posted_properties_rent_sale', posted_properties_bedrooms='$posted_properties_bedrooms', posted_properties_bathrooms='$posted_properties_bathrooms', posted_properties_garage='$posted_properties_garage', posted_properties_price='$posted_properties_price', posted_properties_price_postfix='$posted_properties_price_postfix', posted_properties_area='$posted_properties_area', posted_properties_area_postfix='$posted_properties_area_postfix', posted_properties_property_id='$posted_properties_property_id', posted_properties_video_url='$posted_properties_video_url', posted_properties_display_info='$agent_display_option', posted_properties_url='$property_url', posted_properties_furnishing='$posted_properties_furnishing', posted_properties_landmark='$posted_properties_landmark', posted_properties_facing='$posted_properties_facing', posted_properties_overlooking='$posted_properties_overlooking', posted_properties_flooring='$posted_properties_flooring', posted_properties_unit_avail='$posted_properties_unit_avail', posted_properties_water_avail='$posted_properties_water_avail', posted_properties_electric_avail='$posted_properties_electric_avail', posted_properties_features_list='$posted_properties_features_list', posted_properties_update_date=now(), posted_properties_status='Pending' where 1 and posted_properties_id='$proprtyID'"; db_query($sql); function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = strlen($str) - $i; $ext = substr($str,$i+1,$l); return $ext; } $countImage = count($_FILES['file']['name']); for ($i = 0; $i < $countImage; $i++) { $image =$_FILES["file"]["name"][$i]; $uploadedfile = $_FILES['file']['tmp_name'][$i]; if ($image){ $maxImageCnt = db_scalar("select count(*) from tbl_properties_image where 1 and properties_image_property_id='$proprtyID'"); if($maxImageCnt<=3){ //**** Change Duplicate Image name Start Here****// $ext = substr($image, strrpos($image, ".")); $imageDupli = db_scalar("select count(*) from tbl_properties_image where 1 and properties_image_name='$image'"); if($imageDupli > 0){ $image = basename($image, $ext); $image = basename($image, $ext) . rand(1,1000) . $ext; }else{ $image = $image; } //**** Change Duplicate Image name End Here****// $filename = stripslashes($_FILES['file']['name'][$i]); $extension = getExtension($filename); $extension = strtolower($extension); $size=filesize($_FILES['file']['tmp_name'][$i]); if($extension=="jpg" || $extension=="jpeg" ){ $uploadedfile = $_FILES['file']['tmp_name'][$i]; $src = imagecreatefromjpeg($uploadedfile); } else if($extension=="png") { $uploadedfile = $_FILES['file']['tmp_name'][$i]; $src = imagecreatefrompng($uploadedfile); } else { $src = imagecreatefromgif($uploadedfile); } list($width,$height)=getimagesize($uploadedfile); $newwidth11=850; $newheight11=570; $tmp11=imagecreatetruecolor($newwidth11,$newheight11); imagecopyresampled($tmp11,$src,0,0,0,0,$newwidth11,$newheight11,$width,$height); $filename11 = "property_image/". $image; imagejpeg($tmp11,$filename11,100); imagedestroy($src); imagedestroy($tmp11); $imgsql = "insert into tbl_properties_image set properties_image_property_id='$proprtyID', properties_image_status='Active', properties_image_name='$image', properties_image_add_date=now()"; db_query($imgsql); }else{ ?> <script type="text/javascript"> $(document).ready(function(e) { $("#AddErr").show("slow"); }); </script> <? } } } //*************** INSERT NEW CATEGORY END ************************// ?> <script type="text/javascript"> $(document).ready(function(e) { $("#AddSucc").show("slow"); }); </script> <? } /******* UPDATE PROPERTY END ********/ $prptSql = db_query("select * from tbl_posted_properties where 1 and posted_properties_id='$proprtyID'"); if(mysqli_num_rows($prptSql)>0){ $PRODATA = mysqli_fetch_array($prptSql); } ?> <div class="page-head " style="background: url(images/banner.jpg) #494c53 no-repeat center top; background-size: cover;"> <div class="container"> <div class="page-head-content"> <h1 class="page-title"><span>Submit Property</span></h1> </div> </div> </div> <!-- .page-head --> <div id="content-wrapper" class="site-content-wrapper site-pages"> <div id="content" class="site-content layout-boxed"> <div class="row"> <div class="col-sm-12"> <div id="AddSucc" style="display:none; color:#090; text-align:center; font-size:16px;"><strong>Success ! Property posted successfully.</strong> </div> </div> </div> <div class="row"> <div class="col-sm-12"> <div id="AddErr" style="display:none; color:#F00; text-align:center; font-size:16px;"><strong>Error ! Sorry you can upload only 4 property images.</strong> </div> </div> </div> <div class="container"> <div class="row"> <div class="col-xs-12 site-main-content"> <main id="main" class="site-main"> <div class="white-box submit-property-box"> <form id="submit-property-form" class="submit-form" enctype="multipart/form-data" method="post" onSubmit="return PropertyValidation();"> <div class="row"> <div class="col-md-12"> <div class="form-option"> <label for="posted_properties_project" class="amifancytext">Project Name</label> <input type="text" name="posted_properties_project" id="posted_properties_project" placeholder="Dream Home" value="<?=$PRODATA['posted_properties_project']?>"> </div> </div> </div> <!-- .row --> <div class="row"> <div class="col-md-6"> <div class="form-option"> <label for="posted_properties_title" class="amifancytext">Property Title</label> <input id="posted_properties_title" name="posted_properties_title" type="text" placeholder="2 BHK Residential Apartments" title="* Please provide property title!" value="<?=$PRODATA['posted_properties_title']?>"> </div> </div> <div class="col-md-6"> <div class="form-option"> <label for="posted_properties_address" class="amifancytext">Address</label> <input type="text" name="posted_properties_address" id="posted_properties_address" value="<?=$PRODATA['posted_properties_address']?>" title="* Please provide a property address!"> </div> </div> <div class="col-md-12"> <div class="form-option"> <label for="posted_properties_description" class="amifancytext">Property Description</label> <textarea name="posted_properties_description" id="posted_properties_description" style="height:140px;"><?=$PRODATA['posted_properties_description']?></textarea> </div> </div> </div> <!-- .row --> <div class="row"> <div class="col-md-4"> <div class="form-option"> <label for="type" class="amifancytext">Type</label> <select name="type" id="type" class="search-select valid" aria-invalid="false"> <option selected="selected" value="">Select one</option> <?php $proTypeSql = db_query("select * from tbl_property_type where 1 and property_type_pid='0'"); if(mysqli_num_rows($proTypeSql)>0){ while($TYPEDATA = mysqli_fetch_array($proTypeSql)){ ?> <option value="<?=$TYPEDATA['property_type_name']?>" <?php if($PRODATA['posted_properties_type_parent']==$TYPEDATA['property_type_name']){ ?> selected <? } ?>> <?=$TYPEDATA['property_type_name']?></option> <?php $proSubTypeSql = db_query("select * from tbl_property_type where 1 and property_type_pid='$TYPEDATA[property_type_id]'"); if(mysqli_num_rows($proSubTypeSql)>0){ while($SUBTYPEDATA = mysqli_fetch_array($proSubTypeSql)){ ?> <option value="<?=$TYPEDATA['property_type_name']?>~<?=$SUBTYPEDATA['property_type_name']?>" <?php if($PRODATA['posted_properties_type_child']==$SUBTYPEDATA['property_type_name']){ ?> selected <? } ?>>- <?=$SUBTYPEDATA['property_type_name']?></option> <? }} ?> <? }} ?> </select> </div> </div> <div class="col-md-4"> <div class="form-option"> <label for="city" class="amifancytext">Location</label> <select name="city" id="city" class="search-select"> <option selected="selected" value="">Select one</option> <?php $proLocSql = db_query("select * from tbl_location where 1 and location_pid='0'"); if(mysqli_num_rows($proLocSql)>0){ while($LOCDATA = mysqli_fetch_array($proLocSql)){ ?> <option value="<?=$LOCDATA['location_name']?>" <?php if($PRODATA['posted_properties_loc_parent']==$LOCDATA['location_name']){ ?> selected <? } ?>> <?=$LOCDATA['location_name']?></option> <?php $proSubLocSql = db_query("select * from tbl_location where 1 and location_pid='$LOCDATA[location_id]'"); if(mysqli_num_rows($proSubLocSql)>0){ while($SUBLOCDATA = mysqli_fetch_array($proSubLocSql)){ ?> <option value="<?=$LOCDATA['location_name']?>~<?=$SUBLOCDATA['location_name']?>" <?php if($PRODATA['posted_properties_loc_child']==$SUBLOCDATA['location_name']){ ?> selected <? } ?>>- <?=$SUBLOCDATA['location_name']?></option> <? }} ?> <? }} ?> </select> </div> </div> <div class="col-md-4"> <div class="form-option"> <label for="posted_properties_rent_sale" class="amifancytext">Status</label> <select name="posted_properties_rent_sale" id="posted_properties_rent_sale" class="search-select"> <option selected="selected" value="">Select one</option> <option value="For Rent" <?php if($PRODATA['posted_properties_rent_sale']=='For Rent'){ ?> selected <? } ?>> For Rent</option> <option value="For Sale" <?php if($PRODATA['posted_properties_rent_sale']=='For Sale'){ ?> selected <? } ?>> For Sale</option> <option value="For Lease" <?php if($PRODATA['posted_properties_rent_sale']=='For Lease'){ ?> selected <? } ?>> For Lease</option> </select> </div> </div> </div> <!-- .row --> <div class="row"> <div class="col-md-4"> <div class="form-option"> <label for="posted_properties_bedrooms" class="amifancytext">Bedrooms</label> <input id="posted_properties_bedrooms" name="posted_properties_bedrooms" value="<?=$PRODATA['posted_properties_bedrooms']?>" maxlength="2" type="text" title="* Only numbers allowed!"> </div> </div> <div class="col-md-4"> <div class="form-option"> <label for="posted_properties_bathrooms" class="amifancytext">Bathrooms</label> <input id="posted_properties_bathrooms" name="posted_properties_bathrooms" value="<?=$PRODATA['posted_properties_bathrooms']?>" maxlength="2" type="text" title="* Only numbers allowed!"> </div> </div> <div class="col-md-4"> <div class="form-option"> <label for="posted_properties_garage" class="amifancytext">Parking</label> <select name="posted_properties_garage" id="posted_properties_garage"> <option selected="selected" value="Yes">Yes</option> <option value="No" <?php if($PRODATA['posted_properties_garage']=='No'){ ?> selected <? } ?>>No</option> </select> </div> </div> </div> <!-- .row --> <div class="row"> <div class="col-md-4"> <div class="form-option"> <label for="posted_properties_price" class="amifancytext">Sale OR Rent Price</label> <input id="posted_properties_price" value="<?=$PRODATA['posted_properties_price']?>" name="posted_properties_price" type="text" title="* Only numbers allowed!"> </div> </div> <div class="col-md-4"> <div class="form-option"> <label for="posted_properties_price_postfix" class="amifancytext">Price Postfix Text</label> <select name="posted_properties_price_postfix" id="posted_properties_price_postfix" class="search-select"> <option selected="selected" value="">Select one</option> <option value="Thousand" <?php if($PRODATA['posted_properties_price_postfix']=='Thousand'){ ?> selected <? } ?>> Thousand</option> <option value="Lakhs" <?php if($PRODATA['posted_properties_price_postfix']=='Lakhs'){ ?> selected <? } ?>> Lakhs</option> <option value="Crore" <?php if($PRODATA['posted_properties_price_postfix']=='Crore'){ ?> selected <? } ?>> Crore</option> </select> </div> </div> <div class="col-md-4"> <div class="form-option"> <label for="posted_properties_area" class="amifancytext">Area</label> <input id="posted_properties_area" name="posted_properties_area" value="<?=$PRODATA['posted_properties_area']?>" type="text" title="* Only numbers allowed!"> </div> </div> </div> <!-- .row --> <div class="row"> <div class="col-md-4"> <div class="form-option"> <label for="posted_properties_area_postfix" class="amifancytext">Area Postfix Text <small style="font-size:10px;">(SqFt,SqMtr etc)</small></label> <input id="posted_properties_area_postfix" name="posted_properties_area_postfix" type="text" value="<?php if($PRODATA['posted_properties_area_postfix']==''){ ?>SqFt<? }else{ ?><?=$PRODATA['posted_properties_area_postfix']?><? } ?>"> </div> </div> <div class="col-md-4"> <div class="form-option"> <label for="posted_properties_property_id" class="amifancytext">Property ID</label> <input id="posted_properties_property_id" name="posted_properties_property_id" value="<?=$PRODATA['posted_properties_property_id']?>" type="text" title="Property ID"> </div> </div> <div class="col-md-4"> <div class="form-option"> <label for="posted_properties_video_url" class="amifancytext">Virtual Tour Video URL</label> <input id="posted_properties_video_url" value="<?=$PRODATA['posted_properties_video_url']?>" name="posted_properties_video_url" type="text"> </div> </div> </div> <!-- .row --> <div class="row container-row"> <div class="col-lg-8"> <div class="form-option"> <?php if($proprtyID!=''){ ?> <div class="row"> <label class="fancy-title">Current Image</label> <?php $sql_fetch = db_query("select * from tbl_properties_image where 1 and properties_image_property_id='".$PRODATA['posted_properties_id']."'"); $cntDATA=mysqli_num_rows($sql_fetch); if($cntDATA > 0){ while($DATA = mysqli_fetch_array($sql_fetch)) { @extract($DATA); ?> <div class="col-md-3"> <img class="img-responsive" src="property_image/<?=$DATA['properties_image_name']?>" alt="Property Image"> <div class="text-center" style="margin-top:10px;"><strong><a href="submit-property.php?propertyID=<?=base64_encode($proprtyID);?>¶m=<?=base64_encode($proprtyPARAM);?>&delID=<?=$DATA['properties_image_id']?>" class="text-danger"><i class="fa fa-trash-o"></i> Delete</a></strong></div> </div> <? }} ?> </div> <div class="clearfix"></div> <? } ?> <div class="row"> <div class="col-md-3"> <img class="img-responsive" src="images/property-demo.jpg" alt="Property Image" id="1_property"> <div align="center" style="margin-top:10px;"><input type="file" style="display:none;" name="file[]" id="file1" class="inputfile inputfile-1" onchange="readURL(this,'1_property');" /> <label for="file1"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" viewBox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"/></svg> <span>Choose a file…</span></label></div> </div> <div class="col-md-3"> <img class="img-responsive" src="images/property-demo.jpg" alt="Property Image" id="2_property"> <div align="center" style="margin-top:10px;"><input type="file" style="display:none;" name="file[]" id="file2" class="inputfile inputfile-1" onchange="readURL(this,'2_property');" /> <label for="file2"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" viewBox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"/></svg> <span>Choose a file…</span></label></div> </div> <div class="col-md-3"> <img class="img-responsive" src="images/property-demo.jpg" alt="Property Image" id="3_property"> <div align="center" style="margin-top:10px;"><input type="file" style="display:none;" name="file[]" id="file3" class="inputfile inputfile-1" onchange="readURL(this,'3_property');" /> <label for="file3"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" viewBox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"/></svg> <span>Choose a file…</span></label></div> </div> <div class="col-md-3"> <img class="img-responsive" src="images/property-demo.jpg" alt="Property Image" id="4_property"> <div align="center" style="margin-top:10px;"><input type="file" style="display:none;" name="file[]" id="file4" class="inputfile inputfile-1" onchange="readURL(this,'4_property');" /> <label for="file4"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="17" viewBox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"/></svg> <span>Choose a file…</span></label></div> </div> </div> <ul class="field-description list-unstyled"> <li><span>*</span>An image should have minimum width of 850px and minimum height of 600px.</li> <!--<li><span>*</span>You can mark an image as featured by clicking the star icon, Otherwise first image will be considered featured image.</li>--> </ul> <div id="plupload-container"></div> <div id="errors-log"></div> </div> </div> <div class="col-lg-4"> <div class="form-option"> <label class="fancy-title">What to display in agent information box ?</label> <ul class="agent-options list-unstyled"> <li> <span class="radio-field"> <input id="agent_option_none" type="radio" name="agent_display_option" value="No" checked=""> <label for="agent_option_none">None</label> </span><small>( No information will be displayed )</small> </li> <li> <span class="radio-field"> <input id="agent_option_profile" type="radio" name="agent_display_option" value="Yes" <?php if($PRODATA['posted_properties_display_info']=='Yes'){ ?> checked <? } ?>> <label for="agent_option_profile">My Profile Information</label> </span> <small> <a href="my-profile.php" target="_blank">( Edit Profile Information )</a> </small> </li> </ul> </div> </div> </div> <!-- .row --> <div class="row container-row"> <div class="col-lg-12"> <label class="fancy-title">Additional Information</label> <div class="row"> <div class="col-md-4"> <div class="form-option"> <label for="posted_properties_furnishing" class="amifancytext">Furnishing</label> <input id="posted_properties_furnishing" name="posted_properties_furnishing" type="text" title="* Please provide furnishing detail!" value="<?=$PRODATA['posted_properties_furnishing']?>"> </div> </div> <div class="col-md-4"> <div class="form-option"> <label for="posted_properties_landmark" class="amifancytext">Landmarks</label> <input type="text" name="posted_properties_landmark" id="posted_properties_landmark" value="<?=$PRODATA['posted_properties_landmark']?>" title="* Please provide a property landmark!"> </div> </div> <div class="col-md-4"> <div class="form-option"> <label for="posted_properties_facing" class="amifancytext">Facing</label> <select name="posted_properties_facing" id="posted_properties_facing" class="search-select"> <option selected="selected" value="">Select one</option> <option value="East" <?php if($PRODATA['posted_properties_facing']=='East'){ ?> selected <? } ?>>East</option> <option value="West" <?php if($PRODATA['posted_properties_facing']=='West'){ ?> selected <? } ?>>West</option> <option value="North" <?php if($PRODATA['posted_properties_facing']=='North'){ ?> selected <? } ?>>North</option> <option value="South" <?php if($PRODATA['posted_properties_facing']=='South'){ ?> selected <? } ?>>South</option> </select> </div> </div> <div class="col-md-4"> <div class="form-option"> <label for="posted_properties_overlooking" class="amifancytext">Overlooking</label> <select name="posted_properties_overlooking" id="posted_properties_overlooking" class="search-select"> <option selected="selected" value="">Select one</option> <option value="Main Road" <?php if($PRODATA['posted_properties_overlooking']=='Main Road'){ ?> selected <? } ?>>Main Road</option> <option value="Within 1 Kilometer From Main Road" <?php if($PRODATA['posted_properties_overlooking']=='Within 1 Kilometer From Main Road'){ ?> selected <? } ?>>Within 1 Kilometer From Main Road</option> <option value="Within 5 Kilometer From Main Road" <?php if($PRODATA['posted_properties_overlooking']=='Within 5 Kilometer From Main Road'){ ?> selected <? } ?>>Within 5 Kilometer From Main Road</option> </select> </div> </div> <div class="col-md-4"> <div class="form-option"> <label for="posted_properties_flooring" class="amifancytext">Flooring</label> <input type="text" name="posted_properties_flooring" id="posted_properties_flooring" value="<?=$PRODATA['posted_properties_flooring']?>" title="* Please provide a property flooring!"> </div> </div> <div class="col-md-4"> <div class="form-option"> <label for="posted_properties_unit_avail" class="amifancytext">Units Available</label> <input type="text" name="posted_properties_unit_avail" id="posted_properties_unit_avail" value="<?=$PRODATA['posted_properties_unit_avail']?>" title="* Please provide no of unit available!"> </div> </div> <div class="col-md-4"> <div class="form-option"> <label for="posted_properties_water_avail" class="amifancytext">Water Availability</label> <input type="text" name="posted_properties_water_avail" id="posted_properties_water_avail" value="<?=$PRODATA['posted_properties_water_avail']?>" title="* Please provide water availability!"> </div> </div> <div class="col-md-4"> <div class="form-option"> <label for="posted_properties_electric_avail" class="amifancytext">Status of Electricity</label> <input type="text" name="posted_properties_electric_avail" id="posted_properties_electric_avail" value="<?=$PRODATA['posted_properties_electric_avail']?>" title="* Please provide electric availability!"> </div> </div> </div> </div> </div> <?php $posted_properties_features_list = explode(',',$PRODATA['posted_properties_features_list']); ?> <div class="row container-row"> <div class="col-lg-12"> <div class="form-option"> <label class="fancy-title">Features</label> <ul class="features-checkboxes-wrapper list-unstyled clearfix"> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-16" value="Cafeteria/Food Court" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Cafeteria/Food Court"){?> checked="checked" <? } }?>><label for="feature-16">Cafeteria/Food Court</label></span> </li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-17" value="Bar/Lounge" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Bar/Lounge"){?> checked="checked" <? } }?>><label for="feature-17">Bar/Lounge</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-19" value="Security" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Security"){?> checked="checked" <? } }?>><label for="feature-19">Security</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-20" value="Park" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Park"){?> checked="checked" <? } }?>><label for="feature-20">Park</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-21" value="Reserved Parking" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Reserved Parking"){?> checked="checked" <? } }?>><label for="feature-21">Reserved Parking</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-24" value="Visitor Parking" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Visitor Parking"){?> checked="checked" <? } }?>><label for="feature-24">Visitor Parking</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-25" value="Intercom Facility" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Intercom Facility"){?> checked="checked" <? } }?>><label for="feature-25">Intercom Facility</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-26" value="Banquet Hall" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Banquet Hall"){?> checked="checked" <? } }?>><label for="feature-26">Banquet Hall</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-27" value="Gymnasium" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Gymnasium"){?> checked="checked" <? } }?>><label for="feature-27">Gymnasium</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-28" value="DTH Television Facility" <? foreach($posted_properties_features_list as $key=>$value){if($value=="DTH Television Facility"){?> checked="checked" <? } }?>><label for="feature-28">DTH Television Facility</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-31" value="Laundry Service" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Laundry Service"){?> checked="checked" <? } }?>><label for="feature-31">Laundry Service</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-32" value="Rain Water Harvesting" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Rain Water Harvesting"){?> checked="checked" <? } }?>><label for="feature-32">Rain Water Harvesting</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-33" value="RO Water System" <? foreach($posted_properties_features_list as $key=>$value){if($value=="RO Water System"){?> checked="checked" <? } }?>><label for="feature-33">RO Water System</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-34" value="Water Storage" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Water Storage"){?> checked="checked" <? } }?>><label for="feature-34">Water Storage</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-35" value="Air Conditioned" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Air Conditioned"){?> checked="checked" <? } }?>><label for="feature-35">Air Conditioned</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-36" value="Vaastu Compliant" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Vaastu Compliant"){?> checked="checked" <? } }?>><label for="feature-36">Vaastu Compliant</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-38" value="Wi-Fi Connectivity" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Wi-Fi Connectivity"){?> checked="checked" <? } }?>><label for="feature-38">Wi-Fi Connectivity</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-44" value="Waste Disposal" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Waste Disposal"){?> checked="checked" <? } }?>><label for="feature-44">Waste Disposal</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-45" value="Power Back Up" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Power Back Up"){?> checked="checked" <? } }?>><label for="feature-45">Power Back Up</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-46" value="Swimming Pool" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Swimming Pool"){?> checked="checked" <? } }?>><label for="feature-46">Swimming Pool</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-47" value="Club House" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Club House"){?> checked="checked" <? } }?>><label for="feature-47">Club House</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-48" value="Lift" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Lift"){?> checked="checked" <? } }?>><label for="feature-48">Lift</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-49" value="Maintenance Staff " <? foreach($posted_properties_features_list as $key=>$value){if($value=="Maintenance Staff"){?> checked="checked" <? } }?>><label for="feature-49">Maintenance Staff</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-50" value="Indoor Games Room" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Indoor Games Room"){?> checked="checked" <? } }?>><label for="feature-50">Indoor Games Room</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-51" value="Kids Club" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Kids Club"){?> checked="checked" <? } }?>><label for="feature-51">Kids Club</label></span></li> <li><span class="option-set"><input type="checkbox" name="features[]" id="feature-52" value="Kids Play Area" <? foreach($posted_properties_features_list as $key=>$value){if($value=="Kids Play Area"){?> checked="checked" <? } }?>><label for="feature-52">Kids Play Area</label></span></li> </ul> </div> </div> </div> <!-- .row --> <div class="row container-row"> <div class="col-xs-12"> <div class="form-option"> <?php if($proprtyID==''){ ?> <input type="submit" name="Post_Your_Property" value="Submit Property" class="btn-small btn-orange"> <? }else{ ?> <input type="submit" name="Update_Your_Property" value="Update Property" class="btn-small btn-orange"> <? } ?> </div> </div> </div> <!-- .row --> </form> </div> <!-- .user-profile-wrapper --> </main> <!-- .site-main --> </div> <!-- .site-main-content --> </div> <!-- .row --> </div> <!-- .container --> </div> <!-- .site-content --> </div> <!-- .site-content-wrapper --> <script type="text/javascript"> function PropertyValidation(){ function trim(str){ return str.replace(/^\s*|\s*$/g,''); } if(trim(document.getElementById('posted_properties_title').value)==0){ alert("Enter property title !"); document.getElementById('posted_properties_title').focus(); return false; } if(trim(document.getElementById('posted_properties_address').value)==0){ alert("Enter property address !"); document.getElementById('posted_properties_address').focus(); return false; } if(trim(document.getElementById('posted_properties_description').value)==0){ alert("Enter property description !"); document.getElementById('posted_properties_description').focus(); return false; } if(trim(document.getElementById('type').value)==0){ alert("Select property type !"); document.getElementById('type').focus(); return false; } if(trim(document.getElementById('city').value)==0){ alert("Select property location !"); document.getElementById('city').focus(); return false; } if(trim(document.getElementById('posted_properties_rent_sale').value)==0){ alert("Select property status !"); document.getElementById('posted_properties_rent_sale').focus(); return false; } if(trim(document.getElementById('posted_properties_bedrooms').value)==0){ alert("Enter no of bedrooms !"); document.getElementById('posted_properties_bedrooms').focus(); return false; } if(isNaN(document.getElementById('posted_properties_bedrooms').value)){ alert("Only numbers allowed.!"); document.getElementById('posted_properties_bedrooms').focus(); return false; } if(trim(document.getElementById('posted_properties_bathrooms').value)==0){ alert("Enter no of bathrooms !"); document.getElementById('posted_properties_bathrooms').focus(); return false; } if(isNaN(document.getElementById('posted_properties_bathrooms').value)){ alert("Only numbers allowed.!"); document.getElementById('posted_properties_bathrooms').focus(); return false; } if(trim(document.getElementById('posted_properties_price').value)==0){ alert("Enter property price !"); document.getElementById('posted_properties_price').focus(); return false; } if(trim(document.getElementById('posted_properties_price_postfix').value)==0){ alert("Select price postfix !"); document.getElementById('posted_properties_price_postfix').focus(); return false; } if(trim(document.getElementById('posted_properties_area').value)==0){ alert("Enter area !"); document.getElementById('posted_properties_area').focus(); return false; } if(trim(document.getElementById('posted_properties_area_postfix').value)==0){ alert("Enter area postfix !"); document.getElementById('posted_properties_area_postfix').focus(); return false; } } </script> <link href='css/component.css' rel='stylesheet' type='text/css'> <script>(function(e,t,n){var r=e.querySelectorAll("html")[0];r.className=r.className.replace(/(^|\s)no-js(\s|$)/,"$1js$2")})(document,window,0);</script> <script src="js/custom-file-input.js"></script> <script type="text/javascript"> function readURL(input,inputID) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $('#'+inputID) .attr('src', e.target.result) .width(150) .height(150); }; reader.readAsDataURL(input.files[0]); } } </script> <?php include("uttam-footer.php");?>