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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<title>新增联系人</title>
 
 
</head>
<body class="edit_txt_body">
[#include "/business/pages/include/static.html" /]
[#include "/component/sel.html" /]
<script type="text/javascript">
$(function() {
    $.formValidator.initConfig({formID:"myform",onError:function(msg){popupTips(msg)},onSuccess:function(){
                        document.getElementById("myform").target = window.top.openDialog("2","操作",
                         {},
                         {"width":40,"height":40},[{btnId:"tipBtnSure", btnName:"确定", btnStyle:"bluebtn"}]);
                         return true;
        }});
        
        
        $("#contacts").formValidator({empty:false,onShow:"请输入联系人!",onFocus:"请选择联系人!"}).inputValidator({min:1,max:50,onError:"联系人不能为空"});
        $("#telphone").formValidator({empty:true,onShow:"请输入电话,格式为'0371-66666666'",onFocus:"请输入电话,格式为'0371-66666666'"})
                    .regexValidator({regExp:"^(([0\\+]\\d{2,3}-)?(0\\d{2,3})-)?(\\d{7,8})(-(\\d{3,}))?$",onError:"你输入的办公电话格式不正确"});
        $("#mobile").formValidator({empty:true,onShow:"手机号码",onFocus:"11位手机号码"}).inputValidator({min:11,max:11,onError:"手机号码必须为11位数字"})
                    .regexValidator({regExp:"mobile",dataType:"enum",onError:"你输入的手机号码格式不正确"});
        
})
</script>
 
<div class="edit_txt">
    <form id="myform" action="" method="post">
        <input type="hidden" value="${RequestParameters.flowId}" name="flow_id"/>
        <input type="hidden" value="${RequestParameters.csId}" name="mainufactureerid"/>
         <table class="edit_layout">
                <tr><th><label class="required">联系人:</label></th>
                    <td style="width:500px;">
                    <input class="general" type="text" name="contacts" id="contacts" />
                    <div id="contactsTip" style="display:inline-block;"></div>
                    </td>
                </tr>
                
                
                <tr><th><label>联系电话:</label></th>
                    <td style="width:500px;">
                    <input class="general" type="text" name="telphone" id="telphone" />
                    <div id="telphoneTip" style="display:inline-block;"></div>
                    </td>
                </tr>
                
                <tr><th><label>手机号码:</label></th>
                    <td style="width:500px;">
                    <input class="general" type="text" name="mobile" id="mobile" />
                    <div id="mobileTip" style="display:inline-block;"></div>
                    </td>
                </tr>
                
                <tr><th><label>职务:</label></th>
                    <td style="width:500px;">
                    <input class="general" type="text" name="job" id="job" />
                    </td>
                </tr>
                
                
                <tr><th><label>重要等级:</label></th>
                    <td style="width:160px;">
                    <select name="level" id="level">
                        <option value="1">高</option>
                        <option value="2">中</option>
                        <option value="3">低</option>
                    </select>
                    </td>
                </tr>
                
                <tr><th><label>领域干系介绍:</label></th>
                    <td ><textarea class="general" style="width:360px;" name="project_link_introduce" id="project_link_introduce" /></textarea>
                    </td>
                </tr>
            </table>
     </form>
</div>
 
 
 
<script type="text/javascript">
function onDialogBtnClick(btnID, dialogID, config){
        if(btnID == "btnSure"){
            $("#myform").submit();
        }
    }
</script>
 
</body>
</html>