Example #1
0
function unloadCommonFilterInfos($CI, $sell = TRUE)
{
    if ($sell) {
        unloadCommonInfos($CI);
    } else {
        unloadRentCommonInfos($CI);
    }
    unset($CI->filters_area);
    unset($CI->filters_community);
    unset($CI->filters_house_type);
    unset($CI->filters_decor);
    unset($CI->filters_size);
    unset($CI->filters_room);
    unset($CI->filters_floor);
}
Example #2
0
function unloadRentCommonInfos($CI)
{
    unloadCommonInfos($CI);
    unset($CI->rent_types);
    unset($CI->rentpay_types);
}
Example #3
0
 private function sell_item($hid)
 {
     if (!isset($hid) || !is_numeric($hid)) {
         ishow_404('请指定房源');
     }
     $this->load->model('sellhouse_model');
     $sellhouse = $this->sellhouse_model->get_single_by_hid($hid);
     if (!isset($sellhouse) || empty($sellhouse)) {
         ishow_404('找不到房源');
     }
     $this->cat = HOUSE_CAT_SELL;
     loadCommonInfos($this);
     $this->house = parse_sell_house_item($this, $sellhouse);
     unloadCommonInfos($this);
     // print_r($this->house);
     $this->load->view('portal/sell-info', $this);
 }