Exemplo n.º 1
0
 function BxBaseSearchProfile($sParamName = '', $sParamValue = '', $sParamValue1 = '', $sParamValue2 = '')
 {
     parent::BxBaseSearchResultText();
     $this->iRate = 0;
     $this->aAllovedAvtionsOfVisitor = array();
     switch ($sParamName) {
         case 'calendar':
             $GLOBALS['_page']['header'] = _t('_sys_profiles_caption_browse_by_day') . ': ' . getLocaleDate(strtotime("{$sParamValue}-{$sParamValue1}-{$sParamValue2}"), BX_DOL_LOCALE_DATE_SHORT);
             $sParamValue = (int) $sParamValue;
             $sParamValue1 = (int) $sParamValue1;
             $sParamValue2 = (int) $sParamValue2;
             $this->aCurrent['restriction']['calendar-min'] = array('value' => "'{$sParamValue}-{$sParamValue1}-{$sParamValue2} 00:00:00'", 'field' => 'DateReg', 'operator' => '>=', 'no_quote_value' => true);
             $this->aCurrent['restriction']['calendar-max'] = array('value' => "'{$sParamValue}-{$sParamValue1}-{$sParamValue2} 23:59:59'", 'field' => 'DateReg', 'operator' => '<=', 'no_quote_value' => true);
             $this->aCurrent['title'] = $GLOBALS['_page']['header'];
             break;
     }
 }
 function __construct()
 {
     parent::__construct();
 }
 function getRestriction()
 {
     $sWhere = parent::getRestriction();
     $sWhere .= " AND (`Profiles`.`Couple` = 0 OR `Profiles`.`Couple` > `Profiles`.`ID`) ";
     return $sWhere;
 }
 function BxTemplSearchResultText()
 {
     parent::BxBaseSearchResultText();
 }