public function person()
{
if ($this->key != '') {
if (t($_GET['Stime']) && t($_GET['Etime'])) {
$Stime = strtotime(t($_GET['Stime']));
$Etime = strtotime(t($_GET['Etime']));
$this->assign('Stime', t($_GET['Stime']));
$this->assign('Etime', t($_GET['Etime']));
}
//关键字匹配 采用搜索引擎兼容函数搜索 后期可能会扩展为搜索引擎
$map['uname'] = array('like', '%' . $this->key . '%');
$list = model('user')->where($map)->findPage(20);
foreach ($list['data'] as $k => $vo) {
$list['data'][$k] = model('User')->getUserInfo($vo['uid']);
}
$this->assign('searchResult', $list);
//搜索分享
}
$this->display();
}