123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- {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>{$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">
- <input type="text" class="form-control" name="title" value="{$info.title|default=''}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">描述<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- <input type="text" class="form-control" name="content" value="{$info.content|default=''}">
- </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_view('common/upimg',['name'=>'img','multi'=>0,'val'=>isset($info)?$info['img']:''])}
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">地点<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- <input type="text" class="form-control" name="address" value="{$info.address|default=''}">
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">容纳人数<span class="text-danger">*</span></label>
- <div class="col-sm-6">
- <input type="number" class="form-control" name="limit" value="{$info.limit|default=''}">
- </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_view('common/multiselect',['name'=>'meeting_device_ids','lists' => $deviceList, 'val' =>isset($info['meeting_device_ids'])?$info['meeting_device_ids']:[] ])}
- </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="approver" class="form-control">
- <option value="">请选择</option>
- {volist name="userList" id="i"}
- <option value="{$i['id']|default=''}">{$i['real_name']}</option>
- {/volist}
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">公告</label>
- <div class="col-sm-6">
- <textarea name="notice" id="" cols="30" rows="5" class="form-control">{$info.notice|default=''}</textarea>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">服务人员</label>
- <div class="col-sm-6">
- <select name="waiter" class="form-control">
- <option value="">请选择</option>
- {volist name="userList" id="i"}
- <option value="{$i['id']|default=''}">{$i['real_name']}</option>
- {/volist}
- </select>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">是否给服务人员发通知</label>
- <div class="col-sm-6">
- <label class="cr-inline">
- <input type="radio" value="1" name="is_notice_waiter">是
- </label>
- <label class="cr-inline">
- <input type="radio" value="0" name="is_notice_waiter">否
- </label>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">是否需要审核</label>
- <div class="col-sm-6">
- <label class="cr-inline">
- <input type="radio" value="1" name="is_check">是
- </label>
- <label class="cr-inline">
- <input type="radio" value="0" name="is_check">否
- </label>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">状态</label>
- <div class="col-sm-6">
- <label class="cr-inline">
- <input type="radio" value="1" name="enable">正常
- </label>
- <label class="cr-inline">
- <input type="radio" value="0" name="enable">禁用
- </label>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label">排序</label>
- <div class="col-sm-6">
- <input type="number" class="form-control" name="sort" value="{$info.sort|default=''}">
- </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("enable", {$info.enable|default=1});
- });
- $(document).ready(function(){
- formSetValue("is_check", {$info.is_check|default=1});
- });
- $(document).ready(function(){
- formSetValue("is_notice_waiter", {$info.is_notice_waiter|default=1});
- });
- $(document).ready(function(){
- formSetValue("approver", {$info.approver|default=''});
- });
- $(document).ready(function(){
- formSetValue("waiter", {$info.waiter|default=''});
- });
- </script>
- {/block}
|