0 Пользователей и 1 Гость просматривают эту тему.
  • 5 Ответов
  • 3407 Просмотров
*

fialka

  • Захожу иногда
  • 58
  • 0 / 0
Здравствуйте!

есть модуль поиска mod_ea_search.php

нужно в модуль mod_ea_search.php  добавить поиск по местоположению

Подскажите Как это сделать?

Поиск по местоположению
Шаг 1: Страна    
Шаг 2: Область    
Шаг 3: Район    
Шаг 4: Город

Заранее спасибо.

код mod_ea_search.php

Код
<?php

/* **************************************************************************

Module: Quick search  for EstateAgent Improved Component v 1.5.x

Version: 1.5.x

Author: EAImproved team

Homepage: http://www.eaimproved.eu

License: GNU/GPL http://www.gnu.org/copyleft/gpl.html

*************************************************************************** */



defined('_JEXEC') or die('Restricted access');

$language =& JFactory::getLanguage();

$language->load('com_estateagent', JPATH_SITE);

$main_component_file = JPATH_SITE . '/components/com_estateagent/estateagent.php';

if (!file_exists($main_component_file)) {

echo JText::_('Estate Agent component is missing');

return;

}

$document=& JFactory::getDocument();

$tpath=JURI::base()."modules/mod_ea_search/";



$document->addStyleSheet($tpath."mod_ea_search.css");



require_once(dirname(__FILE__).DS.'helper.php');

require_once(JPATH_BASE.DS.'administrator'.DS.'components'.DS.'com_estateagent'.DS.'class.estateagent.php');

require_once(JPATH_BASE.DS.DS.'components'.DS.'com_estateagent'.DS.'helpers'.DS.'helper.estateagent.php');



$eahelper=&EA_Helper::getInstance();

$eaconf=&EAConf::getInstance();



# Module Parameter Settings

$params->def( 'moduleclass_sfx' );

$params->def( 'showcat',1 );

$params->def( 'showtype',1 );

   $params->def( 'showprice' , 1);

$params->def( 'livingspace' , 1);

$params->def( 'rooms' , 1);

$params->def('show_advsearch', 1);

$params->def('layout', 'default');

//$params->def('price_values', '10000&#xD;50000&#xD;100000&#xD;200000');

//$u =& JFactory::getURI();

//if(strstr($u->toString(),'act=eaadmin')) {

//return;

//}

//if(strstr($u->toString(),'act=easearch')) {

//$params->set( 'showcat',0 );

//$params->set( 'showtype',0 );



//}




$Typelist = modEASearchHelper::getTypelist();

$catList = modEASearchHelper::catSelectList( 'src_cat', 'class="inputbox" style="width:180px " ', 0 );

$layout = $params->get('layout', 'default');

$layout = JFilterInput::clean($layout, 'word');

$path = JModuleHelper::getLayoutPath('mod_ea_search', $layout);



$pricevalues = explode("\r\n",  $eaconf->ea_pricelist);

$pricevalues =  array_values(array_unique($pricevalues));



$minimvalue = modEASearchHelper::getpricelist($pricevalues, 'minvalue');

$maximvalue = modEASearchHelper::getpricelist($pricevalues, 'maxvalue');



$dws[] = JHTML::_('select.option', '0', JText::_('EA_NO_OPTION') );

$dws[] = JHTML::_('select.option', '1', JText::_('EA_SRCH_FOR_DWSPACE_1').$eaconf->ea_measure );

$dws[] = JHTML::_('select.option', '2', JText::_('EA_SRCH_FOR_DWSPACE_2').$eaconf->ea_measure );

$dws[] = JHTML::_('select.option', '3', JText::_('EA_SRCH_FOR_DWSPACE_3').$eaconf->ea_measure );

$dws[] = JHTML::_('select.option', '4', JText::_('EA_SRCH_FOR_DWSPACE_4').$eaconf->ea_measure );

$dws[] = JHTML::_('select.option', '5', JText::_('EA_SRCH_FOR_DWSPACE_5').$eaconf->ea_measure );

$dws[] = JHTML::_('select.option', '6', JText::_('EA_SRCH_FOR_DWSPACE_6').$eaconf->ea_measure );

$dws[] = JHTML::_('select.option', '7', JText::_('EA_SRCH_FOR_DWSPACE_7').$eaconf->ea_measure );

