zhangjingyu
继续以“activeCurrentFilter”进行搜索,apps/hot/lib/utility.class.php
function activeCurrentFilter($rt,$fTime,&$fType,$from='index') {
$from == 'admin' && $s = "[".$rt["id"]."]";
$fTypeData = ( array ) unserialize ( $rt ['filter_type'] );
if ($fTypeData ['current']) {
if($fType){
$fTypeData ['current'] = $fType;
}else{
$fType = $fTypeData ['current'];
}
$result ['filterTypeData'] = $fTypeData;
$tc = $this->getFilterSelect ( "fType$s", $this->getFilter ( $rt ['tag'], 'type' ), $fTypeData, '', $from );
$result ['selectType'] = $tc['select'];
$result ['currentType'] = $tc['ct'];
}
$fTimeData = ( array ) unserialize ( $rt ['filter_time'] );
if ($fTimeData ['current']) {
$fTime && $fTimeData ['current'] = $fTime;
$result ['filterTimeData'] = $fTimeData;
$tc = $this->getFilterSelect ( "fTime$s", $this->getFilter ( $rt ['tag'], 'time' ), $fTimeData, $rt ['type_name'],$from );
$result ['selectTime'] = $tc['select'];
$result ['currentTime'] = $tc['ct'];
}
!$result && $from == 'index' && $result = $rt['filter_type'];
return $result;
}