12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- {extend name="common/common2" /}
- {block name="main"}
- <div class="row">
- <div class="col-sm-12">
- <div class="ibox float-e-margins">
- <div class="ibox-title">
- <h5>{$meta_title}</h5>
- <div class="ibox-tools">
- <a class="toback" href="{:url('index')}">
- 返回上一页
- </a>
- </div>
- </div>
- <div class="ibox-content">
- <form method="post" action="{:url('add')}" class="form-horizontal">
- <input type="hidden" name="id" value="{$info['id']|default='0'}">
- <div class="form-group">
- <label class="col-sm-2 control-label">排餐日期<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- {:widget('common/datepicker',['name'=>'day', 'val' => isset($info)?$info['day']:''])}
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">排餐类型<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- <select name="cate" class="form-control">
- <option value="0">选择排餐类型</option>
- <option value="1">早餐</option>
- <option value="2">午餐</option>
- <option value="3">晚餐</option>
- <option value="4">当日餐</option>
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">商品<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- {:widget('common/multiselect',['name'=>'goods','lists' => $goods, 'val' => isset($info)?explode(',',$info['goods']):[]])}
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">选择时间<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- {:widget('common/timerangepicker',['name'=>'time', 'val' => isset($info)?$info['time']:''])}
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="form-group">
- <div class="col-sm-6 col-sm-offset-2">
- <button class="btn btn-primary ajax-post" target-form="form-horizontal" type="submit">确 定</button>
- <a href="{:url('index')}" class="btn btn-default">取 消</a>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script>
- $(document).ready(function(){
- formSetValue("cate", {$info.cate|default=0});
- });
- </script>
- {/block}
|