Commit b331eafc by 冷斌

add

parent 60d14084
......@@ -48,20 +48,11 @@ class WelfareController extends AdminbaseController
}
function index(){
$giftid= 76;
$map['giftid']=$giftid;
$giftinfo=M('gift')
->field('giftname')
->where("id={$giftid}")
->find();
$jackpot=M("luck_rate");
$count=$jackpot->where($map)->count();
$jackpot=M("welfare_rate");
$count=$jackpot->count();
$page = $this->page($count, 20);
$lists = $jackpot
->where($map)
->where('id != 1')
->order("id desc")
->limit($page->firstRow . ',' . $page->listRows)
->select();
......@@ -69,10 +60,8 @@ class WelfareController extends AdminbaseController
$this->assign('lists', $lists);
$check = $jackpot->where("id=1")->find();
$this->assign('price', $check['rate']);
$this->assign("page", $page->show('Admin'));
$this->display('index');
$this->display();
}
function del(){
......
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