index.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {extend name="common/common2" /}
  2. {block name="main"}
  3. <style>
  4. .layui-laydate-content>.layui-laydate-list {
  5. padding-bottom: 0px;
  6. overflow: hidden;
  7. }
  8. .layui-laydate-content>.layui-laydate-list>li{
  9. width:50%
  10. }
  11. .merge-box .scrollbox .merge-list {
  12. padding-bottom: 5px;
  13. }
  14. .laydate-time-list ol li{
  15. padding-left:55px !important;
  16. }
  17. </style>
  18. <div class="row">
  19. <div class="col-sm-12">
  20. <div class="ibox float-e-margins">
  21. <div class="ibox-title">
  22. <h5>未转运提醒设置</h5>
  23. </div>
  24. <div class="ibox-content">
  25. <form method="post" action="{:url('index')}" class="form-horizontal">
  26. <div class="form-group">
  27. <label class="col-sm-2 control-label">每日未转运提示</label>
  28. <div class="col-sm-6">
  29. <label class="cr-inline">
  30. <input type="radio" value="0" name="waste_status">关闭&nbsp;&nbsp;
  31. </label>
  32. <label class="cr-inline">
  33. <input type="radio" value="1" name="waste_status">开启
  34. </label>
  35. </div>
  36. </div>
  37. <div class="form-group">
  38. <label class="col-sm-2 control-label">每日提醒时间</label>
  39. <div class="col-sm-2">
  40. <input type="text" class="form-control" id="time" readonly value="{$waste_time|default=''}" name="waste_time">
  41. </div>
  42. </div>
  43. <div class="form-group">
  44. <label class="col-sm-2 control-label">提醒人员</label>
  45. <div class="col-sm-6">
  46. {:widget_view('common/multiselect',['name'=>'waste_user','lists' => $user, 'val' => $waste_user?$waste_user:[]])}
  47. </div>
  48. </div>
  49. <div class="hr-line-dashed"></div>
  50. <div class="form-group">
  51. <div class="col-sm-6 col-sm-offset-2">
  52. <button class="btn btn-primary ajax-post" target-form="form-horizontal" type="submit">保 存</button>
  53. </div>
  54. </div>
  55. </form>
  56. </div>
  57. </div>
  58. </div>
  59. </div>
  60. {/block}
  61. {block name="script"}
  62. <script type="text/javascript" src="/static/layDate-v5.0.9/laydate.js"></script>
  63. <script>
  64. laydate.render({
  65. elem: '#time',
  66. type: 'time',
  67. trigger: 'click' ,
  68. format:'HH:mm',
  69. theme:'#148d8f'
  70. });
  71. $(document).ready(function(){
  72. formSetValue("waste_status", {$waste_status|default=0});
  73. });
  74. </script>
  75. {/block}