$sp[0] = JHTML::_('select.genericlist', $dws, 'space', 'class="inputbox" style="width: 140px" ', 'value', 'text', 0,'mod_space' );



$yblt[] = JHTML::_('select.option', '0', JText::_('EA_NO_OPTION'));

$yblt[] = JHTML::_('select.option', '1', JText::_('EA_SRCH_YOBUILT_1') );

$yblt[] = JHTML::_('select.option', '2', JText::_('EA_SRCH_YOBUILT_2') );

$yblt[] = JHTML::_('select.option', '3', JText::_('EA_SRCH_YOBUILT_3') );

$yblt[] = JHTML::_('select.option', '4', JText::_('EA_SRCH_YOBUILT_4') );

$yblt[] = JHTML::_('select.option', '5', JText::_('EA_SRCH_YOBUILT_5') );

$yblt[] = JHTML::_('select.option', '6', JText::_('EA_SRCH_YOBUILT_6') );

$yblt[] = JHTML::_('select.option', '7', JText::_('EA_SRCH_YOBUILT_7') );

$sp[1] = JHTML::_('select.genericlist', $yblt, 'yobuilt', 'class="inputbox" style="width: 140px" ', 'value', 'text', 0,'mod_yobuilt' );



$srm[] = JHTML::_('select.option', '0', JText::_( '_EA_NO_OPTION') );

$srm[] = JHTML::_('select.option', '1', JText::_( '1') );

$srm[] = JHTML::_('select.option', '2', JText::_( '2+') );

$srm[] = JHTML::_('select.option', '3', JText::_( '3+') );

$srm[] = JHTML::_('select.option', '4', JText::_( '4+') );

$srm[] = JHTML::_('select.option', '5', JText::_( '5+') );

$srm[] = JHTML::_('select.option', '6', JText::_( '6+') );

$srm[] = JHTML::_('select.option', '7', JText::_( '7+') );

$srm[] = JHTML::_('select.option', '8', JText::_( '8+') );

$srm[] = JHTML::_('select.option', '9', JText::_( '9+') );

$srm[] = JHTML::_('select.option', '10', JText::_( '10+') );

$sp[2] = JHTML::_('select.genericlist', $srm, 'rooms', 'class="inputbox" style="width:140px" ', 'value', 'text', 0,'mod_rooms' );

$sp[3] = JHTML::_('select.genericlist', $srm, 'bedrooms', 'class="inputbox" style="width:140px" ', 'value', 'text', 0,'mod_bedrooms' );



if (file_exists($path)) {

require($path);

}




?>





« Последнее редактирование: 27.09.2011, 11:47:26 от fialka »
*

fialka

  • Захожу иногда
  • 58
  • 0 / 0
брать  код  из ?

estateagent.html.php



*

esanuvea

  • Осваиваюсь на форуме
  • 48
  • 0 / 0
Так и никто не смог решить эту задачу.
А нельзя же из "Расширенного поиска" копировать код и ставить в "Модуль поиска"?

Поиск по местоположению из "Расширенного поиска"
Шаг 1: Страна
Шаг 2: Регион
Шаг 3: Район
Шаг 4: Город
*

oscarus

  • Новичок
  • 3
  • 0 / 0
Друзья, кто знает помогите пожалуйста. Как сделать чтобы в быстром поиске выбираешь город, а в форме "районы" были бы только районы данного города, а не всех городов.
*

oscarus

  • Новичок
  • 3
  • 0 / 0
Хочу сделать так. Выдернуть код из расширенного поиска файл search.html.php, там работают зависимые списки. В моем случае это город, район, микрорайон. И вставить его в быстрый поиск horiz.php. Вставлял код по разному, но не работает. Что то делаю Неправильно. Помогите пожалуйста если кто знает.
Код файла search.html.php

<?php
/*
File:      search.html.php
EstateAgent Improved Component for Joomla 1.5.x 
Version:   1.5.x
Author:      EAImproved team
Homepage:   http://www.eaimproved.eu
License:   GNU/GPL http://www.gnu.org/copyleft/gpl.html
*/
defined('_JEXEC') or die('Restricted access');

class HTML_estateagent_search{
      
