View file File name : all_properties_filtered.php Content :<div class="row"> <!--<p style="text-align:right;">Tolal <?=count($props)?> Properties</p>--> </div> <!-- <div class="col-md-8 col-lg-8 col-sm-8">--> <!-- <input type="hidden" id="link" value="<?=$link?>">--> <!-- <h1 id="title" class="text-left" style="font-size:19px; font-weight:500; padding-top:10px;"><?=$type?> Projects</h1>--> <!-- <p id="titlep" class="text-left">Top <?=$type?> projects between <span id="priceb1"></span> to <span id="priceb2"></span> for you.</p>--> <!-- </div>--> <!-- <div class="col-md-4 col-lg-4 col-sm-4">--> <!-- <div class="share">--> <!-- <span class="whslik"><i class="fa fa-share"></i></span>--> <!-- <nav>--> <!-- <a href="#"><i class="fa fa-whatsapp" onclick="shareonwhatsapp()"></i></a>--> <!-- <a href="#"><i class="fa fa-copy" onclick="copytoclipboard()" id="cpb"></i></a>--> <!-- </nav>--> <!-- </div>--> <!-- </div>--> <!--</div>--> <!--<script>--> <!-- function copytoclipboard(){--> <!-- var copyText = document.getElementById("link").value;--> <!-- document.getElementById("cpb").innerHTML='Copied <i class="fa fa-check"></i>';--> <!-- navigator.clipboard.writeText(""+copyText+"");--> <!-- }--> <!-- function shareonwhatsapp(){--> <!-- const sampleURL = document.getElementById("link").value;--> <!-- const url= encodeURIComponent(sampleURL);--> <!-- window.location.href="whatsapp://send?text="+url;--> <!-- }--> <!--</script>--> <div class="rkr"> <div id="table"> <p style="text-align:right;">Tolal <?=count($props)?> Properties</p> <?php foreach($props as $prop){ ?> <div class="row tble-rkr"> <div class="col-lg-4 col-md-4 p-0"> <div class="inside-properties mb-8 mt-8"> <a href='<?=base_url()?>properties/details/<?=$prop->id?>'> <img src="<?=$prop->property_image?>" id="vll-imge" style="max-width: -webkit-fill-available;"/> </a> <div class="price-box"><span>Posted on</span> <?=date("d-m-Y",strtotime($prop->last_created))?></div> <div class="listing-badges"> <span class="featured" style="background:#D60620;font-size:14px;"><?php if($prop->discount!=''){ echo sprintf('%0.2f',$prop->discount); }else{ echo '0'; }?> % OFF</span> </div> <div class="dsprice"> <h5 class="text-center text-center mb-srp__card__summary--value2" id="h5-viewallp"> <b>Asking Price : </b><span style="text-decoration: line-through;"><i class="fa fa-rupee"></i> <?php if(($prop->price/100000)>1){ echo number_format($prop->price/100000,2); echo " Lacs"; } else if(($prop->price/10000000)>1){ echo number_format($prop->price/10000000,2); echo " Cr "; }else{ echo number_format($prop->price,2); } ?></span> </h5> <h5 class="text-center text-center mb-srp__card__summary--value2" id="h5-viewallp"> <b>Final Price : </b><i class="fa fa-rupee"></i> <span><?php if(($prop->selling_price/100000)>1){ echo number_format($prop->selling_price/100000,2); echo " Lacs"; } else if(($prop->selling_price/10000000)>1){ echo number_format($prop->selling_price/10000000,2); echo " Cr "; }else{ echo number_format($prop->selling_price,2); } ?></span> </h5> </div> </div> </div> <div class="col-lg-8 col-md-8 text-center dsviewprt"> <div class="row"> <div class="col-lg-9 col-md-9 col-xl-9 col-sm-12"> <?=$prop->project_code?> (<?=$prop->lacality?> , <?=$prop->station?>) </div> <div class="col-lg-3 col-md-3 col-xl-3 col-sm-12"> <div class="nav"> <a href="#"><i class="fa fa-whatsapp" onclick="shareonwhatsapp2('<?=$prop->id?>')"></i></a> <a href="#"><i class="fa fa-copy" onclick="copytoclipboard2('<?=$prop->id?>')" id="cpb2<?=$prop->id?>"></i></a> </div> </div> </div> <div class="row virw11" id="viewprt1"> <div class="mb-srp__card__summary open" id="propertiesAction64358237"> <div class="mb-srp__card__summary__list"> <div class="mb-srp__card__summary__list--item" data-summary="carpet-area"> <div class="mb-srp__card__summary--label">Area</div> <div class="mb-srp__card__summary--value"><?=$prop->area?></div> </div> <div class="mb-srp__card__summary__list--item" data-summary="status"> <div class="mb-srp__card__summary--label">Status</div> <div class="mb-srp__card__summary--value"><?=$prop->status?></div> </div> <div class="mb-srp__card__summary__list--item" data-summary="floor"> <div class="mb-srp__card__summary--label">Floor</div> <div class="mb-srp__card__summary--value"><?=$prop->floor?></div> </div> <div class="mb-srp__card__summary__list--item" data-summary="transaction"> <div class="mb-srp__card__summary--label">Transaction</div> <div class="mb-srp__card__summary--value vscm"><?=$prop->transaction?></div> </div> <div class="mb-srp__card__summary__list--item" data-summary="furnishing"> <div class="mb-srp__card__summary--label">Furnishing</div> <div class="mb-srp__card__summary--value"><?=$prop->furnishing?></div> </div> <div class="mb-srp__card__summary__list--item" data-summary="facing"> <div class="mb-srp__card__summary--label">Type</div> <div class="mb-srp__card__summary--value"><?=$prop->property_type?></div> </div> </div> </div> <div class="row btrn"> <div class="col-md-4 col-sm-4 col-lg-4"> <button onclick="window.location.href='<?=base_url()?>properties/details/<?=$prop->id?>'" class="btn btn-warning">View Property</button> </div> <div class="col-md-4 col-sm-4 col-lg-4"> <button data-toggle="modal" data-target="#myModal<?=$prop->id?>" class="btn btn-danger">Get Contact</button> <div id="myModal<?=$prop->id?>" class="modal fade" role="dialog" style="top:30px;"> <div class="modal-dialog"> Modal content <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title">Fill your details to get Owner/Agent details.</h4> </div> <div class="modal-body "> <form action="<?=base_url()?>properties/add_enquiry" id="form<?=$prop->id?>" method="post" enctype="multipart/form-data"> <div class="row"> <input type="hidden" id="updated_by<?=$prop->id?>" name="agent" value="<?=$prop->updated_by?>"> <input type="hidden" id="id<?=$prop->id?>" name="project_id" value="<?=$prop->id?>"> <div class="form-group name col-md-6"> <input type="text" id="name<?=$prop->id?>" required name="name" class="form-control" placeholder="Name"> </div> <div class="form-group email col-md-6"> <input type="email" id="email<?=$prop->id?>" required name="email" class="form-control" placeholder="Email"> </div> <div class="form-group number col-md-12"> <input type="text" id="phone<?=$prop->id?>" required name="phone" class="form-control" placeholder="Number"> </div> <div class="form-group message col-md-12"> <textarea class="form-control" id="message<?=$prop->id?>" required name="message" rows="5" placeholder="Write message"></textarea> </div> <div class="send-btn col-md-12"> <button type="button" style="width:100%;" id="btn<?=$prop->id?>" onclick="add_enquiry(<?=$prop->id?>)" class="btn btn-md button-theme">Send Message</button> </div> </div> </form> <div class="slick-slide-item" id="profile<?=$prop->id?>" style="display:none;"> <div class="row team-2"> <?php $users=$this->Core_model->get_usr($prop->updated_by); ?> <div class="col-xl-12 col-lg-6 col-md-12 col-sm-12 col-pad bg align-self-center"> <div class="detail headimg text-center"> <img src="https://dhcprop.com/assets/img/black-logo.png" alt="logo" style="position: revert;background: black;margin: auto;"> <h4>DHC PropLoan Mart</h4> <div class="bgline"> </div> </div> <div class="detail newcol"> <h4><a href="#"><?=$users[0]->first_name?> <?=$users[0]->last_name?></a></h4> <div class="contact"> <ul> <li> <i class="flaticon-mail"></i><a href="mailto:<?=$users[0]->user_id?>"><?=$users[0]->user_id?></a> </li> <li> <i class="flaticon-phone"></i><a href="tel:<?=$users[0]->contact_no?>"><?=$users[0]->contact_no?></a> </li> </ul> </div> </div> </div> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </div> </div> </div> <div class="col-md-4 col-sm-4 col-lg-4"> <a href="https://dhcprop.com/index.php/index2" target="_blank" class="btn bg-success" style="border-radius:6px; padding-top:8px; width: 100%;">Home Loan</a> </div> </div> </div> </div> </div> <?php } ?> <script> // Force a hover to see the effect const share = document.querySelector('.share'); setTimeout(() => { share.classList.add("hover"); }, 1000); setTimeout(() => { share.classList.remove("hover"); }, 3000); </script> <script> function copytoclipboard2(id){ var copyText = "<?=base_url()?>"+"properties/details/"+id; document.getElementById("cpb2"+id).innerHTML='Copied <i class="fa fa-check"></i>'; navigator.clipboard.writeText(""+copyText+""); } function shareonwhatsapp2(id){ const sampleURL = "<?=base_url()?>"+"properties/details/"+id; const url= encodeURIComponent(sampleURL); window.location.href="whatsapp://send?text="+url; } </script> <script> function filter_demand(){ document.getElementById("filter_option").value="yes"; // location=[] try{ var locations = document.querySelector('input[name="location"]:checked'); var location =locations.value; }catch(e){ location=''; } // type=[] try{ var types = document.querySelector('input[name="type"]:checked'); var type =types.value; }catch(e){ type=''; } var p1 = document.getElementById('r1'); var p2 = document.getElementById('r2'); var price1=p1.options[p1.selectedIndex].value; var price=p2.options[p2.selectedIndex].value; var price1t=p1.options[p1.selectedIndex].text; var pricet=p2.options[p2.selectedIndex].text; var tp=''; var lc=''; if(type==''){ tp='All'; }else{ tp=type; } if(location==''){ lc='All'; }else{ lc=location; } document.getElementById("title").innerHTML=tp+" Projects"; document.getElementById("titlep").innerHTML=+"Top "+tp+" projects "+ lc+" between "+price1t+" to "+pricet+" for you"; // alert(price1); document.getElementById("link").value="<?=base_url()?>searchp/share?location="+location+"&type="+type+"&budget="+price1+"&budget2="+price var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200){ // alert(this.response); document.getElementById("table").innerHTML=this.response; } }; xhttp.open("GET", "<?=base_url()?>properties/get_filter?location="+location+"&type="+type+"&price1="+price1+"&price="+price); xhttp.send(); } $(document).ready(function(){ var p1 = document.getElementById('r1'); var p2 = document.getElementById('r2'); var price1=p1.options[p1.selectedIndex].text; var price=p2.options[p2.selectedIndex].text; document.getElementById('priceb1').innerHTML=price1; document.getElementById('priceb2').innerHTML=price; }); </script> </div>