public function index() {
$title = dr_safe_replace($_GET['suosu']);
if ($title) {
$where = 'suosu IN (select id from dr_1_zone where title like "%'.$title.'%")'; // 新的条件组合
if ($this->init['where_list']) {
$this->init['where_list'].= ' AND '.$where;
// 考虑到父类也许有可能会自带条件,防止被覆盖默认条件,所以追加一个 AND
} else {
$this->init['where_list'] = $where;
}
}
$this->_Admin_List();
}
public function index() { $title = dr_safe_replace($_GET['suosu']); if ($title) { $where = 'suosu IN (select id from dr_1_zone where title like "%'.$title.'%")'; // 新的条件组合 if ($this->init['where_list']) { $this->init['where_list'].= ' AND '.$where; // 考虑到父类也许有可能会自带条件,防止被覆盖默认条件,所以追加一个 AND } else { $this->init['where_list'] = $where; } } $this->_Admin_List(); }/dayrui/App/qyzz/Controllers/Admin/Home.php浏览器加 &suosu=企业名称