Commit ad7dacac by html5-李恒逸

修改经纪人看到的楼盘较少bug,将页面展示数量修改到30

parent 5fd6538a
<?php <?php
if ( ! defined('BASEPATH')) exit('No direct script access allowed'); if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Building extends CI_Controller { class Building extends CI_Controller {
/** /**
* 构造器 * 构造器
*/ */
...@@ -10,11 +10,11 @@ class Building extends CI_Controller { ...@@ -10,11 +10,11 @@ class Building extends CI_Controller {
parent::__construct(); parent::__construct();
//加载用户语言 //加载用户语言
$this->language = $this->input->cookie('lang') ? $this->input->cookie('lang') : $this->config->item('language'); $this->language = $this->input->cookie('lang') ? $this->input->cookie('lang') : $this->config->item('language');
//加载配置文件 //加载配置文件
$this->config->load('user_config',true); $this->config->load('user_config',true);
$this->lang->load('error',$this->language); $this->lang->load('error',$this->language);
//加载辅助函数 //加载辅助函数
$this->load->helper('util'); $this->load->helper('util');
$this->user_id=$this->session->userdata('user_id'); $this->user_id=$this->session->userdata('user_id');
...@@ -24,14 +24,14 @@ class Building extends CI_Controller { ...@@ -24,14 +24,14 @@ class Building extends CI_Controller {
$this->load->model('building_model', 'building'); $this->load->model('building_model', 'building');
$this->load->model('distributor_model','distributor'); $this->load->model('distributor_model','distributor');
$this->load->model('building_distributor_model','bdrelation'); $this->load->model('building_distributor_model','bdrelation');
} }
public function index(){ public function index(){
$this->load->helper('date'); $this->load->helper('date');
$distributor_ins=$this->distributor->get(array('uniqid_id'=>$this->uniqid_id)); $distributor_ins=$this->distributor->get(array('uniqid_id'=>$this->uniqid_id));
$buildings=$this->bdrelation->get_all_building(array('D.id'=>$distributor_ins['id'],'R.is_deleted'=>0),1,10); $buildings=$this->bdrelation->get_all_building(array('D.id'=>$distributor_ins['id'],'R.is_deleted'=>0),1,30);
$this->data['buildings']=$buildings; $this->data['buildings']=$buildings;
$datestring="%Y-%m-%d"; $datestring="%Y-%m-%d";
$dataformat="%Y-%m-%d %h:%i"; $dataformat="%Y-%m-%d %h:%i";
$this->data['datestring']=$datestring; $this->data['datestring']=$datestring;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment