public function weiba()
{
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['weiba_name'] = array('like', '%' . $this->key . '%');
$map['status'] = 1;
$map['is_del'] = 0;
$list = M('weiba')->where($map)->findPage(20);
foreach ($list['data'] as $k => $v) {
if ($v['new_day'] != date('Y-m-d', time())) {
$list['data'][$k]['new_count'] = 0;
$this->setNewcount($v['weiba_id'], 0);
}
}
//dump($list);exit;
$this->assign('searchResult', $list);
//搜索分享
}
$this->display();
}