      function showsearchform($map,$countries,$countrynames,$states,$towns,$districts,$lists){
      
      $eaconf=&EAConfig::getInstance();
      $eahelper=&EA_Helper::getInstance();
      $document=& JFactory::getDocument();
      //$categories_list=EAHTML::catSelectList('src_cat', 'class="inputbox" style="width: 140px" ');
      //$typelist=EAHTML::type_select_list('type', 'class="inputbox" style="width: 140px" ');
      //$agent=EAHTML::agent_select_list('agent', 'class="inputbox" style="width: 140px" ');
 
        if($eaconf->ea_location_srch){             
             
             if(count($map)==0 && $eaconf->ea_extend_srch == 0 && $eaconf->ea_equipment_srch == 0) { ?>
              <div style="margin:4px; padding:2px; width:99%; text-align:center"><?php echo JText::_('EA_SRCH_NOENTRIES');?></div>
           <?php }
           else{?>
               
                
              <?php
                 # generate javascript-array of countries --------------------
                   $c="";
               $c .= "Countries = new Array();\n";
               $c .= "Countrynames = new Array();\n";
                   $x = 0;
                   foreach($countries as $country) {
                      $c .= "Countries[".$x."] = \"".$country."\";\n";
                  $c .= "Countrynames[".$x."] = \"".$countrynames[$x]."\";\n";
                      $x++;
                   }
               $document->addScriptDeclaration($c);?>
                   
                    <?php
               //=== if step by step generate javascript-arrays
               if($eaconf->ea_loc_srch_type == 0){
                  
                  $js = "var noselected = '".JText::_('EA_NOT_SELECTED')."';";
                  $document->addScriptDeclaration($js);
                  $script="";
                  $document->addScript('components/com_estateagent/assets/js/search.js');
                  
                  # generate javascript-array of states -----------------------
                  $script .= "States = new Array();\n";
                  for($country=0;$country<count($countries);$country++) {
                     $script .= "States[".$country."] = new Array();\n";
                     for($state=0;$state<count($states[$country]);$state++) {
                        $script .= "States[".$country."][".$state."] = \"".$states[$country][$state]."\";\n";
                     }
                  }
                  
                  ?>
                  
                  <?php
                  # generate javascript-array of districts ------------------------
                  $script .= "Districts = new Array();";
                  for($country=0;$country<count($countries);$country++) {
                     $script .= "Districts[".$country."] = new Array();\n";
                     for($state=0;$state<count($states[$country]);$state++) {
                        $script .= "Districts[".$country."][".$state."] = new Array();\n";
                        for($district=0;$district<count($districts[$country][$state]);$district++) {
                           $script .= "Districts[".$country."][".$state."][".$district."] = \"".$districts[$country][$state][$district]."\";\n";
                        }
                     }
                  }
   
                  # Generate JavaScript-Array of towns
                  $script .= "Towns = new Array();\n";
                  for($country=0;$country<count($countries);$country++) {
                     $script .= "Towns[".$country."] = new Array();\n";
                     for($state=0;$state<count($states[$country]);$state++) {
                        $script .= "Towns[".$country."][".$state."] = new Array();\n";
                        for($district=0;$district<count($districts[$country][$state]);$district++) {
                           $script .= "Towns[".$country."][".$state."][".$district."] = new Array();\n";
                           for($town=0;$town<count($towns[$country][$state][$district]);$town++) {
                              $script .= "Towns[".$country."][".$state."][".$district."][".$town."] = \"".$towns[$country][$state][$district][$town]."\";\n";
                           }
                        }
                     }
                  }
               
            $document->addScriptDeclaration($script);
            }
         }
        }
       
       
   
      ?>
   <form action="<?php echo JRoute::_("index.php?option=com_estateagent&view=dosearch");?>" method="post" onsubmit="javascript: validate();" id="easearch" name="easearch" >
       
        <?php
      if ($eaconf->ea_category_srch || $eaconf->ea_keyword_srch || $eaconf->ea_type_srch || $eaconf->ea_price_srch){
         echo "<fieldset>";
         //Free Search -----------------------------------------------------------------------------
         if ($eaconf->ea_keyword_srch) echo "<div class=\"ea_sf_container\"><label class=\"ea_sf_label\">".JText::_('EA_SRCH_FREE')."</label><input class=\"inputbox\" type=\"text\" name=\"searchstring\" maxlength=\"100\"  style=\"width:140px;\"/></div>";
         //Category Search -----------------------------------------------------------------------------
         if ($eaconf->ea_category_srch) echo "<div class=\"ea_sf_container\"><label class=\"ea_sf_label\">".JText::_('EA_CAT_OVW')."</label>".$lists['categories']."</div>";
         //Type Search -----------------------------------------------------------------------------
         if ($eaconf->ea_type_srch) echo "<div class=\"ea_sf_container\"><label class=\"ea_sf_label\">".JText::_('EA_SRCH_TYPE')."</label>".$lists['types']."</div>";
         if ($eaconf->ea_agent_srch) echo "<div class=\"ea_sf_container\"><label class=\"ea_sf_label\">".JText::_('EA_SRCH_AGENT')."</label>".$lists['agents']."</div>";
         
         //Price Search -----------------------------------------------------------------------------
         if ($eaconf->ea_price_srch){
            echo "<div class=\"ea_sf_container\"><label class=\"ea_sf_label\">".JText::_('EA_SRCH_PRICE_FROM')."</label>".$lists['minvalue']."</div>";
            echo "<div class=\"ea_sf_container\"><label class=\"ea_sf_label\">".JText::_('EA_SRCH_PRICE_TO')."</label>".$lists['maxvalue']."</div>";
         }
         echo "</fieldset>";
       }
      
      //ea_loc_srch_type 0= step by step 1=free
      //Location Search -----------------------------------------------------------------------------
      ?>
      <?php if($eaconf->ea_location_srch) { ?>
      
      <fieldset><legend><?php echo JText::_('EA_SRCH_PART_LCN');?></legend>

           <?php
         // Search in Countries Страна-----------------------------------------------------------------------
         $countrylist[] = JHTML::_('select.option', 'no', JText::_('EA_NOT_SELECTED'));
         $x=0;
         foreach($countries as $c){
            $countrylist[] = JHTML::_('select.option', $c ,JText::_($countrynames[$x]));
            $x++;
         }
         
         $js = $eaconf->ea_loc_srch_type==0 ? ' onchange="setStates(this.selectedIndex-1)" ':'';
         
         $countrys = JHTML::_('select.genericlist', $countrylist,'src_country',' class="inputbox" style="width:140px" '.$js, 'value', 'text','0' );
           
         $label = $eaconf->ea_loc_srch_type==0 ? "<b>".JText::_('EA_SRCH_STEP')."</b> 1: ".JText::_('EA_OBJ_COUNTRY'):JText::_('EA_OBJ_COUNTRY');
         echo "<div class=\"ea_sf_container\"><label class=\"ea_sf_label\">".$label."</label>".$countrys."</div>";
         
         // Search in States Город-----------------------------------------------------------------------
         $statelist[] = JHTML::_('select.option', 'no', JText::_('EA_NOT_SELECTED'));
            foreach($lists['stateslist'] as $s){
               $statelist[] = JHTML::_('select.option', $s ,JText::_($s));
            }
         
         $js = $eaconf->ea_loc_srch_type==0 ? ' onchange="setDistricts(this.selectedIndex-1)" ':'';
         $thestates = JHTML::_('select.genericlist', $statelist,'src_state',' class="inputbox" style="width:140px"  '.$js, 'value', 'text','0' );
         
         $label = $eaconf->ea_loc_srch_type==0 ? "<b>".JText::_('EA_SRCH_STEP')."</b> 2: ".JText::_('EA_OBJ_STATE'):JText::_('EA_OBJ_STATE');
         echo "<div class=\"ea_sf_container\"><label class=\"ea_sf_label\">".$label."</label>".$thestates."</div>";
         
         // Search in Districts Район-----------------------------------------------------------------------
         $districtlist[] = JHTML::_('select.option', 'no',JText::_('EA_NOT_SELECTED'));
         
         foreach($lists['districtslist'] as $dist){
               $districtlist[] = JHTML::_('select.option', $dist ,JText::_($dist));
         }
         $js = $eaconf->ea_loc_srch_type==0 ? ' onchange="setTowns(this.selectedIndex-1)" ':'';
         $thedistrict = JHTML::_('select.genericlist', $districtlist,'src_district',' class="inputbox" style="width:140px" '.$js, 'value', 'text','0' );
         $label = $eaconf->ea_loc_srch_type==0 ? "<b>".JText::_('EA_SRCH_STEP')."</b> 3: ".JText::_('EA_OBJ_DISTRICT'):JText::_('EA_OBJ_DISTRICT');
         echo "<div class=\"ea_sf_container\"><label class=\"ea_sf_label\">".$label."</label>".$thedistrict."</div>";
         
         // Search in TownsМикрорайон-----------------------------------------------------------------------
         $townlist[] = JHTML::_('select.option', 'no',JText::_('EA_NOT_SELECTED'));
         foreach($lists['townslist'] as $town){
            $townlist[] = JHTML::_('select.option', $town ,JText::_($town));
         }
            
         $towns = JHTML::_('select.genericlist', $townlist,'src_town',' class="inputbox" style="width:140px" ', 'value', 'text','0' );
         $label = $eaconf->ea_loc_srch_type==0 ? "<b>".JText::_('EA_SRCH_STEP')."</b> 4: ".JText::_('EA_OBJ_TOWN'):JText::_('EA_OBJ_TOWN');
         echo "<div class=\"ea_sf_container\"><label class=\"ea_sf_label\">".$label."</label>".$towns."</div>";
         ?>
           
            <br/>
           
            <?php
         // Search in PostCodeПочтовый---------------------------------------------------------------------------
         $pclist[] = JHTML::_('select.option', 'no',JText::_('EA_NOT_SELECTED'));
         foreach($lists['pcodelist'] as $pc){
            $pclist[] = JHTML::_('select.option', $pc ,JText::_($pc));
         }
            
         $post_codes= JHTML::_('select.genericlist', $pclist,'src_pc',' class="inputbox" style="width:140px" ', 'value', 'text','0' );
         echo "<div class=\"ea_sf_container\"><label class=\"ea_sf_label\">".JText::_('EA_OBJ_PCODE')."</label>".$post_codes."</div>";
         ?>
       
        </fieldset>
      <?php
      }
      //---Конец поиска до почтового кода------------------------------------------------------------------------
         if($eaconf->ea_extend_srch) {
            echo "<fieldset><legend>".JText::_('EA_SRCH_PART_EXT')."</legend>";
            echo "<div class=\"ea_sf_container\"><label class=\"ea_sf_label\">".JText::_('EA_OBJ_DWSPACE')."</label>".$lists['livingspace']."</div>";
            echo "<div class=\"ea_sf_container\"><label class=\"ea_sf_label\">".JText::_('EA_OBJ_YOBUILT')."</label>".$lists['yofbuild']."</div>";
            echo "<div class=\"ea_sf_container\"><label class=\"ea_sf_label\">".JText::_('EA_OBJ_ROOMNR')."</label>".$lists['rooms']."</div>";
            echo "<div class=\"ea_sf_container\"><label class=\"ea_sf_label\">".JText::_('EA_OBJ_BEDROOMS')."</label>".$lists['bedrooms']."</div>";
            echo "<div class=\"ea_sf_container\"><label class=\"ea_sf_label\">".JText::_('EA_OBJ_WC')."</label>".$lists['bathrooms']."</div>";
            echo "</fieldset>";
         }
        //-----------------------------------------------------------------------
         if($eaconf->ea_equipment_srch) {
            echo "<fieldset><legend>".JText::_('EA_SRCH_EQUPMT_DETAILS')."</legend>";
            //echo $ed;
            echo $lists['equipment'];
            echo "</fieldset>";
         }
      echo "<div class=\"ea_sf_button\" style=\"text-align:center\"><input class=\"button\" type=\"submit\"   value=\"".JText::_('EA_SRCH_BTT_SEARCH')."\" /></div>";
   echo "</form>";

   }
//Карта похоже====================================================================================
   function show_result($results,$pageNav){   
              $mainframe = & JFactory::getApplication();
         $my   =& JFactory::getUser();
         $eaconf=& EAConfig::getInstance();
         $total=count($results);
      // show search result
      //if($total > 0) $mainframe->enqueueMessage(JText::_('EA_SRCH_RESULTS1')." ". $pageNav->total . " ".JText::_('EA_SRCH_RESULTS2'));   
      //$eaconf = &EAConfig::getInstance();
        //$width = ea_googlemap_width;
      //$height = $eaconf->ea_googlemap_height;
         if ($total>0)
         {
             //===========================Map view multi point
               if (($eaconf->ea_search_result_layout==1 || $eaconf->ea_search_result_layout==0) && ($eaconf->ea_googlemap_enable==1)){
               
               
               echo EA_helper::MapListings($results,'serchresults');
               
               
            }
               //==========================
            
            //====List view
            if (($eaconf->ea_search_result_layout==2 || $eaconf->ea_search_result_layout==0) || $eaconf->ea_googlemap_enable==0 ){
               
               $mainframe->enqueueMessage(JText::_('EA_SRCH_RESULTS1')." ". $pageNav->total . " ".JText::_('EA_SRCH_RESULTS2'));
               
               if($total >1) echo HTML_ordering_estateagent::OrderingBar($pageNav);
               
               
               
               echo"<div class=\"ea_pagenav_container\">".$pageNav->getResultsCounter()."</div>";
               $line=1;
      
                  foreach($results as $obj) {                  
                     show_Object_short($obj, $line, $total);
                     $line++;
                  }
                  
                  echo "<div class=\"ea_pagenav_container\">";
                  echo $pageNav->getPagesLinks();
                  echo "<br/>";
                  echo $pageNav->getPagesCounter();                  
                  echo "</div>";
            }
         }
         else
         {
            echo "<div style=\"text-align:center; margin:4px\"><br/>";
            echo JText::_('EA_SRCH_NORESULT')."<br/>";
            echo"<a href=\"javascript:history.go(-1)\">".JText::_('Go Back')."</a>";
            echo "</div>";         
         }
      
   }   
   
}


