cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>设置</title>
[#include "/business/pages/include/static.html" /]
[#include "/component/DatePicker.html" /]
<link rel="stylesheet" href="${common_static}/static/plugins/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css">
<script type="text/javascript" src="${common_static}/static/plugins/ztree/js/jquery.ztree.all-3.5.min.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
             document.getElementById("myform").target = window.top.openDialog("1","操作",
                         {},
                         {"width":40,"height":40,"noclose":true},[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
                         return true; 
        }});
        $("#start_date").formValidator({empty:false,onShow:"请选择开始执行时间!"}).inputValidator({min:1, onError:"开始执行时间不能为空"});
    });
    
</script>
 
</head>
 
<body>
<div>
<form id="myform" action="" method="post">
    <input type="hidden" name="id" value="${RequestParameters.planId}"/>
    <table class="edit_layout2" style="margin-top:30px">
            <tr>
                <th><label class="required">周期类型:</label></th>
                <td>
                    <select name="cycle_type" class="mysel" value="${info.cycle_type}">
                        <option value="1" [#if info.cycle_type==1]selected[/#if]>周一到周五</option>
                        <option value="2" [#if info.cycle_type==2]selected[/#if]>周六周日</option>
                        <option value="3" [#if info.cycle_type==3]selected[/#if]>周一到周日</option>
                    </select>
                </td>
            </tr>
             
            <tr></tr>
            <tr>
                <th><label class="required">班次类型:</label></th>
                <td>
                    <select name="shift_type" class="mysel" value="${info.shift_type}">
                        <option value="1" [#if info.shift_type==1]selected[/#if]>每日一班</option>
                        <option value="2" [#if info.shift_type==2]selected[/#if]>每日两班</option>
                        <option value="3" [#if info.shift_type==3]selected[/#if]>每日三班</option>
                        <option value="4" [#if info.shift_type==4]selected[/#if]>白班/夜班</option>
                    </select>
                </td>
            </tr>
            
            <tr class="long">
                <th ><label class="required">开始执行日期:</label></th>
                <td>
                    [@datepicker id="start_date" value="${info.start_date}" class="general" length=8/]
                    <div id="start_dateTip" style="display:inline-block;"></div>
                </td>
            </tr>
            
       </table>
</form>
</div>
 
</body>
<script type="text/javascript">
 
    //点击事件
    function onDialogBtnClick(btnID, dialogID, config){
        if(btnID == "btnSure"){
             $("#myform").submit();
        }
    }
    
</script>
</html>