123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- {extend name="common/common2" /}
- {block name="main"}
- <style>
- .laydate-time-list{padding-bottom:0;overflow:hidden}
- .laydate-time-list>li{width:50%!important;}
- .laydate-time-list>li:last-child { display: none;}
- .laydate-time-list ol>li:last-child{margin-bottom:.26rem;}
- .rr{
- padding-right: 10px;
- }
- </style>
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-content">
- <form method="post" action="{:url('add2')}" class="form-horizontal">
- <input type="hidden" name="id" value="{$info['id']|default='0'}">
- <input type="hidden" name="cate" value="1">
- <div class="col-sm-6">
- <div class="form-group">
- <label class="control-label">食品名<span class="text-danger">*</span></label></br>
- <input type="text" class="form-control" name="name" value="{$info.name|default=''}">
- </div>
- </div>
- <div class="col-sm-6">
- <div class="form-group">
- <label class="control-label">价格<span class="text-danger">*</span></label></br>
- <input type="text" class="form-control" name="money" value="{$info.money|default=''}">
- </div>
- </div>
- <div class="col-sm-6">
- <div class="form-group">
- <label class="control-label">分类<span class="text-danger">*</span></label></br>
- <select name="dinner_type_id" class="form-control">
- <option value="">选择分类</option>
- {foreach $typeList as $k=>$v}
- <option value="{$v.id}">{$v.name}</option>
- {/foreach}
- </select>
- </div>
- </div>
- <div class="col-sm-6">
- <div class="form-group">
- <label class="control-label">排序(正序)<span class="text-danger">*</span></label></br>
- <input type="text" class="form-control" name="sort" value="{$info.sort|default='0'}">
- </div>
- </div>
- <div class="col-sm-12">
- <div class="form-group">
- <label class="control-label">类型<span class="text-danger">*</span></label></br>
- <label class="cr-inline">
- <input type="radio" value="0" name="type">普通
- </label>
- <label class="cr-inline">
- <input type="radio" value="1" name="type">流食或半流食
- </label>
- </div>
- </div>
- <div class="col-sm-12">
- <div class="form-group">
- <label class="control-label">图片<span class="text-danger">*</span></label>
- {:widget_view('common/upimg',['name'=>'imgs','multi'=>10,'val'=>isset($info)?$info['imgs']:''])}
- </div>
- </div>
- <div class="col-sm-12">
- <div class="form-group">
- <label class="control-label">描述</label></br>
- <textarea name="content" class="form-control" cols="30" rows="3" >{$info.content|default=''}</textarea>
- </div>
- </div>
- <div class="col-sm-12">
- <div class="hr-line-dashed"></div>
- </div>
- <div class="form-group">
- <div class="col-sm-6 col-sm-offset-2">
- <button class="btn btn-primary ajax-post" data-layer="1" target-form="form-horizontal" type="submit">确 定</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script>
- $(document).ready(function(){
- formSetValue("enable", {$info.enable|default=1});
- formSetValue("type", {$info.type|default=0});
- formSetValue("dinner_type_id", {$info.dinner_type_id|default=''});
- });
- </script>
- {/block}
|