И код файла horiz.php

<?php
/* **************************************************************************
Module:      Quick search  for EstateAgent Improved Component v 1.5.x
Version:   1.5.x
Author:      EAImproved team
Homepage:   http://www.eaimproved.eu
License:   GNU/GPL http://www.gnu.org/copyleft/gpl.html
/* **************************************************************************/
defined('_JEXEC') or die('Restricted access');
$link = JRoute::_( 'index.php?option=com_estateagent&view=easearch');
?>

<?php if($params->get('showcat')==1 || $params->get('showtype')==1 || $params->get('livingspace')==1 || $params->get('yearOfconstr')==1 || $params->get('rooms')==1 || $params->get('bedrooms')==1 || $params->get('showtextbox')==1 || $params->get('showprice')==1 || $params->get('showcountry')==1 || $params->get('showstates')==1 || $params->get('showdistrict')==1 || $params->get('showtown')==1) { ?>

<fieldset>

<form  action="<?php echo JRoute::_('index.php?option=com_estateagent&view=dosearch')?>" method="post" name="easearch_mod">
      <?php
      
      echo "<ul id=\"display-inline\">";
      //--------location search Здесь код разметки быстрого поиска
      if($params->get('showcountry')==1){
         echo "<li>";
         echo "<label class=\"ea_hor_label\" for=\"modeasearch_src_country\">".JText::_('EA_OBJ_COUNTRY')."</label>";
         echo $lists['countries'];
         echo "</li>";
      }
      
      if($params->get('showstates')==1){
         echo "<li>";
         echo "<label class=\"ea_hor_label\" for=\"modeasearch_src_state\">".JText::_('EA_OBJ_STATE')."</label>";
         echo $lists['states'];
         echo "</li>";
      }      
      

      if($params->get('showdistrict')==1){
         echo "<li>";
         echo "<label class=\"ea_hor_label\" for=\"modeasearch_src_district\">".JText::_('EA_OBJ_DISTRICT')."</label>";
         echo $lists['district'];
         echo "</li>";
      }
      
      if($params->get('showtown')==1){
         echo "<li>";
         echo "<label class=\"ea_hor_label\" for=\"modeasearch_src_town\">".JText::_('EA_OBJ_TOWN')."</label>";
         echo $lists['towns'];
         echo "</li>";
      }
      
      
      
      //-------------------------------

      if ($params->get('showtype')==1) {
         echo "<li>";
         echo "<label for=\"modsearch_type\" class=\"ea_hor_label\">".JText::_('EA_SRCH_TYPE')."</label>";
         echo  $lists['types'];
         echo "</li>";
      }


      if($params->get('showcat')==1){
         echo "<li>";
         echo "<label for=\"modeasearch_src_cat\"  class=\"ea_hor_label\">".JText::_('EA_CAT_OVW')."</label>";
         echo $lists['categories'];
         echo "</li>";
      }
      

      if ($params->get('showagents')==1) {
         echo "<li>";
            echo "<label class=\"easm_label\" for=\"modsearch_agents\">".JText::_('EA_SRCH_AGENT')."</label>";
            echo $lists['agents'];
         echo "</li>";
       }
      if($params->get('livingspace')==1){
         echo "<li>";
         echo "<label class=\"ea_hor_label\" for=\"mod_space\">".JText::_('EA_OBJ_DWSPACE')."</label>";
         echo $lists['livingspace'];
         echo "</li>";
      }
      
      if($params->get('yearOfconstr')==1){
         echo "<li>";
         echo "<label class=\"ea_hor_label\" for=\"mod_yobuilt\">".JText::_('EA_OBJ_YOBUILT')."</label>";
         echo $lists['yofbuild'];
         echo "</li>";
      }
      
      if($params->get('rooms')==1){
         echo "<li>";
         echo "<label class=\"ea_hor_label\" for=\"mod_rooms\">".JText::_('EA_OBJ_ROOMNR')."</label>";
         echo $lists['rooms'];
         echo "</li>";
      }
      
      if($params->get('bedrooms')==1){
         echo "<li>";
         echo "<label class=\"ea_hor_label\" for=\"mod_bedrooms\">".JText::_('EA_OBJ_BEDROOMS')."</label>";
         echo $lists['bedrooms'];
         echo "</li>";
      }
       if($params->get('wc')==1){
           echo "<li>";
            echo "<label class=\"ea_hor_label\" for=\"mod_wc\">".JText::_('EA_OBJ_WC')."</label>";
               echo $lists['bathrooms'];
         echo "</li>";
        }
    if($params->get('showprice')==1){
      echo "<li>"; 
      echo "<label for=\"modeasearch_minvalue\" class=\"ea_hor_label\">".JText::_('EA_SRCH_PRICE_FROM')."&nbsp;".$eaconf->ea_currency."</label>";
      echo $lists['minvalue'];
      echo "</li>";
      
      echo "<li>";
      echo "<label for=\"modeasearch_maxvalue\" class=\"ea_hor_label\">".JText::_('EA_SRCH_PRICE_TO')."&nbsp;".$eaconf->ea_currency."</label>";
      echo $lists['maxvalue'];
      echo "</li>";
      }
   if($params->get('showtextbox')==1){
      echo "<li>";
      echo "<label for=\"searchstring\" class=\"ea_hor_label\">".JText::_('EA_SRCH_FREE')."</label>";      
      echo "<input class=\"inputbox\" type=\"text\" id=\"searchstring\" name=\"searchstring\"  maxlength=\"100\"  style=\"width:".$textboxwidth."px\"/>";   
      echo "</li>";
   }
   
     echo "<li style=\"text-align:center;\">";
      if ($params->get('show_advsearch')==1) {
         echo "<a href=\"".$link."\">".JText::_('EA_SRCH_ADVANCE')."</a>"."<br/>"."<br/>";
      }
    echo "<input class=\"button\" type=\"submit\"  value=\"".JText::_('EA_SRCH_BTT_SEARCH')."\" />";
   echo "</li>";
echo "</ul>";

?>
</form>
</fieldset>
<?php
}?>













*

RazarioAgro

  • Захожу иногда
  • 473
  • 4 / 0
Может найти кому заплатить денюжку, чтобы он в быстрый поиск сделал поля зависимые и все? Как в расширенном поиске. Кто сможет сделать?
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Как отключить сохранение поиска?

Автор klekovkinandrey

Ответов: 1
Просмотров: 2298
Последний ответ 06.05.2017, 14:54:01
от klekovkinandrey
EstateAgent Improved 2.5.x

Автор mening

Ответов: 14
Просмотров: 7908
Последний ответ 16.04.2017, 17:35:25
от cepseu
А почему так дёшево EstateAgent?

Автор stardel

Ответов: 3
Просмотров: 2990
Последний ответ 30.07.2016, 14:07:58
от voland
EstateAgent Improved актуальные вопросы и их решения

Автор kirill.psl

Ответов: 364
Просмотров: 51057
Последний ответ 27.05.2016, 22:57:16
от cepseu
Плагин экспорта объектов недвижимости с сайта на Яндекс недвижимость под Joomla 2.5 для EstateAgent

Автор a.Lexus

Ответов: 1
Просмотров: 2234
Последний ответ 13.10.2015, 13:14:19
от a.Lexus