= \'' . addslashes($begin_time) . '\''; } elseif ($end_time != 0) { $where .= ' and log.create_time <= \'' . addslashes($end_time) . '\''; } $mod = M('user_diamonds_log'); $count = $mod->table($table)->where($where)->count(); $p = new Page($count, $listRows = 20); if ($count > 0) { $info = $mod->table($table)->where($where)->field('log.*,goods.name as goods_name,fanwe_user.nick_name')->order('log.id desc')->limit($p->firstRow . ',' . $p->listRows)->select(); } foreach ($info as $key => $value) { $info[$key]['nick_name'] = emoji_decode($value['nick_name']); } $page = $p->show(); $this->assign("page", $page); $this->assign("list", $info); $this->display(); } public function edit() { header('location:http://' . $_SERVER['HTTP_HOST'] . '/'.get_manage_url_name().'?m=PaiGoods&a=edit&id=' . intval($_REQUEST['id'])); die; } }