37 lines
3.0 KiB
HTML
37 lines
3.0 KiB
HTML
{if $tpltype==1}
|
|
<div class="input-group">
|
|
<span class="input-group-addon">连续签到</span>
|
|
<input class="form-control" type="number" value="{php echo intval($item['day'])}" {ifp 'sign.rule.edit'} name="reword_order[day][]"{else}disabled{/if} />
|
|
<span class="input-group-addon" style="border-left: 0; border-right: 0;">天 奖励</span>
|
|
<input class="form-control" type="number" value="{php echo intval($item['credit'])}" {ifp 'sign.rule.edit'} name="reword_order[credit][]"{else}disabled{/if} />
|
|
<span class="input-group-addon" style="border-left: 0; border-right: 0;">积分</span>
|
|
<span class="form-control {ifp 'sign.rule.edit'}btn btn-default delrule{else} btn-disabled{/if}">删除</span>
|
|
</div>
|
|
{elseif $tpltype==2}
|
|
<div class="input-group">
|
|
<span class="input-group-addon">总签到</span>
|
|
<input class="form-control" type="number" value="{php echo intval($item['day'])}" {ifp 'sign.rule.edit'} name="reword_sum[day][]"{else}disabled{/if} />
|
|
<span class="input-group-addon" style="border-left: 0; border-right: 0;">天 奖励</span>
|
|
<input class="form-control" type="number" value="{php echo intval($item['credit'])}" {ifp 'sign.rule.edit'} name="reword_sum[credit][]"{else}disabled{/if} />
|
|
<span class="input-group-addon" style="border-left: 0; border-right: 0;">积分</span>
|
|
<span class="form-control {ifp 'sign.rule.edit'}btn btn-default delrule{else} btn-disabled{/if}">删除</span>
|
|
</div>
|
|
{elseif $tpltype==3}
|
|
<div class="input-group">
|
|
<span class="input-group-addon">日期</span>
|
|
{ifp 'sign.rule.edit'}
|
|
{php echo tpl_form_field_date('reword_special[date][]', !empty($item['date']) ? date('Y-m-d',$item['date']) : date('Y-m-d'), false)}
|
|
{else}
|
|
<input class="form-control" value="{php echo date('Y-m-d', $item['date'])}" style="width: 90px; padding: 5px;" disabled />
|
|
{/if}
|
|
<span class="input-group-addon" style="border-left: 0; border-right: 0;">标题</span>
|
|
<input class="form-control" value="{$item['title']}" placeholder="非必填" style="width: 90px;" {ifp 'sign.rule.edit'} name="reword_special[title][]"{else}disabled{/if} />
|
|
<span class="input-group-addon" style="border-left: 0; border-right: 0;">颜色</span>
|
|
<input class="form-control" value="{if empty($item['color'])}#cccccc{else}{$item['color']}{/if}" type="color" style="width: 50px; padding: 5px;" {ifp 'sign.rule.edit'} name="reword_special[color][]"{else}disabled{/if} />
|
|
<span class="input-group-addon" style="border-left: 0; border-right: 0;">奖励</span>
|
|
<input class="form-control" type="number" value="{$item['credit']}" style="width: 70px;" {ifp 'sign.rule.edit'} name="reword_special[credit][]"{else}disabled{/if}/>
|
|
<span class="input-group-addon" style="border-left: 0; border-right: 0;">积分</span>
|
|
<span class="form-control {ifp 'sign.rule.edit'}btn btn-default delrule{else} btn-disabled{/if}">删除</span>
|
|
</div>
|
|
{/if}
|