org.html 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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="tabs-container">
  19. <ul class="nav nav-tabs">
  20. {volist name="type" id="v"}
  21. <li {if condition="$key eq $id"}class="active"{/if}>
  22. <a href="{:url('org',['id'=>$key])}">{$v}配置</a>
  23. </li>
  24. {/volist}
  25. </ul>
  26. <div class="tab-content">
  27. <div id="tab-1" class="tab-pane active">
  28. <div class="panel-body">
  29. <div class="col-sm-6">
  30. <form method="post" action="{:url('orgSave')}" class="form-config">
  31. {volist name="list" id="config"}
  32. <div class="form-group">
  33. <label class="control-label">{$config.title}<span class="text-muted">{if condition="$config['remark']"}({$config.remark}){/if}</span></label>
  34. {switch name="config.type" }
  35. {case value="0"}
  36. <input type="number" class="form-control " name="{$config.name}" value="{$config.value}">
  37. {/case}
  38. {case value="1"}
  39. <input type="text" class="form-control " name="{$config.name}" value="{$config.value}">
  40. {/case}
  41. {case value="2|3"}
  42. <textarea name="{$config.name}" class="form-control" rows="3">{$config.value}</textarea>
  43. {/case}
  44. {case value="4"}
  45. <select name="{$config.name}" class="form-control">
  46. {volist name=":model('Config')->parseConfigAttr($config['extra'])" id="vo"}
  47. <option value="{$key}" {eq name="config.value" value="$key"}selected{/eq}>{$vo}</option>
  48. {/volist}
  49. </select>
  50. {/case}
  51. {case value="6"}
  52. <input type="text" class="form-control config_time" readonly value="{$config.value}" name="{$config.name}">
  53. {/case}
  54. {case value="5"}
  55. {:widget_view('common/multiselect',['name'=>$config['name'],'lists' => $config['user'], 'val' => $config['value']])}
  56. {/case}
  57. {case value="7"}
  58. {:widget_view('common/upimg',['name'=>$config['name'],'multi'=>0,'val'=>$config['value']?$config['value']:''])}
  59. {/case}
  60. {/switch}
  61. </div>
  62. {/volist}
  63. <div class="form-group">
  64. <button class="btn btn-primary ajax-post" target-form="form-config" type="submit">保 存</button>
  65. <a href="" class="btn btn-default">刷新</a>
  66. </div>
  67. </form>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </div>
  73. {/block}
  74. {block name="script"}
  75. <script type="text/javascript" src="/static/layDate-v5.0.9/laydate.js"></script>
  76. <script>
  77. laydate.render({
  78. elem: '.config_time',
  79. type: 'time',
  80. trigger: 'click' ,
  81. format:'HH:mm',
  82. theme:'#284a94'
  83. });
  84. </script>
  85. {/block}