<?php css('tabs'); js('/pages/updatePropertyMap'); $fullAddress = $address; $propertyName = addslashes($property["property_name"]); $propertyName = str_replace(array("\"", "'"), array("\"", '\''), $propertyName); UIPacksLoader::LoadPage_EditProperty(); ?> <script type="text/javascript" src="https://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> $(function(){ var ttt= new UpdatePropertyMap({ jMapWrapper: $('#map_wrapper'), jLatLngWrapper: $('#positioninfo'), jAddressWrapper: $('#approxaddress'), jLatInput: $('[name="lat"]'), jLngInput: $('[name="lng"]'), jUpdateBtn: $('#update_map_wrapper .save-btn'), jCancelBtn: $('#update_map_wrapper .cancel-btn'), currentAddress: '<?php echo $fullAddress; ?> ', propertyName:'<?php echo $propertyName; ?> ', updateUrl:'<?php echo basePath('app/updatemappropertysubmit/' . $id);