Commit af928b8a by 冷斌

add

parent 6131fea5
...@@ -3,18 +3,17 @@ ...@@ -3,18 +3,17 @@
<body> <body>
<div class="wrap"> <div class="wrap">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li ><a href="{:U('Luckrate/index',array('giftid'=>$giftid))}">列表</a></li> <li ><a href="{:U('Welfare/index'}">列表</a></li>
<li class="active"><a >添加</a></li> <li class="active"><a >添加</a></li>
</ul> </ul>
<form method="post" class="form-horizontal js-ajax-form" action="{:U('Luckrate/add_post')}"> <form method="post" class="form-horizontal js-ajax-form" action="{:U('Welfare/add_post')}">
<fieldset> <fieldset>
<input type="hidden" name="giftid" value="{$giftid}">
<div class="control-group"> <div class="control-group">
<label class="control-label">数量</label> <label class="control-label">数量</label>
<div class="controls"> <div class="controls">
<select name="nums"> <select name="nums">
<volist name="numslist" id="v"> <volist name="gift" id="v">
<option value="{$v}">{$v}</option> <option value="{$v['id']}">{$v['giftname']}</option>
</volist> </volist>
</select> </select>
<span class="form-required"></span> <span class="form-required"></span>
...@@ -22,26 +21,9 @@ ...@@ -22,26 +21,9 @@
</div> </div>
<div class="control-group"> <div class="control-group">
<label class="control-label">倍数</label>
<div class="controls">
<input type="text" name="times" value="0">
<span class="form-required"></span>
</div>
</div>
<div class="control-group">
<label class="control-label">是否全站</label>
<div class="controls" id="type">
<label class="radio inline" for="type_0"><input type="radio" name="type" value="0" id="type_0" checked ></label>
<label class="radio inline" for="type_1"><input type="radio" name="type" value="1" id="type_1" ></label>
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">中奖概率</label> <label class="control-label">中奖概率</label>
<div class="controls"> <div class="controls">
<input type="text" name="rate" value="0">% 最小支持0.00001% <input type="text" name="rate" value="0">% 最小支持0.01%
<span class="form-required"></span> <span class="form-required"></span>
</div> </div>
</div> </div>
...@@ -49,7 +31,7 @@ ...@@ -49,7 +31,7 @@
</fieldset> </fieldset>
<div class="form-actions"> <div class="form-actions">
<button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button> <button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
<a class="btn" href="{:U('Luckrate/index',array('giftid'=>$giftid))}">{:L('BACK')}</a> <a class="btn" href="{:U('Welfare/index')}">{:L('BACK')}</a>
</div> </div>
</form> </form>
</div> </div>
......
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
<body> <body>
<div class="wrap"> <div class="wrap">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li ><a href="{:U('Luckrate/index',array('giftid'=>$data['giftid']))}">列表</a></li> <li ><a href="{:U('Welfare/index')}">列表</a></li>
<li class="active"><a >编辑</a></li> <li class="active"><a >编辑</a></li>
</ul> </ul>
<form method="post" class="form-horizontal js-ajax-form" action="{:U('Luckrate/edit_post')}"> <form method="post" class="form-horizontal js-ajax-form" action="{:U('Welfare/edit_post')}">
<input type="hidden" name="id" value="{$data['id']}"> <input type="hidden" name="id" value="{$data['id']}">
<fieldset> <fieldset>
<div class="control-group"> <div class="control-group">
...@@ -29,26 +29,18 @@ ...@@ -29,26 +29,18 @@
</div> </div>
</div> </div>
<div class="control-group">
<label class="control-label">是否全站</label>
<div class="controls">
<label class="radio inline" for="type_0"><input type="radio" name="isall" value="0" id="type_0" <if condition="$data['isall'] eq 0">checked</if> >否</label>
<label class="radio inline" for="type_1"><input type="radio" name="isall" value="1" id="type_1" <if condition="$data['isall'] eq 1">checked</if>>是</label>
<span class="form-required">*</span>
</div>
</div>
<div class="control-group"> <div class="control-group">
<label class="control-label">中奖概率</label> <label class="control-label">中奖概率</label>
<div class="controls"> <div class="controls">
<input type="text" name="rate" value="{$data['rate']}">% 最小支持0.00001% <input type="text" name="rate" value="{$data['rate']}">% 最小支持0.01%
<span class="form-required"></span> <span class="form-required"></span>
</div> </div>
</div> </div>
</fieldset> </fieldset>
<div class="form-actions"> <div class="form-actions">
<button type="submit" class="btn btn-primary js-ajax-submit">{:L('EDIT')}</button> <button type="submit" class="btn btn-primary js-ajax-submit">{:L('EDIT')}</button>
<a class="btn" href="{:U('Luckrate/index',array('giftid'=>$data['giftid']))}">{:L('BACK')}</a> <a class="btn" href="{:U('Welfare/index')}">{:L('BACK')}</a>
</div> </div>
</form> </form>
</div> </div>
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
<td align="center">{$vo.id}</td> <td align="center">{$vo.id}</td>
<td>{$gift[$vo['giftid']]}</td> <td>{$gift[$vo['giftid']]}</td>
<td>{$vo['rate']}%</td> <td>{$vo['rate']}%</td>
<td><if condition="$vo['isall'] eq 1"><else/></if></td>
<td align="center"> <td align="center">
<a href="{:U('Welfare/edit',array('id'=>$vo['id']))}" >编辑</a> <a href="{:U('Welfare/edit',array('id'=>$vo['id']))}" >编辑</a>
| |
......
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