Commit 60d14084 by 冷斌

add

parent 55f9f2b4
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</ul> </ul>
<form id="form" class="well form-search" method="post" action="{:U('Welfare/savePrice')}"> <form id="form" class="well form-search" method="post" action="{:U('Welfare/savePrice')}">
价格: 价格:
<input id="price" type="text" name="price" style="width: 200px;" value="" placeholder=""> <input id="price" type="text" name="price" style="width: 200px;" value="{$price}" placeholder="">
<input type="submit" class="btn btn-primary" onclick="if(confirm('您确定要修改价格吗?')){$('#form').submit()}; return false" value="保存"> <input type="submit" class="btn btn-primary" onclick="if(confirm('您确定要修改价格吗?')){$('#form').submit()}; return false" value="保存">
</form> </form>
<form method="post" class="js-ajax-form"> <form method="post" class="js-ajax-form">
......
...@@ -67,7 +67,8 @@ class WelfareController extends AdminbaseController ...@@ -67,7 +67,8 @@ class WelfareController extends AdminbaseController
->select(); ->select();
$this->assign('lists', $lists); $this->assign('lists', $lists);
$this->assign('giftid', $giftid); $check = $jackpot->where("id=1")->find();
$this->assign('price', $check['rate']);
$this->assign("page", $page->show('Admin')); $this->assign("page", $page->show('Admin'));
......
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