echo $widget_id; ?> _', 'sf_') +"=" + value; } } }); /** Adding widget id **/ request_str = 'widget_id=<?php echo $widget_id; ?> '+request_str; /** Create full url of search **/ search_page = '<?php echo wpl_property::get_property_listing_link($target_id); ?> '; if(search_page.indexOf('?') >= 0) search_str = search_page+'&'+request_str else search_str = search_page+'?'+request_str window.location = search_str; return false; } function wpl_sef_request<?php echo $widget_id; ?> (request_str) {
<?php defined('_WPLEXEC') or die('Restricted access'); /** add Layout js **/ $js[] = (object) array('param1' => 'jquery.checkbox', 'param2' => 'packages/jquery.ui/checkbox/jquery.checkbox.js'); foreach ($js as $javascript) { wpl_extensions::import_javascript($javascript); } $bott_div_open = false; ?> <form action="<?php echo wpl_property::get_property_listing_link(); ?> " id="wpl_search_form_<?php echo $widget_id; ?> " method="GET" onsubmit="return wpl_do_search_<?php echo $widget_id; ?> ();" class="wpl_search_from_box simple clearfix wpl_search_kind<?php echo $this->kind; ?> <?php echo $this->css_class; ?> "> <!-- Do not change the ID --> <div id="wpl_searchwidget_<?php echo $widget_id; ?> " class="clearfix">
public function get_target_page($target_id = NULL) { if (trim($target_id) and $target_id == '-1') { $target_page = wpl_global::get_full_url(); } else { $target_page = wpl_property::get_property_listing_link($target_id); } return $target_page; }