0
0

add.html 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <div class="row">
  4. <div class="col-sm-12">
  5. <div class="ibox float-e-margins">
  6. <div class="ibox-title">
  7. <h5>{$title}</h5>
  8. <div class="ibox-tools">
  9. <a class="toback" href="{:url('index')}">
  10. 返回上一页
  11. </a>
  12. </div>
  13. </div>
  14. <div class="ibox-content">
  15. <form method="post" action="{:url('add')}" class="form-horizontal">
  16. <input type="hidden" name="id" value="{$info['id']|default='0'}">
  17. <div class="form-group">
  18. <label class="col-sm-2 control-label">名称<span class="text-danger">*</span></label>
  19. <div class="col-sm-6">
  20. <input type="text" class="form-control" name="title" value="{$info.title|default=''}">
  21. </div>
  22. </div>
  23. <div class="form-group">
  24. <label class="col-sm-2 control-label">描述<span class="text-danger">*</span></label>
  25. <div class="col-sm-6">
  26. <input type="text" class="form-control" name="content" value="{$info.content|default=''}">
  27. </div>
  28. </div>
  29. <div class="form-group">
  30. <label class="col-sm-2 control-label">图片<span class="text-danger">*</span></label>
  31. <div class="col-sm-6">
  32. {:widget_view('common/upimg',['name'=>'img','multi'=>0,'val'=>isset($info)?$info['img']:''])}
  33. </div>
  34. </div>
  35. <div class="form-group">
  36. <label class="col-sm-2 control-label">地点<span class="text-danger">*</span></label>
  37. <div class="col-sm-6">
  38. <input type="text" class="form-control" name="address" value="{$info.address|default=''}">
  39. </div>
  40. </div>
  41. <div class="form-group">
  42. <label class="col-sm-2 control-label">容纳人数<span class="text-danger">*</span></label>
  43. <div class="col-sm-6">
  44. <input type="number" class="form-control" name="limit" value="{$info.limit|default=''}">
  45. </div>
  46. </div>
  47. <div class="form-group">
  48. <label class="col-sm-2 control-label">会议服务/设备<span class="text-danger">*</span></label>
  49. <div class="col-sm-6">
  50. {:widget_view('common/multiselect',['name'=>'meeting_device_ids','lists' => $deviceList, 'val' =>isset($info['meeting_device_ids'])?$info['meeting_device_ids']:[] ])}
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <label class="col-sm-2 control-label">审核人员<span class="text-danger">*</span></label>
  55. <div class="col-sm-6">
  56. <select name="approver" class="form-control">
  57. <option value="">请选择</option>
  58. {volist name="userList" id="i"}
  59. <option value="{$i['id']|default=''}">{$i['real_name']}</option>
  60. {/volist}
  61. </select>
  62. </div>
  63. </div>
  64. <div class="form-group">
  65. <label class="col-sm-2 control-label">公告</label>
  66. <div class="col-sm-6">
  67. <textarea name="notice" id="" cols="30" rows="5" class="form-control">{$info.notice|default=''}</textarea>
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="col-sm-2 control-label">服务人员</label>
  72. <div class="col-sm-6">
  73. <select name="waiter" class="form-control">
  74. <option value="">请选择</option>
  75. {volist name="userList" id="i"}
  76. <option value="{$i['id']|default=''}">{$i['real_name']}</option>
  77. {/volist}
  78. </select>
  79. </div>
  80. </div>
  81. <div class="form-group">
  82. <label class="col-sm-2 control-label">是否给服务人员发通知</label>
  83. <div class="col-sm-6">
  84. <label class="cr-inline">
  85. <input type="radio" value="1" name="is_notice_waiter">是&nbsp;&nbsp;
  86. </label>
  87. <label class="cr-inline">
  88. <input type="radio" value="0" name="is_notice_waiter">否
  89. </label>
  90. </div>
  91. </div>
  92. <div class="form-group">
  93. <label class="col-sm-2 control-label">是否需要审核</label>
  94. <div class="col-sm-6">
  95. <label class="cr-inline">
  96. <input type="radio" value="1" name="is_check">是&nbsp;&nbsp;
  97. </label>
  98. <label class="cr-inline">
  99. <input type="radio" value="0" name="is_check">否
  100. </label>
  101. </div>
  102. </div>
  103. <div class="form-group">
  104. <label class="col-sm-2 control-label">状态</label>
  105. <div class="col-sm-6">
  106. <label class="cr-inline">
  107. <input type="radio" value="1" name="enable">正常&nbsp;&nbsp;
  108. </label>
  109. <label class="cr-inline">
  110. <input type="radio" value="0" name="enable">禁用
  111. </label>
  112. </div>
  113. </div>
  114. <div class="form-group">
  115. <label class="col-sm-2 control-label">排序</label>
  116. <div class="col-sm-6">
  117. <input type="number" class="form-control" name="sort" value="{$info.sort|default=''}">
  118. </div>
  119. </div>
  120. <div class="hr-line-dashed"></div>
  121. <div class="form-group">
  122. <div class="col-sm-6 col-sm-offset-2">
  123. <button class="btn btn-primary ajax-post" target-form="form-horizontal" type="submit">确 定</button>
  124. <a href="{:url('index')}" class="btn btn-default">取 消</a>
  125. </div>
  126. </div>
  127. </form>
  128. </div>
  129. </div>
  130. </div>
  131. </div>
  132. {/block}
  133. {block name="script"}
  134. <script>
  135. $(document).ready(function(){
  136. formSetValue("enable", {$info.enable|default=1});
  137. });
  138. $(document).ready(function(){
  139. formSetValue("is_check", {$info.is_check|default=1});
  140. });
  141. $(document).ready(function(){
  142. formSetValue("is_notice_waiter", {$info.is_notice_waiter|default=1});
  143. });
  144. $(document).ready(function(){
  145. formSetValue("approver", {$info.approver|default=''});
  146. });
  147. $(document).ready(function(){
  148. formSetValue("waiter", {$info.waiter|default=''});
  149. });
  150. </script>
  151. {/block}